[FFmpeg-user] How to determine which decoder is used in ffmpeg pipe ?

Moritz Barsnick barsnick at gmx.net
Mon Jul 4 17:06:27 CEST 2016


On Mon, Jul 04, 2016 at 07:03:24 -0700, ssshukla26 wrote:
> Attaching the console output as below. 
> *ffplay -f h264 -i test.h264 *
[...]
> Input #0, h264, from 'test.h264':0KB sq=    0B f=0/0   
>   Duration: N/A, bitrate: N/A
>     Stream #0:0: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
> 30 fps, 30 tbr, 1200k tbn, 60 tbc
>     nan M-V:    nan fd=   0 aq=    0KB vq=    5KB sq=    0B f=0/0

Hmm, okay, this doesn't seem to show which decoder is being used, while
ffmpeg does. (Perhaps someone else knows how to get this info.)

> One more thing so I can force command line to use a different decoder using
> *-c:v* option ?

Yes, assuming you actually have another one. My ffmpeg does for h264:
barsnick at sunshine:~/tmp > ffmpeg -codecs | grep 264
[...]
 DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_vdpau ) (encoders: libx264 libx264rgb )

(The second decoder isn't useful for transcoding, IIUC.)

Moritz


More information about the ffmpeg-user mailing list