Benchmarking VLC Encoding/Transcoding Speed

If you need to benchmark how fast vlc transcodes a certain file with certain settings, it's a bit tough. It doesn't seem to have any way to display the frames per second (fps) during encoding and no benchmark option as mplayer. A good way to work around this is to check how long it takes vlc to encode a certain file for a few seconds, e.g.

time vlc --stop-time 25 (...) vlc://quit.
e.g.  time vlc --stop-time 25 /D/MVI_6615.MOV --sout "#transcode{width=384,height=288,vcodec=h264,acodec=vorbis}:standard{access=file,mux=mkv,dst=test.mkv}}" --sout-x264-crf=24 --sout-transcode-threads=2 vlc://quit

This encodes for 25 seconds and then quits and displays the time it took. Make sure to have vlc://quit at the very end of the command line and after your input file. The "user" value is what matters, this shows how long it kept the cpu occupied. Of course this only works on Unix systems. Also be aware that the second time the input file comes from cache, so only use the values from the second or later encodings for comparison.

No comments:

Post a Comment

I appreciate comments. Feel free to write anything you wish. Selected comments and questions will be published.