FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line ...

learn more… | top users | synonyms

0
votes
1answer
12 views

ffmpeg - 'Unable to find a suitable output format for 'libfdk_aac''

I'm trying to run the following command: ffmpeg -y -loglevel info -threads 0 -f lavfi -i aevalsrc=0 -framerate 60 -i image.jpg -start_number 000000 -apply_trc bt709 -framerate 60 -i /myseq.%06d.exr -...
1
vote
1answer
13 views

How can I generate a color-correct h264/MP4 from a DPX sequence using ffmpeg?

We are converting a sequence of DPX files into an MP4. When the artist uses Adobe Media Encoder CC to generate the video, the colors match the original DPX. When we use ffmpeg, the video has a reddish ...
0
votes
0answers
13 views

on-the-fly transcode and stream with VP9 and MPEG-DASH

In the VOD system, I want to add a unique watermark to the video with FFmpeg, so I need a on-the-fly transcoding and streaming method. In this article, it describe how to create non-muxed and chunked ...
0
votes
0answers
11 views

RTMP streams switching

I have 4 input RTMP streams, and would like to produce a single RTMP stream by dynamically switching between them. Ideally the switching must be done by some event e.g. some time interval. Is there a ...
0
votes
1answer
22 views

ffmpeg - output file is twice as long as the input

I'm encoding an image sequence to an .mp4 file using the following ffmpeg command: ffmpeg -y -loglevel info -threads 0 -f lavfi -framerate 60 -i image_seq.%06d.tif -r 60 -preset medium -codec:v ...
0
votes
0answers
19 views

Convert to a different frame rate smoothly (without jerky playback)?

Code: ffmpeg -i test.mp4 -i hello.mp4 -filter_complex "[1:v]setpts=PTS/1.24[v],[v]scale=iw/1.5:-1[ovrl]; [0][ovrl]overlay=(main_w-overlay_w-0.1): (main_h-overlay_h-0.1):shortest=1[v],[1:a]amerge,...
0
votes
1answer
42 views

Why ffmpeg works non-deterministically?

I take a file and make the video slower by using one and the same command two times: ffmpeg -nostdin -i test.avi -filter:v "setpts=2.0*PTS" -vtag xvid -an slow1.avi ffmpeg -nostdin -i test.avi -...
0
votes
1answer
35 views

How can encode video with images like these [overlay a video over a fixed image] with ffmpeg?

