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
1
vote
0answers
524 views

ffmpeg with v4l2, scale and still use OpenMAX hw acceleration

I got ffmpeg compiled with OpenMAX encoding acceleration support on RPi--yay! Now my problem is, I'm working with a protocol that insists on specifying its required resolution. As soon as i specify -...
1
vote
1answer
671 views

Mirror not found when trying to install FFMPEG on CENTOS7

I'm on a dedicated server with Root access. not familiar with servers. Im trying to install FFMpeg on my server. I'm getting errors can't figure out how to solve it. So any light on this will be very ...
0
votes
1answer
2k views

How to formulate FFmpeg command for ZERO latency streaming to VR headset?

How would one formulate a command for point-to-point 2K 60-90Hz streaming from one PC to another with lowest possible latency using ffmpeg? Full story: I built a VR headset from an eyebox off Amazon,...
3
votes
0answers
962 views

How to download portion of video with youtube-dl command? (2)

This question has already been posted. However, I want to know if it is possible to only download a portion of a youtube video using a combination of youtube-dl and ffmpeg without downloading the ...
0
votes
1answer
388 views

Error Installing ffmpeg on CentOS 6.8

I'm having trouble installing the ffmpeg on my CentOS 6.8. Before I settled from this tutorial. Today can no longer, key links returns a 'Not found' on the island. rpm --import http://apt.sw.be/...
0
votes
1answer
1k views

H264 Mpeg-4 missing in fedora 24

I saw an answer here but when I tried it with dnf it says packages does not exist. I'm having the sample problem when I try to run videos in my built-in fedora 24 video player (I'm new to linux btw) ...
2
votes
1answer
2k views

DAV to AVI conversion failed

I want to convert DAV format video clips from CCTV recorders to AVI using command as below (convert test - 1.dav to test - 1.avi) ffmpeg -y -i test\ -\ 1.dav -vcodec copy -movflags +faststart test\ -\...
0
votes
1answer
834 views

ffmpeg itsoffset for audio not working

I am trying to add second mp3 file(5 second long) over first mp3 file (3 minute long) and it should start after 50 second. if possible it will be great to mix those two mp3 nicely and after that 5 ...
3
votes
1answer
848 views

gnu parallel with ffmpeg does not process first file

I have some files Joapira___BERLINA_DEL_HIERRO.mp4 Joapira___EL_BAILE_DEL_VIVO.mp4 Joapira___EL_CONDE_CABRA.mp4 Joapira___FLAIRE.mp4 Joapira___MAZULKA_DEL_HIERRO.mp4 ...
1
vote
1answer
487 views

Add filters to ffmpeg presets

I would like to add filter parameters under ffmpeg preset (e.g. -spre directive). Suppose a simple test.ffpreset under ~/.ffmpeg like this: vcodec=h264 bitrate=1200 acodec=copy How do we add hqdn3d=...
1
vote
1answer
204 views

Building Requirements-Specific Command For 'ffmpeg' Tool

Source Community I've been trying to figure out an ffmpeg command with following requirements while converting 'avi' to 'mp4' with H264 video codecs. One command I tried was generic one like this ...
0
votes
1answer
55 views

extracting/copying audio from a specific part of a video file, possible?

Let's say I have a 2 hour movie and I want to extract/copy audio in another file say 5 minutes between 01:25:00 and 01:30:00, is there a way to do that. The file is in .avi format - Format ...
2
votes
1answer
8k views

ffmpeg connection to tcp://localhost failed

I've spent days going over google and serverfault ffmpeg questions, and I can't figure out why I get this error: [tcp @ 0x357230] Connection to tcp://localhost:8090 failed (Connection refused), ...
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 ...
16
votes
1answer
10k views

Remove silence from audio files while leaving gaps

Currently we're using this command within a shell script to remove silence from audio files: ffmpeg -i $INFILE -af silenceremove=0:0:0:-1:1:${NOISE_TOLERANCE}dB -ac 1 $SILENCED_FILE -y This works ...
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 ...
2
votes
1answer
4k views

Converting files to OGG with FFMPEG produces an extremely large file

When trying to convert either an mp3 or flac file to ogg, the output ogg file is actually a flac file with a large file size. For instance: running for file in *.mp3; do ffmpeg -i "${file}" "${file/%...
2
votes
1answer
2k views

