Chumbo
3rd December 2011, 20:12
I'm running into an odd situation that I'm blanking on. I have some old DVD stuff that I had ripped to MKV files. These are mpeg2 interlaced files @ 29.970. Here's a sample mediainfo output for one of the files
General
Unique ID :
Complete name : file.mkv
Format : Matroska
Format version : Version 2
File size : 544 MiB
Duration : 16mn 16s
Overall bit rate mode : Variable
Overall bit rate : 4 678 Kbps
Encoded date : UTC 2011-11-25 17:04:26
Writing application : MakeMKV v1.6.16 win(x64-release)
Writing library : libmakemkv v1.6.16 (1.2.0/1.1.0) win(x64-release)
Video
ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : No
Format settings, Matrix : Custom
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Duration : 16mn 16s
Bit rate mode : Variable
Bit rate : 4 393 Kbps
Maximum bit rate : 9 000 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.424
Stream size : 511 MiB (94%)
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 16mn 16s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 22.3 MiB (4%)
Title : 2/0
Language : English
Default : Yes
Forced : No
I want to encode this file and other like it to AVC using x264 encoder but no matter how I configure the encoding I get vide/audio that is not in sync. Basically they don't match and it's driving me nuts.
I was hoping someone, with x264 encoding expertise, can provide some guidance please. Since it's marked as interlaced @ 29.970, shouldn't the audio sync up to 23.976p video? That's essentially how I am encoding it, i.e., x264_64.exe --pass 1 --bitrate 233 --fps 24000/1001 --tff --index "file.mkv.ffindex" --stats "file.stats" --output NUL "file.mkv"
x264_64.exe --pass 2 --bitrate 233 --fps 24000/1001 --tff --index "file.mkv.ffindex" --stats "file.stats" --output NUL "file.mkv"Thanks for any help you can provide.
General
Unique ID :
Complete name : file.mkv
Format : Matroska
Format version : Version 2
File size : 544 MiB
Duration : 16mn 16s
Overall bit rate mode : Variable
Overall bit rate : 4 678 Kbps
Encoded date : UTC 2011-11-25 17:04:26
Writing application : MakeMKV v1.6.16 win(x64-release)
Writing library : libmakemkv v1.6.16 (1.2.0/1.1.0) win(x64-release)
Video
ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : No
Format settings, Matrix : Custom
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Duration : 16mn 16s
Bit rate mode : Variable
Bit rate : 4 393 Kbps
Maximum bit rate : 9 000 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.424
Stream size : 511 MiB (94%)
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 16mn 16s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 22.3 MiB (4%)
Title : 2/0
Language : English
Default : Yes
Forced : No
I want to encode this file and other like it to AVC using x264 encoder but no matter how I configure the encoding I get vide/audio that is not in sync. Basically they don't match and it's driving me nuts.
I was hoping someone, with x264 encoding expertise, can provide some guidance please. Since it's marked as interlaced @ 29.970, shouldn't the audio sync up to 23.976p video? That's essentially how I am encoding it, i.e., x264_64.exe --pass 1 --bitrate 233 --fps 24000/1001 --tff --index "file.mkv.ffindex" --stats "file.stats" --output NUL "file.mkv"
x264_64.exe --pass 2 --bitrate 233 --fps 24000/1001 --tff --index "file.mkv.ffindex" --stats "file.stats" --output NUL "file.mkv"Thanks for any help you can provide.