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
18 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
17 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
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
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
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
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
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
16 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 ...
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
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
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
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
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
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 ...
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 ...
0
votes
1answer
32 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
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
29 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 - ...
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 ...
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) ...
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 ...
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 ...
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
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 ...
0
votes
0answers
55 views

Split HLS TS segment at specific timestamp

I am currently using ffmpeg to segment/transcode a longer transport stream into HLS with 10s segments. Now I want to grab the second segment from the following section: #EXTINF:10.041667, ...
0
votes
0answers
29 views

how to add logo to live stream using FFMPEG

I am using FFMPEG 2.8.6 and ffserver for live streaming. I want to add logo to live stream?
0
votes
1answer
58 views

Convert mkv to mp4 (or webM) with the output file viewable in the process

I'm trying to find a way to convert a MKV file into MP4 and actually already start to view it, while it's still converting. The output file would be viewed via Chrome or Firefox and I would like to ...
0
votes
1answer
42 views
1
vote
1answer
33 views

ffmpeg concat with or without audio

I'm splitting and merging a single video clip using this ffmpeg command: -ss 0 -t 1 -i C:\source.mp4 -ss 3 -t 1 -i C:\source.mp4 -ss 6 -t 1 -i C:\source.mp4 -ss 9 -t 1 -i C:\source.mp4 ...
0
votes
1answer
89 views

Convert variable input formats to black and white MP4

I am currently using an FFMPEG command like: ffmpeg -i input.mov -vf scale=1920:1080 output.mp4 to convert varying input format file to a fixed resolution MP4 output file. One final step I need is ...
0
votes
0answers
147 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 ...
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 ...
1
vote
1answer
86 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: ...
0
votes
0answers
27 views

Heavy automatition with scripting for videos - ffmpeg?

Been here i found a lot of question involving ffmpeg and its filters, however the filters are already built-in and what you generally do is calling them with various parameters. What was wondering is ...
0
votes
0answers
52 views

Detecting silence duration and start time using ffmpeg

Ffmpeg is having a silence detect filter which will provide the silence start second,how can we get the duration of that silence? Also how can we detect silence in multiple audio tracks in same file?
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
0answers
30 views

How to drop frames using ffmpeg without re-encoding and preserving speed

I am working on a video analysis tool and would like to use ffmpeg to save a significantly smaller modified video file to the hard drive. The idea is to "drop" or "replace" all frames except for one ...
4
votes
2answers
94 views

ffmpeg: preserve timecode when converting mp4 to mov

I have .mp4 files created by a Sony A7s camera. They're using the xavc-s codec. I'm converting them to .mov using the command below. The orignal files have a timecode but that is not present in the ...
0
votes
1answer
119 views

FFMpeg: “Invalid audio stream. Exactly one MP3 audio stream is required”

I am trying to adapt this FFmpeg script that encodes all video files in a directory, to instead convert mp3 files present in that directory with similar preferences. The original script: This works ...
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 ...
0
votes
2answers
123 views

ffmpeg split screen two video sources

I am not able to figure out how to get ffmpeg to make a video that combines (muxes) half-height-cropped from two video sources. The latest generation of ffmpeg (3.x) has a "vstack" filter. My ...
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
1answer
44 views

What does the value in parentheses for ffmpeg ssim log denote?

https://ffmpeg.org/ffmpeg-all.html#ssim I ran a command like this: .\..\ffmpeg -i [Input] -i [Output] -lavfi ssim="stats_file=ssim.log" -f null - and saw this in the ssim log outputs: n:70 ...
0
votes
1answer
63 views

Repairing videos producing reading errors

I have several videos which produce reading errors in ffmpeg, thus hindering me to play them in VLC (for example). Is there a way to either skip those problematic parts, or to fix them? The exact ...
1
vote
1answer
49 views

Use ffplay to check how much to brighten video before using ffmpeg?

I have a video which is a bit dark that I'd like to re-encode and brighten up with ffmpeg. As a smarter/faster alternative to running ffmpeg in trial/error mode, is there a way to simply use ffplay ...