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
0
votes
1 answer

Error when using ffprobe with Django - Python2

I use Django and ffprobe to get duration of video thanks to this instruction but it have some issues. What can I try to fix it? My code: def getLength(filename): result = subprocess.Popen(['ffprobe', filename], stdout = subprocess.PIPE, stderr =…
KitKit
  • 8,549
  • 12
  • 56
  • 82
0
votes
1 answer

Batch script using ffprobe

I've been doing some archiving of my music library lately. I have finalized my batch script as follows: @echo off for /r %%a in (*.mp3) do ( if exist "%%~dpna.txt" ( Echo "%%~dpna.txt" already present, skip ) else ( for /f…
0
votes
1 answer

ProcessBuilder start() method to run command (ffprobe) in eclipse/mac

I have installed ffprobe in mac and the directory is /usr/local/bin/ffprobe. When I run the ffprobe command in terminal, it works fine but when I run it in eclipse through ProcessBuilder, it does not run and throws exception as Caused by:…
user123475
  • 1,065
  • 4
  • 17
  • 29
0
votes
0 answers

Calculate GOP size MP4

I found a solution to calculate the GOP size of a H264 file. However when I change the input.h264 to mp4. I get an error that says invalid data. ffprobe -show_frames input.h264 | grep pict_type How can I perform this command line instruction with…
fangio
  • 1,746
  • 5
  • 28
  • 52
0
votes
0 answers

How to create a Master Playlist for HLS using a Java wrapper library for FFMPEG

I am trying to find/use a Java Library that wraps around FFMPEG to create HLS compatible segments and metadata files along with a master metadata file. Most existing libraries perform encoding just fine and allow extra functions for additional…
Caffeinated Coder
  • 670
  • 1
  • 8
  • 24
0
votes
1 answer

GoPro milliseconds accuracy for creation time

I have a GoPro Hero3 camera. When I read out the creation time (for example with ffprobe) I only get accuracy to seconds (i.e. the milliseconds are rounded). Is there a possibility to get milliseconds accuracy for the creation time of the video or…
machinery
  • 5,972
  • 12
  • 67
  • 118
0
votes
0 answers

FFprobe - Cut last 30s with bash script

I'm trying to use the ffprobe and bash loop script to subtract from the length of the video last 10sec. But it writes me a syntax error. Any ideas? for f in *.mp4; do \ videoduration=$(ffprobe -i $f -show_entries format=duration -sexagesimal -v…
0
votes
0 answers

FFProbe doesn't work

Argument /storage/emulated/0/Watermark/test.flv provided as input filename, but ffprobe was already specified. compile 'nl.bravobit:android-ffmpeg:1.1.1 String [] command = {"ffprobe", videoPath }; FFprobe ffprobe =…
Zhong Ri
  • 2,556
  • 1
  • 19
  • 23
0
votes
0 answers

how to determine the average biterate and peak bitrate of a video using ffmpeg?

I don't understand, when in ffmpeg i do ffmpeg -i i have : Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv), 1920x1080, 4997 kb/s, 30 fps, 30 tbr, 998795.00 tbn, 30 tbc (default) it's show bitrate: 4997 kb/s BUT the size of the file is…
zeus
  • 12,173
  • 9
  • 63
  • 184
0
votes
1 answer

Using FFprobe in Python

How can I use FFprobe in python scripts, which also exports the output as csv file? The command I want to perform is: ffprobe -i file_name -show_frames -select_streams v:1 -print_format csv > filename.csv I looked at other posts about similar…
SMLJ
  • 9
  • 4
0
votes
1 answer

File type not recognized when using ffprobe with Python

This is my python script: #!/usr/bin/python3 import os, sys, subprocess, shlex, re from subprocess import call def probe_file(filename): cmnd = ['ffprobe', '-show_packets', '-show_frames', '-print_format', filename] p =…
Damian
  • 159
  • 15
0
votes
0 answers

Retrieve duration of video using FFprobe vs MP4Box

I am using FFprobe and MP4Box for retrieving video streamlet information. I realised that there is a notable difference in the values returned. The following command was used for FFprobe: $ ffprobe -v error -select_streams v:0 -show_entries…
Zac
  • 149
  • 1
  • 2
  • 12
0
votes
1 answer

Sorting video files based on whether they contain sound or not

I have never done any programming until now, so I am open to any language. How do I start on a script to sort videos into those with sound and those without sound? I have hundreds of short mp4/avi clips that are randomly named. Is it possible to…
0
votes
1 answer

Can ffprobe accept something other than a file path to retrieve video metadata?

I am trying to grab video metadata off a user's upload. I am using angular-file-upload and FileReader to upload the file. I would like to use ffprobe to grab the metadata, but it seems to only accept file paths, which I don't have access to. Is…
PandaScript
  • 55
  • 1
  • 10
0
votes
0 answers

Find videos that have certain audio encoding and re encode

I when i download movies, sometimes they are downloaded in the wrong audio format (my player cant play it) i would like to create a script that is ran on a schedule that would loop through all my movies, fetching the Audio codec and checking to see…