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
0 votes
0 answers
33 views

FFMPEG Trying to make a 8K 30 FPS MP4 video out of several hundred 8K PNG images

I have been trying to make an 8K MP4 video @ 30 FPS out of a few hundred 8K PNG images using FFMPEG since forever, but to no avail. The PNG images are serially numbered, starting from 000000 and going ...
2 votes
1 answer
18k 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 ...
2 votes
1 answer
2k 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 ...
1 vote
1 answer
300 views

How to convert camrec to mp4 using ffmpeg?

I raise such problem but in the same post I raise the solution. The first thing to know is that the .camrec format (from Camtasia) is a compressed file, so we must first decompress these files before ...
1 vote
1 answer
48 views

ffmpeg combine multitrack audio

I have three audio files which I am attempting to combine into a multitrack audio file. ffmpeg -i A.wav -i B.mp3 -i C.wav -map 0 out.mp4 But the result seems to be (testing with ffmpeg -i) just a ...
0 votes
2 answers
179 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
1 answer
400 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 ...
1 vote
1 answer
386 views

How to get ffmpeg/x264 to use same parameters as input?

I'm trying to accomplish a smart rendering workflow using ffmpeg/x264. In short, get ffmpeg to segment the input file. Locate the segment(s) with changes to be made. Re-encode altered segments with ...
0 votes
1 answer
799 views

Encode still image video effectively in FFMPEG

FFMPEG can make video from MP3 file and still image: ffmpeg.exe -loop 1 -i "img.png" -i "%1" -c:v libx264 -tune stillimage -shortest "%1.mp4" But it honestly encodes the ...
0 votes
1 answer
105 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
1 answer
280 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
2 answers
875 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
1 answer
360 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
1 answer
20 views

How to cut video, add audio and burn subtitle while cropping video all in one command - ffmpeg

Currently I have the following command, which cuts the video, adds audio and burns subtitle into the video. -ss 00:00:30 -t -i video.mp4 -i audio.wav -vcodec copy -acodec copy -map 0:0 -map 1:0 -vf ...
1 vote
1 answer
2k views

Concat overlapping videos with ffmpeg using python3

I have a number of videos that overlap in time that were downloaded from an online video stream: 0m00s - 15m10s 14m50s - 30m20s ... The first few seconds (usually around 20 seconds) of a video ...
1 vote
0 answers
26 views

Setting dpi flag in image files generated using ffmpeg

We're using ffmpeg to batch out some TIFF images that are being resized and having white borders created to fit specific paper sizes. The resulting images default to 72dpi, even when the source is ...
0 votes
1 answer
22 views

Lossless masking of MP4/h.264

I am familiar with the UNIX command jpegtran which supports the wipe (1) command line option for JPEG (ITU.81) format. Using ffmpeg one can losslessly encode a jpg image sequence to a MJPEG video. I ...
0 votes
1 answer
2k views

"Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error

Adding all mp4 file in the directory with FFMPEG . my usual command: ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c copy output.mp4 This shows below ...
0 votes
1 answer
233 views

Comparing FFprobe to Wave Agent Beta

Wav Agent outputs the following when I drag the same file in, so the data has to be in the file somewhere, and I just don't know how to look for it: WavAgent: StartTC: 13:09:21:18 Now, FFmpeg with ...
0 votes
1 answer
66 views

Final Cut Pro X won't accept similar files

I have two files that I want to import into Final Cut Pro X. They are both clips pulled from the same source file using the same commands. I am using a generated script to extract dozens of clips at a ...
0 votes
1 answer
364 views

ffmpeg: How to burn in the timecode from a stream's metadata

I have a timelapse video from a GoPro and want to overlay the time of the recording on the current frame. For instance, a frame taken at 9am might show 09:00. It seems like the drawtext filter is the ...
0 votes
1 answer
709 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
0 answers
29 views

ffmpeg command to convert interlaced video to progressive without any loss of quality

Can anyone provide me with the ffmpeg code to convert deinterlaced 80's video to progressive video without any loss of quality - ideally where I could deinterlace only the interlaced fields(I use ...
1 vote
1 answer
510 views

Tool for searching for a video's frame by an image file

I've been searching for a tool that would take an image--a screenshot of a frame from a movie--and search every frame of one video from that same movie for that same image and give me either the frame ...
0 votes
0 answers
14 views

What improvements can I make to my FFMPEG script?

I am trying to create an FFMPEG script for some of my emulated game captures. I normally use Virtualdub2 (formerly Virtualdubmod) to upscale and trim my game captures for YouTube. With my laptop gone ...
0 votes
1 answer
20 views

Codecs supporting variable resolution (y height of frame changes with time)?

I found a video posted on discord once that made the whole webpage underneath it bounce up and down when it was played. I assume it must have been encoded using a codec that supports a variable ...
0 votes
1 answer
34 views

