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
153 views

ffmpeg: How to convert quicktime (iPhone) video to mp4 format?

I need to convert quicktime (.mov) video file recorded by iphone, into mp4 format using ffmpeg in php. I tried several commands but it did not work for me. I tried following command that converted ...
2
votes
3answers
271 views

FFMPEG duplicates the first frame when encoding

Using ffprobe shows that both videos have the same framecount, still if I extract the frames as images the compressed one has an extra frame at the beginning (which is just the duplicated first frame)....
0
votes
1answer
45 views

Add welcome and end image to video

I have three files : image.png(Welcome Image),video.mp4,image.png(The End image) I'm trying to create a new video file (mp4) with : image.png(Welcome Image) for the first 2 seconds VIDEO.MP4 - ...
1
vote
1answer
30 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
83 views

FFMpeg concat demuxer corrupted output (freezed video on some concatenated parts)

I have big videos with different types of properties and trying to collect some part of these videos by ffmpeg. I use this command to cut specific parts: scale video >> scale png >> pad ...
0
votes
1answer
17 views

ffmpeg - warnings when i try to merge several audio files with an .mp4 file

I'm trying to merge 8 audio (.wav) files with a video (.mp4) file. I have the following command: ffmpeg -i video.mp4 -i audio1.wav -i audio2.wav -i audio3.wav -i audio4.wav -i audio5.wav -i audio6....
0
votes
1answer
112 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 ...
0
votes
1answer
11 views

Downloading earlier segments from a live m3u8 playlist

I have an .m3u8 URI of type LIVE. As far as I know, live playlists use a sliding window instead of containing all the segments. My questions are, 1) Is it possible to find out what the length of ...
0
votes
0answers
20 views

Is it possible to create an endless loop using concat?

Basically I have 4 movies I would like to stream in a continuous loop (ie: like a 24/7 tv channel). Here is the ./test.txt list of videos: file 'video1.mp4' file 'video2.mp4' file 'videoN.mp4' ...
3
votes
2answers
2k views

Add image under the video with ffmepg

I want to extend basic usage of watermark and put it under the video. That means. I have input video 720x480 and image 720x20. On output i want to have video 720x500 where video aspect is preserved ...
1
vote
1answer
98 views

FFMPEG prores_ks 4444 color shift

I am attempting to encode "ProRes 4444" movies with ffmpeg. Some research led me to the "prores_ks" encoder, which is the only one of ffmpeg's prores encoders that supports "4444". I used this ...
1
vote
1answer
107 views

FFmpeg cuts video?

I'm trying to add an image to the start of a video. I don't want it to overwrite the video, I asked about it and got this answer: ffmpeg -r 30 -loop 1 -t 3 -i image.jpg -i inputvideo.mxf -f lavfi -t ...
0
votes
1answer
17 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
158 views

Removing MP4 encoding information

Is it possible to remove certain information form a MP4 file? Specifically things like tagging and encoding dates, Writing library and application, Encoding settings... No client needs to know when I ...
0
votes
1answer
222 views

How to set double fps for tbc option of video

I need to set tbc option for output video. For example, input video has 25 fps with 50 tbc and my encoded video has 25fps with 25 tbc. I used settb and video_track_timescale but these options did not ...
1
vote
1answer
16 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
21 views

Convert to a different frame rate smoothly (without jerky playback)? [on hold]

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
844 views

Using ffmpeg to stream to or from Blackmagic Decklink Card

I want to use blackmagic cards with ffmpeg to stream their input but there is a problem. When I use "H264 Pro" Encoder as a "decklink" or "dshow" input, I see this error in command line output of ...
0
votes
0answers
16 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 ...
2
votes
3answers
117 views

ffmpeg: final video too big

I have one image ~1MB (jpg) and a ~30 mins audio file ~7MB (m4a). What I am trying to get is a final video that lasts like the audio file (30 mins) with the same image displayed. I get that with the ...
1
vote
1answer
118 views

FFMPEG not writing quicktime “COLR” atom

I am attempting to create Quicktime movs with the "DNXHD" codec with the following ffmpeg command (input part excluded): -c:v dnxhd -b:v 175M -pix_fmt yuv422p10le test.mov This works, and is ...
13
votes
4answers
28k views

How to losslessly encode a jpg image sequence to a video in ffmpeg?

I have a large set of jpgs that I want to convert to a video losslessly (or, at the very least, very close to losslessly as long as the encoding time isn't much higher than otherwise). Naively, I ...
0
votes
1answer
398 views

Dash live streaming

after a lot of googling and after I've read tons of forums, I'm still not able to do a live stream using my cam to another device. My system is made up by a server ( a windows laptop ), that capture ...
0
votes
1answer
27 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
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
51 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 -...
2
votes
2answers
155 views

FFMpeg crop filter doesn't change orientation

I am trying to crop a portrait video of 1280x720 to 568x320 so that the video will be displayed in landscape view (16:9). I am using the following command ffmpeg -i VID_1438833296.mp4 -vf crop=568:...
0
votes
1answer
37 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
2answers
250 views

What are supported stream formats for h.265

I wanted to know what are the possible streaming formats for streaming a video using H.265. Does H.265 support rtsp and rtmp based streaming? Currently, I am using ffmpeg to live stream the camera ...
0
votes
1answer
39 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 ...
4
votes
1answer
761 views

ffmpeg: overlay rotated video with transparency

I'm new to ffmpeg (video encoding in general). I have two videos one larger than the other. I want to rotate, resize and overlay the shorter video on the larger one at defined coordinates. So far, I'...
0
votes
1answer
60 views

how to recover corrupt mp4 from samsung note 3

I have an app which records mp4. Some videos are fine and some corrupt. But even the corrupt ones are huge in size which I conclude have data.However, I have tried ffmpg, avconv and media info. I am ...
4
votes
1answer
278 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. Wiping the video out ...
0
votes
2answers
34 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
1answer
116 views

Unable to hardcode subtitles in FFmpeg on Mac to mov

I would like to hardcode subtitles using FFmpeg, I'm trying to do this using the following command: ffmpeg -i grdedFinal.mov -vf subtitles=portSbs.srt gradedFinalwithSubs.mov which returns the ...
0
votes
1answer
55 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 ...
1
vote
0answers
98 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. ...
8
votes
1answer
2k views

Copying h.264 video from TS into MP4 changes frame rate and time

I have large MPEG-TS file that I am converting to MP4 using the below command. If I seek to the same time in the video in both the MP4 and the TS file, the MP4 will be a few frames behind the TS ...
-1
votes
0answers
21 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 -...
3
votes
2answers
2k views

FFMpeg and HLS, videos need to load in their entirety before they start playing

I am using ffmpeg to generate a segmented list of files in order to stream them to an iOS app. The list of files is generated fine but when it comes time to play them, the video needs to be downloaded ...
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
vote
1answer
53 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 -...
0
votes
1answer
44 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
20 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
25 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 ...
3
votes
2answers
2k views

FFMpeg Encoding and Core Usage

We have developed an application to transcode source .mov files into .ogg, .mp4 and .webm output. It is currently running on AWS EC2 instance g2.8xlarge. It is working (yay!). My question: Even ...
0
votes
0answers
36 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 "...