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
0 answers

How to get the offset byte for every video frame using ffmpeg?

I am extracting a frame per every second using this below command, ffmpeg -i input.ts -vf "select='if(eq(n\,0),1,floor(t)-floor(prev_selected_t))'" -vsync 0 output-%04d.png I want to get the each extracted frame's offset byte into a file. Also I…
geo-freak
  • 327
  • 3
  • 20
0
votes
1 answer

how to write a command with given condition in subprocess

I am having a bad time trying to figure out how to write this command in the subprocess. In the terminal I run : ffprobe -i test.avi -show_format -v quiet | sed -n 's/duration=//p' | xargs printf %.0f and it runs fine. Now in the python 3 I want…
alan
  • 3
  • 1
0
votes
1 answer

FFprobe to recursively search files to output to csv

I am trying to run a bash script but am encountering some errors. I want to recursively make the command search through the folder and look for all mp4 files. Then i want it to run the ffprobe command and output it to a csv file in a different…
user3411002
  • 783
  • 3
  • 9
  • 27
0
votes
0 answers

Python subprocess.call on ffprob errors

I have an error executing line of code that successfully parses outside of python: import subprocess heightstring = '/usr/local/bin/ffprobe -v error -select_streams v:0 -show_entries stream=height -of default=nw=1:nk=1 ' + "'" + join(src_dir,…
QRrabbit
  • 330
  • 3
  • 14
0
votes
2 answers

Filter word in a string in batch script

I created a batch script for windows that I use for mux mkv files. When launch this command: ffprobe -v 0 -select_streams s -show_entries stream=index:disposition=default -of compact=nk=0 file.mkv | findstr disposition:default=1 Output…
0
votes
1 answer

ffprobe produce memory link

I am working on a python script to calculate the duration of all video files in a directory (and sub-directories, links etc.). Everything works, my only problem is that the following code produzes a memoryleak. I use this function for every media…
Lukas
  • 446
  • 3
  • 11
0
votes
0 answers

Import a ffprobe json metadata file into a video file

I've used ffprobe to export the metadata from a video file as a JSON file (metadata.json) and then removed several chapters from the JSON metadata file using jq metadata_clean.json. I'm now looking for a way to import the JSON metadata file…
CMH
  • 11
  • 3
0
votes
1 answer

What does profile means in an aac encoded audio

I am trying to concat two video files with ffmpeg concat demuxer for most of the part it works just fine! But when I try to concat videos which has two different audio profile with same codec, it concats with the resulting video having weird sound…
0
votes
2 answers

Can we declare a variable in ffmpeg ffprobe

I am new to ffmpeg. I want to get a video duration through ffmpeg and declare it to a variable. where I can use the value for a different function. I am using power shell. This is my code: ffmpeg -i 1aef53e6-92ac-4d28-89f8-4cce28fa0f58.mp4 2>&1 |…
0
votes
1 answer

how can set variables from ffprobe

how can i add artist title date etc. to variables? from ffprobe import FFProbe metadata = FFProbe("01-leo_lausemaus_-_leo_lausemaus_titelsong.mp3") print(metadata) output results its:
kuck
  • 97
  • 6
0
votes
1 answer

How do I use ffprobe in Terminal?

When I use ffmpeg I use it like this: ./ffmpeg -ss 00:30:00 -i inputvideo.mp4 -t 00:00:20 -c:v copy -c:a copy outputvideo.mp4 So how to I use ffprobe? I've tried this but I can't get it to work: ./ffmpeg ffprobe -v error -show_frames…
Westicle
  • 87
  • 1
  • 13
0
votes
0 answers

if statement with ffprobe stream analyzer

I am trying to use if statement to display some video streams parameter(bitrate) in case it exists or displays a message( cannot measure bitrate) if there is no bit rate. and prevent my GUI from crashing. where is the wrong in my code, or how can I…
user12833369
0
votes
0 answers

FFprob time stimstempt

I got this…
user12129980
  • 103
  • 2
  • 9
0
votes
0 answers

Appending a list of movies MP4s causes the sound to be dropped or garbled at some point

Update I am able to reproduce the issue by concatenating 10 Hello.mp4 clips and see the audio drop out/garbled at about 5 seconds playback. This is via VLC latest 3.0.8 on Windows7 64bit. Window Player zero sound. Media Player Classic it plays…
Meryan
  • 1,285
  • 12
  • 25
0
votes
1 answer

Errno 2 No such file or directory: 'ffprobe': 'ffprobe'

I have to develop an Alexa Skill that use Pydub for edit mp3 file. Pydub requires ffmpeg and so I have add it in requirements.txt but now, when I try to run my skill, it give me "Sorry, I had trouble doing what you asked. Please try again.". In…