Skip to main content

Questions tagged [ffprobe]

ffprobe is the file analyzer of ffmpeg. Post at least the command used and the result of your command. Explain what was expected.

Filter by
Sorted by
Tagged with
11 votes
1 answer
3k views

What's the difference between coded width and width in FFprobe

Pretty much the title, what's the difference between coded width (or coded height) and width (or height) in FFprobe, why are they sometimes different and which is the right one? width=1920 height=...
Fr3ddyDev's user avatar
  • 305
10 votes
2 answers
9k views

How to determine video stream size

I want to determine stream size(not the video size) and using the following ffprobe command to make this work ffprobe -v error -count_packets -select_streams a:0 -show_entries stream=size ...
user2528012's user avatar
8 votes
1 answer
11k views

How do I check if a h264 video contains b-frames?

I'm using ffprobe right now but I don't if it supports showing whether the video contains b-frames and what could be the syntax. Can I do this with ffprobe and so, how, or is there any other free ...
Asik's user avatar
  • 369
7 votes
1 answer
17k views

ffprobe show_entries with an entry name that uses a semicolon

I'm probing a video file to get some basic information. For example, the following uses the show_entries flag to specify the necessary data. > ffprobe -v error -show_entries format=size,duration:...
Benjamin's user avatar
  • 173
7 votes
2 answers
31k views

ffmpeg : Extract metadata

I would like to extract meta data from a MP3 file. This is going into a script, and I therefore want to do it from the command line. Since I have already installed ffmpeg, I thought I could use it for ...
user1934428's user avatar
4 votes
2 answers
4k views

ffprobe returns codec_type=video for images and text files

I have a directory with many files of different types and want to find out the codec of each video file. This works well with this command: $ ffprobe -v error -select_streams v -show_entries stream=...
Alexander Bösecke's user avatar
4 votes
1 answer
6k views

ffprobe count video and audio streams / tracks

So I have the following video example Stream #0:0(jpn): Video: h264 (High 10), yuv420p10le(progressive), 1920x1036 [SAR 1:1 DAR 480:259], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) ...
YTZ's user avatar
  • 305
3 votes
1 answer
3k views

FFprobe - Is it possible to get the "seeked position" of a video stream without re-encoding it?

I have the following command: ffmpeg -f f32le -ar 44100 -channels 2 -i pipe:0 -ss 3 -i input.mp4 -y -f mp4 -map 0:a -map 1:v -c:v copy -use_editlist 0 output.mp4 When copying the video stream ...
Maxime Dupré's user avatar
3 votes
1 answer
3k views

Why does ffprobe report an incorrect number of frames?

I have a small video file which ffprobe describes as:- Input #0, avi, from 'sample.avi': Metadata: encoder : Lavf55.12.100 Duration: 00:00:35.00, start: 0.000000, bitrate: 546 kb/s Stream #0:0: ...
Skeeve's user avatar
  • 51
3 votes
0 answers
936 views

Why is the first frame timestamp 0.066667 and not 0?

I have a stream of TGA files created on disk and I programmaticaly build a h264 video using the x264vfw codec. Options CRT 23, medium preset, Fast Decode, keyint 30 (video is 60 fps), no cut scenes, ...
Proviste's user avatar
2 votes
2 answers
3k views

ffprobe OCR of a subtitle stream

I have some video files containing HDMV PGS subtitles, and I need to convert them to subrip (or other text subtitles). I know that I can ffmpeg demux the video file to extract .sup and on the fly ...
Minty's user avatar
  • 143
2 votes
1 answer
1k views

ffmpeg - Skip file if the bitrate is lower than certain amount

I use ffmpeg to encode some videos I downloaded from various streaming sites to hevc. In windows I use a batch file to convert these files. FOR /F "tokens=*" %%G IN ('dir /b *.mp4') DO ...
Metallizer's user avatar
2 votes
2 answers
313 views

Finding an exe from any hard drive and setting it as a variable

