As of May 31, 2023, we have updated our Code of Conduct.

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

Size difference of output files from FFMPEG and NVENC rendering

For this: NVEncC64.exe --avhw -i "PATH\FILE (SRC).MP4" -c "av1" --cbr 1500 --audio-codec aac --audio-bitrate 64 -o "PATH\FILE (AV1).MP4" I used the NVEncC (x64) -Encoder ...
user1806529's user avatar
-2 votes
0 answers
10 views

Merge / join 2 images and one video

I want to join 2 images and 1 video in such a way that firstly image1 will be for 3 seconds then video will play and then second image will be for 3 seconds and finally output video ends
user1806524's user avatar
0 votes
1 answer
23 views

How to use an audio stream that can be null in ffmpeg?

I want to take the audio from a video, set it's volume, and join them back (with some more filters, but I don't think they are relevant to the question.) I can do it with: ffmpeg -i vid.mp4 -i input2....
ATP's user avatar
  • 73
0 votes
0 answers
13 views

ffmpeg error with SIGSEGV

ffmpeg was killed with signal SIGSEGV (using fluent-ffmpeg in nodejs on ubuntu) I am expecting ffmpeg to take a provided url and timestamps, then trim the video down. Once that happens I want it to ...
golden llama's user avatar
0 votes
0 answers
16 views

I install ffmpeg in the aws EC2 environment and convert the audio wav file to m4a, but I'm having trouble with loud noise

I install ffmpeg in the aws EC2 environment and convert the audio wav file to m4a, but I'm having trouble with loud noise I don't know how to set parameters without noise The ffmpeg version is ffmpeg-...
原田静男's user avatar
0 votes
1 answer
43 views

How do I do this in ffmpeg?

To remove a 1-second video clip from every 9 seconds in a 6-minute video,if audio also present genarate a ffmpeg code.I am unable to get output can you help us
Jaga G's user avatar
  • 11
0 votes
0 answers
12 views

Transcoding ts of m3u8 to multi bitrate ts. Causes player stuck due to overlap

I have live M3u8. Woukd like to convert into multiprofile m3u8 and master.m3u8. we have achieved this using python script to populate multiprofile index.m3u8 and master.m3u8. when we are transcoding ...
gaurav verma's user avatar
0 votes
1 answer
28 views

ffmpeg hangs when trying to convert analog static from fpv drone

I am trying to convert a .MOV file to an .mp4 file using moviepy, which as I understand is a wrapper for ffmpeg. I have had prior success, but was disappointed when ffmpeg ground to a halt at 89%. I ...
Chazzo's user avatar
  • 1
1 vote
0 answers
19 views

ffmpeg :0.0: protocol not found Did you mean file::0.0

I record the screen in Ubuntu 20.04 with the ffmpeg command: ffmpeg -video_size $resolution -f x11grab -r 5 -re -i :0.0 -c:v libx264 -pix_fmt yuv420p -crf 40 -vf "drawtext=fontfile=/usr/share/...
Ильдар Нажмутдинов's user avatar
0 votes
1 answer
36 views

ffmpeg memory leak when use h264_nvenc encode

when i use valgrind to check ffmpeg memory leak, it reports: ==2550== 32 bytes in 1 blocks are definitely lost in loss record 478 of 2,201 ==2550== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==...
johnmca's user avatar
2 votes
2 answers
78 views
+50

How can I limit 'stream_loop -1' dynamically when using 'filter_complex'?

I have a 2 inputs, a video file and an audio file. The video input should be a background video, meaning it should repeat infinitely (both audio and video) and it's audio component volume should be ...
ATP's user avatar
  • 73
0 votes
2 answers
43 views

%04d - am I using the ffmpeg input file ranges wrong?

Am I doing it wrong? ffmpeg -framerate 10 -i Reiher_%04d.jpg -vf "scale=720:-1:flags=lanczos,split[s0][s1];[s0 ]palettegen[p];[s1][p]paletteuse" Reiher.gif gives [image2 @ 0x7ffff37fdd00] ...
eugrus's user avatar
  • 33
0 votes
0 answers
12 views

