[mythtv] mythencode.pl script

mojo mojospam at thegeekclub.net
Sun Jul 13 22:39:45 EDT 2003



Rob Snow wrote:

> Ugh, so it just needs to be changed back to a system() from and exec()?  If so, I'll 
> create a patch.  I don't have MythTV up and running right now so I can't test it.  If you 
> could create a patch it would be even better, so we can verify it works. 
>  

sorry im a total doofus in linux so i have no clue how to create one of 
those neato patch files but i'd be happy to just post the whole 
script... but it really is just those simple changes...
1.) replace "exec" with "system"
2.) add vhq:v4mv options to the second pass so it looks exactly like the 
first pass except for the "vpass=2" of course.

> I recently moved and haven't spent the time to get myth back up and running, 
> actually, I'm thinking of trying snapstream out again (I've been licensed for over 2 
> years on it) since it meets my requirements of having portable output files. 
>  
> mythencode.pl is an attempt to hack something up to create useful (for me this 
> means portable) output file, but with the issues with mencoder crashing sometimes 
> and the poor final output from double encoding I've not put much time into it lately. 
>

mencoder never seems to crash on me... just those frames get cut out 
when i convert so my video ends up moving too fast while the audio is 
fine and they go out of sync... its really hard to correct because it 
gets more and more out of sync as the movie goes on of course instead of 
being off by a constant amount.

im going to switch my recording settings to rtjpeg and just try to get 
stuff off of there fast enough to not run out of space on that dinky 
20gb hdd... maybe rtjpeg will not drop the frames... i am more and more 
convinced now that it is my fault for setting the recording settings too 
high as the other guy i mentioned having the same problem emailed me 
saying he found out his was just being cause by cron jobs kicking in and 
hes now making svcds just fine... that jerk ;-)



> On Fri, 11 Jul 2003 02:18:46 -0500, mojo wrote 
> 
>>i noticed that the updated mythecode.pl with 0.10 is still broken... 
>>the second pass never executes on 2 pass encodes. i did some  
>>searching on the web about the exec() perl command and it appears  
>>that is the wrong command to use. exec() will abandon the host  
>>script in favor of whatever command or script it executes and does  
>>not return to the original script which called it so that the "exec  
>>$pass2" command never gets executed (nor does any code inserted  
>>after it). To fix this simply replace all instances of 'exec' (i see  
>>only three) with 'system' and its fixed (both passes run). Or the  
>>workaround would be to just always do one-pass encodes. 
>> 
>>Also the second pass should also include vhq and v4mv options if  
>>they are used in the first pass (which they are). 
>> 
>>OFF-TOPIC: 
>> 
>>I still havent figured out why i'm getting tons of these errors: 
>> 
>>Pos: 910.4s  24844f (71%)  29fps Trem:   5min 153mb  A-V:-0.068 [910:96] 
>>1 duplicate frame(s)! 
>>Pos: 910.8s  24854f (71%)  29fps Trem:   5min 153mb  A-V:-0.068 [910:95] 
>>1 duplicate frame(s)! 
>> 
>>perhaps my recording settings are too high (mpeg4, 2200 on an XP1700) 
>> and frames are getting dropped? fyi, those errors have nothing to  
>>do with the script as i get them even when i do a simple 'mencoder  
>>-oac copy -ovc copy -idx -o output.avi'... i'd be most grateful if  
>>anyone could shed some light on that topic for me... I'm not the  
>>only one, there is another guy on the users list experiencing the  
>>same thing.  All of these files play fine in myth, but the converted  
>>versions have poor audio/video sync. 
>> 
>>Thanks, 
>>Sean 
>> 
>>_______________________________________________ 
>>mythtv-dev mailing list 
>>mythtv-dev at snowman.net 
>>http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-dev 
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-dev



More information about the mythtv-dev mailing list