ffmpeg deocde without producing output file

ffmpeg

Solution

If you want measure only decoding time, I think you should use raw null format to /dev/null as output. You can do it with this command

ffmpeg -i input.mp4 -f null /dev/null

Problem

I want to use ffmpeg to decode a h264 file. Since I just want to measure the decoding time, the output file creation will spend a lot of time and time measurement will be not so accurate. So could anyone help to solve this problem? I use "ffmpeg -i blue_sky.h264 output.yuv "to decode. Thanks in advance!

Original source