ffmpeg: filter frame using cuda

Is it possible to filter frames on nvidia GPU side? For intel qsv it looks like [sprites_src]vpp_qsv=framerate=1/10,scale_qsv=-1:160:mode=$mode:format=rgb32,hwdownload,format=rgb32[sprites_out]; For ...
Hett's user avatar
  • 160
0 votes
0 answers
43 views

av_interleaved_write_frame(): Connection reset by peer

When streaming live video to a streaming provider who utilizes FFmpeg, the stream is temporarily stopped, and the encoder logs the following: user.err ffpublish[1:0]: av_interleaved_write_frame(): ...
apro's user avatar
  • 1
0 votes
0 answers
12 views

ffmpeg version is 4.2.2. I'm trying to use h264_v4l2m2m encoder on tda4vm. Can anyone suggest me how can I fix the below issue

[h264_v4l2m2m @ 0x3d73a570] Failed to set number of B-frames [h264_v4l2m2m @ 0x3d73a570] Failed to set number of B-frames [h264_v4l2m2m @ 0x3d73a570] Failed to set timeperframeFailed to set header ...
sudheer's user avatar
1 vote
0 answers
21 views

ffmpeg conditional filtering

i'm using ffmpeg to process a video. ideally, i'd like to apply one filter chain if the image in question is predominately a dark monochrome, and a different filter chain for other images. it seems ...
david furst's user avatar
8 votes
4 answers
1k views

How to resize an animated webp?

I want to be able to change the size of a dynamic webp. Sample picture. I found this website to do just that. So how can I implement something similar in my own program? I tried using ImageMagick7 or ...
shsf's user avatar
  • 93
1 vote
0 answers
21 views

FFMPEG mic recording seems to have an automatic gain function

ffmpeg -y -f dshow -rtbufsize 10M -i audio=%mic% -f dshow -rtbufsize 10M -i audio="Line 1 (Virtual Audio Cable)" -init_hw_device d3d11va -filter_complex ddagrab=video_size=1280x720:offset_x=...
bilogic's user avatar
  • 121
1 vote
0 answers
19 views

ffmpeg not adding correct timestamps in recorded files and producing 76 milliseconds files

I am using ffmpeg to record a camera stream using rtsp protocol. Camera stream is being consumed via rtsp-simple-server. I am creating 10 second files by setting output_ts_offset to epoch realtime. ...
Aman Hanjra's user avatar
0 votes
0 answers
20 views

Command to get only one audio track in output specified by language code with ffmpeg

Ffmpeg Command to get video with only English audio or only one language audio I tried running ffmpeg -i input_video.ext -map 0:v -map 0:a:language=eng -c:v copy -c:a copy -map_metadata -1 -sn output....
Killerlearner's user avatar
1 vote
0 answers
14 views

Cutting with ffmpeg, video got wrong colors and pixaleted frames?

After cutting and concatenating with: ffmpeg i- example.mp4 -ss 01:02 -to 03:01 -vcodec copy -acodec copy output.mp4 it looks like the video changed resolution at some time and got wrong colors and ...
richard's user avatar
  • 11
1 vote
1 answer
29 views

FFMpeg - Trim and concatenate in one step

In this question gyan responded that it is possible to trim and concatenate in one step. This seems like a straight-forward and common function but I've not been able to find how to do that in my ...
marco's user avatar
  • 13
1 vote
0 answers
27 views

ffprobe reading wrong frame rate, any workarounds besides MediaInfo?

I want to check the frame rate of many videos to double it. I use ffprobe to get r_frame_rate which is evaluated to a decimal, then fed into ffmpeg as rscale -r {2*fps}, or into mkvmerge as 0:{2*fps}...
Minty's user avatar
  • 141
1 vote
0 answers
27 views

ffmpeg `-movflags use_metadata_tags` won't copy album cover metadata

I want to edit a mp3 file using ffmpeg while keeping the metadata. I've searched how to keep the metadata and found this link. It is said to use -movflags use_metadata_tags. ffmpeg -i input.mp3 -...
Ali Ent's user avatar
  • 113
1 vote
1 answer
90 views

