Questions tagged [ffprobe]

ffprobe gathers information from multimedia streams and prints it in human- and machine-readable fashion.

ffprobe gathers information from multimedia streams and prints it in human- and machine-readable fashion.

See http://ffmpeg.org/ffprobe.html

446 questions
2
votes
0 answers

ffmpeg timing metadata values differ from the ffprobe output

When printing the ffmetadata metadata of an audio file with the ffmpeg command: ffmpeg -i INPUT.mp4 -f ffmetadata FFMETADATAFILE the approximation of the timing values fields start and end in the [CHAPTER]…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
2
votes
1 answer

How to get ffprobe metadata as variable to parse in python

When I run ffprobe
connor449
  • 1,549
  • 2
  • 18
  • 49
2
votes
1 answer

Difference in number of channels returned by mediainfo and ffprobe

I was examining an audio file and noticed that the numbers of channels returned by mediainfo and ffprobe were different. The mediainfo command: mediainfo audio.mp4 The ffprobe command (see the channels value): ffprobe -i audio.mp4…
Hai Tran
  • 45
  • 6
2
votes
4 answers

How to check if a video has sound in Python?

I would just like a True if a video has audio or False if it does not have audio. I feel like I'm almost there using subprocess. I get info about the video file running ffprobe and splitting the results into a list. I've tried matching a string that…
Ant
  • 933
  • 2
  • 17
  • 33
2
votes
0 answers

Concatenate two files while keeping the duration the same as the two files separately

When I calculate the duration of each individual file I want to concatenate I get 10.24 for both. So I figured when I concatenate the two files I would get a duration of file A plus file B or 10.24 + 10.24 giving me a total duration of 20.48 for the…
John Pollard
  • 3,729
  • 3
  • 24
  • 50
2
votes
1 answer

ffprobe reports some wrong meta data but only when input is piped in

I have a video file and I'm using ffprobe to extract meta data from it. If I save the file to disk and runffprobe everything works fine. However, if I pipe the input into ffprobe most meta data is correct, but some fields, such as width, height,…
spinkus
  • 7,694
  • 4
  • 38
  • 62
2
votes
2 answers

FFMPEG nb_frames vs nb_read_frames

I have videos captured at 200fps and I'm trying to label each frame with it's frame number. However, looking at the original videos with the following command: ffprobe.exe -i YR7-020320-B1-2.avi -print_format json -loglevel fatal -show_streams…
Alex Willcox
  • 21
  • 1
  • 2
2
votes
2 answers

Get the codec_name of a specific stream

I need to extract the codec_name of the second video stream (artwork) of a video file. So I do this : $ ffprobe -hide_banner -v error -show_streams -of json Resurrection_Sunday_Online_Experience_12_April_2020_5.30pm_New_Creation_Church.mp4 | jq . >…
SebMa
  • 4,037
  • 29
  • 39
2
votes
1 answer

Parse stats in ffprobe

I'm gathering some metadata information of audio files using ffprobe. However, due to my unfamiliarity with this tool, I'm getting extra information that's not necessary. This is the command that I'm running: ffprobe -f lavfi -i…
marcos
  • 4,473
  • 1
  • 10
  • 24
2
votes
2 answers

Reducing app size by archiving ffmpeg/ffprobe library in Android

I saw many posts on internet about how to decrease FFmpeg/FFprobe lib size in Android. Also I've investigated on this topic about a few months. So I decided to share my conclusions. I'm not talking about compile time settings and disable/enabling…
S.R
  • 2,819
  • 2
  • 22
  • 49
2
votes
1 answer

Recursively run ffprobe to get codec types

I modified @rojo code from here a little to look for h264/AC3 and to recursively run thru all the children folders. My only issue is that it always says the videos has h264 and AC3, but when I run the ffprobe command manually it states different. Am…
Timothy Massing
  • 55
  • 1
  • 10
2
votes
2 answers

Get the list of I-Frames in a video using Python

I'm trying to get the list of indexes for all I-frames in a video in Python (and later save a portion of them as JPEG). Right now, I can traverse all frames using FFProbe in terminal, and see which one is I-frame: ffprobe -select_streams v…
Tina J
  • 4,983
  • 13
  • 59
  • 125
2
votes
1 answer

How to find if the videos have sound in it?

I've a some hundreds of video files in a folder structure. All of them have video and audio streams, but some of them don't have any sound, despite having an audio stream. Is there a way to find out those files without having to resort to opening…
RAVI
  • 53
  • 1
  • 6
2
votes
1 answer

ffmpeg - Retrieving video macroblock info with -debug mb_type command

I am trying to get the information about all the macroblocks in the frames of a video (mp4). In particular i'm using the ffmpeg command: ffmpeg -debug mb_type -i input.mp4 out.mp4 2> macroblocks.txt It seems to work fine, but... i don't understand…
fabridigua
  • 53
  • 1
  • 7
2
votes
1 answer

Why does ffmpeg return a different framecount than ffprobe for the same file?

I'm trying to count the number of frames in a video but ffmpeg and ffprobe are giving me two different answers. $ time ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1…
Greg
  • 1,803
  • 3
  • 18
  • 26