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
1 answer
83 views

How can i add audio at specific Frame in FFmpeg?

I have audio that i am adding (without Re-encode) in mute video file, in starting i have intro which has no sound and i want to add audio file after that time/frame , after searching so hard i only ...
Mickey S's user avatar
0 votes
0 answers
35 views

How do create a dynamic delay fix with MPEG-TS?

My media player can display a couple of videos (origin video - Multicast address, video stream is in MPEG-TS) Whenever I play both video streams I see a delay in one of the streams. I would like to ...
david blacheow's user avatar
0 votes
1 answer
33 views

ffmpeg transcode on cifs mount hangs

To save some space on my NAS I plan on transcoding recorded videos (source: vuplus duo2 vdr dvb-s2 / transport streams). With a local file this works perfectly and reduces size to roughly 20% of ...
segment0287's user avatar
0 votes
0 answers
89 views

Get ffmpeg to output frames closer to start time specified

I'm running ffmepg version 6.1 with the following command: ffmpeg \ -y \ -copyts \ -ss 2841000000us \ -to 2843000000us \ -i <INPUT_FILE/URL> \ -fps_mode passthrough \ ...
casperOne's user avatar
  • 177
2 votes
1 answer
283 views

Why does ffmpeg alter timestamps when "-codec copy" is given, and how to prevent this?

I am currently trying to remove certain audio tracks from a bunch of m2ts files (mainly to save space), using ffmpeg. In doing so, I would like the removal of those tracks to be the only action that ...
Binarus's user avatar
  • 1,775
1 vote
0 answers
83 views

ffmpeg : has the quality setting for x265 changed in version 2:6.1-3

On Arch Linux, I updated ffmpeg a few days ago from 2:6.1-2 to 2:6.1-3 - now the quality setting on x265 encodes only seems to produce very compressed files. Command used: ffmpeg -probesize 3000M -...
Summers's user avatar
  • 11
0 votes
0 answers
105 views

FFMpeg removes the video stream unintentionally

I used the following ffmpeg command to downscale a video. But surprisingly the output did not have any video stream, just an audio-only output. ffmpeg -y -i "input.mov" -c:v libx264 -vf ...
CtrlAltElite's user avatar
0 votes
1 answer
245 views

ffmpeg convert x264 to x265 with GPU and equivalent options

I usually convert video from x264 to x265 with this ffmpeg command: ffmpeg -i %arg1% -vcodec libx265 -crf 28 %arg2% And although it takes some time (from 2 to 15 hours) it gets the job done nicely, ...
Pedro Araujo Jorge's user avatar
0 votes
1 answer
111 views

how to convert a wav to WAVE audio, IEEE Float, stereo 44100 Hz

I am trying to convert a generic audio to a specific format accepted by BOSS RC-5 looper (supported format: WAV 44.1 kHz, stereo, 32-bit floating point), I have downloaded one of the accepted files ...
elpaso66's user avatar
  • 103
0 votes
0 answers
137 views

When I attempt to live a video in an infinite loop using the ffmpeg command, it automatically terminates after a few hours

When attempting to continuously loop a video using the ffmpeg command with the following syntax: ffmpeg -re -stream_loop -1 -i abc.mp4 -c copy -f flv rtmps://abc.xyz/..... I encounter an issue where ...
Isteyak Ali's user avatar
0 votes
2 answers
85 views

How do I store a bit of data inside a video file so it does not get stripped by other tools when sharing

I have an app that takes videos and I need to store the exact creation time (down to milliseconds) inside the video. The video is then shared through whatever app the user wants in order to reach a ...
Catalin Morosan's user avatar
1 vote
0 answers
60 views

Redirect ffmpeg showinfo (only) to pipe while keeping other output on stderr

I am using ffmpeg to help with processing video by breaking it down into smaller regions which are then piped to my program for processing. I run ffmpeg like so: ffmpeg \ -y \ -ss 2841000000us ...
casperOne's user avatar
  • 177
0 votes
0 answers
132 views