Creating a GIF animation from PNG files while constraining GIF size

Is there a way, perhaps with ffmpeg or convert, to constrain the size of a GIF created by stitching PNG files? This answer (Creating a GIF animation from PNG files) does not address this, and ...
0
votes
1answer
428 views

ffmpeg bash script segment template

I was trying to control ffmpeg file segment function through a bash script to cut a large movie file into smaller pieces. I took a look at the documentation here but this doesn't really cover what I ...
1
vote
0answers
360 views

Record video and audio from an X windows application

I want to script the following scenario, from a server which I access using SSH. Create a screen at an arbitrary resolution, for example 1280x720. Start an application, that will fill this entire ...
0
votes
1answer
231 views

bash script controlling ffmpeg to convert from mkv

Help me debugs this script to create control ffmpeg from a bash script. for f in $FILES do INPUT_MOVIE=`basename "${f%.*}.mkv"` OUTPUT_MOVIE=${MOVIE:1} OUTPUT_MOVIE=${OUTPUT_MOVIE:0:2}") ...
1
vote
0answers
179 views

Record fullscreen program with avconv/ffmpeg?

I'm trying to record a fullscreen program (snes9x) with avconv, aka ffmpeg. I have avconv set up to use my whole screen, but it doesn't capture snes9x when I run it. #!/bin/bash avconv \ -f ...
3
votes
1answer
5k views

Convert image based subtitle to text based subtitle inside MKV file

How do I convert a hdmv_pgs_subtitle (which is image based) to a text based subtitle in a MKV file? I have tried ffmpeg -i in.mkv -c:v copy -c:a copy -c:s mov_text out.mkv but that results with the ...
1
vote
1answer
4k views

FFMpeg : Creating a video clip of approx. 10 seconds when video duration is unknown without audio-

I am working on a project where I am looking to extract a video clip from an input video. I have found many links(Eg : link) which do this task, but in all this I have to specify video duration. ...
1
vote
1answer
121 views

How can I edit my bash script to account for whitespace entries? [duplicate]

I made a script to automate ffmpeg conversion from mkv > m4v > open the m4v in Subler.app to import the metadata manually, at which point I'll move the file into my iTunes library. I use iTunes ...
0
votes
1answer
103 views

Achieving a high-availability ffmpeg system?

I wonder if there's a way to realize a sort of "high-availability" ffmpeg system. Let's say, I have two Linux servers: server1 and server2, dedicated to do some video conversion with ffmpeg. With a ...
32
votes
5answers
40k views

How do I split an audio file into multiple?

I found something for videos, which looks like this. ffmpeg -i * -c:v libx264 -crf 22 -map 0 -segment_time 1 -g 1 -sc_threshold 0 -force_key_frames "expr:gte(t,n_forced*9)" -f segment output%03d.mp4 ...
10
votes
3answers
15k views

Play subtitles automatically with mpv

Subtitle files come in a variety of formats, from .srt to .sub to .ass and so on and so forth. Is there a way to tell mpv to search for subtitle files alongwith the media files and if it does to start ...
2
votes
1answer
570 views

FFMpeg : Converting a video file to a gif with multiple images from video

I am working on a project in which the user can upload videos. Is there any way with FFmpeg I can take some images from the video and create a GIF out of it? As the project is in Java, I have a way ...
2
votes
2answers
3k views

use ffplay to play a list of audio files

There are many audio and video players but I would like to use one tool for many propose. So I would like to use ffplay as audio and video player. To play a one file the command is like this. ffplay ...
1
vote
1answer
2k views

FFMpeg : GIF to MP4 conversion throws code error.

I am trying to convert a GIF to a MP4. I am getting an error while doing that with specific parameters. What am I doing wrong? Any help would be nice. I would like a mp4 video with high quality, size ...
1
vote
2answers
487 views

How best to reencode video for lower-performance playback?

I have various video files as MKV, including some high-def (1080p) with FLAC audio. These can be played fine on a several-years-old PC with a mid-range graphics card (using mpv/ffmpeg), but when I ...
8
votes
3answers
8k views

How to check if a video is completely downloaded?

