|
|
Forum Archive Home
-> DVD Ripping -> mencoder : my command doesn't work | | n2turtles posted 2009 Nov 05 14:13 | Hello,
I'm trying to rip my DVDs into mkv file using only free codec. To confirm the stereotype of the linux user, I want to do it in command line. I've found mencoder which seems to be exactly what I need.
So I extract the video file :
mplayer -dvd-device /dev/hda -dumpstream dvd://1 -dumpfile myfile.vob
I've already extracted the two audio channel and subtitles I wanted and now I want to do the audio.
As I read on the net x264 seems to be a nice codec. I've read the Mplayer's manuel and made this command line
mencoder myfile.vob -o myfile.avi -ovc x264 -x264encopts subq=1:frameref=1:vpass=1 -nosound
here is the output
| : |
$ mencoder myfile.vob -o myfile.avi -ovc x264 -x264encopts subq=1:frameref=1:vpass=1 -nosound MPlayer SVN-r29809 (C) 2000-2009 MPlayer Team
Option x264encopts: Unknown suboption vpass
success: format: 0 data: 0x0 - 0x6f113000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 7000.0 kbps (875.0 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: 0
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
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)
==========================================================================
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
FATAL: Cannot initialize video driver.
Exiting... |
thank you
| | Soopafresh posted 2009 Nov 05 14:44 | try mp4 instead of avi for the output
| | n2turtles posted 2009 Nov 05 15:05 | thank you for your answer but it doesn't change anything
I think I've found
mencoder video.vob -o video.avi -ovc x264 -x264encopts subq=1:frameref=1:pass=1:threads=auto -nosound
instead of
mencoder video.vob -o video.avi -ovc x264 -x264encopts subq=1:frameref=1:vpass=1:threads=auto -nosound
What's the difference ? With some commands I see that "pass" is used, "vpass" with others...
About the extension : does it really matter what I write ?
Because "-o video.avi" or "-o video.mp4" or even "-o video.abcd" seems to produce the same file
edit : ok now let's do the second pass
mencoder video.vob -o video.avi -ovc x264 -x264encopts subq=6:frameref=15:pass=2:threads=auto -nosound
doesn't work either
| : |
$ mencoder video.vob -o video.avi -ovc x264 -x264encopts subq=6:frameref=15:pass=2:threads=auto -nosound
MPlayer SVN-r29809 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x71426800
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 7000.0 kbps (875.0 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: 0
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
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)
==========================================================================
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [error]: constant rate-factor is incompatible with 2pass.
x264_encoder_open failed.
FATAL: Cannot initialize video driver.
Exiting... |
So there is this error "constant rate-factor is incompatible with 2pass" but I read that for a constant rate factor, I've to use the parameter "--crf"
|
Login/Register to our forum to be able to post here.
|