ffmpeg - Jitter when streaming audio over RTP

So as a disclaimer, i'm trying to do something with ffmpeg that may be at the limit of what can be achieved. However, even though it's not possible, i would like to understand why. What I want to do ...
Nicolas Floquet's user avatar
0 votes
1 answer
51 views

Why the playlist chunk duration is different?

I have this m3u8 playlist from Twitter/x which has this chunk: #EXTINF:2.923, chunk_1701372432609842942_707_a.aac #EXT-X-PROGRAM-DATE-TIME:2023-11-30T19:27:21.236Z As you can see the duration of this ...
Rux's user avatar
  • 3
0 votes
1 answer
152 views

How to trim multiple videos and position them to specific position using -filter_complex?

How do I mix several videos and have them not overlap each other? I need to use -filter_complex as I cram many more commands there and seems weird how when I trim video its frames remain and overlap ...
Pavlo Holotiuk's user avatar
3 votes
1 answer
140 views

How to escape file path for burned-in text-based subtitles with FFmpeg?

I'm trying to burn text-based subtitles into a video using ffmpeg, via the command line option -vf followed by subtitles=(filename):si=(subtitle index). I need this to work for both Windows and macOS. ...
kshetline's user avatar
  • 155
1 vote
1 answer
116 views

How to merge raw H.264 video and AAC audio streams, making sure the video matches audio duration?

I had a corrupt screen recording, and I used mp4fixer to extract the raw h264 stream and the aac streams separately. The audio sounds just fine, but the h264 stream doesn't seem to have a well defined ...
Blacklight MG's user avatar
0 votes
1 answer
79 views

More buffering when ffmpeg saving rtsp to mkv file

I have a GSM connection to my cameras. When I playback stream directly from cameras everythink is OK, but if I save the same stream to file I have 80% of broken frame like this: My ffmpeg params: ...
Rafal's user avatar
  • 11
0 votes
0 answers
68 views

ffmpeg use of ildct flag in progressive encoding

I've encountered a scenario whereby someone else has configured an ffmpeg encoding command with flags that don't make sense, and I'm having difficulty understanding their purpose. The command in ...
Mikolaj's user avatar
  • 183
0 votes
1 answer
121 views

How do I compile ffmpeg so that "-map_metadata -1" works.?

I just tried the (static) ffmpeg build from https://johnvansickle.com/ffmpeg/ and I also tried the ffmpeg build that comes with my Linux Mint 21.2 distro and they both were able to remove the metadata ...
BongoR's user avatar
  • 1
1 vote
1 answer
337 views

How does FFMpeg read from a remote s3 url

I'm intrigued how does FFMpeg read a video file from a remote url (for example, an aws s3 presigned url). Does it download the file in chunks and then process it chunk by chunk? Or does it download ...
CtrlAltElite's user avatar
0 votes
0 answers
108 views

Adding FFMPEG support to Chromium Portable on Windows without recompiling

I am using Chromium portable on Windows recently. I downloaded Chromium portable from chromium.org, finding it without FFMPEG support, which means playing media just not possible for some websites. Is ...
Hinomori Shizuku's user avatar
0 votes
1 answer
228 views

FFMPEG: Program does not quit when it returns an error (command line loops)

I'm using ffmpeg to stream a video online, using the following command: ffmpeg -i <stream_link> -t 00:09:00 video.mkv This works well. But sometimes the stream ends, and then FFMPEG will throw ...
rm12345's user avatar
  • 101
0 votes
0 answers
30 views

Setting transfer characteristics for overlaying multiple videos

I just wanna know whether I can set unique values of transfer characteristics/gamma for each videos while overlaying it on top of a single video. For example :- FFmpeg command : ffmpeg -f lavfi -i ...
Prakkash's user avatar
0 votes
0 answers
33 views

ffmpeg png to mov keep exact colors

When I convert a PNG sequence to a h264 (yuv420p) movie and read the color values via FFmpeg's rawvideo pipe output, the values on each pixel is slightly modified. This is how I write my image: import ...
redesigndavid's user avatar
0 votes
0 answers
94 views

