[MPlayer-users] How to pass -strict -2 to ffmpeg hevc

Josh joshf87 at live.com
Thu Oct 17 19:23:48 CEST 2013


On 10/17/2013 13:15, Andy Furniss wrote:
> Is it possible to pass -strict -2 to ffmpegs hevc codec.
>
> ffplay -strict -2 bbb_1080p_c.ts
>
> works OK but I can't find a way with mplayer.
>
> MPlayer SVN-r36475-4.6.3 (C) 2000-2013 MPlayer Team
>
> Playing bbb_1080p_c.ts.
> libavformat version 55.19.102 (internal)
> TS file format detected.
> VIDEO HEVC(pid=301) AUDIO AAC(pid=302) NO SUBS (yet)!  PROGRAM N. 1
> FPS not specified in the header or invalid, use the -fps option.
> Load subtitles in ./
> Could not find a UTF-8 locale, some keys will not be handled.
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> libavcodec version 55.37.100 (internal)
> [hevc @ 0x7ffb0a0ddc60]The decoder 'hevc' is experimental but
> experimental codecs are not enabled, add '-strict -2' if you want to use
> it.
> Could not open codec.
> VDecoder init failed :(
> Cannot find codec matching selected -vo and video format 0x43564548.
> ==========================================================================
> ==========================================================================
> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
> AUDIO: 44100 Hz, 2 ch, floatle, 0.0 kbit/0.00% (ratio: 0->352800)
> Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4
> Audio))
> ==========================================================================
> [AO_ALSA] Format floatle is not supported by hardware, trying default.
> AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
> Video: no video
> Starting playback...
> A:   2.0 (01.9) of 0.0 (unknown)  0.5%
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
>

One way is to remove the experimental flag from hevc.c & recompile.

ffmpeg/libavcodec/hevc.c

.capabilities   = CODEC_CAP_DR1 | CODEC_CAP_DELAY | 
CODEC_CAP_FRAME_THREADS | CODEC_CAP_EXPERIMENTAL,

to

.capabilities   = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_FRAME_THREADS,


More information about the MPlayer-users mailing list