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
6 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 ...
0 votes
0 answers
15 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 "...
82 votes
7 answers
162k views

How to extract subtitle from video using ffmpeg?

I am trying to extract subtitle from video as .srt file, I used the following command: ffmpeg -i mytestmovie.mkv -vn -an -codec:s:0.1 srt sub.srt But, I got an error as Unrecognized option codec:s:0:...
0 votes
0 answers
18 views

FFmpeg bug RTMPS Facebook live and all RTMPS [closed]

I run live streaming with RTMPS not working in FFmpeg. FFmpeg has a bug for pushing to RTMPS, when it starts streaming it doesn't work, after 10 seconds an error appears. This doesn't just happen on ...
0 votes
1 answer
31 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....
0 votes
1 answer
52 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 ...
0 votes
1 answer
18 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 ...
0 votes
0 answers
17 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 ...
0 votes
0 answers
39 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 ...
0 votes
0 answers
14 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....
21 votes
5 answers
20k views

How to trim silence only from beginning and end of mp3 files using FFMpeg?

After investigating to find a solution to the problem, I ended up empty-handed. I want a context menu option in Windows 10 so that whenever I right click on a mp3 file I have this option to trim ...
0 votes
2 answers
83 views

FFmpeg watermark and HLS stream

I want to convert and MP4 video into HLS multi-resolution (360, 720) and add watermark image inside the output segments. I did two result but missing the watermark image with the multi scale: // one ...
0 votes
0 answers
27 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 ...
0 votes
1 answer
4k views

How can I automatically cut all silence (0dB) from mp3 without reencoding?

As I read silenceremove will reencode file. Usually I do it manually creating file like: file 'file.mp3' inpoint 0 outpoint 01:55:00.0 file 'file.mp3' inpoint 02:03:50.0 and executing this command:...
1 vote
0 answers
37 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? ...
4 votes
1 answer
5k views

Chromium won't play mp4

I have chromium (version 79) installed on my Red Hat 7.6 system and cannot play any mp4 videos. I attached an image below of what it looks like when I run chromium-browser <mp4 video>. I have ...
1 vote
1 answer
39 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 ...
82 votes
7 answers
108k views

How do I use ffmpeg to get the video resolution?

I am trying to get resolution of the video with the following command: ffmpeg -i filename.mp4 I get a long output, but I need just the width and height for my bash script. How should I filter out ...
3 votes
1 answer
5k views

Covert FLAC to AIFF while saving tags/metadata

I need a command-line tool to convert a bunch of XXX.flac files to XXX.aiff while preserving the tags (artist, title, album, etc.). None of the tools I tried (ffmpeg, sox, flac) seem to do the job ...
0 votes
0 answers
28 views

Where can I find FFMPEG that includes libx265 encoder compiled internally? [closed]

I am able to easily download FFMPEG from the FFMPEG website; however, where can I find FFMPEG that is already compiled and includes libx265 encoder compiled internally? Thank you so much :)
0 votes
1 answer
27 views

Ffmpeg concat filter produces frames from different videos

I have a workflow in which I give several videos to ffmpeg, each video corresponding to a shot, and ffmpeg concatenates them to produce a single video, interlaced at 25 fps. The problem is that ...
1 vote
1 answer
30 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 ...
0 votes
4 answers
3k views

combining 1 image + 1 audio using FFmpeg

I want to combine an audio file and one image file into a video. Output will be in .webm format so I will be using libvpx. The video must have one frame with the best/lossless quality. So far I have ...
1 vote
3 answers
2k views

How to accelerate minterpolate in ffmpeg?

I'm using minterpolate of ffmpeg(version git-2020-08-21) with this command on Windows 10: ffmpeg -i $file -filter:v "minterpolate=mi_mode=mci:me_mode=bidir:mc_mode=aobmc:vsbmc=1:fps=60" -c:a ...
0 votes
1 answer
5k views

Remove embedded subtitle streams from media file without "streaming/remuxing"

This related post gives a solution: mkvmerge -o output.mkv input.mkv -S # remove all subtitle tracks This other related post gives a solution: ffmpeg -i input.mp4 -c:v copy -c:a copy -map_metadata 0:...
0 votes
6 answers
17k views

