Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ffmpeg]

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

1
vote
1answer
35 views

How to rollback ffmpeg version to desired version? Is rollback needed in this scenario?

This is a ubuntu 16.04 running on armhf board. I use ffmpeg for recording video from webcam. The process kind of works best in a version of the ffmpeg. I want to install/rollback to the particular ...
1
vote
0answers
59 views

How to use GPU acceleration in FFmpeg with AMD Radeon?

I have a Radeon Vega 64, and installed AMDGPU from the official website, but I have no idea where to go from here. I want to use hardware acceleration for converting video with FFmpeg. What is the ...
1
vote
1answer
79 views

How to cut and merge mp4 video files without re-encoding

Using Ubuntu 18.04 I have some screencast video files in mp4 container (h.264/mp3 codecs) that I want at times merge (i.e. C.mp4 = A.mp4+B.mp4) or at times cut removing some intervals (e.g. D.mp4 = A....
-1
votes
0answers
20 views

ffmpeg using tls protocol stream the video securely

I want to stream video securely and i am using Ubuntu: console1 /home/ajithmsm/ffmpeg -stream_loop -1 -i out.mp4 -vcodec copy -f mpegts tls://127.0.0.1:2222?listen'&'cert=domain.crt'&'key=...
2
votes
2answers
49 views

Locating multiple ffmpeg installations

I use multiple tools that rely on ffmpeg, a couple of which have downloaded different versions of ffmpeg from the one provided in the package repositories (e.g., mpv and moviepy via imageio). The ...
1
vote
1answer
49 views

ffmpeg: how to include a later starting dvb-subtitle stream?

$ ffmpeg -i fa1.m2t -ss 0:02:22 -to 01:34:17 -map 0:1 -map 0:2 -map 0:6? -c:v libx265 -crf 28 -preset ultrafast -c:a aac -b:a 128k -c:s copy fa1.mkv The streams are: Input #0, mpegts, from 'fa1.m2t':...
0
votes
0answers
85 views

Unable to install ffmpeg on Ubuntu 18.04.1 LTS

I seem to be having issues installing ffmpeg on my server machine, I have tried multiple resources online including adding different PPA's but none of them seem to have worked so I have since removed ...
0
votes
0answers
26 views

FFMPEG screen record with audio

I am trying to record screen with ffmpeg, with audio of the applications. I'm using Alsa for the audio input. As the documentation here, I'm able to record the screen, however, the audio does not get ...
1
vote
0answers
19 views

BPM analysis of streamed audio

I need to determine bpm from streamed audio, like playing YouTube, bandcamp, mixcloud, etc., so the input has to be the current audio device, not a file. I am struggling to find the correct options ...
1
vote
0answers
68 views

How to remove chapters from mkv metadata

How do you remove chapters from mkv metadata on command line? Can ffpmeg be used for this?
1
vote
1answer
80 views

Merging mkv file chapters into one chapter

How would you merge chapters in mkv files into one chapter? I've only found threads about adding, removing and splitting chapters. I'm looking for a command line tool. Can ffmpeg be used for this?
0
votes
1answer
530 views

How do you install avconv on Ubuntu 18.04?

I am trying to install avconv by running the following command, but the library doesn't exist anymore for Ubuntu 18.04. sudo apt-get install avconv It is told on other Ubuntu forums to replace the ...
1
vote
0answers
42 views

Convert .h264 to .mp4, with timings

I am recording from a Raspberry Pi Camera to an .h264 stream. I have each frame as well as its presentation timestamp. How can I convert this to an .mp4 file? Specifically I need to be able to provide ...
0
votes
1answer
34 views

How to link ffmpeg libs to my C program

I am new to Linux/Ubuntu. I just installed ffmpeg via terminal (sudo apt-get install ffmpeg). I found a tutorial on in it with C programming. The tutorial doesn't show how to link the libs as ...
0
votes
0answers
37 views

Sound doesn't recording if running FFMPEG as other user

Works: I'm trying to record video from my Logitech webcam and sound from the headset. I can record it without a problem from the terminal using the following logged in as "myuser": /usr/bin/ffmpeg -...
0
votes
0answers
59 views

moving text in video with ffmpeg always 3 minute

I have a problem. I have found a tutorial on how to add text in videos using ffmpeg. but I want every 3 minute. I get the script only 10 second 1 time. I want 3 minute 1 time. my script: ffmpeg -i ...
0
votes
1answer
37 views

ffmpeg relocation error

I've tried to install FFmpeg from the default repository on 18.04. ffmpeg: relocation error: /usr/lib/x86_64-linux-gnu/libswresample.so.2: symbol av_calloc version LIBAVUTIL_55 not defined in ...
1
vote
1answer
46 views

How to encode / convert a complete folder using ffmpeg?

I have 20 music videos in one folder and I want to change the quality from 1080p to 720p with ffmpeg, because I'm tired of having to convert every single file. So I want to ask for a solution how to ...
0
votes
0answers
108 views

convert 720p to 1080p 60fps ffmpeg

I'm confused where to ask. I want to ask, please give the encode script to convert the video I made from 720p to 1080 60fps. when I check the video I can't reach 60fps if I use the script below ...
0
votes
0answers
94 views

Multicast stream cannot be accessed by server even it's reaching the interface

My ISP offer me IPTV via multicast MPEG-TS that I want to stream via unicast to some devices (like tablets). I have Ubuntu 18.04 with two interfaces eth0 and eth1. I want to stream multicast with ...
1
vote
1answer
89 views

How to bulk extract bitrate data from videos and output them in a text file?

I have several videos in a folder; ~/Downloads/movie1.mkv ~/Downloads/movie2.mkv ~/Downloads/movie3.mkv I would like to extract the bitrate for each file, and output the data into a single text file,...
0
votes
0answers
38 views

How to install FFMPEG on Ubuntu 18.04.1 server ? Thank you [duplicate]

Searching hours online, none of the following methods works, please advice. sudo add-apt-repository ppa:jonathonf/ffmpeg-3 sudo add-apt-repository ppa:jonathonf/tesseract sudo apt-get update sudo ...
0
votes
0answers
93 views

How Encode 10bit 1080p .mkv file to 10bit 720p .mkv using ffmpeg

How Encode 10bit 1080p .mkv file to 10bit 720p .mkv using ffmpeg. Can anyone provide the full command line from beginning to end with best quality and the least file size?
1
vote
1answer
49 views

How can I record an mp4 video from a webcam with a different audio source with FFMPEG?

I'm trying to use this command, but the result is laggy, stops sometimes and the audio is gone after 1 second. Audio + Video - doesn't work ffmpeg -f alsa -i hw:0,0 -f v4l2 -input_format mjpeg -i /...
1
vote
1answer
54 views

ffmpeg -ss flag does not work

I'm trying to split an audio file as follows: ffmpeg -i file.mp3 -vn -acodec copy -ss 00:00:00 -t 00:03:21 01-track1.mp3 ffmpeg -i file.mp3 -vn -acodec copy -ss 00:03:21 -t 00:08:26 02-track2.mp3 ...
1
vote
0answers
513 views

Ubuntu 18.04.1 playing MP4 doesn't work

Installed on three (one dell latitude laptop, one dell all-in-one and one ASUS desktop) systems Ubuntu 18.0.1. After install cannot play, with standard installed Totem player, on any of the systems ...
0
votes
0answers
123 views

ubuntu 18.04 get ffmpeg libs

I received a binary that depends on the libs libavcodec-ffmpeg.so.56 libavformat-ffmpeg.so.56 libavutil-ffmpeg.so.54 libswscale-ffmpeg.so.3 However, these libraries are not available anymore in 18....
3
votes
2answers
114 views

Double file extension with FFmpeg

I'm trying to get FFmpeg to go through all files and sub-folders under the path I run the command in, to convert any MKV file to an MP4 container instead. I've got the below command working but the ...
1
vote
1answer
327 views

Failure in FFMPEG compilation on Ubuntu 16.04 - ‘AOM_ERROR_RESILIENT_PARTITIONS’ undeclared here (not in a function)

After I had solved the compile issue with libfdk-aac (Failure in FFMPEG compilation on Ubuntu 16.04 - recipe for target 'libavcodec/libfdk-aacenc.o' failed), the new problem in compiling ...
2
votes
1answer
416 views

Failure in FFMPEG compilation on Ubuntu 16.04 - recipe for target 'libavcodec/libfdk-aacenc.o' failed

I had followed up the installation steps which was documented on https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu , and I had installed the FFMPEG with libfdk_aac support successfully on Ubuntu 16....
0
votes
1answer
49 views

FFMpeg Alsa: Understanding hw:#,#,#

I have seen somewhere when we need to capture audio from Alsa in FFMPEG screen capture, we specify the hardware hw:, for eg, hw:0,1,0. From the official doc, I understand hw:X,Y see here Can someone ...
1
vote
0answers
225 views

How to use a hardware device for HW-accelerated encoding with `ffmpeg` `snap`?

Using the ffmpeg package 18.04 from apt I can encode a video hardware-accelerated in HEVC on Kaby Lake: ffmpeg -vaapi_device /dev/dri/renderD128 -i input.mkv -vf 'format=nv12,hwupload' -c:v ...
2
votes
1answer
229 views

How to convert an mp4 video by 180 degrees using ffmpeg or mencoder

After reading about how to convert a video by 90 degrees I tried these commands: mencoder old.mp4 -oac lavc -ovc x264 vcodec=mpeg4 -vf flip,mirror -o new.mp4 mencoder old.mp4 -oac lavc -ovc x264 ...
3
votes
1answer
229 views

how to use ffmpeg to crop a video in a terminal

How can i use ffmpeg to crop a video ffmpeg -i in.mp4 -filter:v "crop=500:500:20:20" Vid-out.mp4 ffmpeg -i in.mp4 -filter:v "crop=W_:H_:W_:H_" Vid-out.mp4 what I'm trying to figure out is, how ...
0
votes
0answers
59 views

ffmpeg gives blur video on integrating video and audio file outputs Non-monotonous DTS

ffmpeg -i video.mp4 -i audio.mp4 -c copy temp.mp4 generates this output [mp4 @ 0x555b32be8700] Non-monotonous DTS in output stream 0:1; previous: 7065234, current: -8829966; changing to 7065235....
1
vote
1answer
56 views

Nautilus Bash Script, how to delete old files after FFMPEG conversion?

I am writing my first ever Nautilus script but I am not sure how to continue. What do I need to add to this nautilus script so that all MP4 files in the folder are deleted after FFMPEG finishes ...
0
votes
0answers
21 views

Problem installing OBS Studio on Ubuntu 18.04.1 [duplicate]

I need to install OBS Studio in Ubuntu 18.04.1 LTS, but I have a problem in while updating: $ sudo add-apt-repository ppa:obsproject/obs-studio [sudo] contraseña para leonet: Latest stable release ...
1
vote
1answer
61 views

Shell Script to Repair Video Files

I am trying to write a shell script that will repair every .mkv file in a directory using this command ffmpeg -i filename.mkv -c copy filename-fixed.mkv I had to recover a disk with hundreds of ...
0
votes
0answers
55 views

Stabilize video only vertically

I took a time lapse series of sunset pictures from a cruise ship, and now I want to make a video of that. Thing is, the ship movement was more noticeable on the final pictures than I expected, so the ...
1
vote
3answers
423 views

libavcodec - codec not found

I am trying to run this program from ffmpeg c documentation. It is compiled successfully. But showing "codec not found" when I am trying to execute. I am using below command to compile. gcc -o ...
2
votes
2answers
157 views

ffplay thinks stream is 5.1(side) and not 5.1

When I try to play my 5.1 flac files with ffplay, it automatically detects the stream thusly: Duration: xx:xx:xx.xx, start: 0.000000, bitrate: xxxx kb/s Stream #0:0: Audio: flac, 48000 Hz, 5.1(...
0
votes
1answer
142 views

Bash script to keep running command until a certain condition - ffmpeg

I am running the below command, to reduce the size of a mp4 video ffmpeg -i input.mp4 -acodec mp2 output.mp4 After the output is created, I run the command again on the output and so on, because the ...
0
votes
1answer
260 views

How to Record Audio from Application

I am trying to record my screen and the audio from my speakers using ffmpeg. This works fine on my tower PC with Ubuntu 18.04, but does not work using my thinkpad. On the tower PC, this works fine ...
0
votes
2answers
532 views

install FFmpeg codecs to make gifcurry work

I'm trying to use gifcurry on Ubuntu 16.04 but I get the following warning which will not allow me to select my mp4 I created in KdenLive. I installed gifcurry as instructed on the site. It opens up ...
0
votes
1answer
210 views

install ffmpeg package 7:3.4.2-2build2

How install ffmpeg package 7:3.4.2-2build2 and ffmpeg install package in https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu. When I convert a movie to the following error message. How should I fix ...
1
vote
1answer
180 views

error encoding video hevc no sound

I use this comand, but the output video has no sound, can you help me? ffmpeg -y -i "{input}.*" -r 30 -g 50000 -q 22 -filter:v scale=650:-1 -c:v libx264 -c:a aac -b:a 320k -ar 42000 -pix_fmt yuv420p -...
0
votes
0answers
49 views

Run script when virtual camera is turned on

I know that using the v4l2loopback it is possible to create a virtual webcam or video device, which we can feed by sending streams using tools like ffmpeg. It would be very nice to run a script ...
1
vote
1answer
216 views

How to compile and integrate ffmpeg with openssl support?

How can I cross-compile FFMPEG for ARM with openssl support? I have tried normal compilation of FFMPEG, but I need openssl support also.
15
votes
1answer
2k views

Redirect real webcam to a virtual webcam via terminal

Is there a way to redirect a real webcam to a virtual webcam from the command line, for example using the v4l2loopback module with ffmpeg ? Details I have an old webcam which works with most ...
1
vote
0answers
42 views

Combine an image and audio file to create a Video in Ubuntu 18.04 [duplicate]

I am trying to create a video file(can be any format) from an image file(also any format) and a mp3 audio file. I found that we can use ffmpeg and tried the answers here: The following produces a ...