Skip to content

Instantly share code, notes, and snippets.

@lethee
Created January 25, 2023 02:03
Show Gist options
  • Save lethee/77b5eada58f8318e484d55ca8d83fc91 to your computer and use it in GitHub Desktop.
Save lethee/77b5eada58f8318e484d55ca8d83fc91 to your computer and use it in GitHub Desktop.
ffmpeg, ffprobe

ffmpeg, ffprobe

Get Source Information

ffprobe -v quiet -print_format json -show_streams -count_packets SOURCE

-count_packets 옵션으로 header에 정보가 없더라도 frame count(nb_read_packets)를 셀 수 있음.

Get Source Frame Count

ffprobe -v error -select_streams v:0 -count_packets -show_entries stream=nb_read_packets -of csv=p=0 SOURCE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment