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

FFMPEG: Why MKV video converted to MP4 only plays on VLC Media Player?

I have a video in MKV format that I wanted to convert to MP4, so I used ffmpeg to convert it. The command I used was pretty simple: ffmpeg -i <path_and_name_of_file>.mkv <...
Alfrodo8's user avatar
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://...
Sulli's user avatar
  • 115
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 ...
Alex's user avatar
  • 1
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 ...
bigboss's user avatar
  • 11
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. ...
peppy's user avatar
  • 11
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 ...
U2Joshua's user avatar
-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?
O.starshina's user avatar
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 ...
Wang's user avatar
  • 833
0 votes
0 answers
29 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) ...
Sulli's user avatar
  • 115
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 ...
Super Duper User's user avatar
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 ...
stilloo's user avatar
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....
Sulli's user avatar
  • 115
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 ...
Sunny's user avatar
  • 369
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 ...
Binarus's user avatar
  • 1,775
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 ...
Ignacio's user avatar
  • 101
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 ...
Daraan's user avatar
  • 117
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 ...
stilloo's user avatar
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 ...
Zahra's user avatar
  • 11
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 -...
kuon's user avatar
  • 11
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 ...
Skeeve's user avatar
  • 51
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 &...
chikadance's user avatar
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 -...
SubJunk's user avatar
  • 11
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 ...
Sulli's user avatar
  • 115
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 -...
Sulli's user avatar
  • 115
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 ...
tputkonen's user avatar
  • 375
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 ...
kfank's user avatar
  • 1
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). ...
Demiurg's user avatar
  • 251
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 \ ...
membrillo's user avatar
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 ...
Dhairya Verma's user avatar
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: ...
Ricardo Bohner's user avatar
2 votes
0 answers
39 views

Encode video via GPU - slow speed

My PC: ryzen 5700x, 32 GB RAM 3200 MHz, RTX 4070Ti Super, SSD. I encode video from h264 to h265 using ffmpeg (nvenc) and GPU. ffmpeg -i "input.mov" -c:v hevc_nvenc -rc:v vbr -cq:v 34 -c:a ...
Georgiy's user avatar
  • 21
-1 votes
0 answers
13 views

Specifying min macos development target when building FFmpeg

I am struggling to set the development target for FFmpeg on MacOS. I am trying to aim for macOS 10.13. Usually this would be done through the -mmacosx-version-min flag. I have tried adding this to the ...
WalleyM's user avatar
0 votes
0 answers
71 views

Pausing the video for 15 seconds

I have a video which is 40 seconds long, I want to make it 55 seconds long, I wanted that the video's first frame along with it's audio freezes (frame freezes) for the first 15 seconds and after the ...
AAB's user avatar
  • 21
1 vote
1 answer
88 views

"-vf crop" doesn't work on FFMpeg hevc_nvenc

This command line downscales fine my 4k video: $ ffmpeg -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input_video.mkv -vf scale_cuda=1920:1080:interp_algo=bicubic -c:v hevc_nvenc -preset slow -...
membrillo's user avatar
1 vote
0 answers
37 views

Capturing raw video stream from second pc (HDMI Splitter & Capture Card)

I would like to create a test setup in which I transmit the raw stream from one PC via an HDMI splitter and display it on a second PC where I receive the HDMI signal with a capture card.. Due to the ...
valle's user avatar
  • 11
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 ...
HackerDaGreat57's user avatar
0 votes
0 answers
20 views

REPLAYGAIN value being ignored on some MP3's - FFmpeg Transcoder cs - process Error Data Received:454

I am having an issue per below. I use Windows, and just installed ffmpeg-2024-03-07-git-97beb63a66-full_build, which did not correct it. I have added Track ReplayGain to my music library using Foobar. ...
Mike Gravitt's user avatar
1 vote
0 answers
36 views

"-pix_fmt p010le" and "-pix_fmt yuv420p10le" doesn't work on FFMpeg hevc_nvenc

