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
-1 votes
2 answers
867 views

How to Compress Files Quickly and Efficiently?

I have a folder containing various videos that I want to compress so that I may share it with someone who has an unstable internet connection. I tried 7z, gzip, tar, lzma, xz, and many more for ...
3 votes
1 answer
3k views

Codec 'mpeg4' (12) is not supported by the bitstream filter 'h264_mp4toannexb

rohit@rohit:~/Desktop/hyland$ ffmpeg -y -i sample.mov -codec copy -bsf h264_mp4toannexb -map 0 -f segment -segment_time 5 -segment_format mpegts -segment_list "segments/prog_index.m3u8" -...
1 vote
1 answer
540 views

Knowing when not to normalize with ffmpeg loudnorm

I've written a script that uses the ffmpeg loudnorm filter to normalize the audio for video files - it does a first pass to analyze the file, then a second to normalize it using those values. Ideally ...
1 vote
0 answers
31 views

Combine one image + one audio (53 hours) file to make one video using FFmpeg without taking long time

I want to make a video from an image and an audio which is 53 hours long. is there any ffmpeg command can do it without taking forever😂
0 votes
1 answer
1k views

FFmpeg. Combine drawtext, fade and afade filters with filter_complex

I have these two codes that work fine, separately ffmpeg -i in.mp4 -filter_complex "drawtext=fontfile=Lato-Light.ttf:text='TEXT':fontsize=60:fontcolor=white:alpha='if(lt(t,2),0,if(lt(t,4),(t-2)/...
2 votes
1 answer
617 views

Re-encoding videos for 10year old Panasonic TV-set

I would like to be able to play videos other than TV on an Panasonic TX-L32GN23. This TV-Set came with a proprietary mediaplayer (Viera) which in case of that TV-Set recording to its manual can play ...
1 vote
1 answer
306 views

how to convert a given video file to all possible codec/container format combinations

I posted the same question in Video Production StackExchange site 8 days and there is not even a single answer to that up till now. So now I decided to try my luck here in Superuser site. My semi-...
1 vote
1 answer
734 views

FFMpeg switch between live stream and a text video when streaming to YouTube

I have been running a Youtube livestream for a while and I am developing a solution so that I can run the stream remotely through a browser. My plan is to have an ASP.net core web api project running ...
1 vote
1 answer
3k views

FFMPEG: “DLL amfrt64.dll failed to open” on Windows

I experienced the following issue. I'm using ffmpeg to batch resize/compress photos and videos on Windows 10. I used a version 3 and since upgraded to ver 4.4 of ffmpeg the quality of outputs dropped. ...
14 votes
2 answers
20k views

How to list streams with FFmpeg?

I’m reading the FFmpeg documentation from top to bottom and I’ve reached stream selection and stream specifiers and while the inference logic (i.e. which stream to operate upon) is impressive I think ...
0 votes
0 answers
1k views

Fix TS File Audio Sync Issue Using FFMPEG

I have a few .ts files which I've downloaded from the web that I want to chop up into smaller files. I'm using FFmpeg to do this, but each time, after about 3 minutes the video starts to fall behind ...
1 vote
1 answer
2k views

How do I get this simple ffmpeg command to work in Automator?

I'm having trouble getting a simple Automator shell script to work. I'm trying to get an ffmpeg command line to run a task on a file that is dropped onto the application icon. This is what I've done: ...
2 votes
1 answer
5k views

ffmpeg gives error DTS out of order and Non-monotonous DTS in output stream

I'm trying to concatenate multiple mp4 videos into one using ffmpeg. The "how to" for this is mostly identical across the web: ffmpeg -f concat -i inputfile.txt -c copy output.mp4 But when I try to ...
5 votes
1 answer
8k views

How to change Codec ID with ffmpeg

Now I have a mpeg4 file with Codec ID 'isom (isom/iso2/avc1/mp41)'. I need to remake its ID to 'mp42' (I have to save all other settings without changes). what commands I should use in FFmpeg to do ...
1 vote
0 answers
176 views

Matroska audio reports wrong bitrate when adding a cover

I'm trying to make an audio-only Matroska file, but keep having an issue in regard to the reported bitrate of the archive. To demonstrate it, I'm first making a simple .mka without any attachments ...
77 votes
3 answers
92k views

FFMPEG Splitting MP4 with Same Quality

I have one large MP4 file. I am attempting to split it into smaller files. ffmpeg -i largefile.mp4 -sameq -ss 00:00:00 -t 00:50:00 smallfile.mp4 I thought using -sameq would keep the same quality ...
0 votes
0 answers
311 views

Audio stream to file with ffmpeg but trim the audio after a specific time

