Questions tagged [ffmpeg]
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.
871
questions
0
votes
1
answer
1k
views
ffmpeg can't access file
I have seen this problem several times here or in other forums, usually user could not access the home folder. I have no problem with the home folder, ffmpeg works just fine there.
But in my folder on ...
0
votes
1
answer
640
views
youtube-dl is not downloading with specified format?
So I'm trying to execute the following command. It downloads fine but although I specify bestaudio and --audio-format wav it does not download audio. And I cannot seem to be able to open the output ...
3
votes
3
answers
2k
views
Bash script to run FFmpeg concat on MP4 files in batches of 5
I like to create a Bash script to concatenate MP4 files using FFmpeg, in batches of 5 files at a time for a directory with 100 MP4 files, so that afterwards there would be 20 files like:
001_005.mp4, ...
3
votes
1
answer
3k
views
Use custom video to feed camera
What I am trying to achive is to redirect my camera /dev/video0 with a custom video file.
Desired Reasult:
When opened a application like cheese or websites like jitsi which process the buffer from my ...
5
votes
2
answers
13k
views
FFMPEG permission denied trying to covert video
This problem started for me on 18.04, and I tried to fix it then, unsuccessfully. I've recently upgraded to 21.04 on a new hardware and the problem persists.
I installed ffmpeg 4.3.1 from the Ubuntu ...
1
vote
1
answer
452
views
Installing ffmpg-concat on Ubuntu 20.04
I would like to install ffmpeg-concat
on Ubuntu 20.04.
I get this error:
(django-con-video) guettli@yoga15:~/django-con-video$ npm install --save ffmpeg-concat
npm WARN deprecated [email protected]: ...
1
vote
2
answers
1k
views
How to rotate a specific part of a video file?
I have a large video file (2.2 GB) and one part of the video is not oriented in the correct way: the first part is fine, but the second part is rotated by 180 degrees (480*1066 pixels). To solve the ...
0
votes
0
answers
410
views
NGINX Stream Push with FFMPEG - VPS 4-Core 8-GB Ram
Hallo Guys and a nice Weekend!
I try over Weeks to get my Stream not lagging but its happend every 6 second.
I run a Ubuntu 16.04 with this Tutorial installation:
sudo apt-get update
sudo apt-get ...
0
votes
2
answers
698
views
Any lightweight video editors for Ubuntu?
I need to do some simple video editing like attaching two videos together (like this question) which could be done by these commands :
echo file "./simplescreenrecorder-۲۰۲۱-۰۵-۱۵_۱۱.۳۴.۲۵.mp4&...
0
votes
0
answers
100
views
Is there an audio converter frontend that can handle tags and uses ffmpeg as backend?
I am especially interested in possibility to use a custom build of ffmpeg and use exactly the encoder I want; something like soundconverter otherwise.
3
votes
2
answers
780
views
Troubleshooting trying to use Canon DSLR as webcam
I'm following this guide trying to use my Canon EOS 550D as a webcam. It is listed as supported by gphoto2.
So, I connected my Canon to my laptop using a USB-cable, and I had no problems running
$ ...
1
vote
1
answer
999
views
How to cut small portion of a video [duplicate]
I would like to remove a small portion (around 10 seconds) of a long video (2 hours). How can I do it using FFMPEG?
1
vote
1
answer
2k
views
FFmpeg hardsubbing using force_style, fontname fontsdir, subtitles, and ass filter
ffmpeg -y -i "/storage/0040-18A0/Music Videos on YouTube/TO be synced/ICSM dance.mkv" -c:s copy -q:s 0 -c:a copy -c:d copy -c:v mpeg2video -q:v 0 -map_metadata 0 -vf "scale=1920:-1,...
0
votes
1
answer
3k
views
How to get HRTF sound on Linux
I recently switched from macOS to Ubuntu, and there's only one thing I miss: It's the Boom3D application, which allows you to apply effects on music, especially the "Spatial Audio" effect ...
-1
votes
1
answer
2k
views
avconv Unknown encoder 'libx264' i try all solution but not working
I have this problem with avconv:
Unknown encoder 'libx264'
For adding subtitle I use:
avconv -i video.mp4 -map 0:0 -map 0:1 -c:v libx264 -aspect 16:9 -q:v 1 -b:v 512k -strict -2 -c:a aac -ac 2 -...
1
vote
1
answer
1k
views
ffmpeg: mp4 to camera: Conversion
I found the following question and tried to send a mp4 video to my camera:
Is there any way ffmpeg send video to /dev/video0 on Ubuntu?
I used the following command:
ffmpeg -re -i fakezoom.mp4 -map 0:...
1
vote
1
answer
1k
views
How to replace integrated subtitle with external subtitle using ffmpeg?
I want to replace the subtitle present in Stream #0:6(eng) with an external subtitle.ass
video information
Input #0, matroska,webm, from 'input.mkv':
Metadata:
creation_time : 2021-03-06T17:59:...
13
votes
2
answers
16k
views
How to change default audio track using FFmpeg?
I want to change the default audio track from Portuguese to English in the file input.mkv.
The video contains 4 Audio Tracks: Portuguese (Default), Spanish, English and Japanese. I would also like to ...
2
votes
3
answers
20k
views
How to convert MKV to MP4 using ffmpeg keeping all video, audio tracks and subtitles?
I have been trying to convert mkv to mp4 using
ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4
The input.mkv has two different audio track and one subtitle .
But the problem I am getting is ...
0
votes
2
answers
149
views
How does one get Firefox media playing on Ubuntu 20.04?
I have a brand new Ubuntu 20.04 running on my new computer. YouTube videos play without a glitch, but no other audio/video can play. H/W accelerator is off. When I try to install ffmpeg, I end up ...
2
votes
2
answers
5k
views
What is the difference of installing ffmpeg through snap and apt-get?
I was not able to view built-in videos on twitter and other websites so I wanted to install ffmpeg. I ran the command snap install ffmpeg and it didn't work but after running the command sudo apt-get ...
2
votes
3
answers
2k
views
How can I convert an .mkv file to .mp4 and keep the subtitles?
I've been trying to convert an .mkv file into .mp4.
With VLC the subtitles got lost.
Then I've been trying ffmpeg:
ffmpeg -i video.mkv -codec copy video.mp4
The conversion has been very fast, the ...
1
vote
1
answer
2k
views
How to live stream(raw format/bytes) audio from pulseaudio sink to a local UDP server?
Im using tricks from following link and able to record audio into file
Record a program's output with PulseAudio
I have been tweaking commands and trying to stream bytes to a UDP server. This is ...
0
votes
0
answers
1k
views
Re-wrapping MXF OP1a media into MXF OP-Atom files
I have app the records MXF's in OP1a and I need to re-wrap them into OP-Atom files. Is there an FFMpeg command that I can use in terminal that will do this?
I need to batch re-wrap a files and this ...
1
vote
0
answers
429
views
How Can I Record System Audio and Send it to a Named Pipe on a Headless System?
I've got a named pipe at ~/audio/stream that I want to send a copy of all my system audio to. The other side of this pipe is being read by a docker container and played using aplay. I know the other ...
4
votes
1
answer
5k
views
ffmpeg unknown decoder 'libx265'
When I try to make a new video with ffmpeg using this command
ffmpeg -f image2 -pattern_type glob -framerate 12 -crf 10 -vcodec libx265 -i *.jpg output.mp4
I get this error message
Unknown decoder ...
0
votes
1
answer
269
views
Using Kubuntu to accelerate FFmpeg using Nvidia GPU
I’ve installed Kubuntu so that I can run FFmpeg to join a large number of tiff files into a video. The tiffs are produced by a video enhance program that exports each frame of the video as a tiff.
I’...
1
vote
0
answers
557
views
Raspberry Pi 3 - How to install FFMPEG using python newest version
I'm trying to install FFMPEG on Raspberry Pi 3, with libx265 support (H265 coding).
The main purpose is to batch transcode h264 videos on my HD and convert them to h265 to save space on disk.
I found ...
5
votes
2
answers
8k
views
screen recording with ffmpeg
I need to record but only the active window AND without audio: I'm using this command but it records all screen (with application bar)
ffmpeg -f x11grab -video_size 1920x1080 -framerate 25 -i :0.0+...
12
votes
1
answer
14k
views
Could not find tag for codec pcm_s16le in stream #1, codec not currently supported in container
I have a very old .AVI file and am trying to convert this into MP4 format with FFMPEG
Here is my current command to try and convert:
ffmpeg -i aVideo.avi -s 1980x1080 -c:a copy aNewVideo.mp4
I am ...
1
vote
0
answers
413
views
FFmpeg: Trying to encode all video files in folders and subfolders
I'm trying the following:
Encode all videofiles that are in the folder/directory and below (in
subfolders/directories)
only encode videofiles bigger than 2 GB
encode to h265 including all audio en ...
0
votes
1
answer
139
views
I want to create a video of same resolution as of image
I am able to create a video from image and audio.I am using a single image.The problem is that as i crop the image and creates video again then image pixels get burst in that video.
I am using this ...
5
votes
1
answer
2k
views
ffmpeg freezes using webcam at 1080p or 60fps - Logitech Streamcam OBS Studio
I need to use my Logitech Streamcam webcam at 1080p (1920x1080) at 60fps but it neither work in OBS Studio, nor in guvcview nor if I want to save the output as a video file, ffmpeg freezes :( Thanks ...
0
votes
0
answers
730
views
Installing ffmpg 3.4.8 on 20.04
I'm trying to install ffmpeg 3.4.8 on my wsl ubuntu 20.04 distro.
apt madision and snap only offer me 4.2.* versions.
Building from source fails with:
gcc is unable to create an executable file.
If ...
0
votes
0
answers
642
views
ffmpeg / ffplay DSLR help
I use the following command with ffmpeg to create a virtual webcam in linux 18.04 for my DSLR camera:
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f ...
1
vote
1
answer
913
views
FFmpeg broken after upgrade to 20.04
After upgrading Ubuntu from 18.04 to 20.04, ffmpeg no longer works. Running FFmpeg with any arguments (or none) prints this message:
$ ffmpeg
ffmpeg: error while loading shared libraries: libcdio.so....
9
votes
3
answers
29k
views
Changing sample format and bit depth on audio files with ffmpeg
I recorded and mixed down a CD worth of homemade music with Ardour and stupidly exported all the songs in 48 kHz and 24 bit. Now I need it in 44,1 and 16 bit in order to have CDBaby take it and give ...
0
votes
0
answers
410
views
How to run pynput and FFMPEG script using CRONTAB?
I need to start three python3 scripts and a shell script using crontab. These scripts should run at the same time without any delay. Each script runs exactly for one minute. For instance, I have ...
0
votes
1
answer
472
views
CronJobs not working on video script
I've basically installed ffmpeg on a vps with 20.04 ubuntu
I am trying to create a video in /home/ubuntu/video folder - so i am asking script to select all jpeg files in that folder
ffmpeg -f image2 -...
3
votes
1
answer
1k
views
How to make ffmpeg-normalize work on Ubuntu?
In the past I had ffmpeg-normalize, now I don't, I don't remember how did I get it.
Now I tried to install it with pip3, but when I type ffmpeg-normalize... it says ffmpeg-normalize: command not found
4
votes
2
answers
8k
views
Shorten a .gif file with ffmpeg
Is it possible to shorten a .gif file through FFmpeg?
I need to upload a .gif but the service I'm using only allows a max filesize of 30mb (the file is 35.4mb)
1
vote
1
answer
2k
views
FFMPEG can not open display error for :1
i am using Xvfb for starting X server on display 1 and x11vnc is also set for -display :1 along with fluxbox as window manager on Ubuntu 20.04 LTS like using below commands
sudo -i -u ubuntu Xvfb :1 +...
4
votes
2
answers
2k
views
saving the first and second 2 minutes of a wmv video in Ubuntu Terminal
How can I cut the first two min of a 10 min video and save it as first_2min.wmv and then the second 2 min saved as second_2min.wmv without any change to the settings of the video in Ubuntu command ...
0
votes
0
answers
44
views
How I can I add audio to my ffmpeg cli
I want to add audio to my ffmpeg cli bellow
ffmpeg -framerate 25 -video_size 1920x1080 -f x11grab -i :0.0 -vf format=yuv420p http://localhost:8080/feed.ffm
1
vote
0
answers
1k
views
Cannot update FFmpeg library?
I am running Ubuntu 20.04. When using the Software Updater I notice that it indicates that there is a security update for the FFmpeg library available. However, the selection box is not ticked. And I ...
0
votes
1
answer
380
views
Why can't record audio in the speaker and mic at the same time?
List sound card info on my pc.
pacmd list-sources |grep name:
name: <alsa_input.usb-SN0002-02.analog-mono>
name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
name: <...
3
votes
1
answer
9k
views
error :Queue input is backward in time when to capture audio with ffmpeg
Show all sound card in my pc.
pacmd list-sources |grep name:
name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
Now to ...
-1
votes
1
answer
837
views
convert multivideos from 1080p to 720p and add watermarks? [closed]
i will ask again
i have many videos like series (dark - la casa de papel - game of thrones )
all of them without any subtitle or watermark
first i burn subtitles with handbrake
sec i use ffmpeg to ...
2
votes
2
answers
1k
views
Converting directory full of h264 to images
first time here. Please be gentle. let me know what I missed out on and I will correct it.
my question is similar to this. So, I am hoping to get an answer for my specific query too.
How can I convert ...
2
votes
2
answers
2k
views
Error when installing opencv (any version) on Ubuntu 18.04
I got an error in make command in opencv.
[/usr/bin/ld: /usr/local/lib/libavcodec.a(vc1dsp_mmx.o): relocation R_X86_64_PC32 against symbol `ff_pw_9' can not be used when making a shared object; ...