get video fps using FFProbe

前端 未结 3 1528
一生所求
一生所求 2021-01-02 01:50

I am new in ffprobe my aim is get video fps and store into java program. my code store xml files but i want store directly like int fps=30;

ffprobe -v quiet          


        
3条回答
  •  醉梦人生
    2021-01-02 02:18

    This will print the video FPS:

    ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate file.mp4
    

提交回复
热议问题