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

Can FFmpeg draw time left on a video file like a countdown?

Can FFmpeg draw time left on a video file like a countdown?
0 votes
1 answer
38 views

How do you convert PSF music files to FLAC without using some "online tool"?

I love the soundtrack to the 1997 PlayStation video game Breath of Fire III. I have its soundtrack as MP3 files on my computer. After hearing what a huge difference it made to go from MP3 to FLAC for ...
1 vote
2 answers
60 views

Is there a way to extract subtitles from an MKV while maintaining the original format?

I am trying to extract (first, in case of many) subtitle track from mkv files (via CLI only, no GUIs) using ffmpeg or mkvextract. But there is one downside to this: I have to write the output name ...
0 votes
0 answers
29 views

Is there any ffmpeg or Avidemux filter to remove this kind of glitch?

I record gameplays with ffmpeg, and with this specific game I get this kind of graphical glitch (most graphical elements are fine but text labels disappear for just one frame). It happens randomly ...
  • 1,344
0 votes
1 answer
12 views

FFMPEG MultiPlex all video's to all audio's

(windows 10 64) I have seen & read MULTIPLE (50+) answers to forms of this question but not for what Im trying to do. I have a folder with 30+ short clips (few seconds each) mp4's I also have a ...
0 votes
0 answers
65 views

Why is ffprobe showing N/A for bitrate?

I am transcoding a video from VP9/opus webm to H.264/aac mp4. I'd like to maintain bitrate or reduce bitrate if either the audio bitrate > 128k or the file becomes larger than 5MB. So I try to ...
  • 593
1 vote
0 answers
64 views

`ffprobe` is 12 times slower than `metaflac`. How to speed up `ffprobe`?

On a small FLAC folder of 1593 files, ffprobe takes over 12 times longer to run than metaflac. How to speed up the single-threaded performance of ffprobe? I tried to tell ffprobe to do the same and ...
0 votes
1 answer
57 views

ffmpeg: colortemperature filter and sunrise/sunset lights compensation

I wish to compensate video for morning and evening lights with ffmpeg filter. I found in https://ffmpeg.org/ffmpeg-all.html#colortemperature and was hoping to make use this filter. Below is the ...
0 votes
0 answers
46 views

ffmpeg multiple files at once

I have this FFmepg script in a batch file: for %%a in ("*.mp4*") do ffmpeg -i "%%a" -y -c:v prores_ks -profile:v proxy -pix_fmt yuv422p10le -vendor ap10 -bits_per_mb 8000 -vf &...
0 votes
3 answers
68 views

Is there any hidden danger in re-converting all my FLACs with "-compression_level 12"?

For some time now, I have been upgrading my music library from bad-sounding MP3 files to lossless FLACs. This obviously takes much more storage space. The 465 GB internal disk which contains my "...
0 votes
2 answers
71 views

Lossy to lossless conversion (audio)

I have an mp3 file which i want to convert to a flac. I realise that it wont "improve" the quality rather I want it in a flac format so that when I edit it each time and re encode it, it won'...
0 votes
0 answers
39 views

(FFMPEG ) How to stream video file (WITHOUT AUDIO) with audio coming from the desktop (from playing songs in the browser)

I have a mp4 file and I want to stream it with ffmpeg to youtube. I am able to do it when using anullsrc so that I tell youtube those videos has no sound and it works okay. But I do want audio, I just ...
0 votes
0 answers
36 views

FFMPEG Stream to network port

I am searching around for 2 days but didn't find a solution. Is it possible to stream a video to a local network port with ffmpeg? My goal would be, to capture a remote stream, convert it and send it ...
  • 1
1 vote
0 answers
19 views

How to reference a folder in the previous directory in a batch file?

I have the following script for converting videos with FFmpeg: for %%a in ("*.mp4*") do ffmpeg -i "%%a" -y -c:v prores_ks -profile:v proxy -pix_fmt yuv422p10le -vendor ap10 -...
0 votes
1 answer
32 views

Open .mp4 files in Adobe Media Encoder through a batch file

I would like to create a .bat or PowerShell script that loads all the .mp4 files from the folder where the script is in Adobe Media Encoder, the aim is to facilitate the day-to-day workflow. I built ...
0 votes
0 answers
14 views

Resize movie .m2v 576.i widescreen

I would like to convert a 720x576 widescreen, interlaced .m2v movie into an interlaced mpeg file. This conversion should be uncompressed, with a 1024x576 resize to account for the widescreen. The ...
0 votes
0 answers
46 views

Using ffmpeg within youtube-dl to cut first 4 seconds of the video

So here is the command i'm using: youtube-dl.exe -a list.txt -o "C:\Users\onu\Documents\[%(uploader)s] - %(title)s.%(ext)s" -f best --embed-thumbnail --postprocessor-args "-ss 4" ...
  • 1
