Stack Exchange Network

Stack Exchange network consists of 175 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 free software project aimed at producing tools (libraries and programs) for handling multimedia data.

1
vote
0answers
15 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. ...
0
votes
1answer
41 views

FFmpeg claims OpenSSL is not compatible with GPL v3?

FFmpeg says in the 4.1 docs, The Fraunhofer FDK AAC and OpenSSL libraries are under licenses which are incompatible with the GPLv2 and v3. To the best of our knowledge, they are compatible with the ...
2
votes
1answer
29 views

How do I run an on-the-fly ffmpeg (pipe) conversion in parallel?

I want to do the following conversion: for f in *.m4a; do ( ffmpeg -i "$f" -f wav - | opusenc --bitrate 38 - "${f%.m4a}.opus" ) & done I know I could use ffmpeg directly to convert to ...
1
vote
1answer
42 views

How do I reduze the size of a video to a target size?

I want to reduce the size of a video to be able to send it via email and such. I looked at this question where I got good advice on how to reduce it. Problem is that I need to manually calculate the ...
1
vote
1answer
29 views

If both Chromium and ffmpeg run in Linux, which gets the GPU?

ffmpeg and chromium-browser both support hardware accelerated graphics using the GPU. Say for example I have a machine that has one NVIDIA GPU in it; which app uses the GPU? Does the first ...
1
vote
0answers
76 views

Why is VLC Media Player playing videos like this?

Please see the short GIF recorded screencast of the problem in action. This is how all videos open and play, I cannot see a darn thing, just these big colored bars where the color is taken from the ...
2
votes
1answer
199 views

gnu parallel how to use with ffmpeg

I have folder that contains some mp4 files I want to extract images from each of them in parallel and save it as: filename_number.bmp where filename is the input filename how to do that using ...
1
vote
1answer
88 views

How to include input file name in output file name in ffmpeg

I want to extract frames as images from video and I want each image to be named as InputFileName_number.bmp.  How can I do this? I tried the following command: ffmpeg -i clip.mp4 fr1/$filename%d.jpg ...
0
votes
2answers
78 views

Pipe and filter bash outputs in realtime

I am running some commands in bash (basically some ffmpeg commands), that I'm using grep and awk to filter out the results. The command takes some time and continously outputs some results as it ...
1
vote
1answer
55 views

How to randomly sample a subset of a song on command line

From the command line, I'd like to play a audio clip, or random subset of a song, eg, seconds 5 - 10. This does not seem to be a feature of paplay or mpg123, the two programs I've been using. ffmpeg ...
0
votes
0answers
23 views

Force stream order in ffmpeg (via mpv)

What is the preferred way to force ffmpeg (via mpv) to order the streams with video first and audio second? Wrong stream order can result in playback problems or certain sites rejecting the webm for ...
-1
votes
1answer
29 views

Accelerating Video Conversion

I like to compress large video files before storing them to hard disk. In Fedora-29-bash, I currently use the following ffmpeg command for re-encoding; it balances compression with quality: ffmpeg -...
0
votes
1answer
58 views

How to embed current time with ffmpeg?

I'm using ffmpeg combined with tee and mplayer to have a simple video livestream and recorder over SSH. Now, I'd love to embed the current (server) time in the stream. The format doesn't matter much, ...
0
votes
0answers
145 views

ffmpeg black screen recording

When I record my desktop or recording video with ffmpeg it generates a black video. My operating system is Ubuntu 18:04 bionic kernel 4.16 Here is the command I'm using : ffmpeg -f x11grab -s ...
0
votes
1answer
165 views

error ffmpeg Cannot open display :0.0+0,0, error 1. :0.0+0,0: Input/output error

Hello I get this error when i want to capture my screen on linux with ffmpeg ubuntu 16:04 : the command i'am using : $ ffmpeg -f x11grab -r 15 -s 1920x1080 -i :0.0+0,0 -vcodec rawvideo -pix_fmt ...
0
votes
1answer
37 views

ffmpeg - how to split a .aac audio-file into small parts, exactly 4.00 seconds in size (so ignoring keyframes)

How can I split the audio file .aac into small parts of exactly 4.0 seconds, ie. with ignoring keyframes? The original video file was in .mp4 format. From this video file I got an .aac audio file. ...
0
votes
1answer
54 views

Creating a for loop with find -exec and while

I am trying to make this script that loops through video files created between hours 00 and 12, convert them with ffmpeg and then remove them. The script works in terms of finding the files and ...
0
votes
1answer
99 views

RTSP via ffmpeg

I have 4 noname ip-cams and have troubles with capturing rtsp streams. Randomly output file not even created. I'm capturing stream via ffmpeg. Tried on Ubuntu Server 18.04 with snap ffmpeg and Debian ...
0
votes
0answers
43 views

