Questions tagged [ffmpeg]

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 program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
1
vote
1answer
14 views

Producing video for multiple platforms

I want to create videos for multiple platforms. For example youtube and a private school. Now the thing is that I want certain lower thirds to appear on one rendered video and another set to appear on ...
3
votes
1answer
753 views

How to delete the very last frame of a video using ffmpeg / mencoder / transcode or any other?

I am trying to delete the very last frame of a video using ffmpeg / mencoder / transcode / or any other free linux application. Here is what I have so far, and it's only extracting it, it's not ...
1
vote
1answer
85 views

Loop images until the audio ends

I have an audio file 2 hours long and 30 still images related to the audio. I would like to display each image consecutively for about 45 seconds while the audio is playing in a repeating fashion. ...
0
votes
0answers
8 views

Convert hvc1/AAC mp4 to something playable on Mac El Capitan

I gather it's a known thing that Quicktime Player Version 10.4 on El Capitan won't play mp4/ hvc1 codec videos. I haven't been able to do anything with the file using my usual tricks (VLC, iFFMPEGapp/...
0
votes
0answers
5 views

How can i do overlay subtitle with ffmpeg like in the links provided?

I need a script for ffmpeg to do this: Background color (drawbox) for all words like this: Animation (very important) like in this videos: https://www.facebook.com/watch/?v=3985582161542560 https://...
0
votes
1answer
1k views

Error decoding timecode using ffprobe

I'm using ffprobe to get timecode from an mxf which has DF timecode but with a non DF frame rate. I'm getting the error Drop frame is only allowed with 30000/1001 or 60000/1001 FPS. I'm running ...
0
votes
1answer
543 views

FFmpeg issue with aspect ratio

I'm using the following command (in my android application) to overlay an image on top of a video: "-i", video.mp4, "-i", image.mp4, "-filter_complex", "[0:v]pad=iw:if(lte(ih\\,iw)\\,ih\\,2trunc(iw*...
2
votes
1answer
17k 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
1k views

ffmpeg: Crop 21:9 out of 16:9 video

