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
1 answer
6 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
0 votes
0 answers
12 views

FFMPEG stream to YouTube Live

I have a 1280x720p RTSP link i want to strem to YouTube live. I am using the following bash file on a Raspberry Pi: while :; do ffmpeg -rtsp_transport tcp -i rtsps://192.168.1.102:7441/XXXXXXXXXX?...
DWW's user avatar
  • 1
0 votes
0 answers
22 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
0 votes
1 answer
24 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
  • 113
-1 votes
0 answers
33 views

FFmpeg parameters for best quality JPGs

In FFmpeg, if I use -vf format=rgb24, will I always get the correct colors for any image format, including JPG? What should I set -qscale:v (-q:v) to so I can get the best quality, 2 or 1? Will adding ...
user1897354's user avatar
0 votes
1 answer
23 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
  • 113
1 vote
0 answers
26 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
53 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
21 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
25 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
9 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
28 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
1 vote
0 answers
25 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
  • 11
-1 votes
0 answers
9 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
68 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
78 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
0 votes
0 answers
28 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
  • 1
0 votes
2 answers
45 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
17 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
0 votes
0 answers
28 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
7 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
0 votes
0 answers
22 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
0 votes
1 answer
30 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
39 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
68 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
40 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,678
0 votes
1 answer
23 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
23 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
49 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
37 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
22 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
28 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
0 votes
2 answers
57 views

ffmpeg extra lines between lines in drawtext textfile

I'm getting extra lines when displaying a text file with drawtext. The original text.txt file looks like this: But when I use with ffplay or ffmpeg using something like this: ffplay -f lavfi "...
Ricardo Bohner's user avatar
2 votes
1 answer
47 views

FFMPEG - Adjust DrawText Based on the Length of the Video

I am creating a video with a DrawText, that vertically scrolls from down to up. The text.txt file contains several lines of text. Is it possible to adjust the scrolling of the text based on the length ...
DigitalNomad's user avatar
  • 1,678
-1 votes
1 answer
256 views

FFmpeg Post Solved

EDIT 2: Post solved, thank you. EDIT: I tried the following command but I cannot do it. ffmpeg -i input.mp4 -filter_complex "loop=loop=3:size=75:start=25" -c:a copy -t 30 output.mp4 Is ...
Scenario's user avatar
0 votes
0 answers
415 views

FFMpeg Concat error: [mxf @xxx] index entry xxx+ TemporalOffset 1 = xxx, which is out of bounds

Use FFmpeg to concatenate broadcast files about 50 times a day. Files are transcoded to XDCAMHD prior to being concatenated. This error occurs on 15% of all concats even if there is only 1 source file....
Rens's user avatar
  • 91
-1 votes
1 answer
28 views

Creating 8K HDR Stillframe AV1 videos?

I would like to create 8k/4k (DCI/UHD) videos out of mp3 audio tracks. The whole video would be a single image, but I'd like the image to be UltraHDR and the end output video to have HDR metadata. I ...
MyPreciousss's user avatar
1 vote
1 answer
55 views

FFMPEG - How to Merge Three Files - Only Middle One Has Audio

I have three videos that I want to merge into single one. Intro video (mp4) - 3 seconds - No Audio Main video (mp4) - 1 minute - With Audio End video (mp4) - 3 seconds - No Audio When I use ffmpeg, ...
DigitalNomad's user avatar
  • 1,678
0 votes
0 answers
37 views

Adjusting volume levels with ffmpeg afade

I am having some trouble with the following ffmpeg command string: ffmpeg -i 20s.wav -af "afade=t=out:st=2:d=1:silence=0.07, afade=t=in:st=5:d=1" out.wav What I expect from this: At 2 ...
Albert Elmore's user avatar
1 vote
0 answers
50 views

concatenating multiple files is giving Non-monotonic DTS in output stream error

I am trying to concatenate multiple video files with ffmpeg and python with the following code :- def story(path): videos = [f for f in os.listdir(path) if f.endswith(".mp4")] print(videos) ...
nish's user avatar
  • 39
-1 votes
0 answers
52 views

unable to concatenate videos using ffmpeg and python

i am trying to concatenate videos using FFmpeg and python with the below code `def story(path): videos = [f for f in os.listdir(path) if f.endswith(".mp4")] print(videos) command = [ &...
nish's user avatar
  • 39
2 votes
2 answers
139 views

convert 30sec 240 fps video to 2min 60fps video using ffmpeg

I have a 30-second 240fps video from my GoPro Hero10. Now I want to create a "slow-motion" out of it, which should be 1/4 speed. So the output would be 2 mins @ 60fps. (Sound should be ...
Jafix's user avatar
  • 23
0 votes
1 answer
53 views

FFMpeg : Overlay an image or gif on top of a video for X seconds while the video remains paused

My requirement is as follows: Input video is an MP4 Overlay can be either gif or png. Overlay should appear over the the input video at a timestamp. It should last for 5 seconds. If it's a gif, it ...
Aneesh's user avatar
  • 103
-2 votes
1 answer
58 views

Video to geotagged images using powershell

I have a .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 ...
e-shirt's user avatar
  • 105
1 vote
1 answer
66 views

How to detect and reduce a WAV file’s sample rate to its real sample rate?

I'm not sure if my question makes sense, but here it is the problem I have. I have a bunch of wave (WAV) files that I believe were converted from MP3 or some other format that I have no information ...
user17952421's user avatar
1 vote
0 answers
22 views

Determine format of uncompressed ZIP file with ffprobe

I am working on a project where I need to handle ZIP archives that contain media files. Specifically, I have two files, video1.hevc and video2.mp4. For testing purposes, I created two ZIP archives ...
Gman's user avatar
  • 23
0 votes
1 answer
52 views

How can I stream a secure RTSP camera stream on Windows? [closed]

I have a windows application that consumes streams from IP-Cameras. Currently I am using WebEye, an open-source component that uses ffmpeg under the hood. I now want to connect to an AXIS IP-Camera ...
Juergen's user avatar
  • 31
2 votes
1 answer
49 views

FFmpeg sample_fmt not actually changing bit _depth + missing supported sample formats

Disclaimer: I am a beginner about all of this, this question might be stupid I am attempting to change a mp3 files bit depth from 32 to 16 and also changing the bitrate This is my command: ffmpeg -i ...
7KMANN's user avatar
  • 23
6 votes
0 answers
112 views

How to correct Hindi text rendering when using FFmpeg?

I have a FFmpeg script to add some Hindi text to the MP4 video file. The FFmpeg command looks like this ffmpeg -i template_video.mp4 -filter_complex "drawtext=text='नमस्कार जी मैं हूँ':fontfile=...
Varun Raj's user avatar
  • 161
0 votes
1 answer
47 views

How to speedup video with FFmpeg based on timestamps from CSV?

There are already questions with regard to speeding up a video with FFmpeg, like this one. My question is: Is there also a way to specify multiple sections which shall be speedup via an external CSV. ...
tim's user avatar
  • 350

1
2 3 4 5
141