Is there a way to save an audio stream to a file with ffmpeg but trim it automatically after it reaches a certain time? I'm saving a stream from fmstream.org to a raw file then I stream it from there ...
0 votes
0 answers
539 views

To extract and get some parts/clips out of a MP4 file to be concatenated into another [duplicate]

How to extract/get some parts/clips out of a MP4 file to be concatenated into another new MP4 file? I tried to get/extract out only first 19 seconds, also a part beginning from 32th second up to its ...
1 vote
0 answers
305 views

FFMPEG Motion Vector Block Format

I'm trying to extract motion vectors from h264 videos using ffmpeg and the AVSideData API. I'm a little confused about the format as there are some subtleties that aren't well documented, and I'm ...
0 votes
2 answers
2k views

ffmpeg: How to copy all but also add in a convert of an existing audio stream?

I have several videos that have video, AAC audio, some with an additional alternate content audio stream, and subtitles. What I want to do is to copy EVERYTHING as-is while inserting a converted a:0 ...
0 votes
1 answer
395 views

Create video from many single-frame video files

I have a directory full of videos, each containing only a single frame: foo/0001.flv foo/0002.flv foo/0003.flv ... ffmpeg gives the following details about said videos: Input #0, flv, from 'frames/...
4 votes
1 answer
3k views

FFmpeg w/ V4L2 for virtual webcam on Linux that crops, filters real uvc webcam

Wondering if it would be possible to use ffmpeg w/ v4l2 support (on say Ubuntu Linux) to create a virtual webcam device, that presents a transformed version of real webcam's output. The idea would be ...
10 votes
2 answers
11k views

Generate hls stream using h265 codec

I am trying to convert h264 video to an hls stream which uses h265 codec. As this bitmovin article suggests, we need to use fragmented mp4 for the hls/h265 stream to work on safari. I am able to ...
0 votes
1 answer
169 views

ffprobe output never show flag that represents loop info

Since i need to get a GIF file's "is loop" and "how many?" with ffprobe. I watched all official documentations and tips but still cannot found what i want. Is there some param like ...
1 vote
1 answer
138 views

How to have a side-channel stream while writing video recording to a file

I'm trying to come up with a way to use ffmpeg to write a webcam recording to a file, while sending some frames to a python process for online processing. The important parts are - The write of the ...
1 vote
2 answers
6k views

Permission Denied in Batch File for FFMPEG -- Windows

