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
3
votes
1 answer

What is the bitrate of my audio file based on ffmpeg output?

Is it the 40kb/s under Format, or is it the 16kb/s under Stream? What is the relationship between the Format and the Stream? The below output is for a file generated using Core Audio on an iphone, with an Audio Unit. The output format was specified…
blueether
  • 3,666
  • 4
  • 26
  • 32
3
votes
0 answers

Why might ffprobe -show_format disagree with -show_data duration?

For the purposes for re-encoding a video, I am probing an mp4 (h264/aac) file. I'm wondering why there a discrepancy between the video [STREAM]'s reported duration duration=6.500000 (while the audio's duration is 6.54, the video's duration should be…
Felix Fung
  • 1,711
  • 19
  • 27
3
votes
1 answer

Re-creating/matching ffmpeg settings

I have an MP4 file that plays pretty much on every browser using either HTML5 or flash fallback (using mediaelement.js). I also have a series of additional video files that I would like to have "match" the one file that does play consistently but I…
Pete Helgren
  • 438
  • 1
  • 7
  • 21
3
votes
1 answer

ffprobe or avprobe returning plain text errors in JSON output

I'm running avprobe to get stream infomation about a video in JSON ... avprobe -loglevel quiet -show_format -show_streams file.m4v -of json This is basically the exact same thing as ffprobe or ffmpeg -i (and I get the same error.) ffprobe -loglevel…
Justin Jenkins
  • 26,590
  • 6
  • 68
  • 1,285
3
votes
2 answers

ffmpeg/ffprobe show_frames option

I recently installed ffmpeg version 0.8.5-4:0.8.5 on my Ubuntu Linux box. When I execute "ffprobe -show_frames http://test.com/test.mp4" I get the following error: Unrecognized option 'show_frames' I have tried installed all sorts of ffmpeg…
user1526912
  • 15,818
  • 14
  • 57
  • 92
3
votes
0 answers

calculate the real duration time of a broken movie with ffmpeg/ffprobe

I have a broken video file that its ffprobe (ffprobe -i movie.mkv) say its duration is about 2 hours, but the file contains only video data for first 8minutes (check by VLC Player). How can i get the real duration (8minutes) using ffmpeg or…
jAckOdE
  • 2,402
  • 8
  • 37
  • 67
3
votes
3 answers

Using ffprobe '-show_format_entry' option

I've been searching for several days on how to incorporate the '-show_format_entry' into my Python script that uses ffprobe to extract the metadata from all the audio and visual files in a directory. However, I don't want everything that format…
user1499768
  • 31
  • 1
  • 3
2
votes
1 answer

Saving an audio file using Flask, then immediately printing it's duration gives incorrect duration

I'm using Flask for a web app. My frontend records some audio and sends it to a Flask route. In the route I am saving a wav audio file to an uploads folder: # Save the audio file to a unique file filename =…
Chris W
  • 21
  • 2
2
votes
1 answer

How to calculate the start time of mp4 video?

I am studying mp4 video structure. I have an issue with reading the start time value for the following mp4 video I have read this answer mp4 video starts at different time on Quicktime/AVplayer vs Chrome/Firefox and it says that Edit atom can modify…
Neil Galiaskarov
  • 5,015
  • 2
  • 27
  • 46
2
votes
3 answers

python modules ffmpeg and ffprobe are installed but youtube-dl not able to find

I'm using python 3.8 on MacOS Big Sur I installed python module package for youtube-dl with pip3 install -upgrade youtube-dl I wanted to do post processing on the content downloaded so I installed python packages ffprobe and ffmpeg. pip3 install…
Akshay Hiremath
  • 950
  • 2
  • 12
  • 34
2
votes
1 answer

Can I get the referencing list of each frame of h.264 using ffmpeg or ffprobe?

I want to get the referencing list of each frame of h.264 video. For example, I want to get the list as following: Frame 0: Reference frame 0 Frame 1: Reference frame 0 Frame 2: Reference frame 1,3 Frame 3: Reference frame 0 Can I get the…
Reasno
  • 21
  • 3
2
votes
0 answers

how to extract subtitle stream from a video with javascript

I'm trying to display subtitles of a video, I have a video with an embedded subtitle stream in it, it showing subtitle stream on ffprobe but not on javascript, tried with captureStream API which will return MediaStream object to see the available…
varaprasadh
  • 488
  • 5
  • 13
2
votes
2 answers

Can ffprobe return the mime type?

I want to get the mime type (e.g. video/mp4) of a media file using ffprobe. Is that possible or do I need another program for that?
weird guy
  • 157
  • 1
  • 9
2
votes
0 answers

How to specify MPEG-DASH adaptation sets in FFmpeg, when using optional output audio and subtitle streams?

I am using the script below to transform videos to MPEG-DASH compliant ones. I want also to be able to process video that have no audio and/or no subtitles. Because of that I marked the streams for audio and subtitles with a ? at the end of the…
Sebsii
  • 41
  • 2
2
votes
0 answers

How to get time stamp of closest keyframe before a given timestamp with ffmpeg

To seek to position and get the closest frame I was using ffprobe -i /path/to.mp3 -show_frames -show_entries frame=pkt_pos -of default=noprint_wrappers=1:nokey=1 -hide_banner -loglevel panic -read_intervals $seconds%+#1 where I specify the start…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146