Questions tagged [ffmpeg]

`ffmpeg` is a free software project aimed at producing tools (libraries and programs) for handling multimedia data.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Script for ffmpeg webcam audio video recording

I've bought the very popular Logitech C920 for creating YouTube videos with ffmpeg. My desire is to build a script for easy recording without bothering with the powerful but rather cryptic ffmpeg ...
0
votes
0answers
8 views

How to add still images to audios to make a video by FFMPEG?

I have several audio files, and need to add different still images to them. Currently, I make a video of each audio file with the corresponding still image as ffmpeg -loop 1 -framerate 1 -i photo1....
0
votes
0answers
12 views

Which format my webcam produces

How can i find out which format (preffix) my USB webcam produces ? I want recording webcam to HDD with ffmpeg and i need save the capture record without reencoding because of CPU usage (i using ...
3
votes
1answer
63 views

How can I stream my desktop/screen to /dev/video1 as a (fake) “webcam” on Linux?

I have two commands, one that lets me record my screen to an AVI video file, and another which lets me stream a video file as a (fake) "webcam". This is really useful in apps that doesn't support ...
5
votes
4answers
21k views

error while compiling ffmpeg: gcc is unable to create an executable file

When I run the ./configure command in ffmpeg source directory I get this error: gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do ...
3
votes
0answers
292 views

Encoding a video from Unix Timestamps + ms

I have a sequence of images that were taken from a camera that have been saved in a naming convention that contains the unix timestamp as well as milliseconds. For instance, 1333351808430.jpg (I typed ...
6
votes
3answers
8k views

How to splice sections of a video with avconv?

I have figured out so far that you can cut a section from a video with avconv with a command like this (cuts from 1:00-3:00): avconv -ss 00:01:00 -i "input.avi" -t 00:02:00 -c:v libx264 -crf 23 "...
0
votes
1answer
22 views

How to add an still image while combining multiple audio files in FFMPEG

I combine multiple audio files with FFMPEG as ffmpeg -i 1.mp3 -i 2.mp3 -i 3.mp3 \ -filter_complex '[0:0][1:0][2:0]concat=n=3:v=0:a=1[out]' -map '[out]' out.mp4 Then, I add a still image to the ...
1
vote
1answer
36 views

Pop!_OS: Spotify Downloader (spotdl: command not found)

I recently installed spotdl (Spotify Downloader) by following the instructions given at GitHub's Installation page. However, when I try to run the tool and execute the commands provided at the project ...
8
votes
2answers
8k views

Lossless audio conversion from FLAC to ALAC using ffmpeg

Both ALAC and FLAC are lossless audio formats and files will usually have more or less the same size when converted from one format to the other. I use ffmpeg -i track.flac track.m4a to convert ...
10
votes
3answers
21k views

How to convert a VOB file to avi?

I am trying to convert a VOB file copied from a DVD into an avi in Ubuntu 13.10. I tried dvdrip, which failed due to a frame count error or something. I tried acidrip as well, but it always choose an ...
1
vote
0answers
19 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
48 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 ...
1
vote
2answers
2k views

Can I stream from multicast to one client with ffmpeg?

I'm trying to do streaming from a source (tv box transmitting in multicast in this source rtp://@X.X.X.X:Y) to Internet (to my mobile phone as example or another device inside of my LAN) but I can not ...
2
votes
1answer
1k views

How to encrypt the ffmpeg output when generating video chunks?

I can openssl encrypt a ffmpeg video stream with ffmpeg -i video1.mp4-video1.mp4.mp4 -f ogg - | openssl enc -des3 > outptu.ogg.des3 Which strategy would you use to encrypt the ffmpeg output ...
37
votes
4answers
49k views

Merge two video clips into one, placing them next to each other

I have two video clips. Both are 640x480 and last 10 minutes. One contains background audio, the other one a singing actor. I would like to create a single 10 minute video clip measuring 1280x480 (in ...
2
votes
1answer
34 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 ...
2
votes
1answer
2k views

Ffmpeg problems on centOS 5.8 64 bit

I did install ffmpeg with winff, unsuccessfully when I try converting avi to x264, it says I don't have it. When I try to convert mp4 to Xvid I get unknown encoder 'libxvid'. It's like nothing really ...
2
votes
1answer
51 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 ...
184
votes
8answers
265k views

How can I reduce a video's size with ffmpeg?

How can I use ffmpeg to reduce the size of a video by lowering the quality (as minimally as possible, naturally, but I need it to run on a mobile device that doesn't have much available space)? I ...
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
3answers
1k views

ffmpeg command fails silently inside script but works when run directely

Have a script that generates a rtmp stream that runs inside a screen using ffmpeg but this fails for some reason? If it run it directly in the command line it works so I tried to run it by opening > ...
0
votes
1answer
43 views

Building a for loop around exsisting loop, to replace user input

I basicly have this script: #!/bin/bash #Asks For filname and Word echo 'Which word are you looking for?' read word echo 'What's the name of the file?' read fileName #Searches word and parses the ...
3
votes
2answers
2k views

Trying to record a screencast using ffmpeg but my mouse pointer is invisible

I'm trying to record a screencast using ffmpeg but my mouse pointer is invisible. What am I doing wrong? This is the command: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 -...
6
votes
2answers
1k views

Convert video to exactly the same format as another video

Suppose I have two video files A and B. Now I want to convert A to the same format (i.e. same container, same audio and video codec), same bitrate, size etc. as B. Is there a way to do this ...
1
vote
1answer
4k views

ffmpeg invalid data found when processing input

Have such script: #!/bin/bash # $1 -- extension, like *.MP4 # $2 -- output file name ffmpeg -f concat -i <(find . -name '$1' -printf "file '$PWD/%p'\n" | sort) -c copy $2 Trying to concatenate ...
1
vote
0answers
91 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 ...
26
votes
14answers
77k views

Bash script to convert all *flac to *.mp3 with FFmpeg?

I want to convert all *.flac to *.mp3 in the specific folder. This is what I've tried, but not works: # change to the home directory cd ~/music # convert all *.flac files ffmpeg -i *.flac -acodec ...
0
votes
1answer
135 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 ...
1
vote
1answer
144 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 ...
2
votes
1answer
231 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 ...
41
votes
3answers
79k views

Re-encoding video library in x265 (HEVC) with no quality loss

I am trying to convert my video library to HEVC format to gain space. I ran the following command on all of the video files in my library: #!/bin/bash for i in *.mp4; do #Output new files by ...
0
votes
3answers
9k views

Alsa Pulse Audio cannot open audio device pulse (No such file or directory) pulse: Input/output error

I'm trying to stream my Gnome Desktop I installed on my OpenVZ VPS Server, and I'm not trying to run this from SSH, but the terminal inside the GNOME desktop, I know it probably doesn't have a sound ...
0
votes
2answers
125 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 ...
2
votes
1answer
344 views

How do I tell aptitude that a package was installed manually?

I installed a package (don't remember which one but that shouldn't be too important) and needed "the real" ffmpeg so I purged the debian package for ffmpeg and installed the other version manually. ...
0
votes
1answer
215 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 ...
18
votes
4answers
33k views

Converting PNG frames to video at 1 FPS

I have video frames in PNG format at 1 FPS and I'm trying to convert them into a video using ffmpeg. If I do something like this: ffmpeg -i data/input-%4d.png data/output.mp4 I get a video at 25FPS ...
56
votes
8answers
85k views

How can I use ffmpeg to split MPEG video into 10 minute chunks?

There is often a need in the open source or active developer community to publish large video segments online. (Meet-up videos, campouts, tech talks...) Being that I am a developer and not a ...
1
vote
1answer
5k views

How do I install ffmpeg on CentOS 6.8 with all dependencies? I am getting many “Error package … requires …”

I am trying to install ffmpeg on a CentOS 6.8 server and I am getting some errors relating to required libs. How do I install those missing libs? Where do I find them? What should I do to install ...
1
vote
1answer
57 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
1answer
3k views

“MPEG-1/2 does not support 3/1 fps” when sending webcam to ffserver

I am unable to send a stream to my ffserver. I started the server with ffserver -f /etc/ffserver.conf & where ffserver.conf has not been modified. I tried sending a webcam stream with ffmpeg -...
0
votes
0answers
27 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
vote
1answer
4k views

Install FFMPEG on RHEL/CentOS

I've been searching for hours now and trying various methods of installing FFMPEG on my CentOS server. This is what I have currently installed on my Ubuntu desktop: FFmpeg version 0.6.2-4:0.6.2-...
4
votes
3answers
12k views

How to enable libass on Linux?

I tried to enable libass for ffmpeg with this --enable-libass in command but it didn't recognise the command. Does anyone know how to enable libass on Linux?
2
votes
1answer
2k views

No way to record a live stream to WebM using ffmpeg?

I'm streaming from an mp4 source and so far I've managed to save clips as ogg (video: libtheora, audio: flac), but I'd like to save them in the WebM format. Unfortunately, WebM demands libvorbis for ...
-1
votes
1answer
30 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
85 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
1answer
39 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
0answers
174 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
213 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 ...