How can I use ffmpeg to composite a video image with a still image to create a final image such as the one below (where the video image "plays" on the large screen and the still image creates the ...
0
votes
1answer
34 views

How to create MPEG-DASH variants at resolutions where one dimension is not a whole number in pixels?

I've created a bunch of variants and a DASH manifest for Sintel, which more or less works, but does not pass validation. The issue is when I want to scale a video to a specific width, but the height ...
0
votes
2answers
32 views

Using mediafilesegmenter on a video with edit lists

I'm trying to use mediafilesegmenter on a video I transcoded with ffmpeg to package it for HLS. However, it complains about "edit lists" and refuses to do anything. Does anyone know how to either ...
1
vote
0answers
86 views

Desktop grabbing with FFmpeg at 60 fps using NVENC codec

I'm having trouble recording my desktop at 60FPS using the latest Windows compiled FFmpeg with NVENC codec. Metadata says the file is 60 fps but when I play it, I can see clearly see it is not 60FPS. ...
0
votes
0answers
24 views

ffmpeg - encoding on “real time”?

This is a shot in the dark and i'm pretty sure the answer is going to be "no" but i wanted to ask anyway. I'm using The Foundry Nuke (a visual effects compositing software) and whenever i'm done ...
-1
votes
0answers
19 views

Dash player stalls on high bitrate video

I transcoded Sintel for Dash using the commands below. Everything seems fine, except the Dash.js Reference Player stalls at 3:30 - I run it on a local HTTP server with a clone of their Github project -...
0
votes
1answer
37 views

Is this as high quality a GIF I can produce from this MP4 using FFMPEG?

I am using Powerpoint to create animations which I then export into a video and crop and convert to GIF using ffmpeg. Here is the (cropped) MP4 video, and this is the GIF I was able to produce: ...
0
votes
1answer
19 views

ffmpeg - mapping an audio file with 2 channels to a video file?

I have a video file and an audio file (that contains 2 channels) and i want to map the video to stream 0 of the resulting file and the audio file to the next stream/s. Since the audio file has 2 ...
1
vote
0answers
38 views

MPC-HC is altering the colors

In order to test a lossless recording system, I have to verify that the input video is exactly the same than the output video. As a test source I have generated an ffmpeg's testsrc pattern, which is ...
0
votes
0answers
21 views

Is it possible to specify ffmpeg args from a file?

I'd like to do some streaming with ffmpeg. I've gotten it working with a command like the following: ffmpeg -f x11grab -s 1920x1200 -r 15 -i :0.0 -c:v libx264 -preset fast -pix_fmt yuv420p -s ...
0
votes
0answers
24 views

ffmpeg: reducing the framerate of an an h.264 flv video file

I am trying to record a window on one machine, stream it via RTMP to a streaming server, record it, and then run ffmpeg to reduce its framerate. This is how I'm recording: ffmpeg -loglevel warning -r ...
0
votes
0answers
34 views

ffmpeg: Quickly get frames every n seconds from a remote file, downloading as little data as possible

I have a remote MP4 file that is short (1 minute) but large (~450mb), something like this: https://s3-eu-west-1.amazonaws.com/worm-web-assets-prod/GOPR7775.MP4 I'd like to extract frames every n ...
0
votes
0answers
25 views

Modifying FFmpeg command from 2-pass to 3-pass and hardcoding subtitles

I'm working with the following ffmpeg command: ffmpeg -y -i "Original.mov" -pass 1 \ -vf "subtitles=espSbs.srt, scale=1920:1080" \ -b:v 27179k -b:a 128k -f mov /dev/null && \ ffmpeg -i "...
0
votes
1answer
26 views

ffmpeg - map a video to a placeholder? (rectangle/square)

I have a video that i want to map to a "virtual rectangle". Meaning, i want to create a virtual rectangle by giving it one x,y point for the bottom left corner and one x,y point for the top right ...
4
votes
1answer
50 views

Extracting video fields Respectively

Extracting individual video fields is my previews question. Based on the Mulvya's answer I can extract the top fields (only) or the bottom fields (only) individual. Now, I need to extract the video ...
0
votes
1answer
48 views

How to double video frames without any duplicate frames

My video details : DV-PAL 720x576i , 25FPS , duration=20s , frames=500 I need to increase (double) the video frames without any duplicate frame. I used the following commands to increase (double) ...
0
votes
1answer
51 views

Reducing the frame rate : the smooth video Issue

This is my smooth video. Video details: Frame rate=60 FPS Video codec: h264 Not have any audio stream I want to convert it to a PAL video, But I can't get smooth video. How to convert a high ...
0
votes
1answer
54 views

Capture a wpf window : The flickering issue

I made a simple animation (as crawl text) using C#-WPF. The animation is smooth and excellent. (in wpf window) But when I capture it by FFmpeg as video it has flickering problem. Please see sample1 ...
0
votes
1answer
33 views

Extracting individual video fields

I need to extract all video fields of an interlaced file as individual images. Is it possible to do this (using ffmpeg or other tools for Windows)?
1
vote
1answer
50 views

ffmpeg overlay x expression with logical condition

I am trying to create a simple overlay graphic where the overlay moves and screen and changes speed according to time. So I tried a simple ffmpeg -i input.mp4 -vcodec qtrle -i overlay.mov -...
1
vote
0answers
61 views

How to produce a zoom animation of a video source with ffmpeg?

I'd like to create a zoom-in animation over numerous frames of a video clip. I've tried a couple of approaches without much luck. ffmpeg -i test-10s.mp4 -vf "zoompan=z='zoom+0.001'" zoompan-10s.mp4 ...
1
vote
1answer
24 views

ffmpeg buffered recording

need some advice to solve the problem ffmpeg is receiving the nonstop live stream (rtmp source) from camera monitoring entry gates after trigger is fired (gate/door is open) I need to create the ...
0
votes
1answer
29 views

How can I demux avi?

I want to demux the audio from avi files, so that the files are lossless. I tried both Yamb and Ffmpeg. Both produce files less than 1 MB (for a video of 80 MB), which are unplayable through VLC. I ...
1
vote
1answer
63 views

Automatically restart ffmpeg on error from inside bash script [closed]

I use ffmpeg to livestream an Axis camera feed to youtube livestream. I have a beefy server with 32 GB of ram and plenty of CPUs doing the processing, but still the stream errors out from time to time....
0
votes
1answer
96 views

how to get vdpau hardware acceleration using ffmpeg?

I am developing a multimedia player using ffmpeg. I am trying hard to get hardware acceleration through ffmpeg using vdpau hardware accelerator. I didn't get any success so far. Below I have mentioned ...
1
vote
1answer
50 views

Resize, crop and SBS duplicate with ffmpeg

As I have no previous knowledge of video editing, I'm still struggling to get ffmpeg to work as I need. I need to resize a video of any size and any aspect ratio to height a of 960px, then crop both ...
3
votes
1answer
167 views

Is it possible to speed up a video using handbrake?

Is it possible to speed up a video using handbrake ? I am looking for a software like handbrake to convert videos for faster playback. It should speed up the video up to 30x. Is it possible with ...
0
votes
0answers
76 views

FFMPEG RTSP -> MPEG-DASH Stops on Long Streams

I need to provide MPEG-DASH live content generation from several IP cameras. I use ngx_rtmp_module + ffmpeg for creating MPEG DASH content. Everything work fine, but if I leave the conversion running ...
4
votes
1answer
81 views

Video metadata: What is “Video delay” used for?

Recently, I'm forced to fiddle with a nasty little problem with videos that have some special metadata attributes, namely "delay" or "delay_relative_to_video". There's a software videoconferencing ...
1
vote
0answers
35 views

FFMPEG Error: Packet too small (67)

I am working with win7, FFMPEG Static from May 2016. I have frequently a bunch of strange avi files to convert by batch and got always the Error: Packet too small (67) Error while decoding stream ...
2
votes
1answer
78 views

Cropping VR video afterwards

I have mp4 SBS 180 VR videos made for Oculus Rift. I'd like to crop the videos a little (simulate the zoom) and then downscale to "cardboard" resolution so it would be smoothly playable on mobile ...
2
votes
1answer
57 views

Add black (or other color) padding when doing vstack (or hstack)

I am using the following filter_complex to put 2 videos of resolution 320 x 240, one right next to the other: -filter_complex "[v1][v2]hstack=inputs=2[videoout]" This works great, but now I was ...
0
votes
1answer
38 views

ffmpeg - resize and crop from input file with unknown resolution

I use this filter to do some cropping: -filter_complex '[0:v]crop=w=320:h=240[v0c] which works alright. The problem is that sometimes, I do not know what is the input that I am going to get. It ...
2
votes
1answer
32 views

Join 2 videos to play at the same time

Let's say that I have a file1.avi and a file2.avi. Each one of these files is the same size, for instance 300x100. How could I join them, so that both of them would play the first 10 seconds of each ...
2
votes
1answer
43 views

Matroska format's framerate is not accurate with certain values

If the Matroska format is used, in certain framerates it doesn't record at exact input framerate, but rather at a little higher than the input framerate. As an example: ffmpeg -video_size 1920x1080 -...
1
vote
2answers
104 views

Infinite Video Loop in Ffmpeg?

Is there a way to infinitely loop a video in ffmpeg for a livestream? I've been looking around and can see it was possible to use "loop 1" but it appears that is no longer working. This is what I'm ...
3
votes
1answer
47 views

How to calculate the length of the video file that was encoded so far?

I am using ffmpeg to convert a video file to H.264 format. If I call ffprobe while ffmpeg is still running the duration of the video is not known. Only when ffmpeg finishes the ffprobe will display ...
1
vote
1answer
51 views

avconv: What are the mpegvideo private options?

I'm using avconv on LinuxMint 17.3 to convert video. The avconv man page states for multiple options, that they are "Deprecated, use mpegvideo private options instead" Can someone tell me what these ...
0
votes
1answer
86 views

ffmpeg: can I crop using vf while also using filter_complex at the same time?

I have an ffmpeg command using -vf to square crop a video: ffmpeg -i input.mp4 -vf \ "crop='if(gte(iw,ih),ih,iw):if(gte(ih,iw),iw,ih)', scale=720x720" \ -an -c:v libx264 -profile:v high -level 4.1 \ -...
0
votes
1answer
87 views

FFMPEG - Add intro and outro to a video

Here is basically what I'm trying to do. I have three files : 1. image.png 2. music.wav 3. video.mp4 I'm trying to create a new video file (mp4) with : IMAGE.PNG for the first 5 seconds VIDEO.MP4 ...
0
votes
1answer
69 views

cutting with ffmpeg results in few seconds of black screen, how do i fix this?

i'm using this command to cut a segment from a video from command line ffmpeg -i %1 -vcodec copy -acodec copy -ss %2 -t %3 %~n1_cut%~x1 and i call it like cut.bat video.mp4 001:23:45:678 10 and ...
0
votes
1answer
49 views

Transcoding vertical video to an intermediate codec

I used the Android SDK to record some steps for a tutorial video and am having some difficulty working with the footage. First of all, it's of a variable framerate and secondly it's in 1080:1920 - ...
1
vote
1answer
63 views

Issues looping a stream with FFMpeg

I'm trying to overlay a video on top of an image. The problem that I'm facing is that the video duration that I want is longer than my input video's duration. To solve this issue, I try to generate a ...