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

How to stop holding the last frame in video stream as part of an mp4 container encoded with ffmpeg?

I'm encoding a dummy mp3 file (7 seconds of white noise) and a dummy mp4 file (silent with a red background image for 4 seconds) together to form a mp4 file. The command to generate this file is: ffmpeg -i dummy.mp3 -itsoffset 0 -t 2 -ss 0 -i…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
0
votes
2 answers

How to get the duration of any stream of a mp4 container with ffmpeg?

I'm not sure, but the following command seems to do just that. Here I get the duration of the first audio stream of the mp4 file: ffprobe -v error -select_streams a:0 -show_entries stream=duration -of default=noprint_wrappers=1:nokey=1 -i…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
0
votes
0 answers

ffmpeg create thumbnail sprites with duplicate frames

I'm using ffmpeg to create thumbnail sprites for a video player and the player requires a sprite to be 101 frames. For videos that have less then 101 frames in total, I'm trying to add some frames multiple times to the sprite, for example: ffmpeg…
0
votes
1 answer

What is the difference of duration bitrate and stream bitrate in ffmpeg/ffprobe?

Why ffmpeg / ffprobe gives different bitrate values for the stream and for file as whole? When I analyze an mp3 file with ffprobe, it gives different bitrates on first and second lines. Does anyone know, what is the difference? // File 1, there is…
0
votes
1 answer

Adaptive bit rate streaming of mp4 of different gop size using media source api

I want the adaptive bitrate streaming of the mp4 video of different gop keyframe size. I know there are couple of options for multi bitrate streaming i.e hls, dash etc But I already uploaded the videos on the server each video have the 360p, 480p…
Ali Hasan
  • 67
  • 1
  • 7
0
votes
1 answer

How To Extract The Duration From A Webm Using FFprobe

I have the following code which stores the duration of a video file in a variable called duration: for /f %%i in ('ffprobe -select_streams v:0 -show_entries stream^=duration -of default^=noprint_wrappers^=1:nokey^=1 input.avi') do set…
Supercreature
  • 441
  • 6
  • 25
0
votes
2 answers

Get duration from multiple video files?

I want to extract video duration metadata from every video file in a specified directory and then view the total duration. I need to extract the data from as much as thousands of videos overall. In Windows I can view the total duration for many…
Soyal7
  • 381
  • 5
  • 10
0
votes
1 answer

Python - getting duration of a video with ffprobe and splitting the video into pieces

I am trying to split a video with ffmpeg, implementing a python script. I am getting this error: Command '['ffprobe', '-i', 'path_to_my_video/MVI_0731.MP4', '-hide_banner']' returned non-zero exit status 1. Here is the code I am using to split…
ZelelB
  • 1,836
  • 7
  • 45
  • 71
0
votes
1 answer

ffprobe frame information in decode or presentation order?

When you do a command like: ffprobe -show_frames inputfile In what order does it give you the frames? Because Presentation order and Decode Order will be different... I am thinking that depending on which order it gives you, then others who are…
Baba.S
  • 324
  • 2
  • 14
0
votes
2 answers

create associative data from ffmpeg string result into python

To perform video operations I'm using python with the support of ffmpeg. After I've uploaded videos, I need to resize them, so I'll follow these instructions to calculate the video dimensions: link_v = "C:/video/video.mp4" ffmpeg = "ffprobe -v error…
Question
  • 145
  • 2
  • 12
0
votes
2 answers

How do I use a callback in a nested function in Node?

I'm receiving a "TypeError: callback is not a function" which leads me to believe I am misunderstanding how to use callbacks in a nested function. Function: function getAudioInfo(filePath, callback) { ffprobe(filePath, { path: ffprobeStatic.path…
Indigo
  • 51
  • 8
0
votes
1 answer

Ffmpeg - Exclamation Point Stopping Watermark

I am using the code below to automatically watermark videos in a folder: for %%a in ("C:\Users\Work\Desktop\Redo\*.mp4") do ( for /F "delims=" %%I in ('ffprobe -v quiet -show_entries stream^=width -of csv^=p^=0:s^=x %%a') do set "codec=%%I" …
user5947524
  • 41
  • 2
  • 8
0
votes
1 answer

how to save ffprobe result in json

i am using the following: ffprobe -i bunny.mp4 -v quiet -select_streams v -print_format json -show_entries frame=pkt_pts_time,pict_type|grep -B 1 pict_type=I so i can save time of index frames in json file. also the command works just fine without…
0
votes
1 answer

Random access to video frame by its id

I have a 24 hour video and would like to organize storage of some meta information (particularly bounding boxes of objects) for arbitrary frame. It implies that I must have a reliable random access to frame by its id, practically even to the range…
Xmiler
  • 1
0
votes
1 answer

How to update the key names in place in a complex Python dictionary

I struggled with this yesterday afternoon and think I have come up with a clever solution but looking for feedback on how to improve it. The scenario: I am running ffprobe on media files and getting back the JSON dictionary from ffprobe and storing…
Paul Jacobs
  • 430
  • 5
  • 11