Questions tagged [ffmpeg]
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.
869
questions
2
votes
1
answer
112
views
How to merge MP4 video without audio with MP3 file using CLI tools, considering offset
I have a challenge I'm hoping to solve with your expertise. I possess an MP4 video file that lacks audio, and a separate MP3 audio file that I wish to synchronize and merge with the video. The ...
0
votes
0
answers
626
views
Opera browser stopped playing videos
Ubuntu 22.04.3 LTS 64 bit
A few days ago Opera One (version: 107.0.5045.15) stopped playing videos on multiple sites where videos used to play OK. I have not knowingly made any changes that might have ...
4
votes
1
answer
420
views
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 ....
2
votes
1
answer
105
views
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 ...
0
votes
0
answers
35
views
mp3gain says file is an MPEG Layer II file, not a layer III file
Seems not to make a difference what value I pass to -g under these conditions where it complains file is an MPEG Layer II file, not a layer III file
0
votes
0
answers
50
views
Popping sounds when recording screen with FFmpeg
I am using FFmpeg (X11Grab and Alsa) to record a virtual screen. I have an Ubuntu server, and I am using xvfb as virtual frame buffer. I launch a browser process using Puppeteer, and record it using ...
0
votes
1
answer
1k
views
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 ...
1
vote
0
answers
289
views
In ubuntu my camera isnt working ,no device found ,both on cheese and google meet
I use Ubuntu on pen-drive and the OS was working well till last night[ 8 Nov] but today after running my code related computer vision, I did have a system software update prior I was about to use ...
0
votes
1
answer
194
views
Slideshow from jpg files
Have an command to make slideshow mp4 from *.jpg files:
ffmpeg -r 1/3 -f concat -safe 0 -i <(ls -v *.jpg | sed "s|^|file '$PWD/|") -vf "scale='min(1920,iw)':min'(1080,ih)':...
0
votes
0
answers
460
views
How to convert/encode video files with ffmpeg, using AMD Radeon hardware encoding
Good day, and thanks in advance for any help
I am running Ubuntu 22.04 LTS on a PC with an AMD Ryzen 7 5700G CPU and AMD Radeon RX 6600 GPU.
I have a large number of video files in MP4 format that I ...
0
votes
0
answers
132
views
Regarding ffmpeg in ubuntu 22.04
I need to convert a rtsp and a rtmp link to two different UDP link at the same time using ffmpeg in ubuntu server 22.04. I need to run this as background process only. Also is there any option to ...
0
votes
0
answers
270
views
Capture xvfb stream from docker container using webRTC
I have a Windows game .exe file and running the game inside a docker container (In EC2 Linux VM) using xvfb version of the X server. Now I want to Capture X server stream from the docker container to ...
0
votes
0
answers
49
views
ffmpeg: how to bulk-compress videos into a subfolder, but only those >1Mb?
Using Anki desktop and AnkiDroid to develop a LSF (French Sign Language) learning deck, I edit cards with written word on front card, signed word in .mp4 on back card.
With a ~10k cards right now, I ...
0
votes
0
answers
91
views
Two processes have different behavior while running with the same command and same binary file
There's an app in Ubuntu server, which runs a FFMPEG instance. That instance keeps working fine.
But when I run the same command with the same binary executable in terminal, it exits after 3 or 4 ...
2
votes
0
answers
445
views
Syncing Audio and Video Streams with FFmpeg to Resolve Timestamp Differences
I've encountered an issue with a video file where the audio and visual streams are out of sync. After some research, I've learned that this might be due to timestamp differences between the two ...
1
vote
1
answer
263
views
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 ...
0
votes
1
answer
230
views
ffmpeg undefind symbol: err_set_debug_level
I am using Ubuntu 22.04. My ffmpeg has suddenly stopped working and is giving this error:
ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libpocketsphinx.so.3: undefined symbol: ...
1
vote
0
answers
64
views
How to fix video orientation to match properties details dimension using ffmpeg?
When I record videos with my phone while it is vertically orientated the video displays correctly in most media video players. But then I noticed that when I load the video into Blender it displays ...
0
votes
1
answer
86
views
ffplay won't play videos in Documents subfolders, firejail configuration issue
I have a subfolder of ~/Documents where I want to store various videos (.mp4 files). I don't particularly want to move them to the ~/Videos folder because they contain other files which are not videos....
0
votes
0
answers
21
views
Devede not installable 22.04 LTS [duplicate]
Ubuntu 20.04 LTS had Devede installed and worked fine. Updated to 22.04 LTS and this, and other programs (e.g. Audacious) disappeared, either immediately, or subsequently. Cannot re-install. Tried ...
0
votes
0
answers
38
views
Cannot upgrade Ubuntu 16.04 because it asks about non-existing ppa [duplicate]
When I am trying to upgrade Mate Ubuntu 16.04, the process stops at command
$ sudo apt-get upgrade
E: Failed to fetch http://ppa.launchpad.net/jonathonf/ffmpeg-3/ubuntu/pool/main/f/fontconfig/...
0
votes
0
answers
114
views
FFMpeg convert only Audio and keep Video Setting with Subtitles, Metadata
I've been dealing with video conversion for a while now. I would like that the video is taken over 1zu1. Only the audio should be changed from DTS to AAC.
Unfortunately, the command does not accept ...
1
vote
1
answer
273
views
Some snap applications no longer playing mp4 files?
Since a recent update (obviously not manual, since these are snaps), I've been having trouble playing MP4 files in Firefox and Telegram, possibly other apps as well that I haven't tested.
After ...
2
votes
2
answers
169
views
Can ffmpeg be used to concatenate files?
A while back I asked how to convert mp4 files to mp3 and someone pointed me to ffmpeg. That is a great command and it does a great job.
Now I'd like to know about concatenating files together. Can ...
0
votes
0
answers
43
views
ffmpeg add watermark out of memory
we want to add watermark to video using ffmpeg. When the video is relatively large, there will be out of memory. Below is our code, how can I go about eliminating this problem.
enter code here
...
0
votes
0
answers
160
views
Cannot build native apps after upgrading to 22.04 from 20
It seems that I get stuck going down a rabbit hole when I try to build anything depending on ffmpeg, avlib, and gstreamer since switching to ubuntu 22; its incredibly frustrating and I wonder if the ...
0
votes
0
answers
922
views
Ubuntu 16.04 ESM / 18.04 ESM / 20.04 ESM / 22.04 ESM / 22.10 : FFmpeg vulnerabilities (USN-5958-1) after running nessus scan [duplicate]
So I have run several nessus scans to check for vulnerabilities on my ubuntu 20.04 setup and I keep getting this vulnerability.
I have followed this: https://ubuntu.com/security/notices/USN-5958-1 and ...
0
votes
1
answer
224
views
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 ...
0
votes
1
answer
54
views
Recommended application for converting mathematical signal to sound
I use Ubuntu 22.04. Is there an application for converting mathematical periodical sin/cos formula (functions) to sound? For example is there a way for playing these signals:
cos(2π · 440 t)
cos t + ...
0
votes
0
answers
89
views
Could not allocate audio samples "Invalid argument"
I trying to open OpenBoard podcast when start recording getting this error and the recorded video does not have audio
Invalid path data; path truncated.
Persisting document; path is "/home/...
2
votes
0
answers
985
views
ubuntu 23.04, no pulseaudio, only pipewire, ffmpeg, no audio when record desktop
On Ubuntu 23.04, there is only pipewire, no pulse audio.
When I use ffmpeg for record desktop, no sound is recording.
In case I use hw:1, it record one second of audio and then silence. Does ffmpeg ...
0
votes
0
answers
19
views
create a color effect around the edge of the video
I'm confused about how to write what I want.
but i can explain in beginner's way.
I want to create an effect like an image stroke that surrounds the corners of the video. for example starts at center ...
2
votes
1
answer
871
views
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 ...
0
votes
0
answers
54
views
ffmpeg lock's up pc
I have an i7-10700kx16. With 64g ram and 2 2tb SSD, The board is a z590-p. The video card is UHD 630 CML GT2. I install Ubuntu 23.04 and the ver of Ubuntu. Every time I to use Kdenlive or FFmpeg from ...
1
vote
2
answers
831
views
How to show "live" progress of ffmpeg process with zenity (or yad, or kdialog)?
I have a script to cut/trim media files - initial details here and here; after some more recent adjustments adjustments it looks like this:
#!/bin/bash
INPUT=$1
eval $(yad --width=400 --form --field=...
0
votes
0
answers
206
views
How to show ffmpeg progress with kdialog?
I have found here here a script that provides a GUI interaction in order to trim/cut media files. I have tried to improve it a bit. Now it involves a file picker to select the file, a timestamp window ...
1
vote
1
answer
646
views
Shell script works manually but doesn't work correctly in Crontab
I have a Python script to record audio/video using the "subprocess" module to execute ffmpeg commands, as follows:
def kill_ffmpeg_process(args):
for proc in psutil.process_iter(['pid', '...
2
votes
2
answers
7k
views
Upgrading ffmpeg from v4.4.3 to v6 with apt in 22.04
I'm trying to install the latest ffmpeg version on Ubuntu 22.04.
Using ubuntuhandbook's guide proved no success.
The commands in the guide are:
sudo add-apt-repository ppa:savoury1/ffmpeg6
sudo add-...
1
vote
0
answers
261
views
ffmpeg output doesn't have the audio
I'm working on a 24/7 music streaming channel. This script should stream the bg.mp4 on loop and play mp3 files from a folder called mp3. Currently streaming the mp4 file on loop works but no audio is ...
0
votes
1
answer
296
views
Tons of software disappeared after 20-04 dist-upgrade
I'm on 20.04, procrastinating on updating to 22.04 (older system, need to research performance implications first).
I kept getting "partial upgrade" messages, and wanted them to go away, so ...
4
votes
2
answers
704
views
What is the right parameter for ffmpeg to record audio+video simultaneously?
I have been searching the internet on how to record a streaming playback with video and audio. I found this recipe:
ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 -f pulse -ac 2 -i ...
1
vote
2
answers
176
views
How to batch change a file extention
I have a bunch of mp3 files that I would like to change the extension of into m4bs, in the terminal for audiobooks. I want to convert/change the name of each indivicual mp3. I am pretty sure I can ...
5
votes
1
answer
2k
views
How can I convert my webm screencast to mp4?
Gnome has a built-in screencast tool using ctrl plus shift plus alt plus R. It's a great tool with consistent quality video output!
But, I need the output in mp4. I have tried this: ffmpeg -i ...
5
votes
3
answers
7k
views
trying to (re-)install ffmpeg, but unmet dependencies
I previously tried to follow https://ubuntuhandbook.org/index.php/2022/02/install-ffmpeg-5-0-ubuntu/ in installing ffmpeg 5 on ubuntu 20.04 LTS, that did not work.
Now I have upgraded to Ubuntu 22.04....
2
votes
0
answers
286
views
getting black screen while trying to record dockerized lxde using ffmpeg
I have created a docker image that has LXDE and TightVNCServer.
# Pull base image.
FROM ubuntu
# Install LXDE and VNC server.
RUN apt-get update
RUN apt-get install -y xvfb
RUN DEBIAN_FRONTEND=...
1
vote
0
answers
358
views
Kdenlive 22.08.3 Stabilize menu item missing
I am running Kdenlive 22.08.3 on my Ubuntu 22.04.1 desktop. I have a video clip which I want to stabilize. When selecting this clip I should get a "Stabilize" menu item in the menu Clip ->...
-1
votes
1
answer
159
views
Calculate video total video length and output as total with respective folder
I'm working with some videos and I want to measure the total length of videos each folder contains and output it with the respective folder. Current structure is like this.
.
└── Parent folder/
├──...
2
votes
2
answers
318
views
Concatenating separate commands that download m4a and converts it to mp3 all in one
I can download the audio using the command below but how can I also convert it into a mp3 file at the same time.
Example: Download m4a file
yt-dlp -f 139 --external-downloader aria2c --external-...
2
votes
1
answer
232
views
mp3splt bsed on time and silence
How can I split an mp3 into 3 min chunks with the closest silence place/mark.
mp3splt -t 3.0 -a -p th=-50,min=1,rm audobook.mp3
I tried the above but still mp3splt split the mp3 file into 3-min ...
0
votes
0
answers
49
views
Is there problem with 'read' command in Bash, or in Bash itself when using multiprocessing, or may be I make some mistake?
First to mention that I do not have lot of experiences with Bash scripting.
Here is the problem that I observe:
When I execute read command and inside the cycle I run background processes, the read ...