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
5
votes
2 answers

A good way to detect alpha channel in a video using ffmpeg/ffprobe

In my Django application, uploaded video files are transcoded into some particular format using ffmpeg. I now need a way to reliably detect whether uploaded videos have alpha channel or not. I normally use ffprobe for getting video metadata. Could…
Alex Oat
  • 63
  • 1
  • 2
  • 8
5
votes
0 answers

How to install ffmpeg on Google App Engine?

I intend to install ffmpeg and ffprobe to my Google App Engine flex environment, how can I do this with requirements.txt as a package ? I am currently using ffmpeg-python yet, this is only a wrapper. ffmpeg-python==0.2.0 ffprobe-python==1.0.3 Below…
london_utku
  • 1,070
  • 2
  • 16
  • 36
5
votes
1 answer

Using ffmpeg or ffprobe to get the pixel bit depth of a video

Is it possible to use ffprobe or ffmpeg to figure out the bit depth of a video file? I specifically want to know how many bits per channel (bpc) my video is. 8 is typical, but some fancier codecs can use higher bit depths, and I'm not sure how to…
joejoejoejoe4
  • 1,206
  • 1
  • 18
  • 38
5
votes
2 answers

How to specify an offset and a seek position for a video stream of a mp4 container?

It seems like I can have one or the other (-ss or -itsoffset), but never both at the same time, or they kind of cancel each other. I create output.mp4 with this command: ffmpeg -i input.mp3 -itsoffset 4 -t 4 -ss 3 -i input.mp4 -c:v copy…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
5
votes
1 answer

ffmpeg Video Scan Progress during Frame Extarction

I scan input video to extract certain frames using ffmpeg's select filter. The selection is based on a complex creteria and the number of extracted frames can't be predicted (I'm doing scene detection, but this can be something different - e.g.…
Isantipov
  • 19,491
  • 2
  • 26
  • 41
4
votes
1 answer

ffmpeg/ffprobe get HLS 'codecs' string for a video/audio stream

I'm using ffmpeg to create HLS sub-playlists. I used ffmpeg to create them for the renditions. Now I need to create the master playlist .m3u8. I need to do this manually, for a few reasons. I have everything I need except the 'CODECS' value. How can…
Richard
  • 215
  • 1
  • 9
4
votes
1 answer

AAC Packet Size

I am working on an M4a file with the following metadata: Metadata: major_brand : M4A minor_version : 0 compatible_brands: M4A mp42isom creation_time : 2019-08-14T13:45:39.000000Z iTunSMPB : 00000000 00000840…
Ahmed Hawary
  • 461
  • 4
  • 15
4
votes
1 answer

FFmpeg check audio channels for silence

I have two .mp4 files, both having 8 (7.1) audio channels. But in fact, I've been told that one has a stereo audio channel + 2 SAP (secondary audio on channels 7-8), and the other one has 6 (5.1) audio channels + 2 SAP (on channels 7-8). So…
Tina J
  • 4,983
  • 13
  • 59
  • 125
4
votes
2 answers

My video has no keyframes, How it is possible?

When I run the following line on my video it only outputs P frames and B frames and no I frame, ffprobe -select_streams v -show_frames -show_entries frame=pict_type -of csv 00000.MTS How is it possible for a video not to have I frames. Here is the…
FazeL
  • 916
  • 2
  • 13
  • 30
4
votes
1 answer

Cannot change video keyframe interval to be 1 using ffmpeg

I am trying to change a video's keyframe interval to be 1 following this link and using the command ffmpeg -i myvideo.mp4 -vcodec libx264 -x264-params keyint=30:no-scenecut -acodec copy out.mp4 as indicated in the first answer. I wrote keyint=30…
Marievi
  • 4,951
  • 1
  • 16
  • 33
4
votes
0 answers

ffpmeg vs ffprobe performance

I wanted to try extracting frames at scene changes with ffmpeg, vs. getting the frame numbers with ffprobe and extracting them later. But I had a surprise: ffprobe seems to be much slower than ffmpeg, while ffmpeg is taking the frames, resizing and…
Thomas
  • 10,933
  • 14
  • 65
  • 136
4
votes
2 answers

FFProbe to Get Codec

I've tried a bunch of different examples of getting a video's codec using FFProbe, including this one and just can't get any output other than an occasional [/STREAM]. This is what I'm currently trying $codec = exec("ffprobe -v error -show_entries…
timgavin
  • 4,972
  • 4
  • 36
  • 48
4
votes
2 answers

Cut detection with ffprobe

I'm trying to detect cuts between shots with ffprobe. I use the following command: ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test_clip.avi,select=gt(scene\,.4)" > test_clip_cuts.txt It works just fine, there's no question. But now I want…
4
votes
1 answer

Node.js - Error: write EPIPE code: 'EPIPE

I keep getting EPIPE error, on stdin stream and I can't find a reason: This is my code: var checkFile = function(data, callback){ var child_process = spawn('ffprobe', ['-print_format', 'json', '-show_format', 'pipe:0']); var stdInError =…
MeV
  • 3,761
  • 11
  • 45
  • 78
4
votes
2 answers

How to get xml/json output when ffprobe could not find codec parameters for a stream

I was using ffprobe on a mkv file in order to get some info about the chapter structure so as to split the mkv using ffmpeg. ffprobe miku.mkv -print_format xml However ffprobe encountered an scodec error(does not affect chapter info) and I could…
user2421731
  • 41
  • 1
  • 3