Using ffmpeg to download m3u8 video in two ways resulting in two vastly different sizes; Why?

I'm trying to download a m3u8 playlist (which contains 1.ts, 2.ts,..., xxx.ts) via ffmpeg. I'm doing it in two different ways: Directly download: ffmpeg -i "https://filelocation/chunked/myfile....
zyxwl2015's user avatar
1 vote
0 answers
25 views

ffmpeg: av_interleaved_write_frame(): Protocol error

GoPro cameras cut up video in 4GB MP4 files. Attempting to merge them with ffmpeg 4.4.4 like so: ffmpeg -f concat -safe 0 -i <(for f in *.MP4; do echo "file '$PWD/$f'"; done) -c copy ...
Richlv's user avatar
  • 353
-1 votes
0 answers
29 views

How to generate an .mp4 video with a static.png added with new effect as ffmpeg can add

Hoping You All are doing well. I'm here to kindly ask how I can add effects to my generated ffmpeg videos, for example with this code I can generate a static video from a video.png and a 01.wav :...
Giorgio Canepa's user avatar
0 votes
1 answer
72 views

How to create an animated AVIF from images

I have 6 images in .avif format I want to encode to a a single animated avif file. I could create a .gif from images easily with ffmpeg and convert the generated .gif to .avif But I still want a more ...
Undone's user avatar
  • 1
0 votes
0 answers
57 views

How to flatten a VR video to display in normal screen?

I am not sure about the terminology here, but I have a VR-video that is intended to be shown using a headset with separate screens for each eye. It is not 3D in the sense that when you turn your head ...
d-b's user avatar
  • 594
0 votes
0 answers
18 views

FFMPEG.exe does not recognize devicename

A setup with a camera and some sensors, capuring my movement is giving my and error. FFMPEG returns a "could not find videodevice" The camera is a Ximea and the XimeaCaptureTool tell me ...
Fai's user avatar
  • 1
0 votes
0 answers
52 views

Is it wrong to use ffmpeg on images?

For some reason, I can just do ffmpeg -i image.webp image.png to convert an image, even though FFmpeg is for videos. Is there anything wrong with this? Is it intended behavior?
KTibow's user avatar
  • 119
1 vote
0 answers
5 views

Overlaying a text stream on a video stream with ffmpeg in Node.js [migrated]

I am creating a streaming system with Node.js that uses ffmpeg to send video and text streams to a local RTMP server, then combines those streams and sends them to Twitch. I'm using canvas to create a ...
Tchoune's user avatar
  • 11
0 votes
1 answer
24 views

ffmpeg concatenated audio not present in the output

I'm trying to concatenate two audio files and add it to a video file but the output does not contain the audio. I can see the duration of the output video is the sum of the two audio. But the audio is ...
Aakash Chakravarthy's user avatar
1 vote
0 answers
31 views

How to extract individual macroblock types and their corresponding motion vectors

I need to make a pair for each macroblock from a frame of a video containing its type and motion vector. I extracted motion vectors by using the python module of mv-extractor. For macroblock type I ...
Prajit Kumar's user avatar
0 votes
1 answer
81 views

Is the cd command temporary?

Attempting to change my working directory... In the command prompt, my input was: cd F: Command prompt returned: F:\ Then another line appeared, reverting my working directory back to: C:\Users\caden ...
cadenpolen's user avatar
0 votes
1 answer
73 views

How do I merge multiple video-only mp4 files with corresponding audio-only mp4 files using ffmpeg?

I have a bunch of video- and audio-only mp4 files and would like to script the merging of both files. But here's the thing, there are multiple video and audio files which are separately indicated by ...
ccc1302s's user avatar
0 votes
0 answers
31 views

HLS stream optimization

I have this command to create HLS stream. Is there any way to optimize it? I know that changing CRF and preset will tune up the encoding speed, but I am looking for another tuning. Thanks for reply. ...
Figa's user avatar
  • 1
0 votes
0 answers
23 views

Problems with combining streams into one container (ffmpeg)

