Questions tagged [ffmpeg]

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.

266 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
4k views

Can't capture video from usb-webcam with ffmpeg

i have a hama usb webcam which works fine with the fswebcam command to capture single frames but when i try to capture a video with ffmpeg i get an error: sudo ffmpeg -f video4linux2 -i /dev/video0 ...
clamp's user avatar
  • 1,699
2 votes
2 answers
2k views

Record and display Kinect audio and video via avconv

I'm trying to record audio and video from a Kinect using avconv but I seem to have trouble specifying the right options. avconv -f video4linux2 -video_size 640x480 -c:v h264 -c:a ac3 -i /dev/video1 ...
ThomasH's user avatar
  • 121
2 votes
1 answer
816 views

Rhythmbox import error in 12.04

Rhythmbox is not able to install the MPEG-4 plugin when I import mp4 files into it. It identifies the plugin(Gstreamer), but fails to install it citing package dependency errors as following: The ...
Deepanjan Mazumdar's user avatar
1 vote
0 answers
324 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 ...
Hacker69i's user avatar
1 vote
0 answers
75 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 ...
Harry McKenzie's user avatar
1 vote
0 answers
274 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 ...
JonaPoka's user avatar
1 vote
0 answers
369 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 ->...
Jan's user avatar
  • 199
1 vote
0 answers
599 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 ...
Joe Cola's user avatar
  • 343
1 vote
0 answers
146 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 ...
Shihab Khan's user avatar
1 vote
0 answers
201 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 ...
Raphael's user avatar
  • 169
1 vote
1 answer
1k 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....
VoxelPrismatic's user avatar
1 vote
0 answers
565 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 $ ...
LEo's user avatar
  • 479
1 vote
1 answer
686 views

ffmpeg video rotation

Im using ffmpeg (version 3.4.11-0ubuntu0.1) to input a rather long security video and turn it into a very sped up timelapse video. Everything works perfect, except the resulting video is upside down, ...
alabamatoy's user avatar
1 vote
0 answers
260 views

How can I install specific version of ffmpeg in ubuntu 18.04

As mentioned above I am working on installing an older version of FFmpeg for testing. Specifically, I want to install version 3.0.10. I have tried with below command sudo apt-get install ffmpeg=3.0.10 ...
Jayesh_Joshi's user avatar
1 vote
0 answers
241 views

Compile GCC/FFMPEG libs

Could not compile cpp files and some video libs. All libs are actually installed and stored at /usr/lib/x86_64-linux-gnu/. Worked hard to search all possible ways to solve it, but still nothing. ...
jNc's user avatar
  • 21
1 vote
0 answers
478 views

Converting videos to single codec format

I simply want to convert videos, any video codec format(ex: HEVC, MPEG4) to AVC(H.264/x264) .mp4 container with audio codec AAC. I don't want to resize (scale) the video, I don't want to change its ...
Varun Shaandhesh's user avatar
1 vote
0 answers
2k views

How can I use ffmpeg to record my screen with its input and output audios?

I was trying to use ffmpeg to record my screen with its audios. I'm basing myself on the commands used on this answer. I know that I can record my screen without the audio by using the command: ffmpeg ...
raylight's user avatar
  • 493
1 vote
0 answers
217 views

Is there a way to play a video with ffplay by clicking on the video icon?

For some reason all the movies I work with cannot be played with the ubuntu Video application or VLC. Right now the only way to play them is using the excellent player ffplay from the console. My ...
KansaiRobot's user avatar
1 vote
0 answers
155 views

Is there a way to make a "sound" surveillance script?

I'm looking a way to built something like a sound surveillance box. I mean something that records audio/video on sound events captured by microphone. For example it should record 5 seconds audio/video ...
BiosRootKit's user avatar
1 vote
1 answer
3k views

Error while loading shared library libx264.so.155 :Permission denied

While starting softwares such ffmpeg and audacity, I am getting error while loading shared libraries: libx264.so.152: cannot enable executable stack as shared object requires: Permission denied . I am ...
Student Dev's user avatar
1 vote
0 answers
234 views

