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
21 views

Add 3sec fade out of the last frame to a video

For example, given a video 1.mp4 (no audio) of 17s, output a 20s video where the last frame fades out. What I came up with: Extract the last frame ffmpeg -sseof -1 -i 1.mp4 -update true last.png ...
Zohar Levi's user avatar
0 votes
0 answers
55 views

FFMPEG - creating MPEG DASH stream, makes the first audio segment ever so slightly too short

I am trying to create an MPEG DASH video stream with perfectly sync'd audio and video segments. I have already figured out the correlation of the aac smapling rate and video fps, so that shouldn't be ...
Philip Nys's user avatar
0 votes
0 answers
11 views

Correcting errors and inefficiency when concatenating hundreds of clips with time offsets in FFMPEG

I am attempting to automate multicam editing with FFMPEG. Basically there is some number of time-synced videos, typically up to 7. There is also a list of "clips" from the source videos (e.g....
Timmortal's user avatar
0 votes
0 answers
43 views

Does anyone know how to fix this error

Error: ffmpeg exited with code 1: Stream specifier ':a' in filtergraph description [0:a]adelay=41.71881518564873[audio0];[audio0]amerge[a] matches no streams The code that I entered const ...
CCRP2K6's user avatar
0 votes
1 answer
82 views

How to send av1 encoded stream to a mediamtx server?

I want to test streaming av1 encoded video from the command line but I don't have enough expertise to know if I'm doing something wrong or if it's simply unsupported. So far I've tried gst-launch-1.0 ...
Managor's user avatar
  • 101
0 votes
0 answers
12 views

How can I show that a frame has been duplicated to extend the video framerate using ffprobe?

As the title suggests, I have a video.mp4 which I know visually has been extended from 5 fps to 20 fps. I know this because there are 256 frames and when I run ffprobe it reports 20 fps and the video ...
James B's user avatar
0 votes
1 answer
23 views

how to extract segment of input.mov, loop an image at the end, and then replace audio with segment of audio file?

I've got a movie that I captured with my iphone. Let's call it input.mov. Having edited this video using my iphone, it appears to have dimensions of 1370x970, at least according to the iphone's ...
S. Imp's user avatar
  • 103
0 votes
1 answer
39 views

ffmpeg - Finding the right point to cut

I cut videos using the command below, and I sometimes find that the resulting video has imperfections at the beginning (square artifacts in the image). If I advance the start time parameter value (...
radumanolescu's user avatar
0 votes
1 answer
19 views

using ffmpeg, how to concetrate multiple videos into one, but audio will be sync per video in linux?

using ffmpeg, using ffmpeg, how to concetrate multiple videos into one, but audio will be sync per video in linux? I have tried async, vsync, atempo but i dont know how make ffmpeg to autosync audio ...
Estatistics's user avatar
0 votes
0 answers
14 views

ffmpeg - how to encode two videos of different orientation without producing freeze frames in linux?

ffmpeg fails to merge two video of different orientation. See my bug here Two videos - one horizontally and one vertically. Trying to merge them using ffmpeg produce freeze frames and "No start ...
Estatistics's user avatar
0 votes
0 answers
22 views

How to concatenate two MP4 files, which require http basic Authorization: Bearer <base64,user:password>, using ffmpeg?

Hello dear ffmpeg experts! 🧠 🎯 I ran the following command, which worked perfectly: ffmpeg -protocol_whitelist https,concat,tls,tcp -i "concat:https://dash.akamaized.net/akamai/bbb_30fps/...
Jeff Strongman's user avatar
0 votes
0 answers
11 views

ffmpeg produced freezed frames in joining multiple videos

ffmpeg produced freezed frames in joining multiple videos (either using GPU or not same results). ffmpeg -loglevel 99 -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -f concat -safe ...
Estatistics's user avatar
1 vote
1 answer
88 views

How to encode scenes with different CRF into a H.264 MP4 video with a variable frame rate?

Source Material Having many scenes which essentially are still frames (for many seconds) Commonly found in: Slideshows, Screen Recording or Software Mockup/Prototype ✅ This kind of source material ...
porg's user avatar
  • 151
0 votes
0 answers
7 views

Converting updating series of images to video with different durations using ffmpeg

My program generates images with different frame durations. I want to generate a video of them using ffmpeg simultaneously while new images are generated I know how to generate a video using concat ...
HMD's user avatar
  • 101
0 votes
0 answers
34 views

Broadcast is interrupted while streaming udp with ffmpeg

When I start a UDP stream with ffmpeg on Debian 11 server, I'm trying to transfer this UDP stream to set-top boxes via the Stalker portal. However, when I start watching these UDP streams through VLC ...
ömer gümüş's user avatar
0 votes
1 answer
47 views

ffmpeg - Copy the first 2 tracks of audio to new 6 tracks so all 8 tracks contains audio from the first 2

I have a 2 audio track mxf file and need to clone the video but create 8 audio tracks. The tracks 1 and 2 should be copied into 3 and 4, 5 and 6 and 7 and 8. Some files that I'm dealing with are 4 ...
igor's user avatar
  • 1
1 vote
1 answer
57 views

ffmpeg h264 to mp4 conversion from multiple files fails to preserve in-sequence resolution changes

This will be a long post, so I thank you in advance for your patience in digesting it. Context I have different sources that generate visual content that eventually need to be all composed into a ...
LB2's user avatar
  • 111
0 votes
0 answers
14 views

Issue with repairing 3GP video using untrunc - Error: bad track: 's263'

I am trying to repair a corrupted 3GP video using the untrunc program, but I'm facing an issue due to an error. The command I ran: ./untrunc -v ~/Desktop/logic/Video0086.3gp ~/Desktop/logic/Video0035....
hsrv's user avatar
  • 1
0 votes
0 answers
54 views

FFmpeg ass filter doesn't use font i choose

I created an .ass file with specified font (SF Pro Semibold) and wanted to merge with a video. .ass file: [V4+ Styles] Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, ...
miqheil's user avatar
0 votes
0 answers
22 views

Combining 97 items like jpg, png and mp4 using ffmpeg

I have 3 mp4 videos with audio and 92 jpg images and 1 png image. I need merge all of them, since images dont have audio i have added dummy audio at the end. -f lavfi -t 0.1 -i anullsrc=channel_layout=...
nlp's user avatar
  • 1
0 votes
0 answers
19 views

Can't import to Unity video clip rendered using FFmpeg for Unity

I am using FFmpeg to render a video in Unity. For the FFmpegCaptureCommand.OutputOptions I'm using this command: -g 24 -c:v h264 -preset medium -crf 32 -pix_fmt yuv420p -color_primaries bt709 -...
Maximiliano Bezmalinovic's user avatar
0 votes
0 answers
21 views

How to replicate ffmpeg filter during Adobe Premiere Pro 2022 export (to speed up the video without pitch distortion)

My normal process is to export a project to mp4 and then use ffmpeg to speed up the video like this: ffmpeg -i input.mp4 -filter_complex "[0:v]setpts=PTS/1.3[v];[0:a]atempo=1.3[a]" -map &...
Ryan's user avatar
  • 245
0 votes
0 answers
23 views

Command line approach to taking a 16:9 video and creating a 1080x1920 YouTube short?

Is there a way of using ffmpeg or similar, taking a 1920x1080 video, cut out the middle bit for creating a 1080x1920 YouTube short and then getting it to upscale the middle bit? EDIT: I think this is ...
Vita Vita's user avatar
0 votes
0 answers
65 views

FFMpeg HLS to MXF video codec copy non monotonically increasing dts issue

I am rewrapping an HLS stream as an mxf file. The HLS is 1080p59.94 10bit 4:2:2. The mxf is a video codec copy and an audio conversion to pcm. The stream has video timecode burn-in for me to watch ...
arlovande's user avatar
0 votes
1 answer
87 views

opus decoding in ffmpeg: how to pass target sample rate and ensure libopus decoder?

As I understand, ffmpeg compiled with --enable-libopus has two opus decoders: builtin and libopus. I am decoding an opus file to wav. How can I know which opus decoder is being used by ffmpeg? ...
Vadim Kantorov's user avatar
0 votes
0 answers
59 views

using ffmpeg in linux, with vaapi, using filters, yuv420p colorspace is not correctly applied, green line, without hardware acceleration, no problem

I try to convert gopro videos applying software filters using hwaccel capabilities. Using only cpu, I used to encode color space with this option -pix-fmt yuv420p, otherwise a black&white video ...
Estatistics's user avatar
0 votes
0 answers
35 views

ffmpeg shows "get_buffer() failed". Is this a bug?

ffmpeg version 2023-06-19-git-1617d1a752-full_build-www.gyan.dev i7-1255U, Windows 11 The command line is "ffmpeg.exe" -y -hwaccel qsv -ss 00:00:03.461 -to 00:00:12.009 -i "input....
Ryan's user avatar
  • 1
0 votes
0 answers
42 views

ffmpeg streaming via rtp reorders streams

I'm streaming a video using ffmpeg -i bbb.mp4 -c:v copy -c:a copy -f rtp_mpegts "rtp://239.1.1.1:8000". The command line output is: ffmpeg version 4.3.6-0+deb11u1 Copyright (c) 2000-2023 the ...
konovification's user avatar
0 votes
0 answers
32 views

Adding Subtitles to a VAAPI/QSV 10bit Accelerated Transcode

I've been converting some of my BluRays to watch on a streaming machine elsewhere in the house but I'm having trouble when it comes to burning subtitles, or more specifically, I'm having trouble ...
Enverex's user avatar
0 votes
1 answer
66 views

ffmpeg amerge ignoring channel layout

I am trying to reconstruct a 7.1 channel output after processing, and ffmpeg keeps outputting a 5.0(side). (trimmed for readability) ffmpeg -i "intermediate/refined.mka" -i "...
Bryan Austin's user avatar
0 votes
0 answers
91 views

Compare 2 videos at different frames with ffmpeg

There is this nice ffmpeg command: ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[0:v][1:v]blend=difference,blackframe=1:10" -f null - This command compares 2 videos but always at the ...
hell's user avatar
  • 1
0 votes
0 answers
74 views

How do I pipe the output of mpv into FFmpeg on Linux?

I want to get the mpv output into FFmpeg, to utilize some mpv-exclusive shaders. I am not sure if directly piping into FFmpeg is possible, or maybe an extra step in-between is needed.
damian101's user avatar
0 votes
0 answers
18 views

What does the FFMpeg afreqshift filter do precisely?

I was working to change the pitch of several audio files by a factor of 0.981818... and was trying to use FFMpeg, but now I have no idea what the afreqshift filter does or how it works. It seems to ...
TheLabCat's user avatar
  • 101
0 votes
1 answer
26 views

How to draw - scalable - "EBU safe areas" in ffplay

we need to preview videos with overlayed so-called "safe areas" according to this EBU document: SAFE AREAS FOR 16:9 TELEVISION PRODUCTION. Here's the scheme for 1080p resolution: Those ...
FORART npo's user avatar
0 votes
0 answers
20 views

Trimming ffmpeg

I used this command to trim the video: "ffmpeg -i input.mp4 -to 00:06:49 -c copy out1.ts ffmpeg -ss 00:07:13 -i input.mp4 -c copy out2.ts ffmpeg -i 'concat:out1.ts|out2.ts' -c copy output3.mp4&...
Raymond's user avatar
0 votes
0 answers
17 views

ffmpeg: how to encoded video using AMD VCE h265 + encoded the 2nd audio stream as AAC + burn-in the 2nd subtitle stream?

As above. Thanks in advance! PS. I'm on Windows. This is the stream information as retrieved by ffprobe. Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(tv, bt709, ...
mrjayviper's user avatar
0 votes
0 answers
31 views

hevc transcoded video not playing in safari

I transcoded a video with ffmpeg to hevc using the below command. ffmpeg -i input.mp4 -c:v libx265 -crf 23 -preset medium -x265-params keyint=60 -c:a aac -b:a 128k -f hls -hls_time 10 -...
zuccy's user avatar
  • 1
0 votes
0 answers
17 views

Official AOM documentation

I could not find the official description for AOM encoding options. There are some documentations available online. However I get following contradicting explanations for aq-mode. can someone help me ...
Chinmaey Shende's user avatar
0 votes
0 answers
44 views

Why is ffmpeg modifying my 5.1 channel layout?

I have an AC3 sound file in 5.1 surround, and an MOV file with no sound. I am using FFMPEG to add the sound to the MOV file, and although it works succesfully, for some reason it is modifying the ...
dongle's user avatar
  • 101
0 votes
0 answers
65 views

Use ffmpeg to record from RTSP stream to two outputs at different resolutions while segmenting the video based on time

I need to record from an RTSP at two different resolutions (original and something lower). I also need to have the files broken up according to clock time on every even 30 minutes, ex. 1:00, 1:30, 2:...
Eric Hansen's user avatar
0 votes
0 answers
28 views

Use ffmpeg to "overlay" a png on top of an entire video file

I want to be able to use a command to "edit" a video to have an image over the entire length of the video. Some videos I download have hardcoded subtitles that I want to remove. But I also ...
Mycheze's user avatar
0 votes
0 answers
66 views

How to convert/tag my video file so YouTube correctly identifies and displays it as 360 video

I have the following videofile (uploaded as is): Which is a static timelapse of panorama photo's that spans a horizontal 360 degree field of view(and about a 40 degree ...
Matthias Duyck's user avatar
0 votes
0 answers
29 views

Replace MP4 I-Frames with a placeholder

I have an MP4 file which I want to manipulate on a hex basis, without re-encoding. More specifically I want to replace the I-Frames of the MP4 file with a kind of placeholder code. What I want to do ...
kavofa's user avatar
  • 1
0 votes
0 answers
50 views

mp4 videos not supported by powerpoint

I have used ffmpeg-2022-05-26 to convert simple .avi to .mp4 and these videos get supported on almost all platforms, including PowerPoint. When I updated ffmpeg to the version released around 2023-05-...
Girish Kumar's user avatar
0 votes
0 answers
71 views

"Error initializing complex filters" Using volume filter in fluent-ffmpeg

Thanks to the answers i got on my last question, i came up with the following if statement named string : "if(between(t,6,12.6)+between(t,16.6,29.8)+between(t,33.8,44),0.15,if(between(t,5,6),0.15/...
Nobunaji's user avatar
0 votes
0 answers
39 views

Cut start and end of video file if audio is silent or contains noise

I've tried using the following ffmpeg command : ffmpeg -i path/to/input.ts -af silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse,silenceremove=start_periods=1:...
Nobunaji's user avatar
1 vote
1 answer
80 views

How to add a afade effect to a complex filter (In this case volume)?

Here is my current command : ffmpeg -i [videoFilepath] -i [musicFile] -stream_loop -1 -shortest -filter_complex "[1]volume=0.15:enable=between(t\,4\,10)+between(t\,14\,20)[a1];[0:a][a1]amix=...
Nobunaji's user avatar
1 vote
1 answer
84 views

ffmpeg showing "landscape resolution" for portrait video

I have two video files, one on landscape and one on portrait. On my phone's gallery detail screen their resolutions are, respectively, 1280x720 and 720x1280. This is correct because the landscape ...
Patrícia Villela's user avatar
1 vote
0 answers
72 views

ffmpeg: How to decimate frame rate without recompressing, for I-Frame only video, like ProRes?

I use a capture device from Atomos to capture video in ProRes format over HDMI. The issue is, this device will only capture video in the exact same frame rate as the HDMI signal's refresh rate. So a ...
morphinapg's user avatar
0 votes
0 answers
87 views

ffplay does not play hls continuously and it stop after a few first segments

I am using the following command to read a RTSP stream from an IP camera and record it as HLS: ffmpeg -i rtsp://<user>:<password>@<ip>:<port> -c:v copy -c:a copy -...
LeXela-ED's user avatar

1
2
3 4 5
42