FFmpeg: Record Camera IP with pcm_alaw into mp4 containter (only .ts works)

i'm trying to record my camera ip with ffmpeg but since it has a (damn) pcm_alaw audio codec it cant be recorded straight into mp4 container - or am i wrong? But looks like when i record stream into ....
0
votes
0answers
37 views

Bash - find certain files and remux with ffmpeg then delete the old one

i just would like to use this command: for i in *.ts; do ffmpeg -i "$i" -c:a aac -b:a 128k -c:v copy -crf 20 "${i%.ts}.mp4"; done but only for a specific files like: above 350 000KB size or created ...
1
vote
0answers
44 views

How to modify blended video durations with a -filter_complex command argument in ffmpeg

Building off the solution provided in this thread, I'd like to know how to make simple modifications to a complex command argument which uses ffmpeg to interweave two videos by dissolving them into ...
0
votes
1answer
101 views

ffmpeg snap package error in Debian 9: libGL error: unable to load driver: r600_dri.so

I am using Debian 9 with an older Radeon GPU (5450). I am interested in using the snap package of ffmpeg (which is version 4.1) because of some issues I may be able to fix with the newer snap instead ...
0
votes
0answers
55 views

How do I extract only certain parts of ffmpeg's standard output as it processes a file?

I want to enter a command that only shows these two lines of ffmpeg's output and I want to see it as it processes a file: from 'input_file.mkv': frame=172534 fps=4622 q=-1.0 Lsize= 8319963kB time=01:...
0
votes
0answers
40 views

convert two channels into a single channel left or right with ffmpeg

I have some .wav files and I would like to convert their frequency (fs) and number of channels (nchannels). I am using ffmpeg on a jupyter notebook, python3.6 but using linux command line with a ...
1
vote
1answer
49 views

How to extract the “stored frames” without rely on fps?

I noticed if I extract frames with this command: ffmpeg -i sample_nosound.mp4 $filename%03d.jpg It will extract depends on fps by default. ffmpeg -i sample_nosound.mp4 shows this video has 6 fps, so ...
0
votes
1answer
142 views

ffmpeg permissions trouble

Try to capture RTSP stream with ffmpeg. Everything goes nice, if I save video to my home folder. Can't save to another directory. ffmpeg says 'Permission denied' even directory premission is 777. In ...
0
votes
1answer
157 views

Convert all video files in a folder to images per frame using ffmpeg iteratively

I use ffmpeg -i FILE_NAME -vf fps=1/1 FILE_NAME%05d.jpg -hide_banner to convert a single file to several images which keep the file name followed by 5 zeros, a counter and then ends with a .jpg. How ...
0
votes
2answers
81 views

How to highlight terms in an output that has a live update?

I'm doing a loop over ffmpeg to convert a bunch of videos, and I would like to highlight some terms in ffmpeg's output. But the solution I tried always made the live progress of the conversion ...
0
votes
2answers
297 views

ffmpeg: filenames with spaces from bash script

I have composed the following bash script to automatically concatenate mp3 files using ffmpeg: i=0 for f in "${@:2}" do filter+="[$i:a:0]" i=`expr $i + 1` files+="-i $f " done ...
0
votes
0answers
85 views

Compress specific frames of a video using ffmpeg

I'm trying to compress a range of frame from a video, is it possible to do it using ffmpeg?, I mean, I want to compress from frame 100 to frame 300. I use this command to compress. ffmpeg -i ...
0
votes
1answer
57 views

Can't Run xvfb @ 16:9 on MATROX MGA-G200

Capturing server screen configured as follow, the screen capture occurs but the ratio captured is not 16:9, is that due to video card ? Did : cvt 1920 1080 60 xrandr --newmode "1920x1080_60.00" ...
3
votes
2answers
86 views

How to transition smoothly and repeatedly between two videos using command line tools?

I want to output a video using two videos as input, where these two videos fade (or dissolve) into each other in a smooth and repetitive manner, every second or so. I'm assuming a combination of ...
0
votes
1answer
171 views

Using ffmpeg to split an Audible audio-book into chapters?

I've been following this answer to use ffmpeg to convert and play some of my Audible audio-books in LinuxMint. Each book is a single source-file, but I've noticed that ffmpeg lists all the chapters ...
0
votes
1answer
348 views

LD cannot find lib even with specified path

What I've tried: gcc -L/path/to/lib/ -llib ... gcc -l/path/to/lib/lib.so.x.x.x ... Update ldconfig Added path to LD_LIBRARY_PATH file shows correct build version and link to the correct file No ...
1
vote
0answers
139 views