FFMpeg creates image from a timestamp but not from another timestamp

While trying to create an image from a video, the following command does not create any output and completes with the warning Command with timestamp 7 sec: ffmpeg -ss 00:00:7.0 -i "input.mp4"...
CtrlAltElite's user avatar
0 votes
0 answers
62 views

Can ffmpeg pull images out of damaged AVI files?

Can ffmpeg pull images out of damaged AVI files? I found software before that was able to dig into any kind of file and pull out images but I can't find it when I search now. It was command line so I ...
Rik H's user avatar
  • 1
0 votes
0 answers
117 views

FFMpeg create image from hardware decoded media and software decoded media

I'm trying to create an image thumbnail at a particular timestamp from a video. While doing the activity I came up with two commands. Some videos were successfully processed by first command and some ...
CtrlAltElite's user avatar
0 votes
0 answers
48 views

Simultaneous Recording and Real-Time Display Using ffmpeg with DeckLink

I am currently working with a DeckLink Duo card, specifically utilizing port 2. My objective is to use FFmpeg to ingest RAW HD SDI, save it as an MP4 file, and concurrently display the incoming SDI ...
ark1974's user avatar
  • 101
0 votes
0 answers
55 views

FFMpeg series thumbnails created less than expected

I have the following ffmpeg command to create a 576p video, and series thumbnails at an interval of every 2 seconds. ffmpeg -hwaccel cuvid -hwaccel_output_format cuda -i input_video.mp4 \ -vf "...
CtrlAltElite's user avatar
0 votes
1 answer
25 views

Apply a trim on the output generated by filter_complex without a separate command

I have a filter complex expression that takes 4 input videos and combines them in 4 corners of the screen synced at a particular start time from each video ffmpeg \ -i first_vid.mkv \ -i ...
PirateApp's user avatar
  • 161
0 votes
0 answers
68 views

Ffmpeg cropping, changing resolution and FPS in one process

I have a video that I need to crop, then change resolution and then change fps for my needs. I have tried 3 different processes and it leaves me with a video that looks blocky and very much inferior ...
matalkg's user avatar
2 votes
1 answer
266 views

What is the -update option in ffmpeg

I'm generating a Haldclut using the below code: ffmpeg -f lavfi -i haldclutsrc=8 -frames:v 1 hald.png This works well enough, but the cmd line displays a warning informing me that the hald.png ...
Sark's user avatar
  • 385
0 votes
0 answers
72 views

FFMPEG - PNG Overlay - Fade In / Out - Start & End of video + Combine Videos

Hoping someone can help me with this. I'm looking to automate some editing tasks. I want to write an FFMPEG command that will do the following. Input is VIDEO.MP4 Add a 1 second fade in and out to ...
bd_1234's user avatar
0 votes
1 answer
143 views

How to use Ffmpeg OpenCl filters that are accelerated with nvenc

I'm trying to capture a screen that is in portrait mode using ddgrab(on a 3080, so using nvenc). This was the original command: ffmpeg -f lavfi -i ddagrab=output_idx=0 -c:v h264_nvenc -cq 18 output....
KamikazeStyle's user avatar
0 votes
1 answer
73 views

Combine images and draw text on each image with animation xfade

I am using ffmpeg to merge multiple images and an audio to produce a video. I am using drawtext and xfade with dissolve transition. My ffmpeg command is given below. ffmpeg -loop 1 -t 5 -i ./img/img0....
Imran Khan's user avatar
0 votes
0 answers
246 views

how to use ffmpeg to convert mp4 video to hls

Can I convert my MP4 video with original 1080P quality to HLS using FFMPG so that the HLS results have quality from 1080p to 360p? and how can I detect my video source when I enter a 720P quality ...
horasjey's user avatar
3 votes
0 answers
257 views

It is possible to use QTGMC deinterlacing with FFmpeg?