I have a way to find an exe file from any drive without needing to play with %path%, but I need it set as a path-to-file variable, not just displayed. for %i in (a b c d e f g h i j k l m n o p q r s ...
Bricktop's user avatar
  • 313
2 votes
1 answer
2k views

How to get duration of webm video file when duration is not explicitly defined

I have a segment of a webm file with an incomplete header, I want to cut this segment down to 10 seconds by trimming x seconds off the front of the file, however I am unable to use the -sseof tag ...
Neil Hutcheon's user avatar
2 votes
1 answer
363 views

Unable to extract duration info using ffprobe, commas in filenames are messing up my for loop

This here batch script creates a list of files from %folder% using %wildcards%, then creates a mirrored directory on drive c: containing a txt version of each file like every file.mkv.txt, which ...
Bricktop's user avatar
  • 313
2 votes
1 answer
13k views

How to convert raw PCM data to a valid WAV file with ffmpeg?

I run this command: ffmpeg -f f32le -i pipe:0 -f wav pipe:1 ffmpeg version 4.1-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers built with Apple LLVM version 10.0.0 (...
Maxime Dupré's user avatar
2 votes
1 answer
623 views

How to extract the timestamp (PTS) from the specific frame?

My input is a ts file. And I'm trying to use FFmpeg to extract the timestamp (PTS) from the specific frame index. I have tried the following command ( I have replaced the [FRAME_INDEX] with 5), but it ...
Aven's user avatar
  • 21
2 votes
1 answer
3k views

ffmpeg | How can I get the keyframes of a video sorted by time and position and save them to a text file?

I'm new to this and I don't really understand a lot of things yet. The following command tells me which line the video keyframe is on: ffprobe -select_streams v -show_frames -show_entries frame=...
Ay Caramba's user avatar
2 votes
1 answer
814 views

How to quickly determine positions in video?

How can I quickly determine positions in a video? For example, I have a video file and it looks like this. I want to crop the video and get the part in the black box as a new video using ffmpeg. But ...
Just a learner's user avatar
2 votes
0 answers
1k views

ffprobe reading wrong frame rate, any workarounds besides MediaInfo?

I want to check the frame rate of many videos to double it. I use ffprobe to get r_frame_rate which is evaluated to a decimal, then fed into ffmpeg as rscale -r {2*fps}, or into mkvmerge as 0:{2*fps}...
Minty's user avatar
  • 143
2 votes
0 answers
1k views

Retrieving per-frame time difference from ffmpeg/ffprobe

I am attempting to reconstruct velocity information of an object from iPhone videos, and so I am interested in determining the time difference between frames. From what I understand, iPhone (HEVC ...
ereastin's user avatar
2 votes
0 answers
2k views

FFMPEG split a video into multiple scenes/shot videos

I want to use FFMPEG (or ffprobe) to split a video into multiple shot videos/scenes (scene1.mp4 to sceneX.mp4, each a separate video). So whenever there is a scene change, it should cut it. What is ...
user avatar
2 votes
1 answer
3k views

How to frame accurately cut a video with ffmpeg?

I have a video. Here is it's ffprobe output: > ffprobe 7347-00009\ kliksa.mp4 ffprobe version 2.6.1 Copyright (c) 2007-2015 the FFmpeg developers built with Apple LLVM version 6.1.0 (clang-602.0....
scaryguy's user avatar
  • 121
1 vote
1 answer
2k views

Interpreting the output of ffprobe for a WAV stream

tl;dr: What does ([1][0][0][0] / 0x0001) mean? ffprobe test.wav produces: ffprobe version 3.3.3 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ...
rudolfbyker's user avatar
1 vote
1 answer
2k views

FFMPEG extracting unreasonable number of I-frames

ffmpeg version git-2014-01-14-abcde ffprobe -show_frames a.mp4 | grep pict_type=I | wc identifies 142 I-frames. ffmpeg -i a.mp4 -filter:v select='eq(pict_type\,I)' I.%03d.png generates thousands of ...
mooky's user avatar
  • 41
1 vote
1 answer
669 views

How to query media file metadata using ffprobe, e.g., track number?

I want a single command to retrieve track number (or other metadata) from an audio file using ffprobe.
awvalenti's user avatar
  • 129
1 vote
1 answer
576 views

Why different frame count on ffprobe?

Question I use ffmpeg. Why are the frame counts different between A_COMAND and B_COMAND? sample_gif A_COMAND: $ ffmpeg -i ./for_sample.gif -vf mpdecimate,setpts=N/FRAME_RATE/TB ./tmp/%1d.png can ...
ikshi's user avatar
  • 11
1 vote
1 answer
305 views

Using ffprobe to get count of audio streams in mp4 file

I am looking for a way to get a count of the number of audio streams in mp4 files. Among some big long threads (mostly pre-2019 dated) on using ffprobe for this I found the following command: ffprobe ...
Alan MusicMan's user avatar
1 vote
1 answer
833 views

FFMPEG - ffprobe stuck after reaching h264 step on window server

I am using Xabe/ffmpeg in c# to forward a stream from a camera ip to an api clients. On local: everything works fine. On the api server (where the conversion is done), targeting the same camera: I ...
Mephisto's user avatar
1 vote
1 answer
518 views

Escape % for ffprobe in batch (-read_intervals)

Maybe it will be a ridiculous question... I've been looking around for 3 hours how to get the batch to run the ffprobe command without randomly expanding % inside the -read_intervals command. Batch: ...
Geass's user avatar
  • 31
1 vote
1 answer
8k views

Where should I put FFMPEG? [closed]

I have installed ffmpeg and ffprobe, but they just appeared in my downloads folder. I should put them somewhere useful. I am using macOS Sierra What is the recommended place to put such downloads? I ...
Tom Burrows's user avatar
1 vote
0 answers
100 views

How to extract subtitle timestamps using ffprobe (not working as expected)?

I am trying to extract subtitle timestamps from a M2TS file using ffprobe. This does not work as expected. The M2TS file is known to contain 1001 subtitles in track 4, but I am getting about 4000 ...
Binarus's user avatar
  • 1,835
1 vote
0 answers
33 views

Determine format of uncompressed ZIP file with ffprobe

I am working on a project where I need to handle ZIP archives that contain media files. Specifically, I have two files, video1.hevc and video2.mp4. For testing purposes, I created two ZIP archives ...
Gman's user avatar
  • 23
1 vote
0 answers
113 views

ffplay cannot play aac and mp4a (which is aac audio in an mp4 file) and ffprobe segfaults when given a file with aac audio [closed]

When I try to play a file with aac audio in ffplay, I get the following error: https://drive.google.com/file/d/1M1oCITTuaLMsLo0bs6lGbw9mZTzdwwBB/view?usp=sharing Also, when I do ffprobe sample-1.aac, ...
Kseniya Kolokolkina's user avatar
1 vote
0 answers
1k views

Why does ffprobe print N/A for stream=duration?

I have a webm video file with two streams (video and audio): $ ffprobe -i input.webm -show_streams -v quiet [STREAM] index=0 codec_name=vp8 codec_long_name=On2 VP8 profile=0 codec_type=video ...
Maarten's user avatar
  • 603
1 vote
0 answers
293 views

Why the discrepancies between ffprobe and mediainfo.DLL? [closed]

I wrote some logic to compare information from ffprobe vs. MediaInfo.DLL. Observations and questions: A) Most of the differences were small variations in the lesser significant digits of various ...
Tom Bogle's user avatar
  • 136
1 vote
0 answers
830 views

`ffprobe` is 12 times slower than `metaflac`. How to speed up `ffprobe`?

On a small FLAC folder of 1593 files, ffprobe takes over 12 times longer to run than metaflac. How to speed up the single-threaded performance of ffprobe? I tried to tell ffprobe to do the same and ...
mejustscript's user avatar
1 vote
0 answers
1k views

ffmpeg - make video skippable/seekable

I have downloaded a few lectures from my uni website but they look like they can not be seeked/skipped properly either by clicking on a specific timestamp on my video player or by skipping forward by ...
blvck_mvgic_dot_exe's user avatar
1 vote
1 answer
1k views

How to use video filters (cropdetect) with ffprobe

Checking the ffprobe docs apparently there is an option to use cropdetect with it. I am already aware that I could do this with ffmpeg like: ffmpeg -ss 900 -i "foo.mkv" -vframes 100 -vf ...
kali's user avatar
  • 379
1 vote
1 answer
1k views

ffprobe missing title tag with mp4 files

I have an mp4 file with a video stream and an audio stream. The audio stream has a title that is shown both by VLC and by Mediainfo. If I open this file (or any other mp4 file with audio track titles) ...
Lorenzo's user avatar
  • 11
1 vote
1 answer
2k views

Getting video information for a list of files output as a csv or text file

I am looking for a tool or method where I can cycle through a list of files/links and output some information or metadata in text format like this: Name Resolution FPS Video ...
mfaiz's user avatar
  • 111
1 vote
1 answer
447 views

Offset ffprobe when outputting frame data

I've successfully managed to extract OCR data from frames using ffprobe with the following command: ffprobe -loglevel quiet -hide_banner -select_streams v:0 -show_entries frame_tags=lavfi.ocr.text -f ...
d1che's user avatar
  • 11
1 vote
0 answers
2k views

FFPROBE returns that all I-Frames are IDR frames (KEYFRAME=1) in a TS file

Running ffprobe -v quiet -print_format json -show_format -show_frames -show_streams -unit -select_streams v "D:\CH621.ts" > "D:\CH621.ts.json" -skip_frame nointra Result shows that all 6 I-FRAMES ...
Noslide's user avatar
  • 11
0 votes
1 answer
1k views

FFProbe output timebase only

When running ffprobe, it displays a lot more data than I need. I've already included the -hide_banner flag and its helped clean it up, but more specifically I only need the tbn Is there a way to limit ...
Video Guy's user avatar
0 votes
1 answer
1k views

How to check if an mov file has video

Is there an ffprobe command I can run to see if an mov file that I have is audio-only or contains video as well? I have various mov files, some of which are audio dubs and some of which are full ...
David542's user avatar
  • 259
0 votes
2 answers
446 views

How to get SHA1 of first 4096 bytes of an mp4 file or stream?

I am trying to use command line tools to match the hash value that Plex.app computes for movie files (apparently, it's an SHA1 hash of the first block (4k) of a movie instead of the entire movie). I ...
John's user avatar
  • 415
0 votes
2 answers
2k views

Using variables with bc: syntax error

The original problem This may be more of a bc or bash question than an FFmpeg one, although I would also appreciate being able to prevent ffprobe from printing carriage returns after its output. In a ...
Hashim Aziz's user avatar
0 votes
2 answers
376 views

Trimming a H265 video using FFmpeg and getting this error: “Unable to find a suitable output format for 'output.h265' output.h265: Invalid argument”

I am using below FFmpeg command for cutting/trimming H265 video for specific time interval. But I am getting this error: "Unable to find a suitable output format for 'output.h265' output.h265: ...
Pratik Gajera's user avatar
0 votes
1 answer
233 views

ffmpeg streaming UDP port is closed

I'm trying to use ffmpeg in order to transcode RTSP stream from CCTV to HLS stream so it could be accessed through a web server. ffmpeg used to stream video from CCTV with following command $ ffmpeg -...
BrilliantContract's user avatar
0 votes
1 answer
631 views

What does start value mean in ffprobe output?

What does start value mean in the ffprobe output? For example: Duration: 00:00:36.60, start: 0.066733, bitrate: 0 kb/s Someone explain to me what the value mean, and how ffprobe calculated?
D.Bence's user avatar
  • 35