I've tried combining different files on multiple occasions (e.g. add extra audio streams in different languages to a video, so that you can select your audio stream/language) but it never worked. That ...
Mister Sir's user avatar
0 votes
0 answers
12 views

FFmpeg - Downmix 5.1 to stereo | -vol option deprecated [duplicate]

I was using for years a method for dowmix 5.1 to stereo using FFmpeg. In particular the one called Downmixing without discarding the LFE channel (Dave_750's answer) and detailed in this post: https://...
Thibault's user avatar
0 votes
0 answers
33 views

Change 50fps video into 25fps and keep the duration without reencoding

I have a 50fps video, where every second frame is a duplicate of the previous frame. I want to upload this video to youtube and I want youtube to think it's a 25fps video. Is this possible? For ...
DD3R's user avatar
  • 75
-1 votes
0 answers
20 views

How do I set the seed used by ffmpeg's random?

I'm trying to select random frames using ffmpeg. Based on the documentation, random works in the following way: random(x) Return a pseudo random value between 0.0 and 1.0. x is the index of the ...
Clash's user avatar
  • 109
1 vote
1 answer
61 views

ffmpeg: How do I select a random frame every second?

I have a video with variable FPS that I want to reduce to 1 FPS. Additionally I want this one frame per second to be randomly sampled within the second. So let's assume a video of 5FPS, 3 seconds long,...
Clash's user avatar
  • 109
-1 votes
1 answer
41 views

How can I burn in .ass file and a watermark to a video file using ffmpeg simultaneously?

I want to add subtitles and a watermark to a video using ffmpeg. For now, I'm using Handbrake to burn in the subtitles and later I execute an ffmpeg command to add a watermark from png file. The ...
Candour's user avatar
2 votes
2 answers
159 views

Convert Multiple audio tracks into a Single Track with 12 channels using ffmpeg

I have multiple MOV files and each file has different numbers of audio tracks. I want to convert those files to MOV and combine the audio into a single 12-channel audio track. For example, I have a ...
nek_unconcious's user avatar
0 votes
1 answer
65 views

How to batch convert .mkv to .mp4 using ffmpeg in macOS?

I am using this command to convert from .mkv to .mp4 in macOS: > ffmpeg -i input/*.mkv -codec copy mp4/%~n.mp4 zsh: no matches found: input/*.mkv > ffmpeg -i "input/*.mkv" -codec copy ...
Dolphin's user avatar
  • 177
1 vote
1 answer
112 views

Trying to stream a video loop using FFMPEG. However, I keep getting the error "Cannot Write the Headers Server returned 400 Bad Request"

I am using mediamtx for starting RTSP server. The command that I am using for ffmpeg is as follows: ffmpeg -re -stream_loop -1 -i ./clouds.mp4 -f rtsp -rtsp_transport tcp rtsp://localhost:8554 The ...
lokit khemka's user avatar
0 votes
0 answers
87 views

FFmpeg Dual Fisheye to Equirectangular Conversion - Dark Shadow

Why when I use FFmpeg conversion of 360 photos I always have a dark shadow on them along the stitch edges. I tried the Remap command method described by Paul Bourke which is supplied online and used ...
James's user avatar
  • 23
0 votes
1 answer
38 views

How to use FFmpeg to modify metadata downmix levels of AC3 file

I'm trying to use FFmpeg to modify a metadata called "downmix levels" of an existing AC3 file (Dolby Digital surround sound file) I have tried with at least a million different combinations ...
KenJes's user avatar
  • 1
0 votes
1 answer
27 views

Where does completed file go by default when merging audio and video files together using ffmpeg?

So I merged an audio and video file together earlier using ffmpeg. I Did a full search on my hardrive for outPutFile.mp4 and it was nonexistant. Now I'm running another, slightly altered command using ...
cadenpolen's user avatar
1 vote
0 answers
28 views

Why does my SVT-HEVC-encoded video run out of sync?

I'm trying to transcode a video (with audio) to HEVC using Intel's SVT-HEVC encoder. The video's audio tracks are in sync before transcoding. Both ffprobe and mediainfo agree that the input video is ...
Cygon's user avatar
  • 379

1
2 3 4 5
131