[mythtv-users] another mythencode.pl error

mOjO mojospam at thegeekclub.net
Sat Jun 28 02:59:04 EDT 2003


yeah... and even after fixing that script and trying just running 
mencoder I still am having problems converting my .NUV's to divx avi's 
playable in windows... the originals are being recorded by myth to 
640x480 mpeg4's 2200 bitrate, with vhq and v4mv... i can convert the 
.NUV's but the resulting file has out-of-sync audio every single time. i 
've tried numerous settings one pass or two and i'm not sure what to do 
now... when i found that bug in the script i thought yaaahhh.. thats why 
my audio was out of sync... alas i was wrong.... its still out of sync. 
btw, its not just the windows box i can play the converted files back on 
mplayer on the myth machine and they are out of sync in mplayer even, 
but the originals look great and play great through myth.

any mencoder experts out there?

can anyone tell me what settings they use?



TIA,
mOjO

Rob Snow wrote:

> Oops, looks like thats a bug (vpass1/2).  I'll get a patch to fix it as soon 
> as we get the next patch via CVS.  Robert was away this week and was going 
> to apply the patch this weekend.
> 
> vhq/v4mv: Actually, I'm not 100% certain either way.  From reading the 
> mplayer/mencoder lists it appears you should include them in the first pass 
> in some questing/replies and not in others.  I don't have a definative 
> answer, but my intuition tells me (possibly wrongly :) that you want the 
> statistics from a pass that matches what you are going to be encoding with.
> 
> -Rob
> 
> 
> On Fri, 27 Jun 2003 03:11:11 -0500, mOjO wrote
> 
>>i probably shoulnt be saying "another" error... since the first one 
>>i posted was probably just specific to my version of NICE but this 
>>one looks like a plain old goof of the "i'm really too tired to be 
>>coding but i'm at it anyway variety"...
>>
>>Please take a look at the code pasted at the bottom of this email.
>>notice the options for the second pass down below...
>>both passes are running with vpass=1
>>
>>i'm not an expert on mencoder or anything but i read the docs and 
>>the second pass should say vpass=2 right?
>>
>>i have a question also... if the vhq and v4mv options are being used 
>>on the second pass should they be getting used on the first pass 
>>too? or is that unneccessary?
>>
>>thanks,
>>mOjO
>>
>>p.s. i know this belongs on the dev mailing list but i'm not on that 
>>one so deal with it :-P
>>
>>-- SNIP from mythtv-0.91/contrib/mythencode.pl --
>>
>>} else {
>>
>>                   print "Doing a two pass encode.\n";
>>                   $pass1="$nicestr $mencoder -idx $path$show.nuv -
>>fps $fps -oac mp3lame -lameopts vbr=3:br=$aud_br -ovc lavc -lavcopts 
>>vcodec=mpeg4:vbitrate=$vid_br:vpass=1 -vop lavcdeint,$scale -aspect 
>>4:3 -o $outname.avi";                   $pass2="$nicestr $mencoder 
>>-idx $path$show.nuv -fps $fps -oac mp3lame -lameopts 
>>vbr=3:br=$aud_br -ovc lavc -lavcopts 
>>vcodec=mpeg4:vbitrate=$vid_br:vhq:v4mv:vpass=1 -vop lavcdeint,$scale 
>>-aspect 4:3 -o $outname.avi";                   print "\tPASS ONE=$pass1
> 
> \n";
> 
>>                   print "\tPASS TWO=$pass2\n";
>>
>>                   if(!$test) {
>>                         exec $pass1;
>>                         exec $pass2;
>>                   }
>>}
>>
>>exit(0);
>>
>>-- EOF --
>>
>>_______________________________________________
>>mythtv-users mailing list
>>mythtv-users at snowman.net
>>http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list