用<url>來表示視頻文件的地址。
查看關(guān)鍵幀數(shù)據(jù):
ffprobe -show_frames -select_streams v:0 -print_format csv <url> | grep ",I,"
查看流信息:
ffprobe -v quiet -print_format json -show_format -show_streams <url>
查看分辨率:
ffprobe -v debug -select_streams v -skip_frame nokey -count_frames <url> 2>&1|grep Reinit
查看每一幀的音頻數(shù)據(jù):
ffprobe -show_frames -select_streams a -print_format csv <url>
提取視頻的h264碼流
ffmpeg -i <url> -codec copy -f h264 video.h264