I'am using the media-autobuild_suite (on Windows). This tutorial describes how to install and use QTGMC with AviSynth+. My question is can one use FFmpeg only to deinterlace video files with QTGMC? ...
Su-47's user avatar
  • 107
1 vote
1 answer
66 views

Unexpected output when using FFMPEG to add multiple English Subtitles to MP4 file

I am trying to soft-encode 3 subtitle files into my film. I extracted the subtitles from the DVD using ByteCopy I am using this command to add the files: ffmpeg -i BloodDiamond.mp4 -i ...
Our Man in Bananas's user avatar
1 vote
0 answers
83 views

Ffmpeg encoded video results in corrupted YouTube video

I'm creating videos for YouTube that combine a still image with an MP3 file. For some reason, some of the videos get corrupted (in the example below after 15 seconds) and result into a gray screen. ...
user1796440's user avatar
1 vote
1 answer
123 views

How do I extract video frames for editing one at a time?

I'm trying to apply graphicsmagick v1.3.42 filters/resizing to frames from videos extracted with ffmpeg v6.1. The process of extracting and resizing all frames uses alot of space, I want to iterate ...
yarns's user avatar
  • 11
0 votes
0 answers
26 views

how to send multi video in udp protocol with in single ip/port?

According to the ffmpeg documentation using UDP protocol i need send multi input to local network in single IP/Port and received from VLC Player each video can choose with Program number and show it ! ...
user2687117's user avatar
0 votes
1 answer
66 views

ffmpeg make a video from two images and two audio files

I'm trying to create an MP4 video from two images and two mp3 audio files, this is my command: ffmpeg -hide_banner -loop 1 -i incoming/img0.jpeg -loop 1 -i incoming/img1.jpeg -i incoming/aud0.mp3 -i ...
Daniel Kalfa's user avatar
1 vote
1 answer
48 views

Is '-c' just shortened alias for '-codec' in ffmpeg?

I looked at the documentation and it does not seem clear to me. For example are the following two commands essentially the same? ffmpeg -i .\video.mp4 -i .\metadata.txt -map_metadata 1 -codec: copy -...
Ralf_Reddings's user avatar
0 votes
0 answers
66 views

concatenate flac, opus, wav file parts with ffmpeg

I tried concatenating two flac files with this command: ffmpeg -i 1.flac -i 2.flac -filter_complex '[0:0][1:0]concat=n=2:a=1[out]' -map '[out]' -c:a copy out.flac i get the following error message: ...
user1850133's user avatar
1 vote
0 answers
74 views

ffmpeg & ffprobe fail to parse dash/vp9 file while mediainfo can

(I attached the file, only 808b, as a base64). This is supposed to be a valid file, but ffmpeg/ffprobe fail. I'm using a recent build of ffmpeg, but I also tried with older version. I'd like to ...
paul's user avatar
  • 11
0 votes
0 answers
83 views

ffmpeg fails to detect subtitles

Just encoding an episode of Game of Thrones, Season 5, Episode 6 - Unbowed Unbent Unbroken. First copy to a temporary file, and thats whats fails to detect all subtitles. Here is an example that works,...
Summers's user avatar
  • 11
0 votes
1 answer
46 views

Create a slideshow video with the date added as a text automatically

Is there a way to Create a slideshow with the date as a caption automatically? So basically, I want to create a slideshow video of family photos and as each image is displayed the date and time of the ...
prantik bizz's user avatar
1 vote
0 answers
85 views

Sending and receiving ffmpeg video stream through USB to TTL converter

I need to transfer video signal through USB to TTL converter from one VM and receive it on other USB to TTL converter then display the received stream on second VM (the bitrate on converters are ...
Tomas Jepimachov's user avatar
1 vote
1 answer
352 views

ffmpeg video encoding has no audio

When I convert any video in ffmpeg - e.g. mp4 to mkv, mkv to mkv - I lose audio for some reason here are the parameters I originally used: ffmpeg -i input.mkv -vf scale=640x480 -vcodec libx264 -...
Patrick Hydar's user avatar