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

372 questions
111
votes
13 answers

ffprobe or avprobe not found. Please install one

I want to add tags to mp3 converted by youtube-dl & ffmpeg: youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(artist)s - %(title)s" 2>&1 I have this error in the output result: [youtube]…
Anass
  • 1,458
  • 2
  • 11
  • 18
25
votes
5 answers

Find if video file has audio present in it

I'm trying to figure out if a video has audio present in it so as to extract the mp3 using ffmpeg. When the video contains no audio channels, ffmpeg creates an empty mp3 file which I'm using to figure out if audio was present in the video in the…
Kartos
  • 686
  • 1
  • 7
  • 17
23
votes
8 answers

Getting video dimension / resolution / width x height from ffmpeg

How would I get the height and width of a video from ffmpeg's information output. For example, with the following output: $ ffmpeg -i video.mp4 ... Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4': Metadata: major_brand : isom …
David542
  • 96,524
  • 132
  • 375
  • 637
22
votes
4 answers

Using FFMPEG: How to do a Scene Change Detection? with timecode?

Based on this article it seems that it is possible to use FFMPEG to detect scene change in videos: http://www.luckydinosaur.com/u/ffmpeg-scene-change-detector Now I have a video that displays a book text and when the text (word or sentence) is…
Mozart
  • 437
  • 1
  • 4
  • 8
19
votes
0 answers

FFmpeg - What does non monotonically increasing dts mean?

Observations - Part - I I saw a suggestion elsewhere to run the following command to see if there's something wrong with my .mp4. ffmpeg -v error -i ~/Desktop/5_minute_sync_output_15mn.mp4 -f null - 2>error.log When I run the above command, I see…
15
votes
1 answer

How to map ffmpeg formats to MIME types and file extensions?

Anyone know of a reference for mapping ffmpeg format values to MIME types and recommended file extension? My google attempt failed to turn up anything. I did manually put together a small list with guess-work and clues from Wikipedia, IANA, and the…
odigity
  • 6,892
  • 3
  • 33
  • 46
14
votes
2 answers

How does ffprobe determine duration?

I'm using ffprobe to analyze media files stored on a remote server. This seems to work well, but for some files the duration is missing or incorrect (usually longer than it should be). Other times it returns this information accurately, and it…
jasongullickson
  • 941
  • 11
  • 26
14
votes
3 answers

get video fps using FFProbe

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 -print_format xml -show_format -show_streams "/video/small/small.avi" >…
RDY
  • 491
  • 1
  • 6
  • 25
13
votes
1 answer

ffmpeg command line write output to a text file

I'm using this script for shot detection in ffmpeg. ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)" I need to write the output into a text file in order to read the output from a c program. How can I do this?…
Asanka sanjaya
  • 1,061
  • 3
  • 13
  • 30
13
votes
3 answers

Python accessing data in JSON object

so I do this in my script: import json info = json.loads(get_info()) print info Which outputs: richard@richard-desktop:~/projects/hello-python$ python main.py { "streams": [ { "index": 0, "codec_name":…
Richard Knop
  • 73,317
  • 142
  • 374
  • 539
11
votes
3 answers

Unable to load FFProbe driver for FFmpeg

Hi i am trying to install php-ffmpeg.Can someone guide me or correct me in my steps. I installed the composer on windows and then traversed to my folder i had created to run install ffmpeg cmd After running this command a composer.json,…
Kapil Ropalekar
  • 111
  • 1
  • 7
10
votes
6 answers

Getting FFProbe Information With Python

I've been attempting to figure this out for forever now (I'm new to programming) and I can't figure it out. I'm attempting to build a script that will test the file, and give me output from which I can get information like "Audio Format" that I can…
Robin Hood
  • 367
  • 2
  • 5
  • 17
10
votes
3 answers

How to detect video bitrate from HLS/M3U8 file using ffprobe

We need to detect the video bitrate of a HLS stream with ffprobe by using the m3u8 file of the .ts. If I use the m3u8, I can get the duration, dimensions, codecs used, audio bitrate, but no video bitrate is available in the response provided by…
Guillermo
  • 834
  • 4
  • 12
  • 20
10
votes
3 answers

How to determine webm duration using ffprobe

My goal is simple , I have several webm files need to be concated, but first I need to determine their durations. It seems webm file are played as streams, so there is no way to tell the length of each file. I have been using ffprobe to do the job…
Lopakhin
  • 220
  • 3
  • 16
10
votes
1 answer

What does "probe_score" means from ffprobe output?

Given a media file, after running ffprobe -i input.mp4 -show_format -print_format json, I got something like this: { "format": { "filename": "ooxx.mp4", "nb_streams": 2, "nb_programs": 0, "format_name":…
Drake Guan
  • 12,774
  • 11
  • 52
  • 92
1
2 3
24 25