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
2k views

ffmpeg concat multiple videos with fade

I want to combine several videos with transitions between videos. Ideally, I want to get a command that can merge multiple videos. Or at least get a pattern of how to generate a command ...
Ivan Kucher's user avatar
0 votes
0 answers
199 views

How can I add text to a live video stream from USB webcam which is being transcoded on the fly with FFmpeg?

How can I add text to a live video stream from USB webcam which is being transcoded on the fly with FFmpeg? Here is the code which is being transcoded from two GPUs, I was not able to add texts using ...
Max Dax's user avatar
  • 49
0 votes
0 answers
1k views

Extracting Video Frames with Correct Resolution/Aspect Ratio

I am using FFMPEG to extract I frames from Videos and ran into a problem. The video resolution changes between 720x576 and 1024x576 and I can see this when playing the video in VLC and the VLC ...
Cellcon's user avatar
  • 170
2 votes
1 answer
500 views

PowerShell/CMD command to map metadata from one set of files to another, in different drives

So I have a set of files in one drive (C:\Users\xxxxx\Desktop\new) with just .m4v files. I want to copy the metadata of files in a folder in another drive (S:\new2) to those in the "new" ...
antonioetv's user avatar
19 votes
1 answer
4k views

How can I tell when FFMPEG is done writing a file?

Given an input video, input.mp4, the following command produces an out folder containing a bunch of HLS video segments and m3u8 playlist files for a number of resolutions: ffmpeg -hide_banner -y -i ...
knpwrs's user avatar
  • 1,403
1 vote
1 answer
198 views

Setting a custom scale for the first three frames of a video in ffmpeg

I am looking for setting a custom scale for my first three frames of a video, with ffmpeg. My video is an image loop, that lasts 5 seconds, 10 frames per second. For this, I use: ffmpeg -r 10 -loop 1 -...
Nicolas Martinez's user avatar
0 votes
1 answer
1k views

How to duplicate webcam stream with FFMPEG and V4L2 - one copy, one scaled output

I've a simple setup with one webcam. I need to use it in two tools simultaneously so I decided to duplicate it with gstreamer. Since it was a real mess I pretty fast switched to ffmpeg where I got ...
Dennis Ochocki's user avatar
1 vote
0 answers
3k views

FFmpeg `h264_v4l2m2m` codec causing "non-existing PPS 0 referenced" error with segment muxer

I aim to create a "clipping" program similar to how OBS works with its replay buffer feature. I found a reference here on how to recreate that on FFmpeg using the following command: ffmpeg -...
coyote_'s user avatar
  • 11
0 votes
1 answer
1k views

FFmpeg doesn't write to HLS output (udp multicast input)

This is the output from ffprobe. Input #0, mpegts, from 'udp://239.0.0.80:2345?localaddr=192.168.2.127': Duration: N/A, start: 39580.799967, bitrate: N/A Program 60 Metadata: ...
Timotej Leginus's user avatar
0 votes
0 answers
378 views

ffmpeg: Combining two A/V streams results in out of sync audio in VLC player but not QuickTime