How do you convert an mxf file to wav using ffmpeg?

I am using a Mac, I've run this: ffmpeg -i source.mxf -map_channel 0.1.0 -map_channel 0.1.1 \ -af 'volume=volume=6dB:precision=fixed' target.wav but I keep getting 'no such file or directory' ...
0 votes
1 answer
2k 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,...
0 votes
1 answer
180 views

Extreme video stabilization in Linux, again

I have a 3840x2160 MOV file taken with my EM1.II Olympus camera. It is a videoclip of a tiny bird taken in the wild without any aids. Hence, despite the good stabilization feature of the camera, the ...
0 votes
0 answers
28 views

Gray screen issue after recovered video with ffmpeg

After recovered ".mp4" videos from mobile phone, some videos were corrupt. I used the FFMPEG method to fix the videos. Some CMD commands below; First Code: recover_mp4.exe good.mp4 --analyze ...
0 votes
1 answer
118 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 ...
2 votes
1 answer
176 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
1 answer
2k 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)....
26 votes
2 answers
47k views

Convert mp4 to webm without quality loss with ffmpeg

What is the best way to convert a mp4 file to webm without quality loss (using vp8 or vp9) with ffmpeg? If I do ffmpeg -i in.mp4 out.webm the quality is very bad. I can specify a target bitrate via -...
0 votes
1 answer
972 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" ...
0 votes
2 answers
8k 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
1 answer
482 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
1 answer
963 views

Crop HD (1920x1080) video ratio from the center in ffmpeg

I have an HD video (1920x1080). I am trying to crop the video from the center so the resolution is (960x1080) and looks like a portrait video. I have tried the following command with no luck: ffmpeg -...
1 vote
0 answers
160 views

ffmpeg drawtext + colorspectrum - background partly transparent only

I am currently working with the drawtext/alphamerge filters to have the text coloured with colorspectrum on a transparent background. While I have been trying many options, the closest I managed to ...
0 votes
1 answer
357 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
1 answer
633 views

Seeking in large HLS input on ffmepg

I'm trying to create an mp4 clip from an HLS input stream that is over 36 hours long. My ffmpeg command looks more or less like this: ffmpeg -live_start_index 0 -ss 32:22:19.82667 -i https://example....
0 votes
1 answer
35 views

FFMPEG: FIFO buffer to smoothen bandwidth requirements?

I'm trying to achieve something pretty simple, but it's very hard to describe: There is a live video stream which uses h264 for it's video, and m4a for it's audio. This stream is not mine, and I have ...
1 vote
1 answer
71 views

ffmpeg: Changes to FPS only work if I don't include audio in the export, how can I keep audio and choose the FPS value?

How can I export a video to .mjpeg at my selected FPS value (7 FPS for stop motion video) while including audio in the export? I use the -i input command in ffmpeg to include my .ogg audio file: ...
2 votes
0 answers
501 views

How can I change the sample rate of an audio file, without re-encoding?

I have a lossy AAC audio file. I would like it to be slightly faster, and slightly higher pitched. I would like to avoid loosing any audio quality, such as by re-encoding the stream. I am well aware ...
0 votes
0 answers
30 views

Can't find the right video encoding setting to be able to send video over Messenger

I have been trying to transcode an existing video (let's call this input.mkv) to a new video file (output.mp4) in order to be able to send it over Facebook's messenger in the browser. So far, all my ...
14 votes
4 answers
10k views

ffmpeg: Create a black background video from audio, for Youtube upload

I have MP3 audio that I would like to turn into video, by joining the audio with a solid black background. I then want to upload the video to Youtube. Using ffmpeg, I have tried this command, and a ...
0 votes
2 answers
2k views

Injecting/embedding/adding/writing metadata to a .mp4 file so it's recognised as 360

I'm working on a library that injects/embeds/writes metadata into a .mp4 file to allow the video to be displayed correctly as a 360 video. The input file is a standard .mp4 file in the equirectangular ...
0 votes
0 answers
37 views

mpeg-2 422P@H-14 by ffmpeg

I want to convert videos to mpeg2 422P Profile H-14 Layer, (422P@H-14), with the use of ffmpeg. What arguments would i need to use? I followed the comments in this forum post to solve my problem. I ...
1 vote
1 answer
381 views

(ffmpeg - Audio) Two streams, One Channel, Two Languages

I need your help with a command line for ffmpeg that I just started to use. Here's the deal : I have a .MOV file witch contains 18 audio streams (for 7.1). Stream 1 to 10 is for original language ...
0 votes
1 answer
318 views

FFmpeg combine Stream Loop and Filter into one command

I'm currently running two FFmpeg commends: [1] Looping a video for the entire duration of an audio file. ffmpeg -stream_loop -1 -i 1min-loop.mp4 -i 2min-song.mp3 -shortest -map 0:v:0 -map 1:a:0 -y ...

1
2 3 4 5
40