0 votes
1 answer
62 views

ffmpeg 192kHz udp raw audio streaming

How do I stream a lossless audio signal with 192000kHz over a UDP connection? I want to stream 192kHz signals sampled on a raspberry 4 (hifiberry shield) over the connected network via UTP. Ideally, ...
2 votes
1 answer
28 views

How do I list all the voices available in the libflite library?

Having read about the the libflite library in man ffmpeg-filters I am already familiar enough with it to make ffplay speak in different voices, like so: ffplay -f lavfi flite=text='Love':voice=kal ...
0 votes
0 answers
19 views

Is it possible to remove X seconds, concat and watermark in the same command of ffmpeg?

I know I can remove X seconds from the video and add the watermark by using -ss X and -i logo.png -filter_complex "overlay=main_w-overlay_w-10:10" Can you also concatenate a new video to the ...
  • 220
0 votes
0 answers
20 views

I want to reduce the number of commands in this FFmpeg command but I am not that fluent in FFmpeg commands

I want to reduce the number of commands in this FFmpeg command but I am not that fluent in FFmpeg commands. What can I do to improve this? powershell.exe -Command "& {Invoke-WebRequest -...
0 votes
0 answers
9 views

capturing speaker output with screencast on ubuntu with ffmpeg

I am using the following command ffmpeg -video_size 1600x900 -framerate 30 -f x11grab -i :0.0 -f pulse -thread_queue_size 512k -i alsa_output.pci-0000_28_00.1.hdmi-stereo-extra1.monitor -map 0:V:0 ...
0 votes
0 answers
16 views

convert 360 deg 3840x1920 .mkv (eac) to same size .mp4 (equirectangular)

Many times these files convert without issue using -vf "v360=eac:e" as the filter. Sometimes it complains the height is not evenly divisible by two. I have tried padding and also scaling to ...
0 votes
0 answers
21 views

How the options to set/unset a default subtitle stream interact?

Using ffmpeg. Say I have an input video file with several subtitles, one of them being flagged "default" (say the 0:s:1 stream, that is the 2nd subtitle stream). I am copying all of them: -...
  • 1,189
0 votes
1 answer
37 views

FFmpeg overlay image behind object

I have a video, that has a scene I need to overlay a photo. The scene looks like this. I've done simple overlay in the middle of the picture with ffmpeg -i demo.mp4 -loop 1 -i image.png -...
0 votes
1 answer
66 views

Lossless extraction of audio from .webm and .mp4 files

To extract audio from a .webm file, using the ffmpeg tool: ffmpeg -i "input.webm" -acodec copy "output.opus" The command above works perfectly, however it extracts only one file at ...
  • 1
0 votes
0 answers
66 views

Set default subtitle language based on language code (eng, spa, etc.), not the stream specifier

