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

Converting ALAC inside .mp4 file to FLAC without quality loss with FFmpeg

So, I have a .mp4 video file recorded with OBS, and I realised that Sony Vegas does not accept the audio format because it is from Apple (it basically imports the video just fine, but the audio is 6 ...
GamingRevenant's user avatar
0 votes
0 answers
58 views

Creating silent video from an image file (like png) using FFmpeg

ffmpeg -y -loop 1 -i '$inputFile' -f lavfi -i anullsrc=r=44100:cl=stereo -vf "scale=1280:720" -c:v libx264 -pix_fmt yuv420p -c:a aac -strict experimental -t $seconds -crf 28 -preset ...
najam ulhassan's user avatar
-1 votes
1 answer
38 views

overlay blinking image for a short time then stop

overlay blinking The following code makes the overlay loop blink every 2 seconds, enable=lt(mod(t,2),1) But I want it to blink for a certain amount of time (flickering) and then just stay visible. ...
MayK's user avatar
  • 1
2 votes
0 answers
119 views

Video Encoded using FFmpeg is not being played in Azure Kinect Viewer

I captured a video using a Kinect Azure DK device and could play it back using Azure Kinect Viewer (v.1.4.1). However, when I encode a video using FFmpeg, the commands are given below. I can not ...
Ashutosh Singla's user avatar
0 votes
0 answers
83 views

using ffmpeg to fix a mp4 with dropped/skipped frames due to dropped stream

the output stream from my security cameras (EufyCam) will occasionally drop the rtsp stream, sometimes up to 10s of seconds at a time, if the network connection (wifi) signal is poor. the stream ...
traycerb's user avatar
1 vote
1 answer
92 views

Issue in converting encrypted HLS with FFMPEG to UDP

We are looking for help in debugging a problem related to converting encrypted HLS to UDP output. If we download encrypted HLS content and then convert it to UDP, it works well. But if we directly ...
Namita Garg's user avatar
0 votes
0 answers
70 views

Best Lossless Video Codec for 8 bpc RGB image sequences?

I render 3D animations, many of which take days or even weeks to render at a time, and I need to keep a lossless archive of the output files. The output format from the render engine is 8 bit per ...
joejoejoejoe4's user avatar
0 votes
0 answers
75 views

How to change the pitch but keep the speed FFMPEG

Since I already know how to use the asetrate code to change both pitch and sound, however, I would like to find out of how can I only just change the pitch but retain the original speed. Can anyone ...
Taymur Roshan's user avatar
0 votes
1 answer
86 views

ffmpeg and QSV works on three PCs, but not the fourth

As the title suggests, I've used ffmpeg with x264_qsv hardware acceleration on two Windows 7 systems and one Windows 10 system successfully. I have now tried to set it up on a fourth system which is ...
Bart Lederman's user avatar
0 votes
0 answers
125 views

ffmpeg mpegts udp stream unexpectedly producing dramatically increased packet rate

I am using an ffmpeg 3.4.5 process to stream MPEG-TS video from a computer's screen to a recorder. The recorder effectively captures network traffic (like a promiscuous wireshark) and produces a .cap ...
John Spickes's user avatar
2 votes
1 answer
158 views

ffmpeg nvenc throws an error after I modified an x264 command

I'm trying to convert this command to work on nvenc hvec video encoder to just make it faster and utilize my 3060: ffmpeg -i video.mkv -i logo.png -filter_complex "[1]format=rgba,...
Candour's user avatar
  • 25
0 votes
0 answers
92 views

ffmpeg download and retry failed segments

I am using ffmpeg to download some streams to a mkv file: ffmpeg -y -i https://file.com/myfiles.m3u8 -c copy /tmp/test.mkv In some cases, there has been some issues downloading some of the parts, and ...
Ziggy000's user avatar
0 votes
1 answer
38 views

FFmpeg xfade slideshow: handling redundant options and filters for dozens of input files

Slideshows may have many slides, and if you want xfade crossfade effect, it seems you cannot use the concat demuxer. FFmpeg supports at least 50 input files, but if you also need to specify filters ...
Lumi's user avatar
  • 1,567
0 votes
0 answers
85 views

How to fix "Could not find tag for codec timed_id3 in stream #0"?

ffmpeg gives me the following error for some videos. Could not find tag for codec timed_id3 in stream #0, codec not currently supported in container Could not write header for output file #0 (...
mbnoimi's user avatar
  • 101
0 votes
1 answer
30 views

FFmpeg: Fade in and out from PNG generated video

I have a PNG image and want an 8 seconds 30 fps video from it with the first second faded in and the last one faded out. Here's what I expect to work, using the fade filter, but what produces just a ...
Lumi's user avatar
  • 1,567
0 votes
0 answers
144 views

How to create a 1080p video with FFMPEG?

I'm using this command: ffmpeg -loop 1 -framerate 2 -i input.png -i audio.m4a -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv I'm trying to make ...
Eddie Valentin's user avatar
0 votes
1 answer
90 views

ffmpeg on Linux - convert video to play on iPhone [solved]

I am converting Hi8 to .mkv, .mp4 or .avi using ffmpeg on Linux (Gentoo). I am trying to convert small clips to play on an iPhone, iPad (iOS) The following will convert but it will not play on an ...
icebowl's user avatar
0 votes
1 answer
61 views

How to set ffplay's backgroud color if frame size has a different aspect ratio than the window's?

If frame size has a different aspect ratio than the window's, ffplay will stuff black bar into its window area. How to replace the black bar's color? Sometimes I apply a crop filter to ffplay to cut ...
Hertz Hu's user avatar
0 votes
1 answer
88 views

Can't run ffmpeg on OSMC

I have an OSMC system with Debian GNU/Linux 11 (bullseye). I can't run ffmpeg: osmc@osmc:~$ ffmpeg ffmpeg: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such ...
steffen's user avatar
  • 151
0 votes
1 answer
86 views

How to query media file metadata using ffprobe, e.g., track number?

I want a single command to retrieve track number (or other metadata) from an audio file using ffprobe.
André Willik Valenti's user avatar
0 votes
0 answers
52 views

How to fix broken mp4 and retain all streams including gyrodata?

I think I have tried just about all open source projects on github but I can not get anyone to do exactly what I want. I have a SMO 4k which is based on Insta360 R camera that suffered batteryloss, ...
Tor Suneson's user avatar
1 vote
0 answers
51 views

My video is playing upside down

I took photos and recorded video of a family wedding as a surprise. I edited all images and loaded them on a flash drive along with the video so she can view them on the TV. When plugged into TV to ...
u8myufo's user avatar
  • 19
1 vote
0 answers
65 views

Convert MP4 to AMV Faster? ffmpeg

Here is the code a buddy got for me that I'm using. -c:v amv -c:a adpcm_ima_amv -pix_fmt yuvj420p -vf "scale=296:256:force_original_aspect_ratio:flags=lanczos,crop=256:in_h:20:0,pad=320:256:64:-1:...
Lili Cam's user avatar
2 votes
1 answer
88 views

When copying all streams from a mkv contained to another mkv container, original cover thumbnail stream gets copied, but does not get visualized

So, to simplify the topic for this question, I am using a simple command that only copies all the original streams and puts their copies in a new mkv container. The original cover.png stream is still ...
NoName's user avatar
  • 21
0 votes
0 answers
73 views

Overwrite parts of audio stream using FFmpeg (or DaVinci Resolve)

FFmpeg I have a video of a funeral ceremony, speech interspersed with three pieces of music of a couple minutes each. Audio quality is sufficient for speech, but it would be nice to have the music ...
Lumi's user avatar
  • 1,567
0 votes
0 answers
85 views

FFMPEG YouTube Settings

I successfully made it to work ffmpeg -loop 1 -i image file -i audio file -shortest -c:v libx264 -preset slow -crf 18 -vf scale=out_color_matrix=bt709 -color_primaries bt709 -color_trc bt709 -...
Eddie Valentin's user avatar
1 vote
0 answers
131 views

How to Speed Up Complex Text Overlay in FFmpeg

I'm using FFmpeg to overlay text on videos, and I find the process to be quite slow. The operation becomes especially slow when I add complex drawtext filters. I'm running this on a MacBook Pro with ...
mlika's user avatar
  • 11
1 vote
1 answer
72 views

ffmpeg, need help to make small thumbnail slideshow video from long video

With ffmpeg command, I am trying to create a small thumbnail slideshow video of a large video by selecting one frame every 60 seconds and then combining those frames to make a video in a way that each ...
Pankaj's user avatar
  • 11
0 votes
2 answers
82 views

Normalization of lossy audio

I am trying to get my music to all play at the same level but ffmpeg is proving temperamental... There are different types of normalization and I am trying to find what works best. I saved the ...
PaulMcF87's user avatar
  • 125
0 votes
0 answers
59 views

ffmpeg keep all video metadata

I have a video with incorrect video metadata which is messing up the color. Here is the original video's stream 0:0 Metadata: Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(...
Huston's user avatar
  • 89
0 votes
0 answers
54 views

ffmpeg (No Transcoding) audio

How to create still image with sound video with ffmpeg with no transcoding audio so that my audio would be left untouched, so there is no loss in quality. I tried with a lot of parameters and couldnt'...
Eddie Valentin's user avatar
0 votes
0 answers
56 views

How to use Docker FFMPEG and HLS on my website

I want to use a Docker container to convert an mkv video to an HLS "video". This is my command for it: docker run --rm \ -v /mnt:/config \ linuxserver/ffmpeg \ -i "/config/test....
NormalUser's user avatar
0 votes
0 answers
78 views

Using ffmpeg with MTS files created from Canon video camera

I have a HF G30 canon camcorder which produces MTS files that mediainfo says are BDAV files. I film events and might have 2 hours of footage for 10 minutes of action, so want to chop them down before ...
wcndave's user avatar
  • 103
0 votes
1 answer
36 views

How to copy the video, covert all audio streams to AC3, and only keep the subtitles in English using ffmpeg?

I often use this to convert the audio streams to AC3 -i input.mkv -map 0 -c:v copy -c:a ac3 -c:s copy output.mkv However, if I only want to keep the English (en/Eng) subtitle(s), given that the ...
user7226's user avatar
  • 103
1 vote
0 answers
35 views

Going round in circles with ffmpeg concat and filter_complex

Since I've 'flipped' my classroom I'm trying to work out the ffmpeg command that will concat a set of m4a audio files with a set of matching static PNGs to create a pre-recorded talk. I have no issues ...
user1600439's user avatar
0 votes
1 answer
131 views

FFMPEG Lossless

How can I make a video still image + sound (audio file) lossless with ffmpeg? I want the still image video to sound just like the audio track/file if its possible, I dont want any transcoding. Also, I'...
Eddie Valentin's user avatar
0 votes
0 answers
50 views

h264_qsv is choppy when live streaming

I am trying to do live streaming of video games using h264_qvs, but is choppy when compared to libx264. Here are some variations of the ffmpeg command I am running: Variation 1 ffmpeg.exe -y -hwaccel ...
Devin Dixon's user avatar
1 vote
0 answers
68 views

ffmpeg with libopenh264 Is blurry

I am trying get live streaming using libopenh264 near the quality of libx264, but I am running into the quality issues. Here is a live stream standing still: And here is image when there is fast ...
Devin Dixon's user avatar
1 vote
3 answers
469 views

Best method for setting permanent aliases in powershell?

When I install something like ffmpeg with winget, it sets permanent aliases for ffmpeg, ffplay, & ffprobe. winget install gyan.ffmpeg It doesn't look like it's adding anything to my path ...
ninbura's user avatar
  • 271
0 votes
1 answer
71 views

Does 'force_style' work with 'subtitles=video.mkv' for FFMPEG?

I am using this script to encode an burn in subtiles for an entire folder: for filepath in newFiles: video = os.path.basename(filepath) videoName = os.path.splitext(video)[0] newFile = '%s....
http.bird's user avatar
0 votes
0 answers
23 views

Concatenating multitrack .wav files using ffmpeg

I have 32bit .wav files with around 6 channels, segmented into chunks of 2.15GB. I want to merge the files sequentially, retaining the individual channels. I would assume something like: ffmpeg -f ...
EURSCVA MembroFoto's user avatar
0 votes
0 answers
40 views

Please help to add audio noise while using "mpdecimate,setpts=N/FRAME_RATE/TB"

I have an audio, named noise.mp3. And I want mpdecimate to not just remove all static frames, but replace them with black screen and/or audio noise (which I can use in Adobe Premiere to edit them) and ...
Sat Yo's user avatar
  • 1
0 votes
1 answer
95 views

FFmpeg or PHP-FFmpeg 0.19.0 : How to merge video file and audio file(mp3)

How to drop current audio of video and merge this video with other audio file(mp3) using PHP-FFmpeg or FFmpeg command. case 1: duration of audio is 8 minute, video is 22 second. in this case : loop ...
KubinParker's user avatar
0 votes
0 answers
72 views

FFMPEG Concat Demuxer adds more time to output than expected

I am using ffmpeg concat demuxer to join multiple(189) videos together. The videos are originally split from a single video using the following command: ffmpeg -ss time[2] -vsync 1 -copyts -i ...
Shreyas's user avatar
1 vote
0 answers
91 views

ffmpeg printing unknown glyph between characters on utf-8 subtitle

FFmpeg is printing unknown glyphs between some two characters but the weird thing is it's not replacing a character that doesn't exist in the font, it's just printing a new unknown glygh and I can't ...
Shayan's user avatar
  • 1,465
0 votes
0 answers
48 views

buffered stream and FFmpeg seek

Due to memory usage, we need to use a buffered solution to load a small chunk of blocks of streams in memory instead of loading the whole stream with: avformat_network_init(); std::uint8_t *...
Baris Unal's user avatar
0 votes
0 answers
162 views

Generate a video with an image every 5 seconds using ffmpeg

I want to create a video from command line with some images like those: -rw-r--r-- 1 dt dt 3360622 Sep 4 23:57 IMG_0670.jpg -rw-r--r-- 1 dt dt 2949398 Sep 4 23:57 IMG_0671.jpg -rw-r--r-- 1 ...
Daniele Tentoni's user avatar
0 votes
1 answer
40 views

how to let ffplay process whats happening?

my ffplay is trying to hard to process something. I sped up my voice in real-time with ffmpeg and I am using ffplay. ffplay is trying to process my voice fast but isn't able to because it cant go past ...
boplip's user avatar
  • 11
0 votes
0 answers
83 views

Rotation metadata not changing when encoding with ffmpeg

[UPD: Checking metadata with exiftool -rotation] Been struggling for a few days, here is the setup: ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate="-90" output.mp4 changes the output....
Vlad Sutyrin's user avatar
0 votes
1 answer
82 views

Muxing AC3 with x264, timing & seeking challenges

I'm attempting to generate a downloadable video with 5.1 surround to put on a website of a concert I worked on. Ideally with maximum compatibility with things like QuickTime & Plex. I have a ...
Caleb's user avatar
  • 1