This command line works fine: $ ffmpeg -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input_video.mkv -vf scale_cuda=720:404 -c:v hevc_nvenc -preset p7 -rc vbr -rc-lookahead 20 -b:v 2000k -...
membrillo's user avatar
0 votes
0 answers
9 views

Use font attachment from an mkv container when burning hard subtitles

I want to use the font that is in an mkv as an attachment when I burn in subtitles. I found a way to do this using -dump_attachment first. ffmpeg -dump_attachment:t "" -i video.mkv ffmpeg -i ...
Ilias Karim's user avatar
1 vote
0 answers
26 views

Generating ffmpeg command to mux in subtitles matching the style of VLC

I am trying to mux in subtitles with ffmpeg, but I am having trouble getting the desired style and output with a reference point being VLC's standard format of showing subtitles matching the look of ...
bigboss's user avatar
  • 11
0 votes
1 answer
38 views

Converting audio tracks only in mkv files to AC3

I have an LG CX TV. The internal video player does not recognise DTS audio format. I'd like to be able to play MKV files (which might have DTS audio tracks) from an external USB device. I was looking ...
Alastair's user avatar
0 votes
0 answers
58 views

Extract Video Frames as HEIC/HEIF images

How do I extract frames from videos as heif/heic images? I want to use ffmpeg but they don't support it. What other tools can do the trick?
user1897354's user avatar
0 votes
0 answers
81 views

How do I create visually lossless images from videos using FFmpeg?

How do I create visually lossless images from videos where the differences are so undetectable that you won't notice even if you zoom in, all by using FFmpeg? I have the following types of videos: H....
user1897354's user avatar
0 votes
1 answer
43 views

FFMPEG - Add a green video overlay at a fixed Interval in a video. How to define the interval?

I am trying to add a green screen video overlay on the top of my main video. The green video overlay is like a thumbs up that shows up every few minutes in the video. I have a ffmpeg command that adds ...
DigitalNomad's user avatar
  • 1,688
0 votes
1 answer
30 views

Apply the file's audio effects

I'm new to ffmpeg, as the title says, I want to apply effects to audio files, like this app [https://play.google.com/store/apps/details?id=com.baviux .voicechanger] How can I determine the value of ...
Văn Mạnh Trịnh's user avatar
-2 votes
0 answers
29 views

How to jump frames when decode in rtsp stream?

rtsp stream , fps=25. When I get AVPacket from av_read_frame ,not avcodec_send_packet everyone packet, because I want to decode frame once every 200ms. Aim to reduced decoding pressure because I need ...
xianghui liu's user avatar
0 votes
0 answers
53 views

How to draw a moving line as slider for the image comparison video generator script in Python with FFmpeg

I have the below script to generate a video slider with FFmpeg You can see example here (first 10 seconds) : https://youtu.be/F_wf1uHqZRA I am trying to replicate effect of imgsli like a person is ...
Furkan Gözükara's user avatar
0 votes
0 answers
45 views

Weird ffmpeg behavior - "-shortest" flag ends the audio too early

I'm trying to generate some video files using ffmpeg, but when I use the -shortest flag, I get a file whose audio stream is several seconds shorter than its video stream. I tried several ...
asaelr's user avatar
  • 101
0 votes
0 answers
23 views

I need help installing FFMPEG on my server

I'm trying to get FFMPEG installed on my VPS. Plesk Obsidian Version 18.0.59 Ubuntu 22.04.4 LTS Basically, I need FFMPEG installed, as the custom MP3 player I use for my website can generate audio ...
alkemy007's user avatar
0 votes
0 answers
32 views

Find out the audio channel that has LTC

I need to be able to check a video file for any audio channels that have LTC (Linear Timecode) I tried using ffmpeg and ffprobe but I am only getting general info about the audio stream (like number ...
Catalin Morosan's user avatar

1
2 3 4 5
141