Questions tagged [avprobe]

avprobe gathers information from multimedia streams and prints it in human- and machine-readable fashion.

avprobe gathers information from multimedia streams and prints it in human- and machine-readable fashion.

For example it can be used to check the format of the container used by a multimedia stream and the format and type of each media stream contained in it.

If a filename is specified in input, avprobe will try to open and probe the file content. If the file cannot be opened or recognized as a multimedia file, a positive exit code is returned.

avprobe may be employed both as a standalone application or in combination with a textual filter, which may perform more sophisticated processing, e.g. statistical processing or plotting.

Options are used to list some of the formats supported by avprobe or for specifying which information to display, and for setting how avprobe will show it.

avprobe output is designed to be easily parsable by any INI or JSON parsers.

References:

http://libav.org/avprobe.html#Description

10 questions
32
votes
5 answers

Find if video file has audio present in it

I'm trying to figure out if a video has audio present in it so as to extract the mp3 using ffmpeg. When the video contains no audio channels, ffmpeg creates an empty mp3 file which I'm using to figure out if audio was present in the video in the…
Kartos
  • 749
  • 1
  • 7
  • 18
14
votes
4 answers

How to detect audio sampling rate with avprobe / ffprobe?

I am using libav 9.6, installed via Homebrew. $ avprobe -version avprobe version 9.6, Copyright (c) 2007-2013 the Libav developers built on Jun 8 2013 02:44:19 with Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) avprobe…
Devy
  • 9,655
  • 8
  • 61
  • 59
7
votes
2 answers

LIBAV - avprobe

Coming from a linux background. I was just wondering that the best way to install avprobe on OSX is? I tried installing libav: http://libav.org/download.html but this seems to use avconf. I have a script that was written by someone else that depends…
user2272391
  • 103
  • 1
  • 7
3
votes
3 answers

How to get the duration/bitrate of a H264 file with avconv/ffmpeg

Executing avprobe test.h264 outputs Input #0, h264, from 'test.h264': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264 (High), yuv420p, 720x480, 25 fps, 25 tbn, 50 tbc Executing file test.h264 outputs test.h264: JVT NAL sequence, H.264…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
3
votes
1 answer

ffprobe or avprobe returning plain text errors in JSON output

I'm running avprobe to get stream infomation about a video in JSON ... avprobe -loglevel quiet -show_format -show_streams file.m4v -of json This is basically the exact same thing as ffprobe or ffmpeg -i (and I get the same error.) ffprobe -loglevel…
Justin Jenkins
  • 26,590
  • 6
  • 68
  • 1,285
1
vote
1 answer

Python problems with ffprobe/avprobe and youtube_dl on Mac

I started self-learning Python yesterday, so apologies in advance for any etiquette errors. My challenge was to take a .csv list of song titles, search each video on YouTube, and then use youtube-dl to download the audio. My code seems to work for…
David Smerdon
  • 59
  • 1
  • 6
1
vote
1 answer

How to redirect avprobe's output to file?

I got a problem with redirecting output to file. I'm writting script in bash. Here is the code: function getParameters { echo `avprobe "$TMP_CATALOGUE/$FILE_NAME"` >> "$TMP_CATALOGUE"/file_parameters.txt } unfortunately, only thing i get in…
Kate
  • 21
  • 3
1
vote
1 answer

avconv "select" filter doesn't discard first frames

I'm trying to segment a video using avconv's "select" filter to extract only a specific range of frames from the input file. As an example, imagine I have a 60fps video file called input.mp4, with 3000 frames (i.e. 50 seconds), and I run avconv -i…
user2152106
  • 143
  • 2
  • 6
0
votes
1 answer

Gstreamer gst-launch-1.0 select audio stream for transcoding

Using avprobe to examine one ts file i have this: Input #0, mpegts, from '/tmp/file.ts': Duration: 00:00:17.06, start: 82902.417489, bitrate: 3533kb/s Program 30601 Program 30602 Program 30603 Program 30604 Program 30605 Program 30606 …
Jorge Palanques
  • 63
  • 1
  • 10
0
votes
2 answers

How do you handle pipes and output in Python?

I'm attempting to execute this command within my python script: avprobeCommand = "avprobe -of json -show_streams {0} | grep '\"duration\"' | sed -n 1p | sed 's/ //g'".format(hiOutput) output = subprocess.check_output([avprobeCommand]) and I keep…
HighFlyingFantasy
  • 3,789
  • 2
  • 26
  • 38