Specify alsa device name or aloop for system ouput audio to be used as input in ffmpeg command

I am using Debian 9 with its version of ffmpeg. This is my ffmpeg command I use to screen record: ffmpeg -thread_queue_size 4096 -f alsa -i plughw:CARD=Device,DEV=0 -thread_queue_size 4096 \ -f alsa -...
1
vote
0answers
15 views

Suitable parameters for hours of screen capture

I need suitable parameters for very, very long screen captures using ffmpeg. Quality: Only occasionally needed. If text is readable, that's enough usually. I can use -qscale:v *[0-32]*, of which ...
1
vote
1answer
181 views

find command fails in jenkins, but not in terminal

I want to export all frames from a lot of video files, automatically in a jenkins build job using ffmpeg. This script is running fine when I ssh into the slave and execute it in the same folder: ...
2
votes
1answer
3k views

How to recover a broken mp4 file: moov atom not found

I made a recording with ffmpeg -f alsa -ac 2 -i plughw:0,0 /tmp/audio.mp4 I then moved /tmp/audio.mp4 to another directory (/root/audio.mp4) without stopping ffmpeg leading to a broken .mp4 file: ...
0
votes
0answers
132 views

using ffmpeg instead of avconv

i have 2 bash scripts wich i am trying to use which require avconv when i run the scripts i get the error bash: avconv: command not found but since i dont know where to find avconv in either pacman ...
0
votes
0answers
89 views

Ffmpeg volume detection

I know that ffmpeg has volume detection functionality. Now I'm searching for a way to capture microphone audio and listen constantly without saving any files if there is a volume below my threshold. ...
0
votes
0answers
103 views

FFmpeg fails to record full screen on Linux(Devuan derivative)

Using FFmpeg on Devuan derivative: I have been struggling to record desktop with ffmpeg, below are my attempts so far. Script 1 ffmpeg -f x11grab -i :0.0 -vcodec libx264 -pix_fmt yuv420p -loglevel ...
3
votes
1answer
497 views

record screen and internal audio with ffmpeg

What is the ffmpeg command to record screen and internal audio (on Ubuntu 18.04)? I'll omit the many things I tried that did not work and skip to the something close to what I am looking for; V="$(...
4
votes
2answers
204 views

Duplicate screen Xorg over network (Xpra ?)

I'm looking for a way to duplicate my desktop on a network. (Something that would work on a web browser client would be amazing.) I tried to use vnc / x11vnc but quality/framerate is too low. (cpu ...
2
votes
2answers
452 views

Batch convert (decode) audio into multiple formats with ffmpeg

I have a directory with a bunch of CD quality (16bit 44100Hz) wave-files. How can I batch decode those into different formats (lets say FLAC, OGG and MP3) using ffmpeg? Update: here are the commands ...
1
vote
1answer
342 views

How can I stop ffmpeg from quitting when it reaches the end of a named pipe?

I'm using a program which continuously writes MPEG-TS video data to a file while it's running. I'm expecting it to run continuously for many days. I want to use ffmpeg to transcode this video data ...
0
votes
1answer
243 views

Flickering and artifacts when capturing screen using ffmpeg and x11grab

I'm using the following command to capture my screen: ffmpeg -f x11grab -video_size 1920x1080 -i :0.0+1920,0 -c:v libx264 artifact-test.mkv The resulting video contains flickering artifacts that look ...
1
vote
0answers
93 views

ffmpeg bash script doesn't not work with subtitles when it comes to a filename with spaces

Here is my current script #!/bin/bash while true do for f in *.mkv; do /home5/user/ffmpeg_folder/./ffmpeg-git-20181101-64bit-static/ffmpeg \ -i "$f" -c:v h264 -maxrate 12M -crf 16 -c:a copy -vf ...
0
votes
1answer
216 views

Connection refused to local ffserver

I am unable to send my desktop capture to a localhost ffserver: the connection to the local server is refused. # ffserver >/dev/null 2>&1 & # ffmpeg -video_size 1600x900 -framerate 20 -...
0
votes
1answer
70 views

Cannot send desktop capture to ffserver?

I am simply trying to send a ffmpeg stream consisting of a desktop capture to a local ffserver: # ffserver >/dev/null 2>&1 & # ffmpeg -video_size 1600x900 -framerate 25 -f x11grab -i :...
1
vote
0answers
218 views

FFmpeg playing encoded video stream [closed]

This is the m3u8 playlist file I'm trying to play. #EXTM3U #EXT-X-VERSION:03 #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:1981290 #EXT-X-KEY:METHOD=AES-128,URI="encrypted-file://KEY_1541348762",IV=...