Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated.

learn more… | top users | synonyms

1
vote
1answer
163 views

FFMPEG: filter_complex how do I duplicate one output pad to multiple input pads

This SEEMS like it should be easy, but I can't figure out how to do it! How do I do this? ffmpeg -i file.mp4 -filter_complex [0:v]some_transform(trim, etc.)[c1][c2]; [c1]do_something[out1]; ...
0
votes
0answers
56 views

A command to merge video and audio file using “ffmpeg” and remove the source files

I want to merge audio and video using ffmpeg. I use following command but it keeps the input (source) files while I want to delete them after they were merged. I want to see if there is a command for ...
1
vote
1answer
135 views

How to use ffmpeg to extract live stream into a sequence of mp4

I would like to record a live stream to a sequence of mp4 on disk. I'm able to do one file like this: ffmpeg -i rtmp://source.com/live/stream -r 5 -t 60 c:\test.mp4 This results in one 60s mp4 ...
0
votes
0answers
76 views

ffmpeg cut video in an HLS stream, pauses playback

I have this playlist: #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:7 #EXT-X-MEDIA-SEQUENCE:0 And I want to insert a cut clip as the stream is being generated that is a bit shorter than the normal ...
0
votes
1answer
24 views

Concatenation of files with different codecs attributes?

It shows in the ffmpeg documentation the following code example: ffmpeg -i input1.mp4 -i input2.webm \ -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" \ -map "[v]" -map ...
0
votes
1answer
75 views

Understanding FFMPEG codification process

I am developing some code with FFMPEG and my purpose is to transcode a single video file with keykrame aligned to do Adaptative Bitrate. So, my question are why fps is changing during codification ...
0
votes
0answers
19 views

Directly decode potion of each video frame using FFmpeg

Is it possible using FFmpeg or other video codecs to directly decode only a portion of each frame (e.g. a rectangle specified by the coordinates of the top-left and bottom-right pixels) without having ...
1
vote
1answer
152 views

Set the Creation Date of a file to that of another file with Powershell

Can someone help me get this line right? powershell Set-ItemProperty -LiteralPath '[NewVideo]' -Name CreationTimeUtc -Value ('[CreationTimeOfOldVideo]' -as [Datetime]) I am trying to rotate video ...
1
vote
0answers
31 views

How to name a stream in FFmpeg

When viewing a video/audio stream in MPC I sometimes notice a title before the stream data such as "encoded by xxx" or something simple like "video". What flag does one use to edit this little bit of ...
0
votes
0answers
41 views

Fix Blank Video from Window Movie Maker on Linux?

I'm using Window Movie Maker to import DV footage from a mini DV camera, since the fire-wire card only works on windows. I want to use the files on Linux. Unfortunately, they appear to not be ...
0
votes
0answers
27 views

FFmpeg Encoding Video Avi To Avi + Watermak Audio Frame Sync Error

I get an error as it appears in the picture: How do I fix this? frame sync error Error while decoding stream #0:1: Invalid data found when processing input
0
votes
0answers
71 views

Unable to use paths with spaces in FFMPEG, Android

I'm using ffmpeg command line in Android. When I use the command ffmpeg -i /sdcard/d 1.jpg, it says /sdcard/d: No such file or directory. I tried /sdcard/d\ 1.jpg which showed error as /sdcard/d\: ...
1
vote
1answer
389 views

How to set the number of B frames in FFmpeg for H.265 encoding?

I would like to re-encode an MPEG4 video into H.265 and want to manually control the number of B frames in the encoding. I tried the following command: ffmpeg -i test.avi -c:v libx265 -preset medium ...
1
vote
0answers
92 views

FFMPEG convert image to video displays only black screen

FFMPEG convert image to video displays only black original question, I've posted the question as a guest and can't put the edit.. so I created a new one I'm using ffmpeg4android to use ffmpeg ...
0
votes
0answers
13 views

FFMPEG convert image to video displays only black [duplicate]

I'm using ffmpeg4android to use ffmpeg commands in my android app. I'm using this command to convert a single image file into a video of 30 seconds length: ffmpeg -y -r 1/30 -i ...
1
vote
1answer
1k views

Using ffmpeg to copy metadata from one file to another

I want to use ffmpeg to copy all meta data not associated with core aspects of a video (frame rate, resolution) from one video to another. Is there a simple way to do this with a single command?
1
vote
1answer
48 views

How do I map -vf subtitles with ffmpeg?

I'm trying to burn in subtitles from this format: 0:0 Video 0:1 English Audio 0:2 Japanese Audio 0:3 English subtitle (default) 0:4 English subtitle (translation only) Both are subrip. What I ...
1
vote
1answer
63 views

