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
1 vote
0 answers
9 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
1 answer
118 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
0 votes
0 answers
30 views

FFmpeg upgrade to version 6, format duration big increase

I am using this command to extract metadata from a video: ffprobe -v error -print_format json -show_format -show_streams too-many-packets.mp4 with ffmpeg v5.1.4 I get normal format duration: 6.452311 ...
Avraham Sikirov's user avatar
0 votes
0 answers
27 views

Trimming the start of a video generates some negative presentation timestamps

Here is my command to trim the start of a video: ffmpeg -y -ss 00:00:02 -i inputFile.mp4 -movflags use_metadata_tags -map_metadata 0 -c copy outputFile.mp4 I've discovered that for some videos, some ...
Catalin Morosan's user avatar
2 votes
1 answer
183 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
0 votes
0 answers
68 views

ffprobe output mismatch between duration and number of read frames

I am currently trying to learn a bit about multimedia containers, notably M2TS. To get a lot of information about the tracks that are contained in such files in a human readable format, I found the ...
Binarus's user avatar
  • 1,775
0 votes
2 answers
226 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
81 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
52 views

Why the playlist chunk duration is different?

I have this m3u8 playlist from Twitter/x which has this chunk: #EXTINF:2.923, chunk_1701372432609842942_707_a.aac #EXT-X-PROGRAM-DATE-TIME:2023-11-30T19:27:21.236Z As you can see the duration of this ...
Rux's user avatar
  • 3
0 votes
0 answers
58 views

Re-Calculate Average Framerate of MP4 Video Upon Decoding

For an example mp4 video, I am seeing differences between the header metadata values for at least some fields (e.g. nb_frames) and the actual values retrieved upon decoding the video (i.e. ...
awisecar's user avatar
0 votes
0 answers
345 views

Need to find the bitrate of video stream but ffprobe exits earlier with error unsupported codec before reaching to video stream

We are seeing an issue while finding the HLS videostream bit rate with ffprobe. The stream has some timed metadata and when we run ffprobe with HLS input, error occurs: Unsupported codec with id 98313 ...
Namita Garg's user avatar
1 vote
1 answer
287 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
0 votes
0 answers
43 views

Audio tags added with ffmpeg do not show up in cmus

I run the following command: $ ffmpeg -i BabiYarHumor.wav -map 0 -y -codec copy -write_id3v2 1 -metadata "artist=Dmitri Shostakovich" -metadata "genre=Classical" -metadata "...
Phineas Greene's user avatar
0 votes
0 answers
85 views

how can I make ffprobe rely on mime type instead of file extension?

I need to probe with ffprobe an audio/video file which could have a wrong file extension. Let me take an mp3 file: $ ffprobe /var/www/html/prova-dev/albums/Dichosos.mp3 ffprobe version 4.4.2-...
Paolo Benvenuto's user avatar
1 vote
0 answers
75 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
0 votes
0 answers
101 views

ffmpeg/probe cant open process manifest

Can anyone explain why ffmpeg/ffprobe can not load this manifest url: https://q-hss-skylive-degn.akamaized.net/244431/stream.isml/Manifest?quality=hss5_dd ffprobe returns: Invalid data found when ...
Chris's user avatar
  • 101
0 votes
0 answers
97 views

Transcoding ts of m3u8 to multi bitrate ts. Causes player stuck due to overlap

I have live M3u8. Woukd like to convert into multiprofile m3u8 and master.m3u8. we have achieved this using python script to populate multiprofile index.m3u8 and master.m3u8. when we are transcoding ...
gaurav verma's user avatar
2 votes
0 answers
802 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
  • 146
0 votes
0 answers
124 views

FFprobe not showing frame's data

As a beginner I don't know much about ffprobe and other video editing command line tools. Please guide me here. I am trying to download a video with yt-dlp and trim it to the nearest key-frame of my ...
Aniket Bose'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
200 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
0 votes
1 answer
478 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
1 vote
0 answers
678 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
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
1 vote
1 answer
2k 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
0 votes
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
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
0 votes
0 answers
524 views

Video reported to have a framerate of 15fps, but when played seems like 30. How to tell?

I have a video that I'm processing and transcoding to another format via ffmpeg. I've come across this before where the reported fps in ffprobe seems to be half of what it is when played but don't ...
Jeff Mercado's user avatar
0 votes
2 answers
357 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
1 vote
1 answer
881 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
  • 369
2 votes
2 answers
2k 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
  • 146
0 votes
1 answer
315 views

Retrieving UFID tag from audio file with ffprobe

Context I'm using ffprobe to retrieve metadata from audio files. To do so, I usually use the following command: ffprobe -hide_banner -v 0 -i audio.mp3 -show_entries format -of json This gives the ...
Hacketiwack's user avatar
0 votes
1 answer
723 views

ffprobe unable to read a file but other software can

I'm encountering a strange issue and I'm wondering what the cause is. I have a file, and it definitely exists: Get-ChildItem -Path '\\192.168.10.201\Media\TV\Life With an Ordinary Guy Who Reincarnated ...
Joshua Walsh's user avatar
1 vote
1 answer
709 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
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
6 votes
2 answers
24k 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
0 votes
1 answer
525 views

Extracting elementary stream type using ffprobe

I'm trying to extract the elementary stream type using ffprobe (as in the PES header). ffprobe gives info about the codec in the form of codec_tag, but that isn't necessary the elementary stream type. ...
Chapi's user avatar
  • 1
2 votes
1 answer
635 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
1 answer
318 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
  • 301
2 votes
2 answers
287 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
  • 301
0 votes
1 answer
161 views

ffprobe output never show flag that represents loop info

Since i need to get a GIF file's "is loop" and "how many?" with ffprobe. I watched all official documentations and tips but still cannot found what i want. Is there some param like ...
yahone chow's user avatar
0 votes
2 answers
2k views

ffprobe - How to limit stream info in the output to just the video bitrate?

If I run FFprobe on an .MKV file, with the simplest syntax of FFprobe "TheMovie.mkv", there is a lot of output I don't need to see. How do I limit the output of FFprobe to just the bitrate ...
GngrWtch's user avatar
  • 111
0 votes
0 answers
48 views

Hiding ffmpeg ffprobe version-spew output text (in Windows)? [duplicate]

When using either ffmpeg or ffprobe tools, they have this uncanny habit of spewing multiple lines of version build data that is utterly uninteresting during normal use (ie: unless you're updating the ...
raccoon's user avatar
  • 115
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
  • 12.6k
1 vote
1 answer
968 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
0 votes
0 answers
654 views

ffprobe get MP3 file encoder settings

When I open a MP3 file in MediaInfo it shows me the encoder settings used to encode. For example: Encoding settings : -m s -V 0 -q 0 -lowpass 20 --vbr-new -b 192 Any way to get ...
Hind-D's user avatar
  • 416
1 vote
1 answer
481 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
0 votes
1 answer
997 views

ffprobe output text wrong encoding

ffprobe -print_format json -show_format -sexagesimal -show_streams file.mp3 The output json is the wrong format and wrong text encoding: ... , "title": "繧ォ繧、繝・, ... In Explorer, the ...
Trương Quốc Khánh's user avatar
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
0 votes
2 answers
2k views

Windows: Batch Recurse Directories for Media File Durations Using FFmpeg

I have various kinds of media files (e.g., .wav, .mp4) in various folders. I would like to use a batch file to produce a listing of their durations, like this: D:\Some Folder 1\Movie File.mp4 | 2:15:...
Ray Woodcock's user avatar