Questions tagged [ffmpeg]

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. For help with CLI use only of ff* binaries - ffmpeg, ffprobe, ffplay. For help with API usage, post on Stack Overflow.

Filter by
Sorted by
Tagged with
2 votes
1 answer
6k views

ffmpeg make overlay animation smooth

am using latest version of ffmpeg and i have added image overlay to video and am trying to animate the image overlay on video , its working ok but the overlay movement is not smooth its shaky/glitchy ,...
user44570's user avatar
  • 153
0 votes
1 answer
107 views

Why does AAC render grainy output on my system?

I have two different systems (Windows 10 LTSB and Windows Server 2012) running the same version of ffmpeg and I'm running the following command in both of them: ffmpeg -i input.mp3 -vn -c:a aac -b:a ...
Melody's user avatar
  • 131
0 votes
1 answer
2k views

ffmpeg constantly running out of memory

I use ffmpeg on a wordpress site with a bunch of different commands and logic, which work about half the time. One day everything will run fine while other days I get "cannot allocate memory" errors. ...
730wavy's user avatar
  • 159
0 votes
1 answer
71 views

Error when trying to extract one frame

I'm using FFmpeg version 0.8.17-4:0.8.17-0ubuntu0.12.04.2. I need to extract a frame from a video to generate a thumbnail, and I'm using the next call to FFmpeg: ffmpeg -i /projectes/macba/TEMP/...
Efrem Blazquez's user avatar
1 vote
1 answer
366 views

How to merge external audio track with internal audio track from video file using FFmpeg

We have this multimedia files: a video video.mp4 video track 0 audio track 0 is audio we don't want audio track 1 is audio we want an audio audio.mp3 track How to use ffmpeg with this video and ...
krystian2160's user avatar
0 votes
1 answer
942 views

FFMPEG Video capture with dummy silent audio

I am capturing video of the screen using FFmpeg and its work perfectly with or without audio. I want to capture video with silent audio and I am using "anullsrc" filter but it's not working -y -...
Ankur Tripathi's user avatar
0 votes
1 answer
218 views

Error opening output encoder when trying to merge images with resizing and a fade transition in FFmpeg

I running into an issue when trying to merge images with resizing and a fade transition, but I am running into an error for the output encoder. The command I am currently trying -- ffmpeg \ -loop 1 ...
730wavy's user avatar
  • 159
1 vote
1 answer
1k views

concatenating with crossfade several videos (with audio)

I've got 7 short video clips that are all the same size, frame rate, etc. I want to concatenate them one after another with 2 seconds crossfade, and not lose audio. Taken from an earlier post here I'...
pts2's user avatar
  • 33
1 vote
2 answers
1k views

Converting a 2 channel stereo g729 file to individual single channel pcm encoded file

Whenever I try to convert a G729 encoded two channel file into mono channel pcm encoded wav files I get the following error Input #0, wav, from 'g729stereo.wav': Duration: 00:00:07.07, bitrate: 16 ...
Ananth's user avatar
  • 11
0 votes
2 answers
901 views

Flag incomplete output from ffmpeg

I have a script that uses FFMPEG to convert many files. If I stop it, the file it was currently outputting will be kept in an incomplete state. Is there a way to have FFMPEG write to a temporary file ...
Henrik's user avatar
  • 121
0 votes
0 answers
138 views

ffmpeg recipe for mxf file

Can someone help me develop a command for producing a file that has these specs: MXF (OP-1a) # Audio Channels >= 8 Resolution 1280x720 Drop Frame Yes Bit Rate >= 50 Mbps Frame Rate 59.940 ...
dtmp's user avatar
  • 9
2 votes
0 answers
1k views

Adding a watermark image to a video or a stream is not working

I'm trying to add a logo to a video and a stream with FFmpeg. For the video I'm using ffmpeg –i viddeo.mp4 -i logo.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10" bottom_left....
Abdes's user avatar
  • 131
1 vote
0 answers
859 views

ffmpeg mp4 video not working on iphone

I have ffmpeg working on my site to let users create various mp4s, and they all work fine on all devices except for one of my conversion functions, which isnt allowing the video to play on my iphone. ...
730wavy's user avatar
  • 159
0 votes
1 answer
2k views

Artifact while streaming multicast with ffmpeg

Locally, from my windows machine with ffmpeg 3.3.2 from Zeranoe (same result with 4.0.2) ffmpeg version 3.2.2 Copyright (c) 2003-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) ...
Nicosmik's user avatar
  • 103
0 votes
1 answer
931 views

Why isn't this FFmpeg command for creating a video out of frames working?

I have a series of files starting at frame001.png and ending at frame580.png. I tried to use the following command to compile them into an mp4: ffmpeg -framerate 60 -i frame%03d.png ..\output.mp4 ...
NetherGranite's user avatar
5 votes
2 answers
17k views

Converting FLAC to MP3 using FFMPEG?

So I am using ffmpeg to convert flac files from a certain folder to mp3 at 320k bitrate. I am using this answer as a reference. https://stackoverflow.com/a/41096234/9259505 So the command I use in ...
Desmond Smith's user avatar
1 vote
0 answers
583 views

FFMPEG read multiple audio tracks for volume,silence or stats

I need to be able to analyse a video file containing multiple audio tracks and output the results to a text file. I know there are several filters which could give me the results I'm after, but I'm ...
DMtd's user avatar
  • 21
0 votes
1 answer
2k views

Generate mpeg-dash segments and mpd file using transport stream buffer

I am receiving mpeg-2 transport stream on a buffer and i need to serve the content using HTTP to a web view. I'm planning to implement it using the mpeg-dash specification and a simple HTTP server. ...
Ishaan Shringi's user avatar
0 votes
1 answer
270 views

ffmpeg merge resized images and fade with video file

I am trying to modify code from one of my previous quesitons so that the images are resized to 1280x720 and there is a fade transition. This is my code currently -- ffmpeg -threads 1 -y \ '.$...
730wavy's user avatar
  • 159
11 votes
4 answers
24k views

How to check the version of codecs in ffmpeg?

So, I know about the obvious ffmpeg -version but it doesn't give info such as which version of libx265 is included in my current ffmpeg build. Is there an easy way to check it, apart from converting ...
user14764's user avatar
  • 503
2 votes
0 answers
1k views

ffmpeg concat filter adds audio delay gradually

I use ffmpeg to concatenate a lot of video files, using filter_complex. However, the result file has its audio out of sync gradually. and I use mediainfo --Inform='Video;%Duration%' filename.ext and ...
Mr.Clowder's user avatar
0 votes
1 answer
483 views

Freeze frames in timeline editing

I am trying to slow down a video to half speed beginning from frame 100 with the setpts filter. It works, but from frame 100 I get 100 additional frozen dropped frames before the video continues at ...
Xrio's user avatar
  • 3
2 votes
1 answer
2k views

Encode video with ffmpeg using CUDA without NVENC

There's quite a bit of info about using hardware encoder built in Kepler-based and newer NVidia cards to encode video. As far as I understood all of them just pass the encoding to hardware encoder, ...
Eduard Sukharev's user avatar
0 votes
1 answer
2k views

ffmpeg - dealing with edge blur?

Is there a way to deal with Edge Blur that can occur from old bad quality footage? example This image here has noticable edge blurring, is there a way to resolve this since its a cartoon style image? ...
Ma Dude's user avatar
1 vote
1 answer
1k views

Replace starting frames with a one at specified time with FFmpeg

I'm editing a video of a presentation (screencast of a slide show, so the content changes rarely). The video should be split by chapters. The problem is that the speaker starts their talk on next ...
techraf's user avatar
  • 4,902
1 vote
2 answers
7k views

ffmpeg merge audio with video and lower volume

