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

FFMPEG : Error parsing filterchain subtitles

I have built ffmpeg from source to allow GPU usage on Google Colab, with this code: !apt install nvidia-driver-525 !apt install nvidia-cuda-toolkit !mkdir ~/nvidia/ %cd ~/nvidia/ !git clone https://...
98 votes
3 answers
234k views

Converting video from 1080p to 720p with smallest quality loss using ffmpeg

I stack with my high quality movie: 1080p with 60fps. The trouble is lags while playing. I tried to convert it to 720p with ffmpeg: ffmpeg -i MyMovie.mkv -r 60 -s hd720 MyMovie_720p.mkv But I ...
0 votes
0 answers
13 views

Fail to convert png from 3gp

Here is the command I used to convert the video. ffmpeg -skip_frame nokey -i input.3gp -vsync vfr -frame_pts true output.png (The command can't be modified because this is a code section captured from ...
0 votes
0 answers
28 views

Error parsing filterchain with ffmpeg

My ffmpeg command command = f"ffmpeg -hwaccel cuda -loglevel error -y -i input.mp4 -filter_complex \"subtitles='subtitles.srt'\" output.mp4" subprocess.run(command, shell=True) ...
0 votes
0 answers
19 views

How do I upscale a 720x576 [SAR 16:15 DAR 4:3] video to crop out black bars?

I have a movie from one of my DVDs looking like the following after having imported it and muxed it to a .mkv container: `ffprobe`` provides me with the following information: I recently imported ...
1 vote
1 answer
37 views

Want to understand encoding with Opus for maximum audio quality in FFmpeg. Bitrate stuck at 96kbps?

I'm sort of new to FFmpeg, but I got much of the basics down. I am trying to understand how to encode audio with Opus. My knowledge is a bit weak when it comes to audio, bitrates, sample rate and Hz. ...
2 votes
1 answer
36 views

How to repair damaged AAC file without re-encoding using FFmpeg or other tools?

I have a 256Kbps AAC file that has a corrupted segment lasting less ~1/20th of a second. I'm seeking to "repair" the damaged portion without re-encoding - or, at least via a minimally ...
0 votes
1 answer
45 views

FFmpeg trimming of Linux Screencast video does not work as described in another answer

I used the answer(s) from this questions, however my video is not trimmed. Using ffmpeg to cut up video How to reproduce reproduce: The Video I am talking about was recorded via the Ubuntu 22.04 ...
-1 votes
0 answers
14 views

Ffmpeg converting video from DVR [closed]

Tell me how to split and convert video recorded from a DVR that has recording from several cameras ch1, ch2, ch3 and split the video into several video files, from each camera into its own video file?
0 votes
0 answers
33 views

why the ffmpeg cuda decoder much slower than the cpu decoder?

# cpu ffmpeg -i test.ts -f null /dev/null -benchmark # gpu ffmpeg -hwaccel cuvid -hwaccel_output_format cuda -c:v h264_cuvid -i test.ts -f null /dev/null -benchmark ffmpeg 4.4.2 the CPU is 1.5x ...
10 votes
1 answer
4k views

An unrelated program (Clash for Windows) links to FFmpeg libraries. Can it be spyware?

Update: today I found some decisive evidence on its misbehaviour. Sandbox analysis from VirusTotal on its installer reports video capturing capability using webcam. See the link to its analysis here. ...
1 vote
2 answers
8k views

Buffer Underfollow and ignoring buffer message of ffmpeg

I just wanted change the volume of mpeg file so try just like this. (The mpeg file is 20Mbps NTSC-HD file) ffmpeg -i <inputfile.mpg> -vcodec copy -filter:a "volume=+3dB" <output.mpg> ...
0 votes
0 answers
45 views

Bug in FFmpeg signature?

I tried using the signature filter on two completely different videos. For below command where video1 and video2 are completely different videos, the signature filter code still passes the coarse ...
0 votes
0 answers
24 views

Remove B-Frames from H.264 stream without re-encoding

I am getting an h.264 video stream from twitch.tv, and forwarding it to Discord to watch it on there with friends. Problem is, the twitch.tv stream is encoded using h.264 Main profile, while Discord ...
0 votes
1 answer
28 views

Can not use drawtext with ffmpeg

I’m using this code to install ffmpeg with GPU support on Google colab: !apt install nvidia-driver-525 !apt install nvidia-cuda-toolkit !mkdir ~/nvidia/ %cd ~/nvidia/ !git clone https://git.videolan....
-2 votes
1 answer
71 views

Video to geotagged images using powershell

I have an MP4 from a GoPro with a gpstrack included. Now I am trying to extract a geotagged image sequence from that video. For that I am currently using FFmpeg and exiftool; I'm open to better ...
2 votes
1 answer
2k views

Fade in a movie from white with FFmpeg

I have an AVI file and I want to create a fade effect, BUT I want the fade-in to begin with white, meaning I want the first frame to be white and the movie should slowly (and continuously) appear ...
0 votes
1 answer
17 views

Nmap does not show open RTP and RTCP ports

I am running ffmpeg as in: ffmpeg -t 00:05:00 -i rtsp://admin:[email protected]:554 -c:v copy -an output2.mp4 While ffmpeg is running, I run nmap as in: nmap -p1-65535 192.168.1.64 I see the ...
2 votes
1 answer
3k views

Extracting QuickTime mov_text subtitles with ffmpeg

I have a .mov file that has mov_text-formatted subtitle tracks that were created using the old (now deprecated) QuickTime 7 Pro's "Text Track" feature. This is what ffmpeg -i myfile.mov ...
0 votes
0 answers
25 views

How to extract subtitle timestamps using ffprobe (not working as expected)?

I am trying to extract subtitle timestamps from a M2TS file using ffprobe. This does not work as expected. The M2TS file is known to contain 1001 subtitles in track 4, but I am getting about 4000 ...
2 votes
1 answer
4k views

My ffmpeg stops streaming after a few seconds

I am using ffmpeg. I type this in a DOS Prompt: ffmpeg.exe -i rtsp://admin:[email protected]:554/video_1 -an -f image2pipe -vf fps=fps=6 -qscale 0 - It works but then just stops. So, I amended this ...
0 votes
0 answers
5 views

How do I stream audio from a respeaker 2-mic hat in a raspberry pi with FFmpeg?

I'm trying to follow this to stream audio from a mic in my raspberry pi. ignacio@pi-satellite-bigbedroom:~ $ ffmpeg -re -f pulse -ac 1 -i plughw:CARD=seeed2micvoicec,DEV=0 -f rtsp -rtsp_transport tcp ...
0 votes
0 answers
8 views

How exactly does this Jaccard distance logic (get_jaccarddist) in FFmpeg work? [migrated]

I see this C code in FFmpeg source signature_lookup file for Jaccard distance in method get_jaccarddist. If you see in the code below that is calculating for 5 BagOfWords. Now for two BagOfWords with ...
1 vote
1 answer
57 views

Error submitting a packet to the muxer: Cannot allocate memory

I'm attempting to trim and concatenate several video files using ffmpeg. These videos have already been transcoded with H.264 at a resolution of 720p. However, when executing the command, I encounter ...
11 votes
4 answers
24k views

How to check the version of codecs in ffmpeg?

So, I know about the obvious ffmpeg -version but it doesn't give info such as which version of libx265 is included in my current ffmpeg build. Is there an easy way to check it, apart from converting ...
3 votes
1 answer
4k views

Cut off from beginning to key frame using FFMPEG

How to cut away a piece at the start of video from beginning to the next key frame? I know the -ss option ffmpeg -y -noaccurate_seek -ss 00:00:30 -i "%%~ni.mp4" -avoid_negative_ts make_zero -...
0 votes
2 answers
37 views

Adaptive streaming to rtsp relay

I have a camera at /dev/video4 under linux, and I want to stream this to a mediamtx server. I am able to do that locally using ffmeg with the following command: ffmpeg -re -i /dev/video4 -f rtsp -...
0 votes
0 answers
564 views

FFmpeg Dual Fisheye to Equirectangular Conversion - Dark Shadow

Why when I use FFmpeg conversion of 360 photos I always have a dark shadow on them along the stitch edges. I tried the Remap command method described by Paul Bourke which is supplied online and used ...
1 vote
2 answers
4k views

Can I mux H.265 into FLV by force?

We want to try H.265 encoded video stream, but the video cloud server vendor we are using only provides RTMP+FLV uploading port. I have made some search works, and it seems FLV do not officially ...
0 votes
1 answer
4k views

Stream VLC playlist through RTMP live streaming

I am just tried to stream my playlist MP4 file to my live stream. I am using play my playlist via VLC and also stream via VLC. I am using the following code : vlc --playlist-autostart --loop --...
1 vote
0 answers
33 views

How can multiple, non-regular segments be extracted from a video using ffmpeg on Windows?

I'm trying to extract some segments from a video (and optionally combine them) using ffmpeg... but I'm not getting very far. Compared to the various examples I've found here, in the ffmpeg docs and ...
1 vote
0 answers
78 views

How can I transcode a Dolby Vision video?

I would like to use FFmpeg to take a Dolby Vision video, and output Dolby Vision at the end. I can see that x265 has some flags to pass, so I have made some attempts using that. An example is: ffmpeg -...
0 votes
1 answer
27 views

How to use ffmpeg speedup video specific time range in one line ffmpeg cli

I try following splited cli, they work well ffmpeg -i "$input_file" -filter_complex "[0:v]trim=start=0:end=10,setpts=PTS/10[v1];[0:a]atrim=start=0:end=10,asetpts=PTS/10[a1]" -map &...
0 votes
1 answer
74 views

How can I detect which audio channels in a video file are silent using FFMPEG?

I need to be able to scan video files and report which audio tracks/channels are silent without knowing anything about the file's audio mapping ahead of time. I have tried this ffmpeg (v4.1) command ...
0 votes
1 answer
32 views

Change subtitle font size with ffmpeg

I’m able to change the FontName when hardcoding subtitles with ffmpeg: ffmpeg -y -i temp.mp4 -vf subtitles=subtitles.srt:force_style='FontName=Roboto-Condensed-Bold' output.mp4 but unable to change ...
1 vote
1 answer
11k views

How to install NVIDIA VIDEO CODEC SDK?

I need it for use with FFmpeg to accelerate encoding. I've downloaded nvidia_video_sdk_6.0.1.zip from their website here but there is absolutely no information whatsoever about how to install it on ...
0 votes
1 answer
5k views

Merge MKV video and MKA audio tracks while keeping subtitles

I have this situation: file1.mkv (video with two 5.1 tracks and several subtitles) file1.mka (two stereo audio tracks) I want to merge the files to a single output that has: 4 audio tracks (the 5....
1 vote
1 answer
631 views

Why is ffmpeg so slow to create a video compared to CapCut, for example?

I'm just starting to use ffmpeg to create some videos that consist of: 1 mp4 file, then it overlays a png and adds the audio from a wav file. Nothing complex. Using ffmpeg for a 2min30s video it took ...
0 votes
1 answer
24 views

Can’t concatenate videos with ffmpeg

I’m trying to concatenate a video generated with this command: ffmpeg -y -loop 1 -i screenshot.png -filter_complex "[0:v]scale=1920x1080,subtitles=subs.srt" -c:v libx264 -c:a aac -shortest -...
1 vote
0 answers
45 views

Raspberry Pi with Bullseye: how to stream from camera to Youtube Live, and simultaneously save the stream to video files locally

I have raspberry pi 3b+ with Arducam camera and Debian Bullseye, and I would like to achieve the following: get video from libcamera-vid, 800x600, 15 fps get audio from default audio source stream ...
1 vote
1 answer
35 views

FFMpeg "vp9_cuvid" doesn't save HDR10 from VP9 4k input video in output HEVC video

I try to encode this 4k VP9 HDR10 vídeo: https://www.youtube.com/watch?v=kgppJX0G--E using this command line: ffmpeg \ -vsync 0 \ -hwaccel cuda \ -hwaccel_output_format cuda \ -c:v vp9_cuvid \ ...
3 votes
2 answers
4k views

ffmpeg crossfading multiple images

I am trying to cross-fade multiple images. I found some helpful piece of code in this superuser thread. So far I am stuck at this point: ffmpeg -loop 1 -i img0.jpg -loop 1 -i img1.jpg -i img2.jpg -f ...
0 votes
2 answers
4k views

FFMPEG to encode raw video (in AVI) into h.264 in mp4

I am using a karaoke authoring program (karafun) that lets me select the resolution and FPS but it outputs the video as raw and the audio as IMA ADPCM and places it in an AVI container. PS C:\bin> ....
1 vote
2 answers
56 views

Encode images into a video as they become available with FFMPEG?

I have an application which takes roughly 25 seconds to process each frame of a video, and then it saves each processed frame to a dedicated directory which contains nothing but frames, and each frame ...
1 vote
0 answers
22 views

Yet another ffmpeg concat audio sync issue

I've read through dozens of posts, tried many suggestions, nothing seems to work for me. The funny part is that the video is fine in some players (e.g. Quicktime) but not the others (e.g. Chrome). ...
1 vote
1 answer
8k views

FFmpeg: Error while opening decoder for input stream #0:0 : Invalid argument

Hi I'm trying to transcode a hevc stream to h264 using ffmpeg $ ffmpeg -c:v hevc_v4l2m2m -i video.mkv -c:v h264_v4l2m2m -c:a aac out.mp4 I want to ffmpeg to explicitly decode the input hevc video ...
0 votes
0 answers
48 views

Is it possible to use the signalstats YAVG filter in FFMPEG to control the gamma correction in a video?

I don't know if this is even possible, but something tells me it is… You see, I want to dynamically control the gamma correction in FFMPEG/FFPLAY depending on how bright/dark the frame being ...
0 votes
1 answer
31 views

ffmpeg How to keep only some metadata tags for mp3

I want to remove all metadata tags form an mp3 but keep "album" and the mp3 "cover image" how would I proceed in that case? I would expect something like this but it doesn't work: ...
0 votes
0 answers
12 views

Streaming Dynamically Created .ts Files to RTMP Without Concatenation Corruption using ffmpeg

I'm working on a project where .ts video files are generated in real-time, and I need to stream these to an RTMP server without pre-concatenating them. Initially, I attempted using a named pipe and ...
0 votes
1 answer
4k views

how to map and mute channels in stereo stream? [ffmpeg]

from ffmpeg man page, I should be able to use -map_channel to split/mute channels however, unless the stream contain 2 channels literately, the map does not work. 01.mp3: Stream #0:0: Audio: mp3, ...

1
2 3 4 5
141