Last active
June 17, 2025 07:59
-
-
Save wjkoh/76e7fffa2cbe4e6e7190a8077a8ea2bf to your computer and use it in GitHub Desktop.
ffprobe: How to get the audio and video format and duration from a file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Use https://jqlang.org/ | |
ffprobe -i test.ogg -show_format -output_format json | jq | |
# Use https://fx.wtf/ | |
ffprobe -i test.ogg -show_format -output_format json | fx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following is a sample output from
stdout
. The duration is in seconds: