| mencoder options NTSC 29.97 -> PAL 25 fps with a/v sync |
| menket posted 2008 Oct 07 14:24 |
Hello,
I'm use mencoder to produce MPEG2-file for DVD Lab Pro. Input file is NTSC with 29,97 fps video track, MP3 cbr 128 kb/s audio track.
Data from MediaInfo:
| : |
General
Complete name : INPUT.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 700 MiB
Duration : 1h 29mn
Overall bit rate : 1 098 Kbps
Writing application : VirtualDubMod 1.5.4.1 (build 2178/release)
Writing library : VirtualDubMod build 2178/release
Video
Format : MPEG-4 Visual
Format profile : Streaming Video@L1
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Custom
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 1h 29mn
Bit rate : 961 Kbps
Width : 512 pixels
Height : 384 pixels
Display aspect ratio : 4/3
Frame rate : 29.970 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.163
Stream size : 613 MiB (88%)
Writing library : XviD 1.2.0.dev47 (UTC 2006-11-01)
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 1h 29mn
Bit rate mode : Constant
Bit rate : 128 Kbps
Minimum bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 81.6 MiB (12%)
Alignment : Aligned on interleaves
Interleave, duration : 67 ms (2.00 video frames)
Interleave, preload duration : 504 ms
Writing library : LAME3.97
Encoding settings : CBR
|
I want convert this file for create DVD PAL. Ok.
Use command line:
| : |
| mencoder.exe -of mpeg -ofps 25 -fps 30000/1001 -mpegopts format=dvd:film2pal:tsaf -srate 48000 -ovc lavc -oac lavc -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:keyint=15:vrc_maxrate=9800:aspect=4/3:vbitrate=5000:vstrict=0:acodec=ac3:abitrate=128 -mc 0 -noskip -vf scale=720:544,expand=720:576,harddup -ssf ls=100 -o OUTPUT.mpeg INPUT.avi |
After this, a/v sync is bad... I see it GOM Player (select .IFO file).
Question: how to convert my video file to MPEG2 format without desync a/v? Use only mencoder, if possible.
P.S. I read other topics about NTSC->PAL conversion, about sync a/v, but I have use only mencoder.
Thanks.
|
| 45tripp posted 2008 Oct 07 19:14 |
| menket : |
Use command line:
| : |
mencoder.exe -of mpeg -ofps 25 -fps 30000/1001 -mpegopts format=dvd:film2pal:tsaf -srate 48000 -ovc lavc -oac lavc -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:keyint=15:vrc_maxrate=9800:
aspect=4/3:vbitrate=5000:vstrict=0:acodec=ac3:abitrate=128 -mc 0 -noskip -vf scale=720:544,expand=720:576,harddup -ssf ls=100 -o OUTPUT.mpeg INPUT.avi |
|
and the output of that command??..
| menket : |
P.S. I read other topics about NTSC->PAL conversion, about sync a/v, but I have use only mencoder. |
but why you have use only mencoder?
other routes provide more flexibility.
| menket : |
After this, a/v sync is bad... |
indeed.
first.
it's 29.97 progressive? what was the original source? why aren't you working with that?
then,
film2pal is the wrong filter to place in your process.
kill it.
and then major offender.
kill -noskip.
skipping frames is essential to your process.
| : |
mencoder -of mpeg -mpegopts format=dvd:tsaf -ofps 25 -srate 48000 -ovc lavc -oac lavc -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:keyint=15:vrc_maxrate=9800:
aspect=4/3:vbitrate=5000:vstrict=0:acodec=ac3:
abitrate=128 -vf scale=720:544,expand=720:576,harddup -ssf ls=100 -o OUTPUT.mpeg INPUT.avi |
tripp
|
| menket posted 2008 Oct 08 00:23 |
mencoder is fast. Other tools converts movies 2-3 times long, than mencoder.
| : |
| it's 29.97 progressive? |
I don't know. How to know?
Great! Work! Thanks :)
And one small question. If input fps is 23,97, opt -noskip must be removed?
|
| 45tripp posted 2008 Oct 08 07:04 |
| menket : |
I don't know. How to know? |
manually go through it frame by frame, to check.
| menket : |
And one small question. If input fps is 23,97, opt -noskip must be removed? |
if it's 23.976 then use film2pal.
leaving -noskip in should do no harm.
tripp
|
.