'ffmpeg' is not recognized as an internal or external command, operal program or batch file

I'm not a Windows guy, I have been using Linux since 1999. I installed FFmpeg on my daughter's Windows 10 laptop. I installed it according to the instructions, set the PATH in the environment ...
3 votes
1 answer
4k views

Why does ffmpeg's "tonemap" tone mapping filter give me different colors depending on the output format?

I have a source video that is a UHD HDR MKV file using the HEVC codec. Specifically, the input video stream as reported by ffprobe is: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), ...
0 votes
1 answer
31 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 ...
0 votes
1 answer
4k views

FFmpeg: h264_qsv slower than libx264 (real-time buffer too full)

I use configuration: Windows 10 IoT, Intel Celeron N3350E (with Intel HD Graphics). Runing this line: ffmpeg -f dshow -i video="USB Video":audio="USB Digital Audio" -c:v libx264 -...
1 vote
1 answer
36 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 -...
1 vote
0 answers
32 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. ...
1 vote
1 answer
113 views

ffmpeg cut, fade and concat causes the video to get stuck

I'm trying to add "fade out" effect to a long video. One method I explored is cutting video at the end before few seconds, adding the fade out effect to the second split and concat both the ...
0 votes
0 answers
21 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 ! ...
1 vote
1 answer
3k views

Render a web page on top of a video using FFMpeg

I would like to display some text and images with a specific animation at the beginning of a video using FFMpeg. Display animated text/images using web langages (HTML+CSS+JS) is pretty easy, but I ...
-1 votes
0 answers
22 views

Combine mutiple WAV files into a big multi-channel WAV file

I have some files that are a 7.1 mix of a song. The problem is that they're all separate like this: 1-2 Left Right 3 Center 4 Subwoofer 5-6 Left Right Surround 7-8 Left Right Rear Surround 9-10 Left ...
1 vote
1 answer
818 views

Is it okay to re-encode videos from traditional lossless codec to modern lossless codec to save space and preserve quality?

Lossless video codec means almost zero information loss. After some internet search I found that there are some traditional opensource lossless codec like huffyuv, lagarith, utvideo and ffv1, which ...
1 vote
1 answer
8k views

FFmpeg Upscaling Video

First I just want to say a bit more about my title, I am not referring to the fact that upscaling doesnt add data(as often asked when upscaling) - but something different. Example I have raw video ...
1 vote
1 answer
325 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 ...
-2 votes
0 answers
33 views

Sync dailies by waveform or timecode without re-encoding using ffmpeg

It would be great to be able to use ffmpeg to sync dailies either by using timecode or waveform and just re-wrap the files maintaining timecode from the video file. be nice if the new file set the ...
0 votes
1 answer
31 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 ...
0 votes
0 answers
28 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: ...
2 votes
1 answer
3k views

Alternatives to Video4Linux2 for grabbing from webcam (Using FFmpeg)

I'm getting (two alternating) errors following this guide for streaming from a Raspberry Pi. Are there any other grabbers besides V4L2 that I can use with ffmpeg? Or are there any other streaming ...
0 votes
1 answer
4k views

ffmpeg re-streaming to another RTMP

How can I stop my ffmpeg re-stream from crashing? I'm running the following command in a .BAT file: :loop ffmpeg -i "RTMP://IPADDRESS:1935/LIVE/STREAMNAME.STREAM pageUrl=http://URL.COM swfurl=http://...
1 vote
0 answers
27 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 ...
1 vote
1 answer
53 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 -...
0 votes
0 answers
24 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,...
8 votes
2 answers
21k views

How to extract lossless image from video with FFmpeg?

I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg The images are extracted successfully, but jpg files ...
1 vote
1 answer
5k views

How to combine audio and video using FFmpeg and sync them?

I'm trying to convert Adobe Connect Recording which consists of multiple FLV files. Some have the audio and some have the video. I want to combine the FLV files into a single video. BUT, there is an ...
0 votes
1 answer
4k views

ffmpeg '-i pipe:' and 'thread_queue_size' -- managing a pipe

I've discovered a thread_queue_size number that seems to work on my system for this use-case but I'll test more (or repeat tests) to help the cause if someone can suggest something. Please advise. ...
1 vote
0 answers
39 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 ...

1
2 3 4 5
137