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

How to set profile compatibility of an fMP4 using ffmpeg?

I'm using ffmpeg to generate a fragmented mp4 stream that will be consumed by an HTML5 player. I think I have a correctly formatted mp4 stream of data with an empty moov at the start and a series of ...
1
vote
0answers
644 views

Embed album art image to FLAC file with ffmpeg

i am trying to embed Album Art to a FLAC file with ffmpeg. It seems that it cannot embed Album Art to a FLAC File and the file that is generated has zero length. I know that you can put the image in ...
1
vote
0answers
328 views

FFMpeg generated m3u8 segmented videos long delay before playback starts

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 ...
1
vote
0answers
586 views

FFmpeg mp3 file header restore

I got mp3 files without headers, ffmpeg -i shows: . . . [mp3 @ 003e9700] Header missing . . . They sound well, but not in all players. So how can I restore header info or re-pack file without ...
1
vote
0answers
344 views

How can I reduce the choppiness of my ffmpeg conversions

Here are the options I'm sending ffmpeg: ffmpeg. -i input.flv -crf 18 -profile:v baseline -level 3.0 -pix_fmt yuv420p -preset veryslow output.mp4 Here's the input file: ...
1
vote
0answers
605 views

I get wrong aspect ratio for images and video converted using ffmpeg

I am trying to convert some old movie files to images (and later to reencode as h.264). The problem is that the resulting images are stretched vertically. Here is the ffmpeg command: ffmpeg -i ...
1
vote
0answers
457 views

ffmpeg speed up video but keep same quality

I made a timelapse out of an image sequence using ffmpeg and the copy codec to disable compression and keep the quality to a max. The timelapse is a bit too long (10 minutes and up) so I tried to use ...
1
vote
0answers
702 views

How to save udp stream to .ts files whith ffmpeg while keeping timestamp?

I need to record a live udp stream containing multiple TV programs ( up to 30 ) to .ts files .To do so i'm using FFMPEG . I have a muxer at work , but i dont go there everyday so im using a sample ...
1
vote
0answers
355 views

Trying to remove 1152 samples, but the queue is empty

I am streaming mp3 files,using this command : ffmpeg -re -i 'INPUT.mp3' -map_metadata -1 -map 0:0 URL I create a loop which stream files,and there is no problem with reviving stream,just from ...
1
vote
0answers
589 views

Re-stream (forward) UDP-Live-Video-Stream (using winsock) reduce video quality?

So, I used ffmpeg to stream the live webcam using UDP protocol to port 1111 : ffmpeg -f dshow -i video="Lenovo EasyCamera" -f mpegts udp://localhost:1111 When I played it directly by ffplay from ...
1
vote
0answers
36 views

silence in front of generated audio mpegts

./ffmpeg/ffmpeg -i a.ts -acodec aac -strict -2 -loglevel debug audio.ts Input #0, aac, from 'a.ts': Duration: 00:00:05.06, bitrate: 126 kb/s Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp, ...
1
vote
0answers
180 views

Why can't I get a delay between two audio files

I would like to delay only ONE of the two input files. But, even with a value of 5, itsoffset is not working....why?? ffmpeg -itsoffset 5 -i one.m4a -i five.m4a -strict -2 -filter_complex ...
1
vote
0answers
280 views

Ffmpeg not copying location metadata

I'm converting vidoes and even though I"m using -map_metadata 0 ffmpeg -i input.mp4 -map_metadata 0 output.mp4 The above code defaults to libx264/libvo_aacenc. The location metadata is not copied, ...
1
vote
0answers
127 views

Is it possible to record live streams with ffmpeg in an audio file with embedded timestamps?

I would like to record the daily programme of an IceCast radio channel (maybe a 24 hour stream), and then select my favourite programmes by embedded timestamps - if possible - according to the daily ...
1
vote
0answers
436 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 ...
1
vote
0answers
1k 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
116 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
134 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
73 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
358 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
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
0answers
935 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 ...
1
vote
0answers
491 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
976 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
0answers
252 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
890 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
0answers
168 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
158 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
854 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
167 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
606 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
0answers
301 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
746 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
396 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
191 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
0answers
129 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
0answers
569 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
151 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
352 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 \ ...
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 ...
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
310 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
982 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
497 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
724 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 ...
1
vote
0answers
280 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
0answers
248 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 ...