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
64 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 ...
2 votes
0 answers
53 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 ...
0 votes
1 answer
77 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=...
0 votes
0 answers
138 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 ...
1 vote
1 answer
296 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 ...
0 votes
0 answers
60 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 ...
0 votes
2 answers
104 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 ...
  • 367
1 vote
1 answer
137 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 ...
  • 370
0 votes
0 answers
11 views

Sometimes title got with FFPROBE is quoted, sometimes - not

Sometimes title got with FFPROBE is quoted, sometimes - not. Here is an excerpt from my full script: #!/bin/bash function set_tags { local src_name="$1" local video_title=$(ffprobe -v ...
  • 770
2 votes
2 answers
687 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 ...
  • 123
0 votes
1 answer
90 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 ...
0 votes
0 answers
445 views

can't get ffmpeg to output and recognize "5.1(side)" audio channel layout

I have a VOB file from a DVD. The audio stream is 5.1(side) which can be verified using ffprobe. When I convert the VOB to mp4 using ffmpeg (for example, using the simple command ffmpeg -i video.vob ...
  • 199
0 votes
1 answer
137 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 ...
0 votes
1 answer
257 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 ...
0 votes
1 answer
389 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 ...
2 votes
2 answers
5k 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 ...
0 votes
1 answer
222 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. ...
  • 1
1 vote
1 answer
182 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 ...
2 votes
1 answer
163 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 ...
  • 229
2 votes
2 answers
183 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 ...
  • 229
0 votes
1 answer
91 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 ...
0 votes
2 answers
628 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 ...
0 votes
0 answers
40 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 ...
  • 115
0 votes
2 answers
749 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 ...
  • 10.9k
1 vote
1 answer
399 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) ...
  • 11
0 votes
0 answers
229 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 ...
  • 377
1 vote
1 answer
267 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: ...
  • 31
0 votes
1 answer
518 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 ...
2 votes
1 answer
737 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 ...
0 votes
2 answers
921 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:...
0 votes
0 answers
68 views

Does ffprobe support multiple "outputs"

If I were to want to encode a video to two different output with ffmpeg simultaneously, I would do something like: ffmpeg -i video.mp4 \ -c:v libx265 -c:a copy output1.mkv \ -c:v libx264 -c:a ...
  • 481
7 votes
1 answer
2k 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=...
  • 225
1 vote
1 answer
376 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 ...
  • 11
0 votes
0 answers
1k 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 ...
  • 101
3 votes
1 answer
2k 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 ...
0 votes
1 answer
1k views

FFmpeg creates an ouput file shorter than it's longest stream

Assuming pipe:0 is a 3 seconds wav file Assuming input2.mp4 is a 1 second mp4 file With this command: ffmpeg -f f32le -ar 44100 -channels 2 -i pipe:0 -t 5 -itsoffset 4 -i input2.mp4 -y -f mp4 -c:v ...
0 votes
1 answer
9k 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 (...
1 vote
1 answer
264 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 ...
  • 11
0 votes
0 answers
931 views

ffprobe fails obtaining the delay of an audio stream?

Getting the delay of an audio stream is usually easy with ffprobe and a command like: ffprobe -show_entries stream -i "(file_path)" Obtaining an output that includes the desired info (see "...
  • 103
2 votes
1 answer
3k 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) ...
  • 143
0 votes
1 answer
526 views

Commandline probe for video bitrate per GOP

Is there a way to use ffprobe or similar commandline tools to probe for the video bitrate per GOP? ffprobe only seems to output the overall bitrate for the whole video but not packets. ffprobe -i ...
1 vote
0 answers
1k 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 ...
  • 11
3 votes
2 answers
3k 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=...
1 vote
0 answers
1k 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 ...
  • 357
3 votes
0 answers
705 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, ...
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) ...
8 votes
2 answers
5k 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 ...
1 vote
1 answer
6k 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 ...
2 votes
1 answer
2k 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....
  • 121
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 ...
  • 239