I am trying to use FFMPEG to resize a video. I want to do this with ease repeatedly, so I tried to create a batch file (I'm using Windows command line), similar to previous ones which I've ...
0 votes
1 answer
93 views

Join mp3 exported from audacity with image using FFMPEG but youtube cannot process it

Is there some cause to this incompatibility : how to fix this ? I can play it locally. I'm using an animated gif 1766 * 1080 FPS 4 I converted to mp4 ffmpeg.exe -i test.gif -movflags faststart -...
7 votes
0 answers
13k views

FFMPEG - if yuv420p pixel format is deprecated, which one is newer and recommended? [duplicate]

I am running this script and I get this warning: "deprecated pixel format used, make sure you did set range correctly using ffmpeg" If the pixel format yuv420p is deprecated, which one is ...
1 vote
0 answers
336 views

FFmpeg concat produces longer output compared to the combination of all segments

I have around 96 .aac files in a directory that I want combined to produce an output.aac file. Similarly, I have 96 .ts segments to pair with the audio file. The .ts files produce an output of 9 ...
1 vote
1 answer
545 views

-vf pp video filter: who is correct, the developers or the documentation?

I'm using ffmpeg version n4.3.1-18-g6d886b6586 Copyright (c) 2000-2020 the FFmpeg developers and want to use autolevels on a video. According to the pp (postprocessing) filter documentation (section ...
1 vote
2 answers
583 views

Why is deshake background green and how do I make it black?

FFmpeg version: 4.3.2-2021-02-27-full_build-www.gyan.dev, Windows When I apply the deshake filter to a video, e.g.: ffmpeg -i input.mp4 -vf "deshake=rx=64:ry=64:edge=blank" -c:v h264_qsv ...
1 vote
0 answers
575 views

Subtitles misaligned/missing when cutting video using ffmpeg

TL;DR: After cutting a video with ffmpeg, subtitles are invisible in VLC player even though there is a subtitle stream. I have an MP4 file of a TV recording of a movie and I want to cut off the parts ...
2 votes
0 answers
923 views

Measuring Audio Levels with FFmpeg

I've used FFmpeg in a little Automator script to bulk-analyze the audio levels of video files. I'm trying to make sure that I'm using the best FFmpeg command. The two values I need reported are ...
1 vote
2 answers
23k views

Adding ffmpeg as environment variable

I've been trying to follow step two of the dependence guide of Microsofts Project Malmo. https://github.com/Microsoft/malmo/blob/master/doc/install_windows.md I need to create the environment ...
1 vote
1 answer
737 views

Compiling FFMpeg for windows

I'm interested in having the libfdk_aac library in ffmpeg. I followed the guide for compiling ffmpeg from this site: https://github.com/m-ab-s/media-autobuild_suite The end result is a big directory ...
0 votes
1 answer
2k views

How do I convert 12-bit H.265 videos to 10-bit H.265 without quality loss?

My laptop seems unable to handle 12bit HEVC videos efficiently. The video appears to stagger when I play it so I'm looking to convert them to 10bit H.265. How do I do this using, ffmpeg, with little ...
6 votes
2 answers
30k views

Understanding pixel format and profile when encoding 10-bit video in ffmpeg with nvenc

I am trying to encode a 10-bit H.265 video from a 8-bit H.264 source using ffmpeg with CUDA hardware acceleration. Without hardware acceleration, a typical command would be ffmpeg -i input.mkv -...
-1 votes
1 answer
2k views

FFMPEG: How to merge a video file (with its own audio) and an audio track (that should loop to fit the vido length)

So, I have a video called video.mp4, and the video has its own audio track. I also have an audio track called background.mp3, and I want it to loop for the duration of the video. How do I merge video....
0 votes
3 answers
2k views

How to slow down a video without slowing down the audio?

I have a security camera that records a 1 min video and compresses it to 40 seconds. The audio is ok. How do I slow down the video from 1.5x to 1.0x without altering the audio?
63 votes
2 answers
128k views

How do I convert 10-bit H.265 / HEVC videos to H.264 without quality loss?

My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to ...
1 vote
3 answers
5k views

FFMPEG - Make a watermark in random position

I'm trying to implement the following loop: Place logo.png in a random (x ,y) position of the video. Make the logo fade out after 2 secods. Wait 30 seconds and repeat. After research in google I ...
0 votes
1 answer
438 views

How to insert a video intro with ffmpeg

I want to insert a video intro, i use below filter to generate multiple resolution with watermark but couldn't figure out how to add intro. {executable} -i {fileInput} -i {watermark} -filter_complex &...
1 vote
0 answers
157 views

Combining video with several audio files

I need to combine several audio files with a video file. Each audio file should have a specific volume, time and delay. Combined as a whole it works fine. The problem arises with the volume of the ...
3 votes
1 answer
1k views

ffmpeg HLS not adding CODECS for H.265 videos

When encoding a video using ffmpeg for multiple HLS streams, the master playlist does not include the CODECS attribute for H.265 videos, but it does for H.264 videos. Here's a contrived command I'm ...
0 votes
1 answer
498 views

Resize an MP4 with AAC/H.264 encoding in 16:9 to a smaller 16:9 file

I have a 1920x1080 (16:9) MP4 file with Codecs: AAC, H.264 that I would like to shrink to various smaller sizes, for example: 1280x720 or perhaps 640x360. As far as I know, those values are clean 16:9 ...
0 votes
0 answers
357 views

downmix stero to mono using ffmpeg

After mixing this polish stereo to mono, the audio is broken (more or less silent): ffmpeg -i http://doppelbauer.name/polish.wav -ac 1 -ar 16000 test.wav How to mix left+right channel correctly?
1 vote
3 answers
10k views

How to reduce CPU usage when it reaches 100% while converting video using ffmpeg

We are use ffmpeg for convert video to a specific form. The server is reaching 100% CPU usage, so my site is going down. That means the ffmpeg process has a strong effect on my main server.
2 votes
2 answers
6k views

Difference between ffmpeg versions

I am using ffmpeg and ffprobe to do video/audio conversions when using youtube-dl in a GUI interface. The current ffmpeg version command line tool on windows is very large, over 100MB. I want to ...
2 votes
0 answers
12k views

What is the difference between Lavf58.29.100 and Lavc58.134.100 eac3 encoding using H265 in ffmpeg?

What is the difference between Lavf58.29.100 and Lavc58.134.100 eac3 encoding using H265 in ffmpeg? I created a mkv file using ffmpeg and handbrake software but both using different encoding, ...
0 votes
0 answers
34 views

How to reduce size of zoom recorded powerpint presentation

I want to convert a powerpoint presentation which is recorded from zoom to a smaller size.the feasibility is that since it was a powerpoint ppt,most frames are duplicate Edit:This video contains popup ...

1
43 44
45
46 47
141