Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg deocde without producing output file

Tags:

ffmpeg

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!

like image 314
Xin He Avatar asked Dec 02 '13 08:12

Xin He


1 Answers

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
like image 56
ptQa Avatar answered Nov 27 '22 20:11

ptQa