User Tools

Site Tools


ffprobe:size

ffprobe - Size

ffprobe -v error -select_streams v:0 -show_entries stream=size -of default=noprint_wrappers=1:nokey=1 "input.mp4"

For MKV files

Some file format, such as .mkv, do not have size in the stream section.

ffprobe -v error -select_streams v:$i -show_entries format=size -of default=noprint_wrappers=1:nokey=1 "input.mkv"

Perform a null mux (FAST) - Video

ffmpeg -i "input.mkv" -map :v:0 -c copy -f null -

returns:

...
video:267625kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
size=N/A time=00:23:37.70 bitrate=N/A speed=1.64e+03x    

NOTE: This maps only the first video stream, and using a copy means it it super quick.


Perform a null mux - Audio (FAST)

ffmpeg -i "input.mkv" -map a:0 -c copy -f null -

returns:

...
video:0kB audio:21408kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
size=N/A time=00:23:37.69 bitrate=N/A speed= 938x   

NOTE: This maps only the first audio stream, and using a copy means it it super quick.


Perform a null mux (SLOW)

ffmpeg -i input -map 0:a:0 -c copy -f null -

returns:

...
video:15934kB audio:244224kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
frame=33992 fps=1561 q=-0.0 Lsize=N/A time=00:23:37.70 bitrate=N/A speed=65.1x

NOTE: The final readout will have that info.


ffprobe/size.txt · Last modified: 2025/05/27 13:04 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki