Media tool with support for multiple codecs, filters, and containers. Include the full, uncut console output if you have problems with an FFmpeg command.

learn more… | top users | synonyms

0
votes
1answer
3 views

(FFMPEG) Re-encode audio using qaac.exe

I was using a script to batch re-encode audio to AAC using the libvo-aac encoder. @ECHO OFF FOR %f IN (*.mkv) DO call ffmpeg.exe -i "%f" -c:v copy -c:a libvo_aacenc -b:a 256k "%f" However since I ...
0
votes
0answers
24 views

Inserting overlayed audio in a set time

This is the question that was closest to my problem: Ffmpeg add new audio in video (mixing 2 audio) I need to insert audio from 2nd input file too but WITHOUT cutting first audio stream. I need them ...
0
votes
0answers
12 views

How to convert jpeg images in a slideshow video with transition effects

I have some jpeg images and I want to create a slideshow video. I want a crossfade between images. What I tried : Mencoder : I did this command mencoder mf://*.jpg -mf fps=25:type=jpg -ovc x264 ...
0
votes
0answers
10 views

Why concating two videos with ffmpeg (5s and 33s) produce 4m34s video in slow motion

I am developing a service to concat a video (mine) with a another from a user (he/she upload it) and return to user. First I tried to use Concat demuxer because I don't want to re-encode videos if it ...
0
votes
0answers
21 views

Corrupt MP4 file: ffmpeg codec, global header, and dvvideo errors. Can it be repaired?

So, I have a number of corrupt MP4 files (some corrupt AVI files, too, but I believe that's a different problem). They seem to have gone corrupt when I had an external hard drive that they were on ...
0
votes
0answers
8 views

Collect Streaming Statistics

I'm using ffmpeg to stream a video and would like to retrieve the video's statistics using ffplay. For example, when I type: "ffplay test.sdp", I can see this line: 8.07 A-V: 0.000 s:0.0 aq= 0KB ...
-5
votes
1answer
30 views

Why flac file converted from mp4 weighs 4x than mp4 file?

I did converted mp4 file to flac with ffmpeg -i x.mp4 x.flac x.mp4 weighs 11M and x.flac weighs 43M
0
votes
0answers
14 views

Drop every multiple of four frames with ffmpeg?

I'm making a timelapse with ffmpeg, and had two problems : frames are not properly ordered, because there was half a second between shots and when sorted, milliseconds didn't count in, this gives a ...
2
votes
1answer
41 views
+50

How to consider bitrate, -maxrate and -bufsize of a video for web

I am using ffmpeg to encode my videos to upload them on the web. I saw this post about using ffmpeg, but didn't quite get as to how to consider the values. Suppose I have a video of size 70 MB with a ...
0
votes
0answers
15 views

how can I apply a filter to ffmpeg command that outputs to a stream

I can apply a filter to my .mov file with: ffmpeg -i in.mov -vf "vflip" out.mov I can serve up my movie to ffserver with: ffmpeg -i in.mov -f ffm http://127.0.0.1:8090/feed1.ffm But I cant ...
0
votes
1answer
10 views

Audio-only ffserver feed / adding dummy video to audio-stream

I'm trying to stream audio to ffserver, but when I start the ffmpeg client it says: Missing video stream which is required by this ffm Is there a way to either: Configure ffserver to allow ...
0
votes
0answers
14 views

Unable to enable libvpx library in ffmpeg from command line

This is my first question I have asked on superuser, so please be patient with my ignorance if it should surface. I have spent hours and hours trying to figure this one out and would greatly ...
1
vote
0answers
18 views

FFmpeg's trim command not honoring start value? Video playing from beginning through to trims' end value

I've got a rather weird problem. I can't seem to get ffmpeg's trim command to actually honor the start time and drop the frames before it. For instance, given the command: ffmpeg.exe -i myvid.mp4 ...
0
votes
0answers
25 views

Capturing TS video stream gives Invalid timestamps and Invalid DTS error messages

I'm capturing a video stream using ffmpeg -i "http://streaming_url.com/playlist.m3u8" -acodec copy -vcodec copy -absf aac_adtstoasc "out_put_file.mp4". The m3u8-file links a list of .ts-files. ffmpeg ...
0
votes
0answers
5 views

Can ffmpeg output all changes to a metadata tag?

I'm trying to use ffmpeg to record an audio stream off of the internet. Periodically, the value of a metadata tag changes in this stream. However, ffmpeg only outputs the value once, and after that ...
0
votes
0answers
29 views

WebCam live stream

I am trying to stream live webcam feed from Ubuntu machine, to a Unity application on pc (they are on the same wifi). For that to work, I need to define in Unity direct URL to video, and it has to be ...
0
votes
0answers
19 views

Issues with audio when converting video with ffmpeg

It's an uncommon issue, it occurs when an input video file is low quality, exactly input audio stream. I use aac native with 64k bitrate in conversion command. Do i need to use other audio codec or ...
1
vote
0answers
28 views

Can ffmpeg be paused while recording, and then resume?

I want to record an FM radio station that provides an internet stream. I've worked out the command to record this, and I'm happy with the results. However, once in awhile I will start the command and ...
1
vote
1answer
26 views

ffmpeg - infinite loop when adding watermark

Arguments: ffmpeg -i in.mp4 -loop 1 -i banner.png -c:a copy -filter_complex "[1:v]fade=in:st=0:d=0.5,fade=out:st=30:d=0.5[watermark]; [0:v][watermark]overlay=(main_w-overlay_w)/2:main_h-overlay_h" ...
2
votes
0answers
5 views

Error when adding silent channels to ProRes file in FFMpeg

I'm trying to follow this guide to build a usable 5.1 audio for a piece of hardware with specific needs. When I run the command: ffmpeg -ar 48000 -acodec pcm_s24le -f s24le -ac 5 -i /dev/zero -i ...
0
votes
1answer
33 views

How to use ffmpeg ffpreset files

My ffmpeg comes with some ffpreset files: $ ls /usr/share/ffmpeg libvpx-1080p.ffpreset libvpx-360p.ffpreset libvpx-720p50_60.ffpreset libvpx-1080p50_60.ffpreset libvpx-720p.ffpreset I'm ...
1
vote
1answer
25 views

why is mpeg4 encoder faster than libx264 using ffmpeg

I have been padding mp4 videos so they can become of the size 1920x1080 instead of 1920x800. I used initially used mpeg4 encoder using ffmpeg, the encoding was quick but the size of the file was more ...
-1
votes
0answers
13 views

Splitting large audio file with many different timed outputs (ffmpeg)

I downloaded a full album off of youtube and have all the time codes, but how do I tell ffmpeg to create files based on that info?
0
votes
0answers
22 views

Missing Filters in ffmpeg on Windows 7

I am a Windows 7 user. I downloaded what I thought was the most current 32-bit version for my OS. I tried the following command to generate my palette file. ffmpeg -i myinputfile.mp4 -vf ...
1
vote
0answers
11 views

How to create blank audio file in FFMPEG?

I am creating a project associated with using Sony ILCE-6000 with its remotely controlled functions. I have found such method of controlling camera with command line: ...
0
votes
0answers
41 views

mkv to mp4 automatic conversion

I have two scenarios here that I'd like to overcome: 1- I have a folder that's full of folders that are full of mkv and mp4 files. I want to use Handbrake, VLC or any other appropriate program to ...
0
votes
1answer
43 views

Increase mean volume of a video/audio file

I have a video file which most of its sound is too quiet. I analysed it with FFmpeg (ffmpeg -af volumedetect) and it gave me the following stats: n_samples: 1240911872 mean_volume: -31.9 dB ...
0
votes
0answers
33 views

overlaying a video on top of another

I have two videos content video and overlay video. overlay video is nothing but video generated from a vector animation and it has a white background. i am able to overlay the animation video on top ...
0
votes
1answer
35 views

FFMPEG Split video into random durations within range

I want to split a video into parts, but not equal parts. I want each clip to be between 15 and 50 seconds. But I want each clip length to be random (within that 15 to 50 second range). How would I ...
1
vote
0answers
36 views

saving standard-compliant video from Hikvision DS-2CD2032 cameras

I'm trying to save video from Hikvision DS-2CD2032 cameras (aka Swann HD-820CAM aka Lorex MCNB2151) via ffmpeg. It basically works with a command like this: $ ffmpeg -rtsp_transport tcp -i ...
0
votes
0answers
31 views

FFMpeg keeps hanging/crashing and causing memory allocation issues on Production RHEL Server

I'm working on adding video conversion to a Ruby on Rails (Ruby 2.1.5 Rails 4.1.5) app that I'm working on. I'm utilizing the Streamio-FFMpeg gem within the app so that I can run the necessary ...
0
votes
2answers
42 views

Having trouble understanding ffmpeg -map command

I'm trying to copy video/audio from an mkv container to mp4. When I run ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 I'm given no video with polish audio. There's only one video stream, stream ...
0
votes
0answers
17 views

Video transitions and filters - how to create custom ones?

I am wondering if there is a possibility to do custom video transitions or filters. Like the video spiraling out, little squares appearing, circling out or something like that. Adding a semi ...
1
vote
1answer
34 views

Noisy ffmpeg video slideshow from images with looseless sound

I would play wav audio and show lyric text on TV screen from dvd/bd player. I create png file from lyric.txt and make video ffmpeg -loop 1 -i lyric.png -i audio.wav -vcodec libxvid -acodec copy -y ...
1
vote
1answer
29 views

ffmpeg watermark on bottom right corner

I'm trying to create a video using ffmpeg but I can't get the watermark on the bottom right corner . It appears on the middle of the video. How should I change the following command? -vf ...
0
votes
0answers
22 views

What are all parameters to get the highest compression ratio for animation from ffmpeg x265?

Ok. I'll use -crf 51 (-crf 61, -crf 10 or any other), -preset placebo, -keyint=-1 (only one keyframe in the start). -allow-non-conformance (I am not sure if this is work with libx265). -ref 16, ...
0
votes
0answers
19 views

How to insert clip in the another clip using avisynth?

My goal is to make video from two sources. One of them is clip1 and another one is clip2. My task is to take first 10 seconds(video and audio, 10 - for eaxmple) from clip1 then take 10 seconds from ...
0
votes
1answer
28 views

ffmpeg crossfading multiple images

I am trying to cross-fade multiple images. I found some helpful piece of code in this superuser thread. So far I am stuck at this point: ffmpeg -loop 1 -i img0.jpg -loop 1 -i img1.jpg -i img2.jpg -f ...
0
votes
0answers
33 views

How to attach an intro mp4 to multiple mp4 files in a folder?

I have an intro video (mp4) that I'd like to attach to multiple mp4 videos in a folder. I use windows and ffmpeg. How would I code this in the cmd? If I have to use another program that's fine, I ...
1
vote
2answers
28 views

How to convert multiple mp3 files to mp4 with ffmpeg?

The following command takes the mp3, attaches an image to it, and converts it to an mp4: ffmpeg -i input.mp3 -loop 1 -i image.png -c:a copy -c:v libx264 -shortest output.mp4 I'm trying to apply the ...
0
votes
0answers
28 views

ffmpeg zoom out + pan

I am trying to create a video starting zoomed in while it zooms out+pans into a given direction. i can't find any good examples. does anyone know how it can be done ? so far i have only tried to get ...
0
votes
1answer
48 views

Extract the frame (in image format) at exactly every minute (or second) from a video (by ffmpeg)

Motivation: I would like to seek the frame, then take high quality and exact time screenshots (images) from a video. The video is length is 00:48:43.71 and 23.98 fps (we can think it is 24 fps, isn't ...
0
votes
1answer
59 views

Batch converting files using ffmpeg

Can anyone tell me where I'm going wrong doing this. The idea is to find and convert all files in a directory to m4v's. Regardless of the extension. Then once it has been converted, to generate a ...
0
votes
1answer
31 views

ffmpeg: How to slow down a video for a while

I want to reduce the speed of a video with FFmpeg for x seconds, after that it should be playing like before. Is there a way to do that in ffmpeg using setpts parameter? I only found this FFmpeg doc ...
0
votes
1answer
37 views

Merging four videos with different resolution in a Grid with ffmpeg

I want to marge four videos in to one as show below. I have achieve the correct output given all the videos have the same resolution. But I get an undesirable result with different resolution. See ...
0
votes
1answer
90 views

Setting the profile level for libx265 using ffmpeg

I'm trying to set the profile level of libx265 to mainstillpicture using ffmpeg. But I can't seem to do so. I'm basically trying to encode every frame as intra frame (only spatial encoding) with no ...
1
vote
2answers
49 views

Why does ffmpeg never end when invoking color in a filter_complex?

I am trying to add a simple color overlay to an existing video, following one of the examples at http://www.ffmpeg.org/ffmpeg-filters.html#Examples-55 (see the example Add a transparent color layer on ...
0
votes
2answers
43 views

How do I convert multiple mp3 files to mp4 with ffmpeg?

The following command takes the mp3, attaches an image to it, and converts it to an mp4: ffmpeg -i input.mp3 -loop 1 -i image.png -c:a copy -c:v libx264 -shortest output.mp4 I need to do this for ...
0
votes
1answer
37 views

Joining 2 videos using ffmpeg

My command is: ffmpeg -y -i 2.mp4 -i 2.mp4 -filter_complex '[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]' -map '[v]' -map '[a]' output.mp4 the result is: ffmpeg version N-50911-g9efcfbe ...
1
vote
1answer
23 views

Cut video freezes for first 8 seconds

I tried cutting my video using ffmpeg with this command: ffmpeg -i source.mkv -ss 01:02:37.754 -map_chapters -1 -c:v copy -c:a copy -t 00:04:52.292 output.mkv The only problem is the final video ...