I am trying to merge an audio mp3 file with a video mp4 file. I want the audio file's volume to be turned down a little bit so that it is background music for the video clip. This is how my code ...
730wavy's user avatar
  • 159
1 vote
1 answer
3k views

ffmpeg - merge images with video

I have a video with audio that I am trying to merge with 2 images - one image before the video starts and one image after the video ends - but right now I am getting this error - Stream specifier ':...
730wavy's user avatar
  • 159
1 vote
1 answer
2k views

Why is FFmpeg video splitting of 595-600 seconds slow compared to 0-5 seconds? [duplicate]

I have to split a 4K 10 minutes video into 120 small video files, each containing 5 seconds of duration. I'm using ffmpeg for splitting the video. The splitting take a very very long time and the ...
aman's user avatar
  • 113
4 votes
2 answers
6k views

How do I quickly generate low quality animated GIFs with ffmpeg?

We generate a lot of thumbnail GIFs whose quality does not matter nearly as much as the time it takes to generate them. Generating high quality GIFs with ffmpeg is very well covered, but I'm not ...
Rjak's user avatar
  • 231
0 votes
1 answer
659 views

Commandline probe for video bitrate per GOP

Is there a way to use ffprobe or similar commandline tools to probe for the video bitrate per GOP? ffprobe only seems to output the overall bitrate for the whole video but not packets. ffprobe -i ...
secondplace's user avatar
0 votes
1 answer
1k views

Create thumbnails of video in django using ffmpeg

Currently i am creating a website where users can upload videos and play them back . The video upload method works fine , the problem is i am trying to create a thumbnail for each video . Instead of ...
Peter Hassaballah's user avatar
3 votes
2 answers
7k views

Extracting frames from all videos in a directory using FFmpeg

I'm trying to use FFmpeg to extract one frame per second from every file in a directory. I use this command for individual files, but I can't figure out how to input a directory instead: ffmpeg -i "...
River's user avatar
  • 51
0 votes
1 answer
164 views

How to get Transport Stream encoded files to properly display file icon image?

I don't know if I am asking this correctly but here goes. I got a DVD box set for my birthday and trans-coded the files to store on my computer for viewing. After dumping the raw files to my computer ...
TheMegolith's user avatar
0 votes
1 answer
414 views

Batch Convert 50 Images (With The Same Audio File) To 50 Videos Using FFmpeg

I have 50 images with different names. In the same folder, I a names.txt file that contains the names of all the images in that folder, like so: apples.jpg oranges.jpg blackberries.jpg etc. And I ...
Dur's user avatar
  • 17
0 votes
1 answer
2k views

ffmpeg - streaming audio with vorbis codec over RTP

I'm trying to set up streaming audio using RTP protocol and Vorbis codec. Starting with minimal example - generated mono samples with sender and receiver on the same machine (two instances of ffmpeg, ...
apdevelop's user avatar
  • 101
2 votes
2 answers
1k views

Converting bgra stream to mp4

I am trying to record video of iOS simulator using the following command; ./fbsimctl stream --bgra --fps 12 - | ffmpeg -f rawvideo -pix_fmt bgra -s 414x736 -framerate 12 -i - -f h264 -r 12 - | ...
suman cherukuri's user avatar
1 vote
1 answer
4k views

No output pad can be associated to link label '1:v'

I am using this code but the error always come with. ffmpeg -loop 1 -t 5 -i 0.png -loop 1 -t 5 -i 1.png -loop 1 -t 5 -i 2.png \ -loop 1 -t 5 -i 3.png -loop 1 -t 5 -i 4.png \ -filter_complex "[0:v]...
ahmadlatif1084's user avatar
4 votes
0 answers
2k views

Time of extracted frame from video using FFMPEG

I'm using the command ffmpeg -i video.webm -vf fps=1 thumb%04d.jpg to get one frame every second. However, I cannot figure out way to get the exact timestamp of an extracted frame. I need that ...
user929951's user avatar
6 votes
4 answers
12k views

