All Questions
16
questions
1
vote
2
answers
150
views
FFMpeg: How to get the real return value in bash
I've always used ffmpeg via a cmd-script and I always could check the %ERRORLEVEL% which was always '0' on success or '!0' if an error occured.
I'm trying to recode my cmd-scripts in bash (using msys2 ...
2
votes
2
answers
716
views
How can I setup ffmpeg to continuously produce 1 second videos from piped jpgs?
I am using ffmpeg on Ubuntu 22.04 to create 1 second mp4 videos from piped jpgs. The only issue that I have is that ffmpeg stops executing after the first set of jpgs is piped in. I need ffmpeg to ...
1
vote
1
answer
308
views
FFmpeg command not producing desired video duration from image sequence
I have a set of 5 images and I want to use FFmpeg to create a video sequence from them. I am using the following command to achieve this:
ffmpeg -pattern_type glob -i '*_0[0-5].png' -r 25 -t 8 -c:v ...
0
votes
1
answer
255
views
Combine 2 FFMPEG commands - 1. Create a video loop and 2. Add track to loop X times / Add track to loop duration of video loop
I have these 2 commands for FFMPEG, but can't work out how to use the output from the first command and link into the 2nd one, and use them as a single process. I have the following:
Loop video for ...
2
votes
2
answers
6k
views
Is there a way to extract subtitles from an MKV while maintaining the original format?
I am trying to extract (first, in case of many) subtitle track from mkv files (via CLI only, no GUIs) using ffmpeg or mkvextract.
But there is one downside to this: I have to write the output name ...
1
vote
1
answer
455
views
Fade in/out PNG watermark overlay on video
I have an FFmpeg command in a script that crossfades a main video with an outro and then overlays a semi-transparent PNG watermark on top of it.
ffmpeg -y -i "$1" -i "outro.mp4" -i ...
1
vote
1
answer
2k
views
Using ffmpeg on Raspberry Pi to grab video from RTSP: "-t command not found"
I am trying something that should be simple - trying to use the Raspberry Pi ffmpeg to grab a 30 second video from an RTSP stream. The command looks like this:
ffmpeg -i <rtsp:...> -t 30 <...
0
votes
1
answer
435
views
Forcing a Program (FFmpeg) to Fork in BASH
I'm trying to fork an instance of FFmpeg so it will run in the background in a way that I could include in a script, but the obvious way doesn't seem to work with it:
ffmpeg -stream_loop -1 -re -f ...
0
votes
2
answers
2k
views
How Do I Get the Overall.RMS_level in Real-Time from a UDP Stream as an Integer Appended to as Shared Log File?
My goal is to monitor the audio of a UDP stream in real time to detect whether or not the audio is missing or too low in volume. Ultimately append to a log file that contains the integer values in ...
0
votes
1
answer
509
views
How do I get a command linked to one program run another program?
Kind of a weird situation here. I use a software package called OpenCV which installs a dependency called FFMpeg located at the following path.
/root/miniconda3/bin/ffmpeg
So, whenever I run the ...
0
votes
0
answers
54
views
How to edit script to run on all files within directory?
How to make this script run on all video files within directory executed?
#!/bin/bash
# Fade OUT, TO BLACK:
# length of the fade out
fade_duration=2 # seconds
if [[ ! $2 ]]; then
cat<<...
1
vote
2
answers
3k
views
How to increase file numbers in a for loop (ffmpeg)
I try to get a solution to make screens from videos with ffmpeg.
Most of the found examples involve decoding the whole video to get the images. This is - for larger videos - rather slow.
A better ...
0
votes
1
answer
1k
views
How do I encode the FLV to a temporary file and then output that to stdout with FFMpeg?
I know ffmpeg supports piping. I am trying to achieve what was described in this answer quoted below
If you are willing to accept a solution that does not truly stream the
resulting frames, but ...
1
vote
1
answer
599
views
Using regex in BASH script to grab filename/type recently created as output by command earlier in the sequence
I recently asked This question about the use of gpaste getoutput as STDIN for youtube-dl. That question has since then been answered, but I would like to move on to the next step of automation a multi-...
1
vote
1
answer
621
views
gpaste get as STDIN for youtube-dl
I'm still fairly new to linux. I've been a user for about 2 months. I understand how to do basic pipings with grep and write STDOUT to text files.
I'm trying to do something similar with my ...