Opened 3 years ago

Last modified 3 years ago

#2179 open defect

high bit depth rawvideo not supported for standard output

Reported by: 4Selur@… Owned by:
Priority: normal Component: mencoder
Version: HEAD Severity: blocker
Keywords: ve_raw Cc:
Blocked By: Blocking:
Reproduced by developer: yes Analyzed by developer: yes

Description

Trying to use mencoder as decoder to feed x265 (16bit build) and converting the 8bit input to 10bit output.

I use:

mencoder -lavdopts threads=8 -of rawvideo -o - -ovc raw -demuxer lavf -noskip -vf scale,format=i420,scale,format=420p10le -forcedsubsonly -nosub -nosound "test.mkv"

for the decoder call, problem is it aborts with:

MEncoder SVN-r37000-4.8.2 (C) 2000-2014 MPlayer Team
success: format: 0 data: 0x0 - 0x2b7b61
libavformat version 55.34.101 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (dca), -aid 0
VIDEO: [H264] 1280x672 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35 fourcc:0x34363248 size:1280x672 fps:25.000 ftime:=0.0400
Writing to stdout
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=420p10le]
Opening video filter: [scale]
Opening video filter: [format fmt=i420]
Opening video filter: [scale]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.52.102 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Pos: 0.0s 9f ( 2%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
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...

since:

mencoder -rawvideo format=help

lists yuv420le:

MEncoder SVN-r37000-4.8.2 (C) 2000-2014 MPlayer Team

Available formats: 444p16le 444p16be 444p14le 444p14be 444p12le 444p12be 444p10le 444p10be 444p9le 444p9be 422p16le 422p16be 422p14le 422p14be 422p12le 422p12be 422p10le 422p10be 422p9le 422p9be 420p16le 420p16be 420p10le 420p10be 420p9le 420p9be 444p16 422p16 422p10 420p16 420p10 420p9 444a 422a 420a 444p 422p 411p 440p yuy2 yvyu uyvy yvu9 if09 yv12 i420 iyuv clpl hm12 y800 y8 y8a y16be y16le nv12 nv21 bgr24 bgr32 bgr16 bgr15 bgr12 bgr8 bgr4 bg4b bgr1 rgb64be rgb64le rgb48be rgb48le rgb48ne rgb24 rgb32 rgb16 rgb15 rgb12 rgb8 rgb4 rg4b rgb1 rgba argb bgra abgr xyz12be xyz12le gbr14pbe gbr14ple gbr12pbe gbr12ple gbr24p mjpeg mjpg

Is this a bug or some missing feature, or did I do something wrong?

Cu Selur

Change History (2)

comment:1 Changed 3 years ago by compn

why have two scales and two formats?

can you use ffmpeg instead ? mencoder is barely maintained for the last 5 years.

comment:2 Changed 3 years ago by compn

  • Analyzed by developer set
  • Component changed from undetermined to mencoder
  • Keywords ve_raw added; stdout high bit depth removed
  • Reproduced by developer set
  • Status changed from new to open

the problem is mplayer/libmpcodecs/ve_raw.c (the file that lists what raw formats can be used for mencoder) has not been updated with the 10bit codecs.

patch welcome.

Note: See TracTickets for help on using tickets.