doragasu
15th February 2014, 21:43
A lot of time ago (about 2 years ago, I think) I made a tiny script to transcode video files from BluRays to H264. It worked fine, and I didn't use it again until now, and guess what, it's not working. When it tries encoding the first pass, it executes:
mencoder video.mkv -vf crop=1920:816:0:132 -o /dev/null -of rawvideo -passlogfile x264_1st_pass.log -nosound -ovc x264 -x264encopts pass=1:subq=7:frameref=4:b_pyramid=strict:me=umh:me_range=16:partitions=p8x8,b8x8,i8x8,i4x4:bframes=4:b_adapt:keyint=240:keyint_min=24:scenecut=40:deblock:cabac:qcomp=0.6:qp_min=10:qp_max=51:qp_step=4:vbv_maxrate=40000:vbv_bufsize=40000:direct_pred=auto:weight_b:8x8dct:mixed_refs:trellis=1:no_fast_pskip:nr=500:level_idc=41:threads=auto:no_psnr:no_ssim
And mencoder spits this:
MEncoder SVN-r36498-snapshot-4.8.2 (C) 2000-2013 MPlayer Team
206 audio & 433 video codecs
success: format: 0 data: 0x0 - 0xb6e4716e
libavformat version 55.19.104 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
VIDEO: [H264] 1920x1080 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1920x1080 fps:23.976 ftime:=0.0417
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=1920 h=816 x=0 y=132]
Crop: 1920 x 816, 0 ; 132
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.39.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
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.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
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.
Exiting...
I have been googling for a while, and found no clue. Any suggestions?
mencoder video.mkv -vf crop=1920:816:0:132 -o /dev/null -of rawvideo -passlogfile x264_1st_pass.log -nosound -ovc x264 -x264encopts pass=1:subq=7:frameref=4:b_pyramid=strict:me=umh:me_range=16:partitions=p8x8,b8x8,i8x8,i4x4:bframes=4:b_adapt:keyint=240:keyint_min=24:scenecut=40:deblock:cabac:qcomp=0.6:qp_min=10:qp_max=51:qp_step=4:vbv_maxrate=40000:vbv_bufsize=40000:direct_pred=auto:weight_b:8x8dct:mixed_refs:trellis=1:no_fast_pskip:nr=500:level_idc=41:threads=auto:no_psnr:no_ssim
And mencoder spits this:
MEncoder SVN-r36498-snapshot-4.8.2 (C) 2000-2013 MPlayer Team
206 audio & 433 video codecs
success: format: 0 data: 0x0 - 0xb6e4716e
libavformat version 55.19.104 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
VIDEO: [H264] 1920x1080 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1920x1080 fps:23.976 ftime:=0.0417
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=1920 h=816 x=0 y=132]
Crop: 1920 x 816, 0 ; 132
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.39.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
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.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
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.
Exiting...
I have been googling for a while, and found no clue. Any suggestions?