Questions tagged [ffmpeg]
`ffmpeg` is a free software project aimed at producing tools (libraries and programs) for handling multimedia data.
684 questions
0 votes
0 answers
38 views
How does hardware accelaration (e.g. VA-API) work internally so that it does not work with ffmpeg filters but ok with icc-profiles?
Recently I've used mpv with set icc-profile and it worked with hwdec=auto-safe setting. Then I've tried to change colors via set vf colorchannelmixer but got an error "Impossible to convert ...
0 votes
1 answer
64 views
FFMPEG: set creation_time for split wav files based on original file creation_time
I have long .wav files that I wish to split into separate files of exactly 60 minutes each, using ffmpeg. I am using ffmpeg from the terminal in Mac OS X. If a bash or other shell script is necessary ...
0 votes
1 answer
96 views
ffmpeg/audio: realtime read, pipe into stdout and archive+encode segmented files on disk
I work with audio and I want to write a python script which: runs a single ffmpeg process (preference, not hard requirement) ffmpeg process reads from a mic in real time, applies automatic gain (...
0 votes
3 answers
266 views
In Linux how do I wrap an executable in a script so arguments and output work as the original executable expects?
Say I have an executable 'foo' and it is typically called with arguments, for example "foo -a1 v1". And 'foo' happens to be a resource hog, so I want to run something like "nice -n 10 ...
0 votes
0 answers
333 views
What is the quality level option for ffmpeg VAAPI encode with AV1?
It's really fast to use hardware acceleration to encode video using ffmpeg. I successfully did it today, however, I don't know how to configure the so-called quality level. I ran this command: ffmpeg \...
1 vote
1 answer
72 views
lf: not showing previews of videos
I am using lf as file manager. This is my preview.sh #!/bin/sh image() { geometry="$(($2-2))x$3" chafa "$1" -f sixel -s "$geometry" --animate false } batorcat() ...
1 vote
2 answers
90 views
Ffmpeg generate fixed binary digit filename pattern
Suppose I have filenames like these 4-bit patterns: 0000.ts 0001.ts ... 1111.ts Basically, that file was generated from an RTSP stream that chunks every second. So, for each binary number ...
1 vote
2 answers
116 views
transcode movies efficiently when 2 GPUs are available
I have a Kodi video library where each movie is in its own folder because I had to place .nfo files with links to TMDB in each folder to ensure correct identification. The movies are in their original ...
0 votes
0 answers
75 views
Why must I use scale_vaapi with kmsgrab, but hwupload with x11grab when using vaapi with ffmpeg?
I am wondering why, when using vaapi with ffmpeg, if I use x11grab I must use -vf format=nv12,hwupload but with kmsgrab I must use -vf scale_vaapi=format=nv12 instead. In particular I want to know 2 ...
0 votes
1 answer
320 views
Is it possible to record audio on a wayland desktop with ffmpeg?
I've figured out a way to capture video on wayland (hyprland) with ffmpeg, but that method does not cover audio. Most people on wayland will be using pipewire, pipewire has a compatibility layer for ...
0 votes
2 answers
555 views
How to merge Audio and Video file into one
all. Hope you guys are doing well. I have downloaded a 28min mp4 from a site but its audio and video got downloaded into 2 separate mp4 file both of 28min. Now how can I merge them? Thanks in advance ...
7 votes
1 answer
2k views
Can ffmpeg record screen on wayland?
Is it possible to record the screen with ffmpeg on wayland using the Hyprland compositor? I've read some posts that imply people managed to do it with kmsgrab, but cannot figure out how to do it ...
0 votes
0 answers
42 views
How can I grep the output of ffprobe? [duplicate]
I'd like to only see those lines containing "Stream #" from an ffprobe output. But whatever I do, it continues to show the whole output. Neither "|" nor ">" pipes work....
0 votes
0 answers
34 views
How to fork ffmpeg x11grab?
I'm trying to fork x11grab to no avail. m.mp4 is not generated: ffmpeg -video_size 1024x768 \ -framerate 25 \ -f x11grab \ -i :0.0+100,100 \ /tmp/m.mp4 \ >> /tmp/l....
0 votes
0 answers
83 views
Why are quotation marks and backslashes not working as expected in variables? [duplicate]
I'm trying to pass a command through to ffmpeg, but I'm struggling to get it to work with spaces in the name. I've tried this: filters="-vf subtitles='$filename.$format':force_style=Fontsize=24&...