Why can't receive rtp stream on Ubuntu?

I am streaming the desktop over rtp using ffmpeg from computer A. Here is my ffmpeg code: ffmpeg -f x11grab -framerate 25 -video_size 1920x1080 -i :1.0 -c:v libx264 -preset fast -pix_fmt bgr0 -b:v 3M -...
Oğuzhan Karahan's user avatar
1 vote
1 answer
1k views

ffmpeg not working in php shell_exec

I am new to ubuntu and currently working with apache on localhost. I've recently installed ffmpeg using sudo apt install ffmpeg. ffmpeg is working fine in terminal but when I use it in my php script I ...
Grewal Grewal's user avatar
1 vote
0 answers
3k views

Streaming Webcam from Windows 10 to Ubuntu 18.04 via WSL2 and usbip

Background Alright so I was able to set up my Windows 10 desktop with WSL2 in order to run Ubuntu 18.04. I'm trying to get the webcam to be accessible and have picked and pieced together the following ...
Jacob Dallas's user avatar
1 vote
0 answers
428 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 ...
Byte11's user avatar
  • 203
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 ...
ilguSo's user avatar
  • 11
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 ...
Dave456's user avatar
  • 11
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 +...
Krishna's user avatar
  • 11
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 ...
Jan's user avatar
  • 199
1 vote
0 answers
643 views

Compile/build our own libffmpeg.so supporting H264

How to create/compile our own libffmpeg.so supporting H264 (or H265 too) codec, just as instruction on https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu is for standalone executable build, no ...
user17227456's user avatar
1 vote
0 answers
1k views

Delay when using modprobe v4l2loopback with ffmpeg

I will state, that for the first maybe 2/3 mins of having the camera started, it appears that the audio/video is in sync. Thats to say, there is no delay on the video. Then I hear a "click" ...
Jamie Hutber's user avatar
1 vote
1 answer
1k views

Trim a 360-degree GoPro Video in Linux?

Is there a command line (or GUI) utility to trim a 360-degree *.mov file? The file was made using a GoPro Fusion Camera. I've tried ffmpeg: ffmpeg -i File_A.mov -ss 00:00:00 -to 00:03:23 -c copy ...
user584936's user avatar
1 vote
0 answers
642 views

ffmpeg - how to repeat certain frames

I recently recorded a 1 hour talk in which at many points (about 50) the video goes blank, but the audio is still there. For example, the first instance where this happens is at time T1= 00:01:10 and ...
Rex's user avatar
  • 121
1 vote
0 answers
2k views

How to convert all mp3 audio in a folder to 8d or 9d audio in ubuntu terminal

In ubuntu terminal, is there any command to make all mp3 in a folder to 8d or 9d audio. Something like ffmpeg or other? According to mashable, 8D audio is essentially an effect applied to a stereo ...
Justine Chacko's user avatar
1 vote
0 answers
443 views

ffmpeg GPU use cuvid with hwdownload will never finished, Appeared only recently

ffmpeg: ffmpeg version N-97331-g10a68cc Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --pkg-config-flags=--static --prefix=/usr/local/...
tags bt's user avatar
  • 11
1 vote
0 answers
412 views

ffmpeg sources out of sync

When I run this ffmpeg command, it should record two identical audio channels from my microphone to output.mkv ffmpeg -f pulse -i default -f pulse -i default -map 0 -map 1 output.mkv Instead the ...
LostXOR's user avatar
  • 113
1 vote
0 answers
5k views

FFmpeg - Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory

I have a Nikon D7000 which is supported by gphoto2 and can successfully take a photo. However I cannot get this camera to work as a webcam as I thought I would be able to. Please see below: hutber@...
Jamie Hutber's user avatar
1 vote
1 answer
627 views

Wrong Webcam Driver

I have two Logitech C920 PRO HD webcams connected to my system via USB. However, one of these cameras displays the wrong name in the lsusb command output: Bus 003 Device 003: ID 046d:0892 Logitech, ...
Renato's user avatar
  • 11
