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
0answers
461 views

How to extract frames with ffmpeg? What I'm doing wrong?

I'm trying to extract frames from an MP4 using FFMpeg. When I run: ffmpeg -i aaa.mp4 -r 10 extraced%03d.png I keep getting this error: Could not open file extracted"path-were-ffmpeg.exe-is/a....
1
vote
0answers
2k views

FFmpeg Upscaling Video

First I just want to say a bit more about my title, I am not referring to the fact that upscaling doesnt add data(as often asked when upscaling) - but something different. Example I have raw video ...
1
vote
0answers
269 views

.swf file gets cut short after conversion to mp3 with ffmpeg

So I have a .swf file which i need to convert to .mp3 (or any other audio file), it looks like this: vytautas@vytautas-SATELLITE-C660:~/Desktop$ ffmpeg -i rem.swf ffmpeg version 2.2.git Copyright (c) ...
1
vote
0answers
127 views

Is there multiple types of transitions in ffmpeg while merging two or more videos?

I have 3 video files. I am using ffmpeg library to merge them all. While merging them right now I am using fade In/Out transitions only. I want to enhance that feature in my site, can I do ...
1
vote
0answers
149 views

Mix arbitrary number of audio files into single stereo audio file using ffmpeg

I'm currently working on a karaoke application and need to merge arbitrary number (from 1 up to 12) input tracks together with a song track into single output audio file that should be stereo. I ...
1
vote
0answers
80 views

How can I select the most “steady” frames from a video with ffmpeg, where less motion occurs?

I would like to use ffmpeg to select out frames from a video to make a preview picture. In the past I selected out frames manually: I extracted 1000 frames at equidistant time and then I picked out ...
1
vote
0answers
375 views

Converting RAW Blackmagic Intensity Card frames

I am trying to convert raw video frames that I have captured using a Blackmagic Design Intensity card. The output frames are of the format: YCbCr 4:2:2 packed 8 Bit UYVY Abekas How can I convert ...
1
vote
0answers
182 views

Overlay two sequences of png's and turn them into a movie

I've found how to turn a png sequence into a movie and I've found how to overlay two movies using transparency but I don't know how to do both things at once (using png's transparency). The bottom ...
1
vote
0answers
2k views

Using avconv to convert an animated gif to mp4 with sound

I want to convert an animated gif and a midi (music) file into a mp4 video. Is it possible? I saw a lot of topics on documentation, foruns and stackexchange sites, but I didn't find. It works with 1 ...
1
vote
1answer
136 views

FFmpeg : Slow seeking on compression process

I use ffmpeg to cut some parts of videos. To target the part I want, I usually use the options -ss 01:00:00 -to 01:00:10. That allow me to select the 10 seconds I want to grab but more far the start ...
1
vote
0answers
975 views

FFmpeg unable to find a suitable output format when run from script

I'm trying to write bash script, which I can use to start encode of my video for web player, and also log to file when it started / finished. It looks like this: #!/bin/bash >/var/www/stat/encode....
1
vote
0answers
505 views

FFMPEG DirectShow: Could not run filter

