ffmpeg

Video format not supported in Opera snap

Video format not supported in Opera snap I was asked for help with Opera installed on Ubuntu 24.04 via Snap not playing some videos. I’ve heard about the issue with ffmpeg version Opera uses, but thought it was about opera installed via APT. It’s newest available version installed. It worked previously I also tried to …

Total answers: 1

ffmpeg x11grab on ubuntu: increase FPS

ffmpeg x11grab on ubuntu: increase FPS I am trying to configure FFMpeg to capture whole FHD screen (browser with videos inside and sounds). The result has too low FPS (from 3 to 15 per second, depending on CLI params, but i need at least 30 frames per second). Only firefox and ffmpeg are running while …

Total answers: 1

FFPLAY – loop sound until signal received

FFPLAY – loop sound until signal received I have a bash script which starts ffplay in background, looping a short sound sample indefinitely. Then it does some other work, and finally it kills ffplay. foo() { ffplay -loop 0 sound.wav &>/dev/null & trap "kill $!" RETURN (do work…) } I want ffplay to finish playing …

Total answers: 1

Convert swf files to mp4

Convert swf files to mp4 I came accross this nice web. There are swf and mp3 files. I’d like to convert them to mp4 or something, so it is viewable. I tried gnash and ffmpeg without success. I’m on Lubuntu 22.04 Asked By: xralf || Source First of all, I’ll mention some of the paths …

Total answers: 1

ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: Error 74

ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: Error 74 Since today when I run ffmpeg I have the error in the title of this question. I tried this, but can’t apply the solution because I have a directory /etc/ld.so.conf.d and in that directory there are the following files: fakeroot-x86_64-linux-gnu.conf i386-linux-gnu.conf …

Total answers: 1

Use `xautolock` to run script which captures image with `ffmpeg` after unlocking

Use `xautolock` to run script which captures image with `ffmpeg` after unlocking I’m using i3wm and I want a script to run after I’ve unlocked my screen. I can get this to work when I manually lock my screen, e.g. using the steps outlined in this post. But I can’t get this to work after my …

Total answers: 1

Bulk converting mkv files into mp4 files using only one line of xargs

Bulk converting mkv files into mp4 files using only one line of xargs This answer converts a batch of mp4 into mp3 using a for loop. I want to achieve something similar with only one line of code. After some trial and error, I figured out the following code. ls | grep .mkv | xargs …

Total answers: 1

How to restart /dev/video

How to restart /dev/video I’m creating a webcam feed the following way: using this Python3 lib: https://github.com/Flashs/virtualvideo plus having v4l2loopback-utils installed (not 100% sure it’s needed) enabling the video device with sudo modprobe v4l2loopback video_nr=2 exclusive_caps=1 This gives a dummy feed on /dev/video2. This works nicely a few times (I can select this webcam feed …

Total answers: 1

ffmpeg inside while loop with find unintentionally alters iteration variable

ffmpeg inside while loop with find unintentionally alters iteration variable Can someone please explain to me what is happening here? This is what I have reduced my situation down to: # make 20 test gifs out of the same source file. for i in {1..20}; do cp -p ../some-random-source-file.gif "${i}.gif"; done # grab, then process …

Total answers: 1

How to install latest version of ffmpeg on unbuntu

How to install latest version of FFmpeg on Ubuntu I’m currently developing an application that shells out to FFmpeg which will run on Ubuntu in the cloud. I want to install the current version (at the time of this writing, 6.1). If I run sudo apt install ffmpeg, I get version 4.2.7: ffmpeg version 4.2.7-0ubuntu0.1 …

Total answers: 1

How to remove unneeded languages from video files using ffmpeg?

How to remove unneeded languages from video files using ffmpeg? I have a number of video files (500+) with lots of audio and subtitle streams for languages that I don’t need and would thus like to remove to conserve storage space. I tinkered around with ffmpeg, but removing streams by processing one file after another …

Total answers: 1

Chromium cannot read camera: Dequeued v4l2 buffer contains invalid length #561

Chromium cannot read camera: Dequeued v4l2 buffer contains invalid length #561 I installed the v4l2loopback kernel module on my machine and enabled it with sudo modprobe v4l2loopback exclusive_caps=1. I created a camera on /dev/video0 with the rust bindings and started piping a static image to the camera (command from the wiki): sudo ffmpeg -loop 1 …

Total answers: 1

How to extend sustain in batch wav files?

How to extend sustain in batch wav files? I have a batch of sound samples which are too short (2.15 sec), and I want to extend the sustain to a total of about 10 seconds, meaning stretch the last 0.50 second of the file to 10 seconds. I can do this on each single file …

Total answers: 1

ffmpeg: record screen area selected by mouse

ffmpeg: record screen area selected by mouse I have found a ffmpeg command to record area of my screen: ffmpeg -video_size 2000×1600 -framerate 25 -f x11grab -i :0.0+2140,280 output.mp4 But to find the correct area, I had to do multiple trial/error runs and it was tedious. Is there some possibility to select area by mouse, …

Total answers: 1

How to loop an animated GIF file as a background of a music?

How to loop an animated GIF file as a background of a music? I have a GIF file which is 5 seconds long, and an mp3 which is about 3 minutes long. I want to create a video where the GIF file will be the background animation (replayed repeatedly), and the mp3 audio will play. …

Total answers: 1

Concatenate multiple trimmed videos FFmpeg

Concatenate multiple trimmed videos FFmpeg I am a rooky in FFmpeg and I am trying to concatenate multiple videos that must be trimmed into a new video, the command that I am trying to use is: ffmpeg -i 00042.mp4 -ss 00:00:02 -to 00:00:03 -i 00040.mp4 -ss 00:00:01 -to 00:00:02 -filter_complex concat=n=2:v=1:a=1 output.mp4 The code works …

Total answers: 1

Creating HLS Playlists (M3u8) Using FFmpeg

Creating HLS Playlists (M3u8) Using FFmpeg I created my own bash script that will create videos on demand with different resolutions and bit rates. I used "ffmpeg" tool do that, "ffmpeg" is a must, hence I can not use any other tool. The result of my script is: And each folder has: The default video …

Total answers: 1