Get the list of I-Frames in a video in FFMPEG / Python

I'm trying to select say 10 frames from a given video, possibly with highest variety and scenes. I would like to experiment with various selection scenarios, but the good thing is that the notion of I-...
Tina J's user avatar
  • 529
1 vote
1 answer
3k views

FFMPEG - convert WMV to MP4 Fails

I tried some other recommended conversion commands but none of them worked. Here's the basic command: ffmpeg -i wmvfile.wmv somefile6.mp4 Output: ffmpeg version N-91548-g481741ece0 Copyright (c) ...
Victor's user avatar
  • 11
1 vote
3 answers
1k views

Pixalation Issue in mp4

We are using below ffmpeg command for mp4 creation. output showing the pixalation. I have alter multiple parameter in command but pixalation not getting reduce. I want to kept bitrate constant to ...
Dinesh Gaikwad's user avatar
0 votes
2 answers
2k views

What means [x] mean in FFmpeg

ffmpeg -ss 4.5 -t 3.9 -i input.mp4 -vf "fps=18,scale=360:-2:flags=lanczos,palettegen" palette.png ffmpeg -ss 4.5 -t 3.9 -i input.mp4 -i palette.png -filter_complex "fps=18,scale=360:-2:flags=lanczos[...
user avatar
0 votes
1 answer
674 views

FFmpeg reduces quality of video despite low CRF

I've been trying to encode a collection of videos I have to remove unnecessary logos from the beginning & reduce file size. I'm using FFmpeg to start at approximately 6.2 seconds or 186 frames ...
dylanweber's user avatar
8 votes
3 answers
3k views

flac to mp3 with ffmpeg leads to warning "Frame rate very high for a muxer not efficiently supporting it."

With this command for file in *.flac; do \ ffmpeg -i $file \ -codec:a libmp3lame -qscale:a 6 \ "${file%.*}.mp3"; \ done I converted flac files to mp3. But I get the ...
john-soda's user avatar
1 vote
0 answers
1k views

FFPROBE returns that all I-Frames are IDR frames (KEYFRAME=1) in a TS file

Running ffprobe -v quiet -print_format json -show_format -show_frames -show_streams -unit -select_streams v "D:\CH621.ts" > "D:\CH621.ts.json" -skip_frame nointra Result shows that all 6 I-FRAMES ...
Noslide's user avatar
  • 11
2 votes
4 answers
2k views

How to enhance 22.05 kHz speech audio material for listening purposes to 44.1 kHz?

I have found a really interesting radio novel on the web, and I would like to attract attention of one of my acquaintances to it. Unfortunately the audio material has poor quality, only 22.05 kHz and ...
Konstantin's user avatar
6 votes
2 answers
28k views

ffmpeg: how to create an interlaced h.264 video?

I would like to convert a high quality non interlaced input video into a less quality but wider distributable H.264/MP4 format. The output should have some constraints - in particular: it should be ...
Thomas R.'s user avatar
  • 121
1 vote
0 answers
596 views

Speed up videos using ffmpeg without setpts

Is there any way to speed up videos in ffmpeg but have it actually remove frames instead of just speeding up the time the frame is shown? The reason I want to do this is because I wanted a way to ...
what the's user avatar
  • 210
0 votes
1 answer
244 views

FFMPEG- Audio Channel Issue

We have source file IMX 50 mxf which has 8 interleave audio channel and 7,8 audio is left and right stereo. we need to replace 1,2 audio channel in source with 7,8 stereo channel. we are using below ...
Dinesh Gaikwad's user avatar
0 votes
1 answer
900 views

How to create an image using images with FFMPEG?

How to create an image using images with FFMPEG? Something like below? -f lavfi -i color=c=white:s=1080x1920 -loop 1 -i 1.png -loop 1 -i 2.png -filter_complex [0:v][1:v]overlay=shortest=1:x=0:y=0[v1];...
nzackoya's user avatar
  • 101

1
73 74
75
76 77
141