1 vote
1 answer
166 views

Desktop entry to convert audio/video files (naming question)

My question: I'd like to create a desktop entry in (kde dolphins servicemenu) to convert audio/video files. I have tried it with the follwing: [Desktop Entry] Actions=Convertwav2Mp3 Icon=audio-x-...
user634093's user avatar
1 vote
0 answers
727 views

how can I apply echo cancelation to audiofiles on ubuntu 19.10?

it is possible to apply echo cancellation to microphones while they are recording, e.g. like this How can I apply the same filter to audio files that already exist? If there was a ffmpeg filter for ...
wotanii's user avatar
  • 129
1 vote
2 answers
129 views

AWK function filter log

I want to read a log and make some decisions depending on what is happening with my program. My script is based on ffmpeg and I am redirecting the stdout to make the log. Then I am reading the log to ...
Pablo Llorach's user avatar
1 vote
0 answers
113 views

Select files and merge with same filename but different extension

I have a bunch of MP4s and Wav files in a folder with the same filenames, different file extension. I want to replace the audio in the video files with the wav. i.e. something like this: for i in *...
beek's user avatar
  • 201
1 vote
0 answers
551 views

Artifacts when playing a video

When I play a video with mpv (xubuntu 18.04 LTS), every couple of minutes, there are what I'd call a "keyframe" artifacts. Basically it seem like the video failed to decode a keyframe and continues ...
JonnyRobbie's user avatar
1 vote
0 answers
2k views

How to solve issue with ffmpeg being stuck at 'Opening an input file'

I am using a capture card to capture HDMI audio from another machine. On my host, output of arecord -l is as follow: **** List of CAPTURE Hardware Devices **** Home directory not accessible: ...
zv989's user avatar
  • 11
1 vote
0 answers
710 views

HTML5 embedded videos not working after upgrade to 19.04

I am not really sure what is going on. I am doing some web development, and when I embed any videos or go to a "browser supported video type tester" site this is all I get. I didnt have this issue ...
Brett Plemons's user avatar
1 vote
0 answers
1k views

mp4 files get corrupted when transfering them to ubuntu 18.04

This seems like a weird issue, so I've transfered some mp4 files to Ubuntu via FTP and some of them seem to be broken, more specifically the header, I get this message when I try to play them with VLC:...
Fercho54's user avatar
1 vote
0 answers
36 views

How do I know which video API I'm using?

I'm looking into ffmpeg hardware suport for different video APIs: https://trac.ffmpeg.org/wiki/HWAccelIntro I'm running Ubuntu 18.04 on Intel i7 7th gen. How do I know which of these video APIs I ...
Guerlando OCs's user avatar
1 vote
0 answers
4k views

ffmpeg conversion is very slow - How to optimize it?

I am cropping and splitting a video of size 13476*1500 into 4 parts, below is the filters. The conversion is very very slow! Is there a faster way to convert the videos? please help! And also i want ...
user3416431's user avatar
1 vote
0 answers
148 views

How can I use checkinstall to replace multiple packages?

I'm building my own ffmpeg package using checkinstall, with all of the various ffmpeg libraries included. In the Ubuntu package repos these ffmpeg libraries are broken up into many separate packages. ...
Sean W.'s user avatar
  • 240
1 vote
0 answers
361 views

Extract GOP structure of a given video

I'm trying to get something like: IBBBPBBBPBBBIBBBPBBBPBBBI... In example below, this video is of M=4,N=12 type, i.e distance between two I-frames is 12 and there are the most 3 adjacent B-frames. ...
mk1024's user avatar
  • 669
1 vote
1 answer
2k views

Gerbera to transcode *.avi videos to h264 mkv?

I bought a Samsung SmartTV which do not support DIVX/XVID codec, so any of the old *.avi files I have work. While I can always convert them, I have other devices in my DLNA network which supports ...
StormByte's user avatar
  • 111