I batch downloaded videos from a channel, but the subtitle languages available for each video are not consistent. Is there a way to set a default subtitle using the language code (e.g. eng, spa, fra, ...
  • 1
0 votes
0 answers
18 views

Batch Combining CDG and MP3 files

Trying to combine a load of CDG and MP3 files and convert them into MP4. Using FFMPEG This is the command I'm using for %%1 in (**.cdg) do for %%2 in (*.mp3) do ffmpeg -i "%%1" -i "%%2&...
0 votes
0 answers
15 views

How do you import few extensions on windows batch script gonna use for ffmpeg? [duplicate]

imagine you have folder with a different file types and you wanna import few of them on batch for example just mkv & mp4 & avi files i saw on youtube someone use this on mac for %%i in *.{mp4,...
  • 1
0 votes
0 answers
82 views

Why is a video created by FFmpeg from static image is rejected by YouTube?

I am trying to input a image.jpg file and audio file. I need output as video of 1080p quality. Recently I tried the command given in ffmpeg doc Encode/YouTube and got the output. ffmpeg -loop 1 -...
0 votes
0 answers
38 views

ffmpeg - How to interpolate frames at a single instance in a video?

I have a 5 second video with 60 fps. It is a single take shot except a minor cut at 00:00:02.208. I have found some resources that use interpolation in the entire video in order to increase frame rate ...
0 votes
0 answers
38 views

how to write timestamp on output pictures with this code (ffmpeg)

ffmpeg -i "D:\aaaa\bbb\cccc\dddd\abc.ts" -frames 1 -vf "select=not(mod(n\,18)),scale=200:100,tile=12x12" "D:\aaaa\bbb\cccc\dddd\tile.png" I'm using windows cmd but I ...
0 votes
0 answers
101 views

How to download sections from youtube videos from command line with bad internet

I want to download certain sections from a youtube stream, currently I'm using this command to get the job done: yt-dlp --download-sections "*30:15-1:40:25" $LINK the problem is that ...
0 votes
1 answer
64 views

how to do input file name same as output file name (ffmpeg)

ffmpeg -i "D:\aaaa\bbb\cccc\dddd\abc.ts" -frames 1 -vf "select=not(mod(n\,18)),scale=200:100,tile=12x12" "D:\aaaa\bbb\cccc\dddd\tile.png" I want to ask that how can I ...
0 votes
0 answers
62 views

Ffmpeg interpeting conversion error messages

I am trying to decipher the quality of converted videos by inspecting the error output log(s). The log is created by -loglevel error . The video source is from OTA .ts recordings, and the problem is ...
  • 11
0 votes
2 answers
103 views

FFmpeg - make white background semi-transparent

If an image is a typical non-transparent jpeg with white background. Is it possible to make the output background semi-transparent? I mean just the white, while other colors would remain opaque.
1 vote
1 answer
101 views

Colors change when converting GIF to VP9 WebM using FFmpeg

The colors come out fine when I try using VP8 WebM or H264 MP4, but whenever I use VP9 WebM there's a slight change in color. The change in color can be seen in Chrome, not sure about other browsers ...
0 votes
0 answers
38 views

ffmpeg/ffprobe won't detect the language of a WEBvtt (subtitles) file

A WEBvtt subtitle file starts with a few header lines, and one of them indicates the language: WEBVTT Kind: captions Language: en 00:00:09.977 --> 00:00:11.563 I'd like you to take a look at this ...
  • 1,189
0 votes
0 answers
101 views

Force MP4, BA, and <480p?

Jump to d.1 to see the work-around command I am using. Why am I doing this? It is SOMETIMES best to just do -f ba[ext=m4a] then change the extension to .mp4, my concern being that it will sometimes ...
  • 1,039
0 votes
0 answers
39 views

ffmpeg pan filter stopped working in 5.x

With ffmpeg 4.x I've been using the pan filter to "map" the channels in 12 and 16 channel wav files so other applications know which channels are which. Here is an example command (from a ...
0 votes
0 answers
19 views

Video doesn't have sound after adding bunch of images

After adding a bunch of images to a video, the output video doesn't have sound. I would like the sound to repeat and keep playing until the video ends. Does anyone know what I would have to add here? ...
1 vote
1 answer
332 views

Download m3u8 blob video using ffmpeg

The video is located on this page after clicking on the WATCH TRAILER button https://web3.wb.com/warnermedia/movieverse In the network tab of the browser I found several links to m3u8 playlists among ...
  • 13
0 votes
0 answers
36 views

Single Mono file into left channel only 5.1 channel file

I am trying to set up a Halloween display with a 6 talking props. Only one prop will be speaking at a time with a speaker placed behind the prop. I am currently using AWS's Polly to generate mono ...
  • 101
0 votes
0 answers
53 views

Encode AV1 in mpegts container

I want to convert h264 video to av1 and save it in mpegts container. I managed to encode av1 and use mp4 or mkv containers but it doesn't work with mpegts. All I can find is that av1 mpegts support is ...
  • 1
0 votes
1 answer
114 views

How can I extract a subtitle in "HDMV PGS" format from a video with FFmpeg?

I'm trying to extract a subtitle in "HDMV PGS" format embedded in a video with this command ffmpeg -i Movie.mkv -map 0:s:0 subs.srt from an answer on Super User command, but it gives the ...
  • 1
1 vote
1 answer
46 views

Process all audio streams in MKV using FFMPEG

I would like to do dynamic audio normalization in MKV file containing audio streams in two languages ffmpeg -i "Source.mkv" -vcodec copy -af "dynaudnorm=f=50:p=0.9" "Target....
  • 770
0 votes
0 answers
36 views

Muxing HLS/M3U8 Sstream as MPEG-TS

all! I have a link to a live stream that I need to mux down into an mpeg-ts format. Problem is, it skips heavily, freezes, and even starts playing segments of the stream before the last one finishes ...
0 votes
0 answers
34 views

How can I generate a square wave with FFplay?

I'm currently working on a small script that utilizes FFplay to generate a quick 650hz beep tone. I'm able to get it to output sine waves, but I can't figure out how to do square, triangle, or ...
0 votes
0 answers
18 views

File bitrates unknown/missing after applying ffmpeg operations

Recently, I have been doing some ffmpeg operations on some video files whether it's to extract out audio or convert its codec. The output files' bitrate is always go unknow due to some reason. I'm not ...
0 votes
0 answers
40 views

How do I make this ffmpeg command work on mac?

Works on Linux but I have a mac for work. I need to replace alsa and possibly x11grab so it works on MacOS: screencap() { file=`date +%Y-%m-%d-%H.%M.%S` ffmpeg -f alsa -i pulse -f x11grab -...
  • 1,145