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
104 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 ...
0
votes
1answer
19 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
0answers
18 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
14 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
46 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
25 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
35 views

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

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 ...
0
votes
1answer
23 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
2answers
46 views

How can I create a video from an image sequence that is named with a date in the FFmpeg?

I am using FFmpeg I'd like to create an mp4 using an image sequence. But the images are not named sequentially, like 1, 2, 3, 4... Instead they are named with a time stamp in the form yyyy-mm-dd-mm. ...
4
votes
2answers
662 views

Convert .WMV using FFmpeg

I'd like to use FFmpeg on the Mac Terminal command line to convert a .WMV file. I'm familiar with the syntax: ffmpeg -i /path/OriginalMovieFile.wmv /path/NewMovieFile.??? However, my recent attempt ...
1
vote
1answer
61 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
93 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 ...
1
vote
1answer
20 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 ...
1
vote
1answer
63 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
132 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
29 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
17 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 ...
0
votes
1answer
103 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
383 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 ...
2
votes
3answers
88 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
90 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 ...
3
votes
1answer
38 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
24 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 ...
1
vote
1answer
36 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 ...
1
vote
1answer
32 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 ...
1
vote
1answer
24 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
21 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 ...
1
vote
1answer
32 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
1answer
26 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 ...
1
vote
2answers
59 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
205 views

Using h264 in loseless mode brings small unexpected results

I got curious on ffmpeg screen capture capabilities and started messing around with a simple realtime capture test in h264. ffmpeg -f dshow -i video="screen-capture-recorder" -video_size 1920x1080 ...
1
vote
1answer
88 views

How should I encode my 4K video stream?

I'm capturing uncompressed 4K video from my Sony A7R II via a video capture device, and am using ffmpeg to save the video. My problem is I don't know what codec to use. The two options I tried are: ...
2
votes
2answers
122 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 ...
3
votes
1answer
29 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 ...
0
votes
1answer
36 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
33 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 \ ...
4
votes
1answer
578 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, ...
0
votes
2answers
53 views

Resolve Bad public atom found when using ffmpeg copy

I have a .mov file with a number of streams both audio and video I'd like to demux (if thats the correct term) into separate files (1 per stream to start with) without loosing quality or resolution ...
1
vote
2answers
194 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 ...
4
votes
1answer
229 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 ...
1
vote
1answer
95 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
30 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
34 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 - ...
4
votes
1answer
44 views

Why is ffmpeg outputting a 600fps video from a 120fps video input?

I have a very short 120fps video. ffprobe input.mp4 shows 118.99fps: ffprobe version 3.0 Copyright (c) 2007-2016 the FFmpeg developers built with Apple LLVM version 7.3.0 (clang-703.0.29) ...
1
vote
1answer
41 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 ...
1
vote
1answer
54 views

Ffmpeg video rotation and center

I was wondering is possible to from 1 video i copy 3 more, then rotate them all by 90 degrees, then move they center with ffmpeg commands? To be clearer what im saying here is picuture what i want to ...
0
votes
0answers
28 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 ...
2
votes
2answers
2k views

How to extract MOOV atom/metadata from MP4 file?

Can one "dump"/extract the MOOV atom from an MP4 file? If so, how? Hoping for an obscure FFMPEG command. I need to be able to process/play a stream without searching for the MOOV atom over and over ...
3
votes
2answers
121 views

ffmpeg Multiple Audio Language and Soft- Subtitle

I'm trying to convert a movie, using ffmpeg, from Movie.mkv to Movie.m4v. The Movie has 2 Languages and 1 subtitle stream. Using ffmpeg -i inputMovie.mkv outputmovie.m4v the result is just one ...
0
votes
2answers
39 views

Fix bad files and streams with ffmpeg so VLC and other players would not crash

It happened me many times that I could end up in corrupted video files: video downloaded from official sources but with torrent and for some reason not all the pieces are there in .mkv, .ts or .mp4 ...