Exporting VOB Subtitles in ffmpeg

Hey I've been trying to figure out a way to export image based subtitles from MKVs which have been ripped from BluRays or DVDs. The streams are there and can be hard-coded to the video, but I was ...
1
vote
1answer
91 views

ffmpeg -flags2 +export_mvs … to in *.txt

I'm doing research and practices on ffmpeg, I could see the motion vectors on a video between frames through the command "fFmpeg - flags2 + export_mvs ...". Is it possible to record the change of ...
0
votes
1answer
98 views

Possible technique to send video from ffmpeg to html5 video

I am searching for a technique to stream a video to a html5 player and came across ffmpeg. It seems to be able to do that but the quality it has is extradorinary bad (I only tried streaming on a rtp ...
0
votes
0answers
241 views

FFmpeg: how to record what's playing on the soundcard?

I am trying to record what's playing on my soundcard in Windows 8.1 I ran the following to determine what devices I have: ffmpeg -list_devices true -f dshow -i dummy The output listed: DirectShow ...
0
votes
1answer
96 views

How to add the timestamp as a part of the generated image file name in ffmpeg

I am trying to extract png images from a video using ffmpeg and add the timestamp as a part of the generated image file name. Please see the below command I am using for the same ffmpeg -vcodec ...
0
votes
0answers
64 views

FFMPEG Command to scale: How to do this?

I'm using ffmpeg command line in Android and I used the code from ffmpeg.org given as ffmpeg -i input.jpg -vf scale="'if(gt(a,4/3),320,-1)':'if(gt(a,4/3),-1,240)'" output_320x240_boxed.png But ...
2
votes
1answer
65 views

Frames drop when it comes to the last image - Android FFMPEG

I'm using the code ffmpeg -f image2 -framerate 0.2 -pattern_type sequence -framerate 25 -i /Source_Folder/Temp/a%d.jpg Dest_Folder/name.mp4; When I execute it for a number of images, I always lose ...
0
votes
0answers
93 views

ffmpeg-concatenating two or more mp4 videos does not give bad output video

I am joining two or more videos using ffmpeg : ffmpeg -f concat -i mylist.txt -c copy vidname.mp4 mylist.txt file contains enteries: file '1.mp4' file '2.mp4' both videos are of same frame rate ...
0
votes
0answers
174 views

ffmpeg receiving an icecast audio stream and RTMP video stream need to re-stream to wowza

I need to combine an audio stream and rtsp video stream from a camera the addio is about 7 seconds after the video and I need to synchronise it. -rtsp_transport tcp -thread_queue_size 512 -i ...
0
votes
0answers
80 views

How to read ffmpeg console output to interpret the default setting

PROBLEM when using the latest version of ffmpeg with ubuntu 15 and windows 7 I get different results with Ubuntu version of ffmpeg from software centre the resulting video is not viewable on windows ...
1
vote
1answer
50 views

FFmpeg multiple errors relative to path

I've got a list of videos in the directory: C:\Users\Andrew\Desktop\ffmpeg\bin\zaz\part-xxx.mov, the filelist: C:\Users\Andrew\Desktop\ffmpeg\bin\zaz\list.txt which is: file ...
0
votes
1answer
138 views

How to convert a mov to a gif without loosing quality [duplicate]

I am trying to convert a mov I have created by recording my screen with Quicktime (I am running Mac OS El Capitan) but the result is far from perfect. I am using ffmpeg (installed using homebrew) but ...
0
votes
0answers
48 views

Recording video livestream using ffmpeg

I'm trying to record a livestream using the app IP Webcam and also the FFMPEG software. I'm using the following code: ffmpeg -re -i http://172.16.14.118:8080/video test.ts The problem is that the ...
1
vote
0answers
46 views

Does h.264 levels affect the quality of the output?

According to Wikipedia, the example for high resolution of level 4.0 is 2048x1024@30fps. But the resolution of the video ready to encode is 1280x960, which is about level 3.2. Is it better to set the ...
0
votes
1answer
958 views

FFmpeg - Error while opening encoder for output stream #0:0

What's wrong about this command? I want to convert a .avi format video to "video=h.264/.mp4, audio=.mp3" video. ffmpeg -i "C:\video.avi" -c:v libx264 -preset slow -qp 0 -pass 2 -c:a mp3 -b:a 192k ...
1
vote
0answers
24 views

How mux two mp3 and video with ffmpeg

I try this command to mux two mp3's with mp4 video, but it's not working - no sound: ffmpeg -i first.mp3 -i second.mp3 -i video.mp4 -filter_complex amix=inputs=2:duration=shortest -c:a libmp3lame ...
0
votes
1answer
34 views

FFmpeg works on CMD but gives error with PHP exec()

When i run ffmpeg on cmd it works good, i put export LD_LIBRARY_PATH=/usr/local/lib into /etc/profile.d because it couldn't fine libmp3lame at the first But when i run it with PHP exec() it still ...
0
votes
1answer
62 views

Select audio from second input file for ffmpeg movie overlay

I'm working from this example from the ffmpeg wiki ffmpeg -i 1.avi -i 2.avi -i 3.avi -i 4.avi -filter_complex " nullsrc=size=640x480 [base]; [0:v] setpts=PTS-STARTPTS, ...
0
votes
1answer
60 views

Keeping the original bitrate while encoding to H.264

Is there any ways to use the original bitrate of the input file? The purpose I do this is because I don't know whether keeping the original bitrate while encoding will shorten the conversion time. If ...
1
vote
0answers
36 views

(FFMpeg) Split the video by size after conversion

I have a 5,000MB long video in .mp4 format. I would like to split the video into segments by the size. For example, I set the size to 1,024,000KB, or simply 1,024MB, because I want it to be accurate. ...
0
votes
1answer
171 views

FFmpeg - scale and pad

I have a video that I want to upscale but I don't want to lose the aspect ratio of the original video. My source file resolution is 864 x 692 and I want to upscale it to 1280 x 720 I found this on ...
1
vote
1answer
160 views

ffmpeg: Removing parts with silence: Efficiently remove several parts of a Video

I'm trying to remove parts of a video, where there is no (or little) audio. For this I use audacity (Analyze->Sound finder) and export the Label Track. This results in something like this: 0.000000 ...
2
votes
1answer
297 views

ffmpeg HLS playlist not starting at the beginning

I'm attempting to take a 5-minute video file and produce a single-file HTTP Live Stream playlist and .ts file. The playlist file format can support byte-ranges instead of separate files as of iOS 5, ...
1
vote
0answers
60 views

Complex editing with ffmpeg - Adobe Premiere replacement

I do a lot of video editing in Adobe Premiere and a certain branch of the work is very repetitive, so I was thinking maybe I could make a script to automate the process with ffmpeg. After tying ...
0
votes
0answers
54 views

Cannot find the audio bitrate of FLV video

I use ffprobe to get info about video, which i can use for encoding to mp4. And recently i faced with the issue. The issue is input video has audio, but output video is mute. I used php script to get ...
1
vote
2answers
189 views

ffmpeg encoding to VP9 results in Google Chrome-unplayable video, while to VP8 works

Plenty of time passed, since I have encountered the problem, specified in the subject. I tried multiple ffmpeg static builds, have built it from Git repository myself with different flags and on all ...
0
votes
0answers
41 views

cutting and merging video and audio with different audio configs

I have two videos which I want to cut and concatenate together but they have different audio configurations. Clip1 has: video, mono, mono, mono, mono, mono, mono, stereo. Clip2 has: video, stereo, ...
0
votes
0answers
97 views

(FFmpeg) Concatenation with text files error, “TEXT.txt:Invalid argument”

In Concat.txt, I listed out the files to concatenate by: file 'Vid_1.mp4' file 'Vid_2.mp4' In my code, I simply use: ffmpeg -f concat -i Concat.txt -c copy OUTPUT_VID.mp4 Concat.txt and the ...
-1
votes
2answers
62 views

MP4 with 2 audio tracks

I need to copy the second audio track from multiple .mp4 files to .wav files. I found this script for .avi files : @ECHO OFF for %%a in (*.avi) do ffmbc -i "%%a" -vn -map 0:2:0:0:0:0 -acodec copy -f ...
0
votes
0answers
57 views

extract video lecture slide images from mp4 lecture with ffmpeg

I have a video lecture in mp4 format. The lecture is having power point slides and audio. I want to extract all the frames along with their time where slide is changed. Output should be all the slides ...
-1
votes
3answers
614 views

FFMPEG: convert MP4 to same MP4 (in a different container) and add Subtitles

The main reason for this post is that I have movie.mp4 that I have downloaded an SRT for. When I manually add the SRT VLC uses its settings to change the font/size etc of the SRT. But if I Embed the ...
0
votes
2answers
56 views

Reading specific MKV metadata from avconv

I want to extract a specific piece of metadata from an MKV and use it as the filename of a converted file. Example, if I run avconv -i MyFile.mkv I get the following output avconv version ...
0
votes
1answer
63 views

Video compression size s and codecs from JPEG

I am building a data logger with 3 cameras which output as jpeg frames (o.79MB/jpeg @24bit/pixel) at 24 frames per second. I want to take these images and convert it to a video. Each For the video I ...