get video fps using FFProbe

前端 未结 3 1553
一生所求
一生所求 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条回答
  •  旧时难觅i
    2021-01-02 02:00

    You can simply run this also, to get the video FPS, this will work on linux machines.

    ffprobe -v quiet -show_streams -select_streams v:0 INPUT |grep "r_frame_rate"
    

提交回复
热议问题