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
0 answers
252 views

ffprobe: how do I get the time zone of creation date?

[Posted on StackOverflow, then I realized that this is a better place for it] I have a video made with a canon camera (actually a PowerShow G5Xm2), which was shot at 2022:08:28 11:25:09-04:00. I want ...
0 votes
0 answers
46 views

Copy Dolby E tracks without decoding

I'm looking out for a way to put a dolby E wav into an mxf file with mono tracks. I have two issues. Each time I tried to split Dolby E in mono it breaks Dolby E. And when I try to copy the Dolby E in ...
  • 1
0 votes
0 answers
28 views

ffmpeg freezes system I/O

I'm trying to save an RTSP stream on a server computer (on an up-board) to my local disk using FFmpeg. This is the command I'm using: ffmpeg -loglevel quiet -xerror -fflags +igndts -rtsp_transport tcp ...
0 votes
0 answers
25 views

How to automate splitting clips into segments, shuffling them and joining them again?

Right now I am doing these 5 steps manually: Split a clip into 15 second segments with: ffmpeg -i "funnyvideo.mkv" -ss 0 -f segment -segment_time 15 -vcodec copy -reset_timestamps 1 -map 0:...
  • 1
0 votes
0 answers
70 views

ffmpeg - video out of sync after trimming video files and overlaying

im trying to overlay some parts of some videos at specific time and stream copy an opus audio to output file using ffmpeg. input videos are vp8 with yuv420p pixel format and 30 fps(its variable), im ...
  • 136
2 votes
0 answers
77 views

Concatenate video with no audio track with other videos containing an audio track

I have a text file which contains several videos: file '01.mp4' # No audio, only video file '02.mp4' # Video with audio ... All my videos are using same video codecs: Stream #0:0[0x1](und): Video: ...
  • 21
0 votes
0 answers
67 views

Downgrade atmos audio file

I have a dolby atmos wav file that I would like to downsample so that I can use VLC player to play it. I just need it for audio check. I tried this command ffmpeg -hide_banner -y -i atmos.wav -ac 1 ...
  • 101
0 votes
0 answers
57 views

ffmpeg not opening in Windows 10

I downloaded ffmpeg from https://www.gyan.dev/ffmpeg/builds/ ffmpeg-release-full.7z I have extracted it in C: drive. I can see ffmpeg in bin folder of extracted zip. When I try to run it using ...
  • 101
0 votes
1 answer
242 views

ffmpeg and creating a single image made up of a grid of thumbnails from a video

Ffmpeg is incredibly powerful but complex tool. I want to create a single image file made up of rows & columns containing still-images (thumbnails) from a video file. The most difficult but ...
0 votes
1 answer
138 views

streaming with HLS / hevc / fmp4

demo site: http://47.254.74.168:8080/ I made some streaming of HLS/HEVC/FMP4 by ffmpeg(5.1), which list is above link. however, the streaming encoded with h265 codec is not working in safari, and h264 ...
  • 1
0 votes
1 answer
156 views

How to fade from one video to another in ffmpeg, both audio and video

I've been experimenting with the xfade (video) and acrossfade (audio) filters in ffmpeg to allow the 'fading' between two input videos, but I don't actually see a way to get ffmpeg to properly fade ...
  • 2,874
0 votes
0 answers
104 views

FFmpeg libx264 encoder emits first key frame with invalid header