I have a bunch of videos which I want to check if they are complete or not. Some of them may be downloaded partially, but they are not faulty. How can I efficiently check if these video are completely ...
1
vote
2answers
289 views

How to use a greped url provided by tshark inside a bash script?

I'm trying to use a url piped from tshark into a while loop. while read line ; do echo "$line" ffmpeg -i "$line" -c copy "filename" done < <(tshark -i tun0 -B 50 -P -V -q -l -Y 'http matches "(...
1
vote
0answers
106 views

ffmpeg - generate video with more then 2 images and 2 audio

I have n images (2 < images < n) and 2 audio files I generate a video like below and it works: $ffmpeg -f image2 -pattern_type glob -framerate 1/10 \ -i '*.jpg' -i "concat:Q.mp3|R.mp3" -...
0
votes
0answers
2k views

How to re-encode file A.mp4 with the same settings as B.mp4?

I have a MP4 file with AAC audio and H264 video, let's call it B.mp4. I also have file A.mp4 with the same picture resolution, but: different FPS possibly different audio/video bitrate different ...
1
vote
2answers
2k views

Convert jpeg sequence to movie stream, in realtime, using ffmpeg

I have a process that is creating a jpeg every X seconds. I know it's possible to use ffmpeg to convert a set of jpgs to a movie, but I want to do it in real-time because I am trying to stream it to a ...
6
votes
2answers
5k views

Copy file creation date to metadata in ffmpeg

I would like to copy the file creation date of an mp4 file into the file's metadata. I'm pretty sure this can be done with ffmpeg and some nifty Linux commands.
2
votes
2answers
5k views

ffmpeg: nvenc mit crf option - very low bitrate

I bought a new computer some time ago.. I installed nvenc for ffmpeg to encode my videos with the h264 codec. To optimize i used the -crf option but something went wrong.. I want to encode a full ...
1
vote
1answer
11k views

Re-encoding video with ffmpeg including all subtitles but not all audio

I'm trying to re-encode video streams from a Matroska file to save space, while keeping all the subtitles as-is, using ffmpeg. I want to write a generic command that works without me having to specify ...
1
vote
1answer
896 views

ffmpeg output.mp4 with size 0

I have a video upload script in php where I exec the following command: exec("/usr/bin/ffmpeg -i ".$folder."/".$filenameIn.".mp4 ".$folder."/".$filenameOut.".flv 2>&1", $output); And the ...
9
votes
1answer
5k views

Why was ffmpeg removed from Debian?

Currently, ffmpeg is missing from APT packages when using the stable versions of Debian and Ubuntu. There are numerous resources (example from SuperUser, another one from Debian's documentation and ...
2
votes
1answer
2k views

Problem with ffmpeg in bash loop

When running the following command line to convert multiple .mkv files into .mp4 files, things go awry. It's as if the script tries to run all the commands at once or they get entangled in each other ...
2
votes
1answer
5k views

Compiling FFMPEG from source: cannot find shared library

I'm compiling FFMPEG from source using the guide for Ubuntu which I've used before with success. I'm compiling on a Vagrant virtual machine in VirtualBox on Ubuntu server 14.04. You can clone the ...
1
vote
0answers
74 views

What's the canonical way to get individual stream size in a video file?

I have a video file. It contains a video stream, and a couple of audio and subtitle streams. I want to get the size of each of these streams. I've already looked at ffprobe/avprobe and mediainfo, to ...
2
votes
1answer
3k views

Split a video to multiple chunks according to multiple starting and ending frame indices

Are there any tools (like FFmpeg or OpenCV) can split a video into multiple chunks according to some specific starting and ending frame indices? For example, given (0,20),(21,33),(40,60)..., each ...
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
2k views

How to set default subtitle with ffmpeg

I created a mp4 file from video, audio and .srt file. ffmpeg -i video.mp4 -i audio.m4a -i sub.srt -map 0:0 -metadata:s:v:0:0 language=eng -map 1:0 -metadata:s:a:0:0 language=eng -map 2:0 -metadata:...
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 ...
1
vote
2answers
957 views

bash: ffmpeg libx265 prevent output

I'd like to use the new codec x265 (libx265) to encode my video collection. For this I created a lovely bash script under linux which works in general very well! But something is strange: I prohibit ...