I've several old VOB's (self-recorded DVD's) with 21:9 content that is embedded in 16:9 videos… Width : 720 pixels Height : 576 ...
3
votes
1answer
2k views

Extract multiples images from multiples videos with ffmpeg

I have a MP4 movie filmed with a GoPRO. The GoPRO split the movie in several files (I believe because of FAT32 size limitation). What I'm trying to do is extract some specific frames of the FULL ...
0
votes
0answers
15 views

Possible dropped frames after trimming a video

I have a 30-fps video just downloaded by youtube-dl, and it seems to have black frames in the beginning of it. Part of the result of ffprobe youtube-dl.mp4: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '...
0
votes
2answers
150 views

Split video or export keynote slides separately

I have a problem I am struggling for 2 days. Maybe someone can give me some light. I made a huge keynote presentation (100 slides), with videos and animations. I expected to have one small exported ...
0
votes
1answer
74 views

Which rate control algorithm best preserves quick movement?

I gathered the following rate control algorithms are commonly used when encoding modern video formats like h264, HEVC or VP9. With a constant quantizer (-qp in terms of ffmpeg) all frames are encoded ...
0
votes
0answers
10 views

A video of 1h27m duration, only plays up to 27m

Background I have recovered some large videos as explained here: https://superuser.com/q/1686118/571029 There are 3 videos of almost the same size with the same content, apparently: > ls recoverit-...
1
vote
1answer
414 views

Scale video without keeping aspect ratio in ffmpeg

I want to make a video 'wide', so the width is increased and the height stays the same as of the input image. I use the following command: ffmpeg -i test.mp4 -vf scale="1000:200" output.mp4. ...
0
votes
1answer
56 views

how to pipe:/// through a .sh or Python script, or use some sort of setting files with FFMPEG

First post, so be kind please :) So a quick bit of history. I am using tvheadend, and the inbuilt transcoder murders my CPU, and provides average quality output (it's powered by ffmpeg), if I pipe ...
0
votes
1answer
108 views

How to remove video streams from .wmv with FFmpeg?

I'm working on a method to programmatically remove video and subtitle streams from video files of various formats and have been having some trouble with most .wmv files. Below is what I believe to be ...
0
votes
1answer
10 views

Crop outer parts of frame and rejoin

I have a video 3000x1000. I want the left part of video 1001x1000 and the right part of video 999x1000 to create a video 2000x1000. Center of original frame just dropped. Is this possible with ffmpeg ...
0
votes
1answer
139 views

How do I assign an input video's framerate to the output video when multiple input arguments are present?

To my understanding, if you have only one video input, its native framerate should be used by default if -framerate isn't explicitly defined. For example: ffmpeg -i in.webm ./frames/image%05d.png ...
0
votes
1answer
2k views

Multiple FFmpeg input & output

I just want to know if it's possible to encode audio & video at the same time by FFmpeg -c:a libfaac for audio & x264.exe for video. and any example!
1
vote
0answers
26 views

Copy timecode from SEI Picture Timing to MXF Timecode Stream with FFmpeg

I am receiving an HEVC encoded live stream that contains SMPTE 12-1 timecode in the SEI picture timing, as it is recommended in ITU-T Rec-H.265-202108 Annex D.3.3 Picture timing SEI message semantics....
0
votes
2answers
791 views

libx264 for ffmpeg on linux

I am running ffmpeg on ubuntu. I tried to set the codec to libx264 but it was not recognised by ffmmpeg. Is there a way too install that codec for use by ffmpeg?
1
vote
1answer
304 views

ffmpeg: How to avoid "start: 0.033333" when extraction audio from mp4

When extracting audio and video separately from a mp4 and recombining again ffmpeg -accurate_seek -ss 30 -t 10 -i input.mp4 -vn output-audio.mp4 ffmpeg -accurate_seek -ss 30 -t 10 -i input.mp4 -an ...
0
votes
1answer
421 views

video overlay on another video with rounded corner, transparency, opacity, scaling, and border all together with FFMPEG in PHP

I am trying to change a video with Rotation, rounded corner, transparent, scaling, and border all with together and overlay on a video; I am trying to do this with FFMPEG in PHP but getting issue in ...
0
votes
1answer
258 views

Trying to stabilize a video with FFMPEG so that it looks like it was taken with a tripod

I have tried to stabilize this video this video using ffmpeg. I have tried deshake and vidstabdetect/bidstabtransform. I would like the outcome to look like it was taken from a tripod I have tried it ...
0
votes
0answers
10 views

How to create a sense of motion in stereo audio [migrated]

I have a :15 mono audio file of a car driving by. What I would like to do is use that as the input to create a stereo audio file where the sound 'moves' from left speaker to right for better realism. ...
0
votes
1answer
2k views

Adding date/time information on video for ffmpeg

I am using FFmpeg for live streaming with RTMP to YouTube. My ffmpeg command is like this: ffmpeg -ar 44100 -ac 2 -f alsa -i plughw:1,0 -f v4l2 -codec:v h264 -framerate 30 \ -video_size 1920x1080 -...
0
votes
1answer
53 views

Trouble When Combining two video fields into one (to create an interlaced video)

I'm having trouble with the command found here: Combining two video fields into one (to create an interlaced video) ffmpeg -i tf.avi -i bf.avi -filter_complex vstack,il=l=i:c=i -c:v ffv1 out_i.avi It ...
0
votes
1answer
1k views

FFmpeg change overlay color (with audiovisualiser)

There is a padding (default black) under the audio visualiser in the script below ,how could one change the color of this padding ? I tried adding option "overlay :colors= Blue" but received an error=...
0
votes
1answer
16 views

Can I inject subtitles into a live stream with FFmpeg?

In my live streaming scenario I need to grab a video source and inject subtitles that I generate algorithmically during the stream (i.e. I do not know the subtitles upfront), and publish the streams ...
0
votes
0answers
12 views

Splicing attempt with ffmpeg runs without error, but doesn't insert the file

I am trying to do the same thing that the person asking this inserting video clip into another video but keep original audio question is. My text file, concat2.txt, looks like this: file '...
0
votes
0answers
66 views

VP9 with ffmpeg low quality problem

I'm testing vp9 codec for the web video platform, and cannot get a satisfactory quality for one movie. This is very dark film encoding with vp9 generates ugly circles. This is the original frame (I ...
1
vote
1answer
48 views

Audio discontinuities when generating HLS segments in different processes

I am creating MPEG-TS segments for HLS playback from multiple ffmpeg processes (it will be used for parallel encoding at a later stage). The commands are as follows — they can be run in sequence for ...
0
votes
1answer
1k views

FFmpeg hardcoded subtitles revert to default font if subtitle is html

Here's how I'm using ffmpeg to hardcode the subtitles: ffmpeg -i tmp/input.mp4 -vf "subtitles=tmp/input.mp4:force_style='OutlineColour=&H80000000,BorderStyle=3,Outline=1,Shadow=0,MarginV=20,...
33
votes
2answers
190k views

How do I set up and use ffmpeg in Windows?

I understand that ffmpeg is a powerful tool for video file conversions. I see online in many places people suggesting it for solutions or getting help in how to use it. The problem is I don't even ...
13
votes
4answers
31k views

Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly

I am using below command to push the video to Wowza server, since we are pushing raw H.264 video, the RTP packet does not have the timestamp, and we could observe audio video sync issue while playing ...
0
votes
1answer
27 views

How to ffmpeg encode a video with audio properly synced in Adobe Premiere and Resolve?

I'm trying to use ffmpeg to encode a series of rendered images with a soundtrack. When we import that video into Premiere the audio seems to be 1/2 frame early. When we import that same video in ...
1
vote
1answer
33 views

How can I programatically identify video frames containing a fixed rectangular area of a certain color?

I have video material containing frames with a rectangular area of uniform color interspersed with other content. I would like to identify these frames, with the intent of removing them. The ...
5
votes
1answer
1k views

Largest input image size when encoding a video?

I got a bunch of really large 16 bit videos, approaching 65535×65535 pixels in size. These are essentially high quality timelapse panoramas. I want to convert them to a 7680×4320 movie (8K UHD, 8 bit)....
1
vote
1answer
32 views

FFmpeg seems to write bad .w64 files for pcm_f32le streams

I have a problem with FFmpeg when writing a pcm_f32le stream to a Wave64 file format (.w64). Basically, only FFplay can read the file back correctly. I tried with VLC, but it seems it cannot read any ....
0
votes
1answer
518 views

ffmpeg conversion - vp8 with alpha

I'm trying to convert a mov file (with alpha channel) to webm, vp8 with alpha, on windows. ffmpeg -i C0016.mov -s 960x540 -vcodec vp8 -pix_fmt yuva420p -metadata:s:v:0 alpha_mode="1" ...
1
vote
3answers
1k views

ffmpeg MPTS detection of scrambled streams

I have couple of streams recorded with couple of services which are encrypted. Is there a way to check which streams/programs are scrambled in ffmpeg. I have tried with ffmpeg -i mpts.ts but it doesn'...
0
votes
1answer
378 views

ffmpeg: Unknown decoder 'copy' when concatenating clips

Basically I was following https://video.stackexchange.com/a/15701/26767, which states: This should work faster... ffmpeg -ss 1:00 -t 5 -i in.mkv -ss 2:00 -t 5 -i in.mkv \ -filter_complex "[0][1]...
0
votes
2answers
5k views

How to add correctly ssa/ass subtitles to video with ffmpeg or VLC

I want to add ssa subtitles to video. I've tried with VLC. If I play the video and add subtitles file VLC shows correctly the ssa subtitles but if I convert/save the same video adding the subtitles ...
0
votes
1answer
109 views

Combine mp4 video and a RTMP stream into 1 RTMP output stream via ffmpeg

I need a ffmpeg command to first feed a mp4 video into a RTMP output stream, then followed by a RTMP input subsequently; what should be the parameters to get it working?
1
vote
1answer
500 views

FFMpeg: scale and then overlay keeping overlay aspect ratio

I'm trying to scale a video, and then apply an overlay keeping the aspect ration of the same. This adds the overlay, but it stretches it to the same aspect ratio of the video which is what I'm trying ...
0
votes
1answer
170 views

ffmpeg mov_text subtitle too small when converting mkv to mp4

I want to remux a mkv file into mp4. I used the following command. ffmpeg -i "input.mkv" -c:v copy -c:a copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c:s mov_text "output.mp4" Problem:...
0
votes
1answer
12 views

How to put a trailer clip in the middle of the main video with FFMPEG?

I have two videos of the same format encoded with the same codecs. I want trailer.mkv to be played after n minutes in the middle of main.mkv. After playing trailer.mkv, the rest of the main.mkv will ...
0
votes
0answers
11 views

How to show smaller video file loads faster than a bigger file? [closed]

I have a simple video player app in Android that plays two videos given a URL. One a smaller HEVC-coded mp4 file and the other one a bigger size H264 encoded file. Basically I want to show that the ...
0
votes
0answers
7 views

Combine overlapping video clips into one non-overlapping file

I have over 500 ~30 second (length varies) clips from a now deleted Twitch livestream that I would like to reassemble into one file. However many of the clips overlap each other (some might even be ...

1
2 3 4 5
37