VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Dec 2010
    Location
    Italy
    Search Comp PM
    Sorry if already asked/solved, I cant' find help. I'm total newby in video conversion.
    Need to convert DVD to some viable format for streaming it out from a website.

    The problem arises at the first two steps of the following chain of commands:
    Code:
    $mencoder dvd:///video_dvd -noskip -mc 0 -vf scale=512:-2,pullup,softskip,harddup -ovc x264 -x264encopts bitrate=1100:pass=1:subq=5:8x8dct:frameref=2:bframes=3:weight_b:turbo=1:pass=1  -of rawvideo -nosound -o /dev/null
    $mencoder dvd:///video_dvd -noskip -mc 0 -vf scale=512:-2,pullup,softskip,harddup -ovc x264 -x264encopts bitrate=1100:pass=1:subq=5:8x8dct:frameref=2:bframes=3:weight_b:pass=2  -of rawvideo -nosound -o video.264
    $mplayer dvd:///video_dvd -aid 128 -dumpaudio -dumpfile audio128_it.ac3 
    $a52dec audio128_it.ac3 -o wavdolby >audio128_it.wav
    $faac audio128_it.wav audio128_it.aac -b 256 -q 100
    $MP4Box -fps 29.97 -add video.264 -add audio128_it.aac movie.mp4
    Mencoder produces video.264 which is shorter than original, it goes faster, like if lots of frames were dropped. When I put audio back in, it's not synchronous. More precisely,

    During first pass, mencoder says:
    Code:
    $ mencoder dvd:///video_dvd -noskip -mc 0 -vf scale=512:-2,pullup,softskip,harddup -ovc x264 -x264encopts bitrate=1100:pass=1:subq=5:8x8dct:frameref=2:bframes=3:weight_b:turbo=1:pass=1  -of rawvideo -nosound -o /dev/null
    MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
    libdvdread: Encrypted DVD support unavailable.
    ************************************************
    **                                            **
    **  No css library available. See             **
    **  /usr/share/doc/libdvdread4/README.Debian  **
    **  for more information.                     **
    **                                            **
    ************************************************
    libdvdread: Couldn't find device name.
    There are 2 titles on this DVD.
    There are 1 angles in this DVD title.
    audio stream: 0 format: ac3 (stereo) language: it aid: 128.
    audio stream: 1 format: ac3 (stereo) language:  aid: 129.
    number of audio channels on disk: 2.
    subtitle ( sid ): 0 language: it
    subtitle ( sid ): 1 language: en
    subtitle ( sid ): 2 language: 
    number of subtitles on disk: 3
    success: format: 2  data: 0x0 - 0x12871000
    MPEG-PS file format detected.
    VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7700.0 kbps (962.5 kbyte/s)
    [V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [harddup]
    Opening video filter: [softskip]
    Opening video filter: [pullup]
    Opening video filter: [scale w=512 h=-2]
    ==========================================================================
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    VDecoder init failed :(
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Unsupported PixelFormat -1
    Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
    ==========================================================================
    VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
    VDec: using Planar I420 as output csp (no 1)
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    SwScaler: reducing / aligning filtersize 7 -> 8
    SwScaler: reducing / aligning filtersize 7 -> 8
    SwScaler: reducing / aligning filtersize 9 -> 8
    SwScaler: reducing / aligning filtersize 9 -> 8
    [swscaler @ 0x7fe7a700e660]BICUBIC scaler, from yuv420p to yuv420p using MMX2
    [swscaler @ 0x7fe7a700e660]using 8-tap MMX scaler for horizontal luminance scaling
    [swscaler @ 0x7fe7a700e660]using 8-tap MMX scaler for horizontal chrominance scaling
    [swscaler @ 0x7fe7a700e660]using n-tap MMX scaler for vertical scaling (YV12 like)
    [swscaler @ 0x7fe7a700e660]720x576 -> 512x288
    x264 [info]: using SAR=1/1
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
    x264 [info]: profile High, level 2.1
    [mpeg2video @ 0x7fe7a7c7a8a0]ac-tex damaged at 34 7
    [mpeg2video @ 0x7fe7a7c7a8a0]Warning MVs not available
    [mpeg2video @ 0x7fe7a7c7a8a0]concealing 1305 DC, 1305 AC, 1305 MV errors
    Pos: 366.6s   9502f (99%) 149.63fps Trem:   0min  48mb  A-V:0.000 [1098:0]
    Flushing video frames.
    
    Video stream: 1093.527 kbit/s  (136690 B/s)  size: 50378778 bytes  368.560 secs  9502 frames
    x264 [info]: frame I:56    Avg QP:11.56  size: 26110
    x264 [info]: frame P:4731  Avg QP:14.84  size:  9641
    x264 [info]: frame B:4427  Avg QP:19.04  size:   746
    x264 [info]: consecutive B-frames: 31.7%  8.3%  9.9% 50.1%
    x264 [info]: mb I  I16..4: 51.8%  6.3% 42.0%
    x264 [info]: mb P  I16..4:  4.5%  2.8%  2.5%  P16..4: 52.8%  4.7%  3.6%  0.0%  0.0%    skip:29.0%
    x264 [info]: mb B  I16..4:  0.3%  0.2%  0.1%  B16..8:  7.8%  0.0%  0.0%  direct: 9.9%  skip:81.6%  L0:37.3% L1:44.3% BI:18.4%
    x264 [info]: final ratefactor: 14.08
    x264 [info]: 8x8 transform intra:26.2% inter:36.9%
    x264 [info]: coded y,uvDC,uvAC intra: 52.5% 46.7% 32.4% inter: 28.0% 16.9% 9.2%
    x264 [info]: i16 v,h,dc,p: 55% 26%  9% 10%
    x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 33% 17%  4%  6%  5%  7%  4%  5%
    x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 26% 17%  5%  7%  6%  7%  6%  7%
    x264 [info]: Weighted P-Frames: Y:16.3%
    x264 [info]: kb/s:1093.53
    $
    During second pass, it says:
    Code:
    $ mencoder dvd:///video_dvd -noskip -mc 0 -vf scale=512:-2,pullup,softskip,harddup -ovc x264 -x264encopts bitrate=1100:pass=1:subq=5:8x8dct:frameref=2:bframes=3:weight_b:pass=2  -of rawvideo -nosound -o video.264
    MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
    libdvdread: Encrypted DVD support unavailable.
    ************************************************
    **                                            **
    **  No css library available. See             **
    **  /usr/share/doc/libdvdread4/README.Debian  **
    **  for more information.                     **
    **                                            **
    ************************************************
    libdvdread: Couldn't find device name.
    There are 2 titles on this DVD.
    There are 1 angles in this DVD title.
    audio stream: 0 format: ac3 (stereo) language: it aid: 128.
    audio stream: 1 format: ac3 (stereo) language:  aid: 129.
    number of audio channels on disk: 2.
    subtitle ( sid ): 0 language: it
    subtitle ( sid ): 1 language: en
    subtitle ( sid ): 2 language: 
    number of subtitles on disk: 3
    success: format: 2  data: 0x0 - 0x12871000
    MPEG-PS file format detected.
    VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7700.0 kbps (962.5 kbyte/s)
    [V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [harddup]
    Opening video filter: [softskip]
    Opening video filter: [pullup]
    Opening video filter: [scale w=512 h=-2]
    ==========================================================================
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    VDecoder init failed :(
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Unsupported PixelFormat -1
    Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
    ==========================================================================
    VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
    VDec: using Planar I420 as output csp (no 1)
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    SwScaler: reducing / aligning filtersize 7 -> 8
    SwScaler: reducing / aligning filtersize 7 -> 8
    SwScaler: reducing / aligning filtersize 9 -> 8
    SwScaler: reducing / aligning filtersize 9 -> 8
    [swscaler @ 0x7f8a31cce660]BICUBIC scaler, from yuv420p to yuv420p using MMX2
    [swscaler @ 0x7f8a31cce660]using 8-tap MMX scaler for horizontal luminance scaling
    [swscaler @ 0x7f8a31cce660]using 8-tap MMX scaler for horizontal chrominance scaling
    [swscaler @ 0x7f8a31cce660]using n-tap MMX scaler for vertical scaling (YV12 like)
    [swscaler @ 0x7f8a31cce660]720x576 -> 512x288
    x264 [info]: using SAR=1/1
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
    x264 [info]: profile High, level 2.1
    [mpeg2video @ 0x7f8a3293a8a0]ac-tex damaged at 34 7
    [mpeg2video @ 0x7f8a3293a8a0]Warning MVs not available
    [mpeg2video @ 0x7f8a3293a8a0]concealing 1305 DC, 1305 AC, 1305 MV errors
    Pos: 368.4s   9502f (99%) 83.87fps Trem:   0min  48mb  A-V:0.000 [1101:0]3:0]
    Flushing video frames.
    
    Video stream: 1100.660 kbit/s  (137582 B/s)  size: 50707414 bytes  368.560 secs  9502 frames
    x264 [info]: frame I:56    Avg QP:11.90  size: 25088
    x264 [info]: frame P:4731  Avg QP:14.60  size:  9845
    x264 [info]: frame B:4427  Avg QP:19.17  size:   616
    x264 [info]: consecutive B-frames: 31.7%  8.3%  9.9% 50.1%
    x264 [info]: mb I  I16..4: 51.8%  5.8% 42.4%
    x264 [info]: mb P  I16..4:  3.3%  2.7%  2.5%  P16..4: 40.9% 11.3% 11.3%  0.0%  0.0%    skip:28.2%
    x264 [info]: mb B  I16..4:  0.3%  0.2%  0.1%  B16..8:  6.7%  0.9%  0.5%  direct: 8.2%  skip:83.0%  L0:35.6% L1:39.3% BI:25.1%
    x264 [info]: 8x8 transform intra:28.4% inter:34.2%
    x264 [info]: coded y,uvDC,uvAC intra: 56.3% 50.7% 32.0% inter: 27.4% 21.0% 10.4%
    x264 [info]: i16 v,h,dc,p: 48% 31%  9% 12%
    x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 33% 17%  4%  6%  5%  7%  4%  6%
    x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 26% 18%  5%  7%  6%  7%  5%  7%
    x264 [info]: Weighted P-Frames: Y:16.3%
    x264 [info]: ref P L0: 78.1% 14.1%  7.8%
    x264 [info]: kb/s:1100.66
    $
    tcscan fails on the output file video.264:
    Code:
    $tcscan -i video.264 
    Contents of file video.264 (50707414/0x305bbd6 bytes):
    
    
    
     *** Error: Expected chunk 'RIFF', found ''
    $
    Thanks for any help/suggestion
    Last edited by gherardo; 16th Dec 2010 at 02:24.
    Quote Quote  
  2. Member
    Join Date
    Oct 2010
    Location
    England
    Search Comp PM
    Originally Posted by gherardo View Post
    Mencoder produces video.264 which is shorter than original, it goes faster, like if lots of frames were dropped.
    mencoder is reporting the framerate as 25fps:
    Code:
    VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps
    But you've set the framerate to 29.97 with MP4Box.
    Code:
    $MP4Box -fps 29.97 -add video.264 -add audio128_it.aac movie.mp4
    They should both be 25fps.

    EDIT: I don't know why tcscan returns an error - it's not something that I've used. If you want a program that displays information about media files, consider mediainfo.
    Last edited by intracube; 16th Dec 2010 at 03:48.
    Quote Quote  
  3. Member
    Join Date
    Dec 2010
    Location
    Italy
    Search Comp PM
    Thank you, but

    Originally Posted by intracube View Post
    mencoder is reporting the framerate as 25fps: (snip) But you've set the framerate to 29.97 with MP4Box.
    (snip) They should both be 25fps.
    ... does not solve the problem. This certainly was a mistake (thank you), but already the raw 264 video produced by mencoder is shorter.
    Namely before runnink MP4Box.

    EDIT: and, actually, I set 29.97 because
    Code:
    $ tcprobe -i video.264 
    [tcprobe] Digital Video (NTSC)
    [tcprobe] summary for video.264, (*) = not default, 0 = not detected
    import frame size: -g 720x480 [720x576] (*)
         aspect ratio: 4:3 (*)
           frame rate: -f 29.970 [25.000] frc=4 (*)
    Quote Quote  
  4. Member
    Join Date
    Dec 2010
    Location
    Italy
    Search Comp PM
    by the way, tcprobe also fails, but ina different way:
    Code:
    $ tcprobe -i video_dvd/
    [tcprobe] warning: non-homogeneous directory content (different stream type detected)
    [probe_ffmpeg.c] critical: unable to open 'video_dvd/' (libavformat failure)
    [tcprobe] critical: failed to probe source
    The structure of the directory of the dvd is:
    Code:
    $ ls -l video_dvd/
    total 608108
    -rw-r--r-- 1 gherardo gherardo     14336 2010-10-26 21:26 VIDEO_TS.BUP
    -rw-r--r-- 1 gherardo gherardo     14336 2010-10-26 21:26 VIDEO_TS.IFO
    -rw-r--r-- 1 gherardo gherardo    157696 2010-10-26 21:25 VIDEO_TS.VOB
    -rw-r--r-- 1 gherardo gherardo     24576 2010-10-26 21:26 VTS_01_0.BUP
    -rw-r--r-- 1 gherardo gherardo     24576 2010-10-26 21:26 VTS_01_0.IFO
    -rw-r--r-- 1 gherardo gherardo    475136 2010-10-26 21:25 VTS_01_0.VOB
    -rw-r--r-- 1 gherardo gherardo 310843392 2010-10-26 21:25 VTS_01_1.VOB
    -rw-r--r-- 1 gherardo gherardo     20480 2010-10-26 21:26 VTS_02_0.BUP
    -rw-r--r-- 1 gherardo gherardo     20480 2010-10-26 21:26 VTS_02_0.IFO
    -rw-r--r-- 1 gherardo gherardo    157696 2010-10-26 21:25 VTS_02_0.VOB
    -rw-r--r-- 1 gherardo gherardo 310843392 2010-10-26 21:26 VTS_02_1.VOB
    Quote Quote  
  5. Member
    Join Date
    Oct 2010
    Location
    England
    Search Comp PM
    Originally Posted by gherardo View Post
    EDIT: and, actually, I set 29.97 because
    Code:
    $ tcprobe -i video.264 
    [tcprobe] Digital Video (NTSC)
    [tcprobe] summary for video.264, (*) = not default, 0 = not detected
    import frame size: -g 720x480 [720x576] (*)
         aspect ratio: 4:3 (*)
           frame rate: -f 29.970 [25.000] frc=4 (*)
    I'm not sure why tcprobe is showing both 720x480 and 720x576, 29.970 and 25.000fps. When I try it with one of my videos I get:
    Code:
    [tcprobe] Digital Video (PAL)
    [tcprobe] summary for test.dv, (*) = not default, 0 = not detected
    import frame size: -g 720x576 [720x576] 
         aspect ratio: 16:9 (*)
           frame rate: -f 25.000 [25.000] frc=3 
          audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x1 [0x2000] (*)
                       bitrate=1536 kbps
    As you live in Italy, it's much more likely that the video you're trying to convert is 25fps (unless you've imported the DVD from America).

    If you try MP4Box with 25fps, what is the result?
    - Is there a consistent delay between the video and audio
    - Is the video/audio ok at the beginning, but becomes more delayed towards the end?

    You might also want to try HandBrake to convert your DVD.
    Quote Quote  
  6. Member
    Join Date
    Dec 2010
    Location
    Italy
    Search Comp PM
    Originally Posted by intracube
    I'm not sure why tcprobe is showing both 720x480 and 720x576, 29.970 and 25.000fps. (snip)
    The original dvd, according to mplayer (while playing) is, as you said, 25fps and 720x576. It's a video produced by a press officer of an Italian borough council. However it rescales to 1024x576. I don't know what is 480: indeed 1024/576=1.7777..., while 720/480=1.5
    Complete infos on the dvd, given by mplayer while playing:
    Code:
    $ mplayer dvd:///video_dvd
    MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    
    Playing dvd:///video_dvd.
    libdvdread: Encrypted DVD support unavailable.
    ************************************************
    **                                            **
    **  No css library available. See             **
    **  /usr/share/doc/libdvdread4/README.Debian  **
    **  for more information.                     **
    **                                            **
    ************************************************
    libdvdread: Couldn't find device name.
    There are 2 titles on this DVD.
    There are 1 angles in this DVD title.
    audio stream: 0 format: ac3 (stereo) language: it aid: 128.
    audio stream: 1 format: ac3 (stereo) language:  aid: 129.
    number of audio channels on disk: 2.
    subtitle ( sid ): 0 language: it
    subtitle ( sid ): 1 language: en
    subtitle ( sid ): 2 language: 
    number of subtitles on disk: 3
    MPEG-PS file format detected.
    VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7700.0 kbps (962.5 kbyte/s)
    open: No such file or directory
    [MGA] Couldn't open: /dev/mga_vid
    open: No such file or directory
    [MGA] Couldn't open: /dev/mga_vid
    [VO_TDFXFB] Can't open /dev/fb0: Permission denied.
    [VO_3DFX] Unable to open /dev/3dfx.
    ==========================================================================
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    VDecoder init failed :(
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Unsupported PixelFormat -1
    Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [liba52] AC3 decoding with liba52
    Using SSE optimized IMDCT transform
    Using MMX optimized resampler
    AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
    Selected audio codec: [a52] afm: liba52 (AC3-liba52)
    ==========================================================================
    AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
    Starting playback...
    VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    VO: [xv] 720x576 => 1024x576 Planar YV12 
    [mpeg2video @ 0x7f7abd5498a0]ac-tex damaged at 34 7
    [mpeg2video @ 0x7f7abd5498a0]Warning MVs not available
    [mpeg2video @ 0x7f7abd5498a0]concealing 1305 DC, 1305 AC, 1305 MV errors
    A: 380.3 V: 380.3 A-V:  0.005 ct: -0.033 8015/8015 13%  0%  1.3% 0 0 
    
    Exiting... (End of file)
    
    $
    Originally Posted by intracube
    If you try MP4Box with 25fps, what is the result?
    - Is there a consistent delay between the video and audio
    - Is the video/audio ok at the beginning, but becomes more delayed towards the end?
    EDIT: MP4Box with 25fps, no change, same output.

    video/audio ok at beginning, delay increases continuously, without jumps. I did not even realised it immediately.

    You might also want to try HandBrake to convert your DVD.
    I will try. But I am curious anyway.
    Last edited by gherardo; 16th Dec 2010 at 05:11.
    Quote Quote  
  7. Member
    Join Date
    Dec 2010
    Location
    Italy
    Search Comp PM
    HandBrakeCLI Great tool! It worked perfectly with default options. Thanks a lot!!!

    Still curious of what was going wrong. The resulting mp4 file says
    Code:
    $ tcprobe -i m.mp4 
    [probe_mov.c] audio codec=mp4a
    [probe_mov.c] video codec=mp4v
    [tcprobe] Apple QuickTime movie file
    [tcprobe] summary for m.mp4, (*) = not default, 0 = not detected
    import frame size: -g 720x400 [720x576] (*)
           frame rate: -f 25.000 [25.000] frc=3 
          audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x1 [0x2000] (*)
               length: 9501 frames, frame_time=40 msec, duration=0:06:20.040
    Quote Quote  
  8. Member
    Join Date
    Oct 2010
    Location
    England
    Search Comp PM
    Originally Posted by gherardo View Post
    However it rescales to 1024x576.
    On many widescreen DVDs, the video is stored anamorphic. On playback mplayer is correctly formatting the video before displaying it on your screen.
    720x576 is typically used for both 4:3 and 16:9 content. The original 4:3/16:9 video is distorted to fit into that frame, then on playback it's stretched back to its original proportions.

    I don't know what is 480: indeed 1024/576=1.7777..., while 720/480=1.5
    720x480 is the resolution that American 'NTSC' DVDs use. Similarly, both 4:3/16:9 content use that resolution. You need to take into account the Pixel Aspect Ratio (PAR):
    http://en.wikipedia.org/wiki/Pixel_aspect_ratio

    Confusingly, there's conflicting information online on what the PAR values should be:
    720/480 = 1.5 * 1.185 = 1.777
    720/480 = 1.5 * 1.212 = 1.818 (Rec. 601 standard)

    The first example would seem to be right as it mathematically it's closest to 16:9. However, for various reasons the second is correct for some digital formats (D1, Digibeta, DV) - it's unclear which PAR values DVDs use. For your needs it's probably not an issue.

    EDIT: MP4Box with 25fps, no change, same output.

    video/audio ok at beginning, delay increases continuously, without jumps. I did not even realised it immediately.
    I've had another look at the first block of code you posted, and have spotted some errors:
    - remove pullup and softskip from your list of filters - pullup is used to restore films that have been telecined from 24fps>29.97 'NTSC', which isn't relevant here.
    - add yadif=0 as the very first filter - it's important to put it before any re-sizing or cropping filters.
    - you have pass=1 and pass=2 on your second mencoder command - remove pass=1
    - It shouldn't be necessary to have the -fps option with MP4Box - it should detect the framerate from the input file

    Your set of commands should look something like this:
    Code:
    $mencoder dvd:///video_dvd -noskip -mc 0 -vf yadif=0,scale=512:-2,harddup -ovc x264 -x264encopts bitrate=1100:subq=5:8x8dct:frameref=2:bframes=3:weight_b:turbo=1:pass=1  -of rawvideo -nosound -o /dev/null
    $mencoder dvd:///video_dvd -noskip -mc 0 -vf yadif=0,scale=512:-2,harddup -ovc x264 -x264encopts bitrate=1100:subq=5:8x8dct:frameref=2:bframes=3:weight_b:pass=2  -of rawvideo -nosound -o video.264
    $mplayer dvd:///video_dvd -aid 128 -dumpaudio -dumpfile audio128_it.ac3 
    $a52dec audio128_it.ac3 -o wavdolby >audio128_it.wav
    $faac audio128_it.wav audio128_it.aac -b 256 -q 100
    $MP4Box -add video.264 -add audio128_it.aac movie.mp4
    Also, it's possible that tcscan/tcprobe are giving incorrect info. Try mediainfo - it gives much more detailed information.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!