I have two files (one audio, one video, both mp4) I want to combine into a single mp4 without re-encoding the streams. They both have the same duration (well, technically one is 0.05s longer than the ...
Alex's user avatar
  • 1
0 votes
0 answers
1k views

FFMPEG - AMD GPU Transcoding MJPEG to HEVC provides a skewed split screen video

Trying to use AMD GPU for transcoding MJPEG to HEVC using VA-API. Using this command: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -c:v mjpeg -f v4l2 -...
Max Dax's user avatar
  • 49
2 votes
1 answer
433 views

Output AVI file without interleaving

I am trying to encode videos to have them play on a little video recording tablet, but it's very picky about the format. Here's an example file that was recorded by the device itself: ffmpeg -i ...
Niko O's user avatar
  • 223
1 vote
1 answer
567 views

Using bitrate in conversion of a set of images to a video changes the length of the video

I have ffmpeg version n5.0.1-3-gb655beb025 and I am trying to convert a set of 120 PNGs to an AVI file with 60 frames/sec. When I do that with: ffmpeg.exe -r 60 -i Frame-%%05d.png MyVideoLQ.avi it ...
user1712948's user avatar
0 votes
0 answers
697 views

Use hwaccel dxva2 to convert from HEVC to H264

I'm relatively new to the entrails of ffmpeg so feel free to point out anything in my question which would not make sense. I have a .mp4 file encoded with hevc which I would want converted to h264 : ...
Arthur Attout's user avatar
2 votes
1 answer
768 views

How can I losslessly concatenate two MP4 files and keep the telemetry information (GoPro GPMF) using FFmpeg?

One may losslessly concatenate two MP4 files using FFmpeg as follows: ffmpeg -safe 0 -f concat -i list.txt -c copy output.mp4 with list.txt: file 'C:\file1.mp4' file 'C:\file2.mp4' However, if the ...
Franck Dernoncourt's user avatar
0 votes
1 answer
1k views

Convert wav file from WAV_FORMAT_EXTENSIBLE to WAV_FORMAT_PCM

I have a 16-bit 44.1kHz wav file in WAV_FORMAT_EXTENSIBLE format. What is a simple and efficient way to convert it to WAV_FORMAT_PCM on the command-line? ffmpeg solutions preferred, but I'm also open ...
michaeljan's user avatar
0 votes
2 answers
3k views

How to use Intel Quick Sync Video to encode in VP9 using ffmpeg on Windows

How do I use ffmpeg on Windows using Intel Quick Sync Video (qsv) to encode a video in VP9? The command that I am using now is: ffmpeg.exe -init_hw_device qsv=hw -filter_hw_device hw -i input.mkv -vf ...
Bazzz's user avatar
  • 167
0 votes
1 answer
317 views

ffmpeg segment naming of rtsp surveillance stream HikVisions

I need to ensure unique segment names: Apparent POE cable defects, etc. around campus cause HikVision camera streams to require their ffmpeg daemons re-started once or twice or more times/day. (I am ...
kenneth558's user avatar
0 votes
0 answers
515 views

FFMPEG Real Time Audio

I have looked everywhere for the answer but my head is spinning a little bit and I can't seem to find the final answer. My goal is to get audio from my microphone in buffers of 512 audio samples, ...
Arno's user avatar
  • 53
0 votes
1 answer
137 views

ffmpeg combine video downsampling and audio channel mapping

I have two calls to ffmpeg which work when I use them separately in terminal. Now I'd like to combine both to one call but have no idea how. All my tests did fail so far. ffmpeg -i in.mov -vf scale=...
Sebastian Gibelius's user avatar
2 votes
2 answers
2k views

How to make youtube-dl (yt-dlp) generate subtitles properly and not duplicate the text?

I'm using yt-dlp to download some videos, and I've told it to embed the subtitles. This seems to work, except it's generating subtitles in the most horrible way by duplicating the text. For example, ...
Component's user avatar
0 votes
0 answers
15 views

Which FFmpeg video codec is natively supported in Windows 10 and Windows Media Player? [duplicate]

I need to generate a video that will run on Windows 10 with Windows Media Player without having to install any codec or anything else. I plan to generate that video using flags like the below. What ...
user13654090's user avatar
0 votes
0 answers
1k views

Loudnorm filter in ffmpeg incorrectly normalizes some audios

I use ffmpeg with the Loudnorm Filter in two pass. Loudnorm Filter is incorrectly normalizing the integrated output in some audio files. I set the target value at -11.0 LUFS and the True Peak value at ...
Clamarc's user avatar
  • 623
0 votes
1 answer
513 views

Recover FLV video with "packet mismatch error"

I have a Flash video (flv) that I like to convert to MP4, but it seems (partial) corrupt. What it is best way to recover a Flash video (FLV)? This particular video is a 3-hour long stream recorded in ...
MacFreek's user avatar
  • 121
1 vote
1 answer
487 views

ffmpeg overlay timestamp with timezone offset without using Epoch

Currently trying to overlay a very accurate timestamp on top of a video Mosaic, but I've run into an issue where the only printable real time timestamp is UTC. A similar question has been asked 2 ...
janezkuhar's user avatar
1 vote
0 answers
227 views

Continuing from where FFMPEG Stopped/Crashed

I was turning an Image Sequence into a MKV Video with FFMPEG. A little over halfway done it stopped/crashed, it did not give an error message. Is there a way where I could continue from where it ...
Vortex 2728182818's user avatar
0 votes
0 answers
128 views

Error while trying to convert video

I'm trying to convert a MKV file to MP4. ffmpeg always worked great but now, when I try to do the same thing, the process looks different and it just goes on without end. So, in the end, I don't get ...
Natsu's user avatar
  • 1
0 votes
1 answer
345 views

Trim .tp files without re-encoding

I'm currently using ffmpeg -ss xx:xx -to yy:yy -i input -c copy output to cut some files and it works fine with .ts and .mp4, but it can't handle .tp files. Here's what I get: [mpegts @ 0x198acd0] PES ...
tyrande's user avatar
  • 11
2 votes
1 answer
4k views

ffmpeg 360 Video - Convert EAC (Youtube) to Equirectangular

I have this top-bottom 360 Video, where the bottom is rotated 90 degrees clockwise, and I am looking for the ffmpeg command to produce a singular equirectangular output. I've been experimenting with ...
chantey's user avatar
  • 141
2 votes
1 answer
1k views

FFmpeg combining multiple -vf filters

I currently have two filters that work great when used individually: ffmpeg -i "D:\imageSequences\A.jpg" -vf scale=out_color_matrix=bt709,eq=gamma=1:saturation=1 -color_primaries bt709 -...
Uriel Romano's user avatar
0 votes
1 answer
61 views

Converting set of HHMMSS.jpg files to video with ffmpeg give only one frame

I have a set of camerashots in directory with the names of hhmmss.jpg I would like to convert them to video. Using command ffmpeg -i %06d.jpg day.mp4 gives mp4 with only one frame. Why and how to ...
Dims's user avatar
  • 12.7k
1 vote
2 answers
2k views

Convert 10bit HDR video to 8bit frames

I want to convert a yuv420p10le video into .png frames at 8bit (0,255) without washing away the colours. How can I do that? The usual command I use is: ffmpeg -i input.mp4 '%05d.png' However this ...
Dave's user avatar
  • 31
1 vote
1 answer
940 views

How to use video filters (cropdetect) with ffprobe

Checking the ffprobe docs apparently there is an option to use cropdetect with it. I am already aware that I could do this with ffmpeg like: ffmpeg -ss 900 -i "foo.mkv" -vframes 100 -vf ...
kali's user avatar
  • 369
7 votes
1 answer
2k views

Why does halving the frame rate with FFmpeg barely reduce file size?

I have some stream rips at ~2k kbps I'd like to cut down. ffmpeg -ss 4:00 -to 4:10 -i in.mp4 -an -vcodec libx265 -crf 26 -preset slow 26s.mp4 ffmpeg -ss 4:00 -to 4:10 -i in.mp4 -an -vcodec libx265 -...
H.v.M.'s user avatar
  • 547
2 votes
1 answer
3k views

Interpolate a video to 60fps with ffmpeg? [duplicate]

I want to interpolate a video to 60fps with ffmpeg, How can I do this?
FFmpegEnthusiast's user avatar
0 votes
0 answers
286 views

Compress with ffmpeg

What's the best way to compress these kind of files with ffmpeg (in the fast possible way): ffprobe -i file.mp4 ffprobe version 4.3.4-0+deb11u1 Copyright (c) 2007-2021 the FFmpeg developers built ...
Ace's user avatar
  • 109
1 vote
1 answer
92 views

Add logo to multiple input videos in FFMPEG

Trying to add a logo (same logo) to multiple input streams (videos) in ffmpeg. ffmpeg -i INPUT.mp4 -i test_logo.png -filter_complex "overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2[v]; [v][...
janezkuhar's user avatar
-4 votes
1 answer
309 views

Need This Type of animation using ffmpeg

This animation was generated in premier pro but i want to create it in ffmpeg:
nikhil verma's user avatar
0 votes
0 answers
736 views

ffmpeg command into batch command

I was trying to get an command I use and have to apply to batch list of files instead of doing it for each file. Command I use for ffmpeg (has to keep -i and -c) - ffmpeg -i in.ts -c copy out.mp4 How ...
user5894146's user avatar
2 votes
1 answer
4k views

How to fix (regenerate) thumbnails for mp4 files in Windows 10 (recorded by Pixel 3)

My Google Pixel 3 phone saves videos as mp4 files that have no thumbnails in Windows Explorer. (This screenshot shows files on my PC that I'd moved via USB from the Pixel 3.) Here is an example of an ...
Ryan's user avatar
  • 1,934
0 votes
0 answers
556 views

How do I assemble N still images with ffmpeg into a high quality video with anti-alias fonts?

I have some nice HD size still images 1920x1080 with beautiful anti-aliased fonts. When I view the still image the fonts are perfect. But when I assemble N of them into a video with: ffmpeg -framerate ...
Andrew Arrow's user avatar
2 votes
1 answer
570 views

ffmpeg zoompan image to video with original sizes

How do I make ffmpeg use input image ratio/dimensions for output video file with zoompan filter applied? Input images can have arbitrary dimensions (1000x500, 4000x3500 etc.). Example command: ffmpeg -...
genesst's user avatar
  • 131
2 votes
1 answer
975 views

Make 1 hour loop with ffmpeg?

I have a video. I want to loop it continuously and cut it off at exactly 1 hour. How can I loop the video for exactly 1 hour?
FFmpegEnthusiast's user avatar
3 votes
1 answer
1k views

Ffmpeg rotate drawtext with hwaccel

I trying to draw several texts on a raw video. One of the texts is watermark and it should be diagonal. My previous command to draw 2 horizantal texts. This command works with 246 fps .\ffmpeg.exe -y -...
Ksilon's user avatar
  • 33
0 votes
0 answers
749 views

FFmpeg raw 10-bit frame to mp4

I have a single frame stored in file '2.raw' which has an 128 bit float format for each color. Can I create a H.265 10-bit video with it? ffmpeg -y -f rawvideo -pix_fmt gbrapf32be -s:v 3072:1536 -i 2....
Michael Chourdakis's user avatar
2 votes
1 answer
1k views

Is there an FFmpeg parameter to force infinite loop during playback?

Is there an FFmpeg parameter to force infinite loop during playback? Please note I am not referring to loop the input file. So basically the input file is e.g. 4 seconds but I want the output file to ...
user13654090's user avatar
0 votes
1 answer
7k views

I want to concatenate two .mp4 files but ffmpeg shows an error all over:

Non-monotonous DTS in output stream 0:0; previous: 484090, current: 481360; changing to 484091. This may result in incorrect timestamps in the output file. The command I am using is: ffmpeg -f concat ...
IAM々Unknown's user avatar
0 votes
0 answers
1k views

Why I do get "Segmentation fault (core dumped)" when using ffmpeg encoding AMD AMF H.264 in Ubuntu?

Hello I built ffmpeg with AMD AMF drivers on Ubuntu 22.04 and when I run this command: ffmpeg -i video_sample.mp4 -c:v h264_amf output.mp4 I get this error: ffmpeg version N-107316-gf9dd8fcf9b ...
Max Dax's user avatar
  • 49
1 vote
0 answers
3k views

I need FFMPEG syntax examples for AMD AMF hardware acceleration on Ubuntu 22.04

I built FFMPEG with AMD AMF enabled. Everything seems to be compiled properly with the AMD AMF headers. Now I have never executed FFMPEG commands over Ubuntu terminal. I did some googling and couldn't ...
Max Dax's user avatar
  • 49
1 vote
0 answers
801 views

need help for proper commands in libplacebo filter

Before you comment guys, let me ask if libplacebo filter only works with vulkan/cuda and not dxva2? Because i've already seen so many examples how to use the libplacebo with vulkan/cuda and as for me, ...
Jefferson Villasan Josol's user avatar

1
21 22
23
24 25
141