I am using these setting in encoder: AVCodecID id = AV_CODEC_ID_H264; int width = 1280; int height = 720; int fps = 30; const AVCodec *codec = avcodec_find_encoder(id); if (codec == NULL) { LOG(...
1 vote
1 answer
140 views

Embedding a custom ICC profile in an MP4 with ffmpeg

I'm trying to embed a custom ICC profile in an MP4, but can't find how to do it with ffmpeg. I have the frames of an animation saved in PNGs with an embedded custom ICC profile. The PNGs are shown ...
  • 113
0 votes
1 answer
57 views

What defines speed of ffmpeg command execution?

Which factors contribute or contribute the most to ffmpeg commands? Video duration Video Size Video Format (mp4, mov etc) Video Resolution I'm performing different operations on videos e.g. ...
1 vote
0 answers
161 views

Encrypt and fragment an MP4 file with FFmpeg

I want to encrypt and fragment an MP4 file with FFmpeg. For this, I use the following command: ffmpeg \ -i input.mp4 \ -c copy \ -encryption_scheme cenc-aes-ctr \ -encryption_kid ...
0 votes
0 answers
117 views

av_interleaved_write_frame(): Cannot allocate memory, Error writing trailer of udp

I'm transcoding from udp input to mpegts udp output. After several hours ffmpeg used all ram memory. I don't know where the problem is. Command: ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i &...
0 votes
1 answer
46 views

Looking to compress just a PGS stream of a video

I have a video stored as an mkv with pgs subtitles. I noticed when I burn the subtitles in with this command hereffmpeg -i "movie.mkv" -filter_complex [0:v][vid];[0:s:1][sub];[vid][sub]...
0 votes
0 answers
34 views

How can I generate a video with a single solid color that changes at intervals with FFMPEG?

For testing purposes, I want to generate a video that changes between a solid black and a solid white color every frame at 10 fps, how can I do this using FFMPEG?
  • 1
1 vote
0 answers
305 views

ffmpeg: create a webm video with changing resolution from a sequence of images

There's a funny thing going on with webm videos being able to have an aspect ratio that changes while it's being played, as shown in this video, and I figured i'd try my hand at making one. I rendered ...
0 votes
1 answer
42 views

Getting both YMIN and YMAX from ffmpeg's signalstats

I am using the following ffmpeg command to get YMIN/YMAX values from the signalstats filter. ffmpeg -i video.mxf -vf "signalstats,metadata=print:key=lavfi.signalstats.YMIN:file=logfileMIN.txt&...
0 votes
1 answer
216 views

How to concatenate videos with different bitrates using ffmpeg

I want to concatenate two files having the following outputs from ffmpeg : file1: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file1.mp4': Metadata: major_brand : isom minor_version : 512 ...
1 vote
1 answer
42 views

FFmpeg: How can I burn subs and clip a video with only one line?

I did spend a lot of time googling it and trying to figure it out, and this is what I have right now: ffmpeg -ss 23:10 -copyts -i "test video.mkv" -c copy -c:v libx264 -crf 0 -sn -vf "...
0 votes
1 answer
61 views

Use ffmpeg to re-encode media file exactly identically to another

I'm writing a program that needs to be able to place a very short media file in the middle of a longer media file. I want to use ffmpeg for this. I'm aware you can split the long file in half and then ...
0 votes
1 answer
58 views

ffmpeg Insert duplicate audio track without creating intermediate file

I want to add a downmixed audio track to existing files. So normally I do the following commands ffmpeg -i input.mkv -map 0:a -c:a dca -ac 2 -strict -2 -vol 425 stereo.mkv ffmpeg -i input.mkv -i ...
  • 642
0 votes
0 answers
17 views

Replace File name While adding text with FFMpeg

I am trying to change like name by using replace. i want to remove all correctors like (_ -) how can i do that. below is code i am trying for %%a in ("*.mp4") do ffmpeg -i "%%~a" -...
  • 103
1 vote
1 answer
178 views

ffmpeg : scroll smoothly an image and text in a defined area

I know how to scroll a picture from the bottom to the top of a video using this command : ffmpeg -f lavfi -i color=s=1920x1080 -loop 1 -t 0.08 -i "input.jpg" -filter_complex "[1:v]scale=...
  • 115
0 votes
0 answers
33 views

video summary using ffmpeg

I have a video with subtitles, I want a ffmpeg code that filters only the talk scene, something like the conversation or action with audio, and then merges the whole thing into a new, shorter video , ...
0 votes
0 answers
286 views

how to install FFMpeg in xampp and laravel 9

i have tried Install FFMPEG on XAMPP this method to install... i have no idea about FFMpeg.... please command me the steps from downloading the FFMpeg to install in xampp... and than to setup in ...
user avatar
0 votes
0 answers
63 views

ffmpeg hevc_vaapi: Impossible to convert between the formats supported by the filter 'Parsed_scale_vaapi_2' and the filter 'auto_scale_0'

I know there are many similar questions already on stackexchange sites, but none of them are completely same. My situation is: camera RTSP output 8MP video in H265 Use Intel HD-Graphics vaapi ...
  • 101
0 votes
0 answers
20 views

Video Streaming with One way Transfer (Tx only, Rx only)

Purpose : stream video via ip/udp where path is rx only and tx only. since path is rx only and tx only, tcp protocol is not available. packet cannot be transmitted from video consumer to video ...
1 vote
1 answer
296 views

How to get duration of webm video file when duration is not explicitly defined

I have a segment of a webm file with an incomplete header, I want to cut this segment down to 10 seconds by trimming x seconds off the front of the file, however I am unable to use the -sseof tag ...
0 votes
0 answers
25 views

How to convert a pixel art gif into an HD mp4? [duplicate]

I'm a pixel animator on twitter, with a problem... The website only hosts video files, and will automatically convert gifs into aggressively compressed mp4 files that are 10kb big, destroying the art....
0 votes
0 answers
60 views

Video reported to have a framerate of 15fps, but when played seems like 30. How to tell?

I have a video that I'm processing and transcoding to another format via ffmpeg. I've come across this before where the reported fps in ffprobe seems to be half of what it is when played but don't ...
0 votes
0 answers
50 views

ffmpeg - convert audio created using navigator.mediaDevices.getUserMedia

I'm trying to use ffmpeg to convert an audio file created via the browser recorded using navigator.mediaDevices.getUserMedia The file is recorded to a temp location and then passed to ffmpeg to ...
  • 111
0 votes
0 answers
22 views

Pixel Art Gif to Webm

I have a large gif file (100+ MB) and I'd like to convert it to webm to reduce the size of the final file to 10-12 MB. I'm using ffmpeg to do this and it converts the file just fine except the ...
  • 1
0 votes
0 answers
44 views

With ffmpeg can I move a metadata value to a different metadata item?

Is there a way in ffmpeg to copy one metadata item in the input file to a different metadat item in the output file? Like copying Media created to Date created. Happy Trails All
0 votes
1 answer
51 views

FFmpeg corrupts videos when using -ss parameter

I am trying to extract middle of a video with ffmpeg. I am using command: ffmpeg -i input.mp4 -c:a copy -c:v copy -ss 00:04:20 -t 50 output.mp4 I am having different issues with the outputs I get. ...
  • 3
1 vote
0 answers
28 views

FFmpeg: join or merge 2 audio stream whith the second optional

I need to combine one video and 2 stereo audio streams from a srt input to send a one video and 4.0 audio stream to the decklink output. From: Stream #0:0[0x100]: Video: h264 , 90k tbn ... Stream #0:1[...
  • 41
1 vote
1 answer
345 views

How to add metadata to subtitle?

I'm trying to add language metadata to existing external .ass subtitles, but it doesn't seem to work. I'm using ffmpeg -i input.ass -map 0 "-metadata:s:s:0" "language=eng" "-...
  • 11
0 votes
1 answer
272 views

How to extrack motion vector data without decoding the whole video

I want to extract the motion vector from the encoded h264 stream without performing a full decode of the frame. I'm using the FFmpeg library and am aware of extracting the information using the ...
0 votes
0 answers
35 views

Why is my ffmpeg stream failing?

After 35-55 minutes, my ffmpeg stream fails with this error: Here is the script I run to start my stream: #! /bin/bash python3 pre-run.py VBR="500k" FPS="30" QUAL="superfast&...
0 votes
0 answers
60 views

change speed of two part of the same file

i 'm trying to select my file in two part which will accelerate with different speed and which will finally merge in one file . i have try this command ffmpeg -i input.mkv -filter_complex "[0:...
1 vote
0 answers
68 views

Add silence between audio files while concatenating ffmpeg

I am using this command to concatenate my audio files: ffmpeg -i "concat:1.mp3|2.mp3|0.mp3" -y output.mp3 but I cant figure out a way to add delay while adding files. I want something like: ...
0 votes
1 answer
418 views

How to extract video+audio streams from MP4 file via ffmpeg?

I have a bunch of MP4 files from a GoPro, which include streams of metadata like GPS information. Now unfortunately when I try to open these MP4 files in any browser (tried both Firefox and Chrome on ...
  • 173
0 votes
0 answers
257 views

FFmpeg - How to restream without delay and with metadata?

I am using FFmpeg 5.0 (from command). How to restream: from sources of type (inputs): UDP/ RTSP/ HLS/ RTMP to RTMP output (on Nginx Server) (without delay, but contain metadata and service_name, as ...
  • 1
0 votes
0 answers
220 views

HEVC Intel QuickSync not working: Error loading plugins | Could not load the requested plugin

I am able to encode to h264 using Intel QuickSync just fine: ffmpeg -init_hw_device qsv=hw -i IN.MKV -c:a copy -c:v h264_qsv OUT.MP4 I used this command for HEVC: ffmpeg -load_plugin hevc_hw -...
  • 1,316
1 vote
1 answer
1k views

How to compress a video to VVC(h266) or Versatile video Coding

I have a h264 video. I want to compress it to Versatile Video Coding(h266) by using ffmpeg. Can anyone tell me how to do it by using ffmpeg or any other way.
0 votes
1 answer
334 views

ffmpeg: how to use hardware acceleration parameters to hls adaptive bitrate transcoding?

I try to use Intel core GPU to accelerate ffmpeg video transcoding (pull video from camera via RTSP, convert to Adaptive Bitrate HLS chunks). ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -...
  • 101
0 votes
0 answers
24 views

How can I use "mestimate" for detection of a new object from a live video feed?

I read that I can use motion vectors to detect new objects in a scene as a form of motion detection. FFMPEG doesn't have motion detection implementation but I can use "mestimate" which uses ...
  • 11
0 votes
0 answers
62 views

Error initializing filter 'mandelbrot' with args 's=7680x4320:r=60', Cannot allocate memory

When I attempt to execute the following: ffmpeg -f lavfi -i mandelbrot=s=7680x4320:r=60 -vf "[in]drawtext=DejaVuSansMono-Bold.ttf: text='mandelbrot-libvpx-vp9-7680x4320x60p': fontcolor=white: ...

1
3 4
5
6 7
127