Questions tagged [command-line]
The command-line tag has no usage guidance.
22
questions
0
votes
0
answers
6
views
Command to get only one audio track in output specified by language code with ffmpeg
Ffmpeg Command to get video with only English audio or only one language audio
I tried running ffmpeg -i input_video.ext -map 0:v -map 0:a:language=eng -c:v copy -c:a copy -map_metadata -1 -sn output....
0
votes
0
answers
10
views
How to with single ffmpeg command (= single seek through the input file) cut into segments and concatenate some of them into several output files?
Starting with a single input video (with no audio), suppose I'm interested in time segments [a,b], [b,c], [d, e], [f,g], [h,i], ... where the letters are some timestamps. I am looking for an ffmpeg ...
0
votes
1
answer
34
views
How to cut video, add audio and burn subtitle while cropping video all in one command - ffmpeg
Currently I have the following command,
which cuts the video, adds audio and burns subtitle into the video.
-ss 00:00:30 -t -i video.mp4 -i audio.wav -vcodec copy -acodec copy -map 0:0 -map 1:0 -vf ...
1
vote
0
answers
499
views
Which FFmpeg variable gives the total duration of a video?
I've spent hours searching the documentation and forums for a simple variable and it's driving me crazy. Can anyone tell me what the variable is that gives the total duration of a video, so that I can ...
2
votes
0
answers
83
views
Create time corrected .srt subtitle file for .mkv which uses file/segment linking
I have two mkv files. One of them is the episode of a series and the other one the opening which is linked in the first one. Let's call them episode.mkv resp. opening.mkv.
I also have a subtitle.srt ...
2
votes
1
answer
1k
views
How to remove background from video without green screen on the command line?
I'm looking for an ffmpeg-like tool to blur/remove/change a static background from a "talking head" video, on the command line with on-device processing.
Essentially,
ffmpeg-like-tool [--...
2
votes
1
answer
988
views
Convert TTML Subtitles to STL or SRT in Linux
I want to convert a file with TTML subtitles preferably to STL, or to SRT (less preferred). I thought that I would be able to do it with ffmpeg but apparently they do not support it, because the TTML ...
1
vote
1
answer
333
views
How do you open multiple videos with multiple subtitles in VLC from command-line?
Usually, you can use this command to open a video with a subtitle in VLC, if it isn't detected automatically:
vlc.exe path_to_video.mp4 --sub-file path_to_sub.srt
But I want to open multiple videos, ...
1
vote
1
answer
1k
views
I used ffmpeg to concatenate to videos and it got stuck and produced a huge file. Where is the mistake?
I have this short videoclips that i recorded either with my webcam or with my phone. The ones that come from my webcam are in Matroska container, and the ones from the phone in mp4. Each piece is ...
0
votes
1
answer
1k
views
Find duration only with ffprobe in Windows
I want to find video file duration only with ffprobe but
ffprobe FILENAME.EXT 2| find "Duration:"
does not filter output to show just the line with "Duration:" Instead, I got:
...
0
votes
2
answers
818
views
filter_script usage with ffmpeg and replacing inputs with a file
When using ffmpeg -i input1 -i input2 ... -filter_script filter_complex.txt output.mkv I can't seem to get the stream from the filter_complex.txt file to be recognized by ffmpeg. If I add -map [v], ...
1
vote
1
answer
5k
views
ffmpeg batch overlay Error: "Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_0"
I am trying to create a batch file to run this script to add a watermark on each file in a folder
ffmpeg -i input.mov -i watermark.png -filter_complex "overlay=10:10" output.mov
The script above ...
0
votes
1
answer
783
views
Can't apply "fade in" after "fade out" (FFMPEG command line)
I'm debugging the command
ffmpeg -i ./input-file.mp3 -af "afade=t=out:st=**5**:d=2" ./output-file
But if I try to run a new fadein, after the fadeout, it won't work. The sound doesn't come back.
...
3
votes
1
answer
2k
views
How to delete the very last frame of a video using ffmpeg / mencoder / transcode or any other?
I am trying to delete the very last frame of a video using ffmpeg / mencoder / transcode / or any other free linux application.
Here is what I have so far, and it's only extracting it, it's not ...
3
votes
1
answer
8k
views
FFMPEG - How can I add black bars to top and bottom of my video?
I have about 100 videos. I would like to add a 30 pixel horizontal black bar to the top and bottom of each video without ruining the dimenions(so even if they go over the video). How can I achieve ...
0
votes
1
answer
94
views
"shift +" while rendering in ffmpeg, how to undo?
I was rendering a video in ffmpeg and accidentally pressed "shift" and "+", and the below started happening.
What is this doing and how do I stop it and is it creating something I need to delete or ...
1
vote
1
answer
611
views
How to use MELT or FFMPEG for layering of a video (i.e. shifting an overlay of the same video by one frame to remove flicerking from LEDs)?
I am looking for a possibility to remove the flickering from LEDs on a video under Linux on the commandline. To do that one would have to
Put the video on one track
Put the same video on a second ...
0
votes
1
answer
400
views
FFMPEG Command Works, then stops
When I use ffmpeg with this command:
$ ffmpeg -i ~/Desktop/The_Karate_Kid_2010.mkv -c:v libx264 -c:a libfdk_aac -c:s mov_text ~/Desktop/The_Karate_Kid_2010.mp4
It works, until this error appears:
...
0
votes
1
answer
938
views
What are the benefits of a CLI encoder (e.g. FFmpeg) over GUI Software? [closed]
I have seen here a lot of questions regarding FFmpeg, but I didn't know it was a command line application until yesterday.
If we have GUI software like Final Cut Pro and Premiere Pro? Apart from the ...
3
votes
1
answer
6k
views
ffmpeg concat error
I am trying to concatenate two video files using ffmpeg, and am receiving and error.
Two eliminate compatibility issues between the two videos, I am been concatenating the same video with itself, and ...
0
votes
1
answer
2k
views
ffmpeg multiple filters not working
I am trying to specify multiple filters for ffmpeg and I am getting an error output.
I am trying to do an audio and video fade in and a resolution scale.
my command is as follows...
ffmpeg -i 00021....
0
votes
0
answers
528
views
Is there command line software that syncs two audio tracks
I have a bunch of separately recorded audio and video tracks that I need to sync. By sync (synch?) I mean align the two tracks so that the audio matches as closely as possible. The two tracks are ...