I'm trying to take a picture from my webcam using FFMpeg. This is what I'm trying to run: @echo off :: Get date and time for /F "usebackq tokens=1,2 delims==" %%i in (`wmic os get LocalDateTime /...
1
vote
0answers
1k views

ffmpeg - complex filter putting 2 videos side by side results in audio out of sync

We have 2 videos. One is a professionally produced video by an artist that performs a song stopping in certain parts to let the user sing. The second video is a stream that is recorded while the user ...
1
vote
1answer
691 views

using ffmpeg to convert mxf to yuv

I am trying to convert mxf file to yuv using ffmpeg. I gave the following command : ffmpeg.exe -i eldorado_really_cutdown.mxf output.yuv but I am getting some errors. This is the output I am getting ...
1
vote
0answers
919 views

Play two files in VLC dummy and give sout parameters to both of them

I want to add multiple files to VLC's web interface. And the commands below do exactly that. Two files are added to the VLC's web interface's playlist. But as you can see, that's not all I wanted - ...
1
vote
1answer
524 views

FFmpeg map optional (audio) stream

I use this command to produce a file scaled and with an overlay image: ffmpeg -i input.* -i overlay.png -filter_complex "[0:v]...; ...[1:v]overlay=... ... [resultingvideo]" -map "[resultingvideo]" ...
1
vote
0answers
159 views

Mixed results writing M4A metadata

Given this file I am having mixed results writing metadata. For example this command ffmpeg -i confetti.mp4 -c copy -f adts - | ffmpeg -i - -c copy -bsf aac_adtstoasc -movflags faststart \ -...
1
vote
0answers
549 views

Split video into equal file size parts with ffmpeg [duplicate]

i am trying to split a video file into equal file size parts with ffmpeg. At first i get the file size of the original and divide it with the desired number of parts to get the file part's file size. ...
1
vote
0answers
923 views

stream byte arrays to a video using ffmpeg

This is what I am trying to do: I receive jpegs from an IP camera. If motion is detected I want to upload the jpeg still shot to my server. To save on bandwidth I save each jpeg to a file on my ...
1
vote
0answers
171 views

How i could cut exactly frames from an avi with ffmpeg

I use the command below to cut it to frames. I want 48 frames for my video which is 7 seconds. ffmpeg -i output.avi -r 6.4 -s sxga images\\image%d.jpeg It creates me the frames but i was use it ...
1
vote
0answers
665 views

ffmpeg HLS demuxer handling of videos with overlapping timestamps

I have a HLS stream, that contains a number of arbitrary TS segments, some of which may refer to the same file. Desktop and mobile Safari plays it just fine, e.g. if I have a playlist that contains ...
1
vote
1answer
175 views

How i could cut the last 7 second of my video with ffmpeg?

I captured a video from my camera, but I don't know exactly how long it is. I want to use ffmpeg to keep and cut only the last 7 seconds of the video. Is this possible? I tried the command: ffmpeg -...
1
vote
0answers
335 views

Using pipes on ffmpeg has different behaviour than using files

I am using pipes to provide input and to send out output from FFmpeg The command I use is essentially ffmpeg -i pipe:0 -f flv pipe:1 I am using a Java program that basically provides an input ...
1
vote
0answers
871 views

How to use the input stream timestamp, as the output stream timestamp?

I use this command to convert: ffmpeg -copyts -i test.flv -vcodec libx264 -acodec libfaac -f flv test-out.flv but the timestamp in the output file is different from original file. the starting ...
1
vote
0answers
412 views

Conversion from MP4 to WAV results in desync with FFmpeg, but not when using VLC

Converstion to .wav from .mp4 video causes a desynchronization when the conversion is done with FFmpeg, but not when with VLC. I've been trying to figure this out for days now and any help is greatly ...
1
vote
0answers
1k views

How to use FFMPEG to transcode mp4 video for http stream in Amazon S3?

I want to use FFMPEG to transcode my mp4 video for http streaming on Amazon S3 without downloading. However, with reference to this post, I still cannot get it streaming: ffmpeg -i input.avi -c:v ...
1
vote
0answers
212 views

Cutting and joining multiple video segments in FFMPEG

I'm trying to do this in as few steps as possible since I'm doing this in Android and FFMPEG SegFaults if run multiple times (in the same process). Assume I have a 25 minute video: I want to cut from ...
1
vote
1answer
402 views

ffmpeg does not recognize any audio filters

I am trying to reduce noise from the audio files I extracted from videos. The objective is to recognize speech, so I was trying to filter out the frequencies above 300 and below 3000hz. I tried to use ...
1
vote
0answers
132 views

Fast & Accurate trimming of small parts from mp4 files

I am looking for a method to quickly trim around 2 frames from the edges of mp4 files. Using ffmpeg I am able to do that with the following, however i'd like something faster: ffmpeg -y -i myVid.mp4 -...
1
vote
1answer
617 views

Why does FFmpeg append blank black video to the end of my MP4 files when compressed from MOV?

I have several large MOV files that I want to compress to MP4. Unfortunately, when I use FFmpeg, it appends lots of black (blank) video at the end. (The destination file is longer than the source ...
1
vote
0answers
154 views

Add background music at specific time period in mp3 files using ffmpeg

I want to add background music after every 5 seconds in .mp3 file using ffmpeg. I have 2 audio files : input1.mp3 of 5 seconds and input2.mp3 of 4 minutes 04 seconds. I want to add input1.mp3 after ...
1
vote
0answers
133 views

Concatenation of two avi files using ffmpeg in windows 7 [closed]

I have two avi files namely test.avi and SUNP.avi . I need to concatenate these two files into a single avi file I tried with this code ffmpeg -i concat:test.avi|SUNP.avi -c copy new1.avi It is ...
1
vote
0answers
403 views

Second audio stream gets muted and affected by first audio stream's trimming in FFmpeg

I have filter_complex and atrim options in this FFmpeg command: ffmpeg -i adele.mp3 -i Ruby\ on\ Rails\ 101-\ What\ is\ Ruby\ on\ Rails_.mp4 -filter_complex \ "[0:a]aformat=sample_fmts=fltp:...
1
vote
0answers
3k views

Opening a H264 stream from DVR using VLC/FFmpeg

I've been tinkering with ITX's DVR for the past few days, trying to connect to its RTSP stream using the SDK that manufacturer provides. The official syntax goes like this: PLAY rtsp://192.168.100....
1
vote
1answer
597 views

ffmpeg encode timestamp framerate seems to skip frames

I'm attempting to make a video that has the timestamp (from movie start) shown on the frame. I'm doing this with the following: ffmpeg -loop 1 -framerate 30 -t 3600 -i /path/to/my.png -s 1280x720 -vf ...
1
vote
0answers
1k views

FFMPEG - Stream discovered after head already parsed

I am trying to live transcode an RTMP stream to another RTMP HLS stream using the following command: ffmpeg -re -i rtmp://localhost/videochat/testing -c:v libx264 -c:a:0 libfaac -b:a:0 480k -f flv ...
1
vote
0answers
1k views

Scale (or center) watermark with ffmpeg to same resolution as output file

I want to have the watermark scaled to the same resolution as the output file. How do I do this? Alternatively, how do I center the watermark in the middle of the output instead? Here is what I have: ...
1
vote
0answers
336 views

ffmpeg mysteriously adding start delay

When converting a mp4 to TS, I am observing ffmpeg adding a "start" delay that the input file did not seem to possess. For my input, ffprobe reveals: ffprobe version N-57943-g7b76976 Copyright (c) ...
1
vote
0answers
1k views

exec ffmpeg not working for nginx-rtmp-module on AWS Ubuntu

I was trying out the nginx-rtmp module from https://github.com/arut/nginx-rtmp-module. While implementing the example for ffmpeg given in the link, my exec ffmpeg is not getting executed. My rtmp ...
1
vote
0answers
530 views

compressing video with ffmpeg while maintaining high frame rate

Update: I watched the output video on a different machine and it was fine. The issue must've been with the program I was using to watch the video. Nevermind. I'm trying to compress videos taken with ...
1
vote
0answers
2k views

How to stream video from VLC with subtitles overlayed?

I am trying to stream a video with VLC with subtitles overlayed on my local network. The command I am using without success: vlc -vvv myvideo.mkv :sub-file=mysub.srt :file-caching=300 ":sout=#...
1
vote
1answer
396 views

.mov files recovered with TestDisk won't play properly

I accidentally deleted some .MOV files from a FAT32 formatted SD card. Using Testdisk I was able to recover all the files, however, they don't play properly. They'll play for the correct length of ...
1
vote
0answers
761 views

ProRes transcoding in ffmpeg too slow

We are trying to transcode movies / clips into ProRes LT by using following options: ffmpeg -threads "16" -i "$2" -flags +ildct -vcodec prores -profile 1 -qscale 4 \ -threads "16" -r 24 -vf "yadif=0:-...
1
vote
0answers
308 views

Wrong duration for H.264 MOV files

We are using ffmpeg to get the metadata for video files. For H.264 MOV files, ffmpeg is wrongly giving the duration as 00:05:34, whereas the real duration of the video file is 00:00:30. It is ...
1
vote
0answers
37 views

“Freely positionable” Videos

The following is a requirement for loading a video into National Instruments DIAdem: The videos must be freely positionable, so that DIAdem can display each frame in the videos. Video - DIAdem 2012 ...
1
vote
1answer
530 views

keepalive type and frequency in ffmpeg

My company has a bunch of IP cameras that we distribute - specifically Grandstream - and the manufacturer has changed their firmware. The normal keepalive that ffmpeg uses for the rtsp streams ( ...
1
vote
0answers
264 views

How to convert video file saving all metadata except global?

I have .m4a video file. mediainfo: General Complete name : C:\foo\Brazil (HD).m4v Format : MPEG-4 Codec ID ...
1
vote
1answer
877 views

How to use avconv or ffmpeg to convert any video to an exact size and shape

We have a system that supports streaming video, but we support multiple players. I have multiple systems that I COULD use for this. Currently, I've been using the media server that we use to stream ...
1
vote
0answers
576 views

FFmpeg drawtext width

It seems that ffmpeg is great for single line scrolling, but I have not been able to find anyone or any examples that set a multi-line based on a width. I have been looking at DrawText instead of ...
1
vote
0answers
155 views

FFmpeg audio dont work in converted videos

NOTICE: When I convert videos via terminal and download them from ftp into my PC, the audio works fine. I use: if($ext == "avi" && $convert_avi == true) { $convert_source = ...