Questions tagged [ffmpeg]
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.
858
questions
0
votes
0
answers
78
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
27
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
48
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
20
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/...
1
vote
0
answers
224
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
12
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
101
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
32
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 ...
0
votes
0
answers
51
views
How to show "live" progress of ffmpeg process with zenity?
I have a script to cut/trim media files - more details here and here.
It includes a line to show the progress of ffmpeg process with zenity.
~$ zenity --help-progress
Usage:
zenity [OPTION…]
...
0
votes
0
answers
34
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
199
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', '...
0
votes
2
answers
563
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
108
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
144
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 ...
2
votes
1
answer
124
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
87
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 ...
0
votes
1
answer
211
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 ...
3
votes
1
answer
1k
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
136
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
143
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
75
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/
├──...
0
votes
0
answers
35
views
ffmpeg auto ended process with output error
How do you make ffmpeg stop during processing if strange words appear which make the live stream error automatically stop?
For example, during the process I often get output like this:
Non-Monotonous ...
2
votes
2
answers
126
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
79
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
39
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 ...
0
votes
0
answers
166
views
How can I use ffmpeg to convert from mp4 to avi for use in Davinci Resolve without massive increase in filesize?
I have an mp4 file that I'd like to edit within Davinci Resolve.
Due to licensing issues, the free version of Resolve cannot edit videos that are encoded using h.264.
I'd like to use ffmpeg.
I ...
0
votes
0
answers
38
views
ffmpeg wav quad to mp3
First the quad to 4 mono files:
ffmpeg -i den4.wav -filter_complex "[0:a]channelsplit=channel_layout=quad:channels=FL[left]" -map "[left]" front_left.mp3
and the same for the ...
1
vote
0
answers
338
views
how to have ffmpeg delay 1 minute to system then run stream?
i want to restream with ffmpeg , how do i make it delay 1 minute ( but save to ffmpeg ) then stream ?
the reason for the 1 minute delay is because my connection is slow, if it waits 1 minute it might ...
1
vote
0
answers
72
views
gphoto2 movie capture error: no Viewfinder mode for Canon EOS 400D Rebel XTi
I recently got an Canon EOS 400D to use as a webcam for recording videos. I checked gphoto2 documentation to make sure that it can work as a webcam. The documentation says "Yes" for the ...
0
votes
1
answer
140
views
NVENC or Laptop Screen, but Not Both!
Dell Precision M6800
NVIDIA GK104GLM [Quadro K5100M]
Ubuntu Studio 22.04 LTS
Fully updated (sudo apt update && sudo apt full-upgrade)
This answer seemed to be the most promising to get NVENC ...
1
vote
1
answer
261
views
Convert MKV to audio only in Linux
I am trying to convert a video (recorded with OBS) from MKV to audio only (e.g. MP3 or OGG)
in k(Ubuntu).
I tried this command first :
ffmpeg -i myVideo.mkv -acodec libvorbis output.ogg
the result ...
0
votes
1
answer
524
views
How to record webcam with audio on ubuntu 22.04 from cli?
Command to start recording audio and video (from webcam) using command line. Preferably using ffmpeg
0
votes
0
answers
59
views
how to add input video rtmp ffmpeg
how to add video input in rtmp ffmpeg ? for example if the rtmp source is not active it will run video.mp4 then if the video is ok then it will try to run the rtmp source again, if it fails again it ...
0
votes
2
answers
39
views
Ffmpeg video player does not appear in my applications overview. A search for it turns up no results. Snap'd store shows it installed. Ubuntu 22.04.1
I'm running Ubuntu 22.04.1 LTS. Ffmpeg version n4.0. Had similar issue with movian video player, however, icon did appear in application overview. Clicking on icon resulted in no visible result.
0
votes
1
answer
816
views
Convert .MOV video file from Iphone to playable .mp4 file
I record some video form my Iphone and I get .MOV files using vcodec hevc.
As is, it's unplayable and unusable on editing soft.
So I tried to convert it to .mp4 file using ffmpeg comand:
ffmpeg -i ...
0
votes
0
answers
133
views
Understanding the syntax of ffmpeg: Save every 10th frame as jpg
i want to save every 10th frame of a video (.mp4) as a JPEG file. I found this line here on the internet:
ffmpeg -i /videopath/videoname.mp4 -vf "select=not(mod(n\,10))" -vsync vfr -q:v 2 /...
2
votes
2
answers
267
views
How to calculate the UDP input Bitrate and Output Bitrate
How to Calculate the UDP Bitrate and information(UDP Input bitrate and UDP Output bitrate)
Like ffprobe
Input #0, mpegts, from 'udp://269.1.1.104:1001':
Duration: N/A, start: 25881.121689, bitrate: ...
0
votes
1
answer
347
views
ffmpeg convert list of NV12 files to video
I have folder of YUV files in NV12 format and I want to make them into a video. I cannot glob them as they are not numbered in a good way with leading zeros. Practically I cannot change it. But I have ...
0
votes
0
answers
37
views
How to get Arista Transcoder working
Arista Transcoder is a video converter for Linux that is the only one in existence that makes videos half the file size with no quality loss. When I use FFMPEG or ANY other converter on the same files,...
1
vote
1
answer
1k
views
How to compress videos properly with WebM?
Years ago when the VP8 codec came out, I used a program on Ubuntu to convert all of my files to WebM and it would cut the filesize in half. 22-minute episodes going from 300MB to under 150MB.
I think ...
0
votes
0
answers
726
views
Installing FFMPEG with AMF Support on Ubuntu 20.04.5
I'm on the AWS g4ad server instance that has AMD Radeon Pro V520 GPU. I am trying to get my ffmpeg to use the GPU when doing conversion as such:
ffmpeg -i input.avi -c:v h264_amf output.mp4
When I ...
0
votes
1
answer
92
views
ffmpeg: no background sound
I can see my video but I cannot hear some background sound. This is the command I'm using:
ffmpeg -f x11grab -video_size 1366x768 -framerate 20 -i :11 /home/userx/Desktop/out.mpg
How can I enable ...
1
vote
0
answers
171
views
Computer with Nvidia crashes after installing libsdl2-dev
I just bought an Acer Nitro 5 (an515-44-r5yz) laptop with a NVIDIA GTX 1650 card. I installed Ubuntu 22.04 on it, and the first thing I did was install Nvidia's recommended driver (520-open). After ...
0
votes
0
answers
174
views
Davinci resolve ubuntu only problem
I have this strange problem with davinci resolve and every version of Ubuntu after 21.04.
I know that this program is not officially supported on Ubuntu but maybe the problem is simple. The program ...
1
vote
1
answer
495
views
libavcodec: undefined symbol vaSyncBuffer
I just upgraded to Kubuntu 22.10, the update was successful completely minus FFmpeg.
Things I've tried:
Install an older FFmpeg from Ubuntu sources
Install master FFmpeg from source
Install FFmpeg 5....
0
votes
0
answers
234
views
Cannot convert webm to mp4 with ffmpeg + CUDA: InitializeEncoder failed: invalid param (8): Invalid Level
Here is the video: https://1drv.ms/u/s!Ao-GP3hGG9a9gvUpL_ZfCTAUrVCXSQ?e=PjLxKU, recorded by the built-in screencast tool of Ubuntu 22.04. The ffmpeg was installed via apt, and here is the output:
$ ...
0
votes
0
answers
324
views
ffmpeg undefined symbol: mpg123_param2 on
I have a freshly installed Ubuntu 22.04.1 LTS system and ffmpeg does not run:
$ ffmpeg -version
ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libopenmpt.so.0: undefined symbol: mpg123_param2
I ...
1
vote
0
answers
300
views
ffmpeg not running - libaom.so.0 not found
ffmpeg is not running in Ubuntu 22.04 LTS.
$ ffmpeg -version
ffmpeg: error while loading shared libraries: libaom.so.0: cannot open shared object file: No such file or directory
Ubuntu version
$ ...
0
votes
0
answers
464
views
FFmpeg how to convert a 32bit FLAC at 384kbps to 24bit at 192kbps?
Is it possible to do that with ffmpeg? I've noticed that there is no 24-bit listed when using the: ffmpeg -sample_fmts command in the Linux terminal:
name depth
u8 8
s16 16
s32 32 ...
1
vote
1
answer
288
views
I want FFmpeg to quit recording of mic when it detects silence below a threshold
I am trying to make a real time speech to text transcription script.
The below script works for recorded wav file.
from asrecognition import ASREngine
asr = ASREngine("tr", model_path=&...