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

How to capture two audio sources on separate tracks with FFmpeg?

I'm currently using the following FFmpeg command to record my screen and two audio sources: "C:\FFmpeg\ffmpeg" -f gdigrab -i desktop -f dshow -i audio="virtual-audio-capturer" -f ...
GTS Joe's user avatar
  • 251
0 votes
0 answers
248 views

ffmpeg -vsync deprecated, use -fps_mode

I used to use -vsync -1 to Auto Sync a Audio and Video input stream using the -copy switch as they would get out of sync at times and sometimes not so can't specify any seconds for a delay setting but ...
matrixebiz's user avatar
0 votes
0 answers
25 views

ASC CDL (SOP, SAT) with ffmpeg?

I searched the web with no success: Is it possible to apply ASC CDL (see https://en.wikipedia.org/wiki/ASC_CDL) values as a color correction with ffmpeg? Thanks, Andy
Andy B. II's user avatar
-1 votes
0 answers
78 views

How to convert Mov video to h265 video using ffmpeg?

I have a video like this: Stream #0:0[0x1](eng): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(bt2020nc/bt2020/arib-std-b67, progressive), 3840x2160 , 1784534 kb/s, SAR 1:1 DAR 16:9, 60 fps, 60 ...
Billy Nguyen's user avatar
1 vote
1 answer
70 views

How to rotate a video by 180 degrees using ffmpeg?

I want to cut a short part of a video and rotate it by 180 degrees. I tried ffmpeg -ss 70 -i GH030258.MP4 -t 10 -vf "transpose=2,transpose=2" -c:a copy passing_opponent_alarm_084305.mp4 ...
Alex's user avatar
  • 626
0 votes
0 answers
9 views

GRAY16 stream with over network ffmpeg [migrated]

Im working in a school project where we need to use depth cameras. The camera produces color and depth (in other words 16bit grayscale image). We decided to use ffmpeg, as later on compression could ...
Norbert P.'s user avatar
0 votes
0 answers
21 views

making a slide show with one audio file per file, using ffmpeg

I have a series of images and sound files with matching filenames: 1.png, 1.wav 2.png, 2.wav ... 20.png, 20.wav etc... I would like to make a video where each image appears for the duration of its ...
Thomas's user avatar
  • 174
1 vote
0 answers
54 views

It is really possible to record stereo from WASAPI like Audacity does on ffmpeg or maybe can be implemented?

I'm using a windows 10 pc where isn't available the Stereo Mix or What you Hear option... it is not hidden or disable, is completely non existent. Given I don't want to install some external filters ...
user3450548's user avatar
2 votes
1 answer
69 views

How to increase/decrease decibels of recorded audio tracks with FFmpeg?

I'm using the following command to record the desktop with FFmpeg, as well as two audio sources: "virtual-audio-capturer" "Microphone (Logitech USB Headset)" ffmpeg -f gdigrab -i ...
GTS Joe's user avatar
  • 251
1 vote
1 answer
48 views

Combining audio and multiple videos with FFMPEG

I am working on a ffmpeg script to combine two videos with one audio file. The first video file should start after about 6 seconds and the second after about 40 seconds, and there should be a padding ...
Lee P's user avatar
  • 13
0 votes
1 answer
30 views

How do I prevent FFmpeg from replacing all the audio stream names with SoundHandler?

I'm using FFmpeg to change a video container from mkv to mov with this code: ffmpeg -find_stream_info -probesize 84M -i input_file.mkv -map 0:v -map 0:a -map -0:s -codec copy output_file.mov -...
Franon's user avatar
  • 1
1 vote
0 answers
53 views

ffmpeg prepend still image to video

Disclaimer: I am NOT proficient in video editing at all; this is almost my first attempt so I could be missing something very basic. Please be lenient and redirect me to relevant tutorials, if needed. ...
ZioByte's user avatar
  • 541
1 vote
0 answers
66 views

FFmpeg loudnorm: what does dynamic mode mean?

I have numerous audios that i'd like to normalize by the same reference with FFmpeg loudnorm filter. But every time I do the 1st pass of normalization, normalization type reverts to "dynamic"...
Javita Funky's user avatar
0 votes
0 answers
35 views

ffmpeg: UVC Interlaced Video

I'm trying to combine an alternating fields interlaced video stream from an UVC video device. The device is an analog (CVBS) to digital converter that supports Interlaced video through usage of the ...
userAHD's user avatar
0 votes
0 answers
35 views

ffmpeg: use vidstabtransform to overlay it over blurred background

I am using ffmpeg to concatenate multiple video clips taken from the same object over multiple timeframes. To make sure the videos are properly aligned (and therefore show the object in rougly the ...
konewka's user avatar
  • 123
0 votes
0 answers
35 views

FFMPEG max filesize limits

Is there a file size max for processing video files with ffmpeg. I have software running ffmpeg via cron job. It processes files under 300MB but above that it doesn't seem to process the files.
Jason Hayes's user avatar
0 votes
1 answer
56 views

Arbitrary font type with ffmpeg

I set up a script that generates a simple video with one mp3 audio and one text on screen. I would like to add the option to specify a font type and use that for formatting of the text on the video. ...
lazarea's user avatar
  • 101
0 votes
0 answers
69 views

Convert MKV to HLS with all audio tracks and subtitles available

For the past few weeks, I've been trying to convert MKV and HLS files. Currently, I'm burning the first available subtitle track of the file in the video and keeping only the first audio track. What i ...
Tutifruti's user avatar
0 votes
0 answers
45 views

FFMPEG: Using RGBA filter for transparency taking too long

I'm using following command to concatenate multiple videos using FFMPEG, -ffmpeg -y -i 'video1.mp4' -i '/video2.mp4' -i '/video3.mp4' -i 'musico.mp3' -f lavfi -i anullsrc=r=44100:cl=stereo -i '/...
najam ulhassan's user avatar
1 vote
0 answers
53 views

How do I adjust the separation between left and right eye in a 3D anaglyph video using ffmpeg?

How do I adjust the separation between the left (green) and right (magenta) channels when converting 3D sbs to 3D anaglyph (green/magenta) video using ffmpeg? I've search "the net" but can't ...
Johnny Quest's user avatar
0 votes
0 answers
51 views

How to burn captions with quality similar to VLC using ffmpeg?

I am trying to burn a caption on a video using fluent-ffmpeg but, am getting blurry captions after burning. I have tried many combinations of settings but neither would produce good quality like VLC. ...
fady taher's user avatar
0 votes
0 answers
36 views

FFMPEG: transcode interlaced J2K

i've been tasked with developing a solution using ffmpeg that will transcode archival videos into FFV1. the videos are all JPEG2000, but some are uncompressed and others are compressed. as the ...
david furst's user avatar
0 votes
0 answers
42 views

How do you create an MPTS file on ffmpeg with two h264 inputs?

I need to contain two h.264 files (same video, different resolutions) within the same MPTS container, but I can't quite figure out how to use two inputs to create one output. I tried using ffmpeg -i (...
fffrdec's user avatar
0 votes
0 answers
21 views

Using ffmpeg and concat demuxer producing weird video navigation behaviour

When combining multiple videos segments, each encoded with H265 and Vorbis and containing the same number of streams and frame rate, I use: ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mkv ...
user112346's user avatar
1 vote
0 answers
35 views

Spliting video with ffmpeg producing wrong durations

I'm currently using a framework where I have to split a video (originally encoded with HEVC video and AAC audio) in multiple parts to process them separately. Then the final result is obtained by ...
user112346's user avatar
0 votes
0 answers
122 views

Ffmpeg: color related commands

I use hlae+ffmpeg for recording and for parameters of recording i set: -c:v ffv1 -pix_fmt gbrap16le -coder -2 -g 1 -threads 4 -context 1 -slices 30 -slicecrc 1 -level 3 -fps_mode passthrough -...
Skyfall's user avatar
0 votes
0 answers
43 views

Re-Calculate Average Framerate of MP4 Video Upon Decoding

For an example mp4 video, I am seeing differences between the header metadata values for at least some fields (e.g. nb_frames) and the actual values retrieved upon decoding the video (i.e. ...
awisecar's user avatar
0 votes
0 answers
27 views

Embed recording start timestamp and sync video to timestamp using ffmpeg

How (if possible) do I embed a timestamp of when a video started recording? I can -metadata creation_time="YYYY-mm-ddTHH:II:SS" but is there a better way to do that? I'd also like to be able ...
unixnerd777's user avatar
0 votes
1 answer
97 views

Send info from ffmpeg to text file & then parsing into a new file

I am trying to scan a directory of .mkv files and output the volume information to out.txt and then parse out.txt for volume_max and send it to log.txt using for %i in (*.mkv) do ffmpeg -i "%i&...
Preston's user avatar
0 votes
1 answer
46 views

Loading chapter data in VLC from external file for any video format

I have a number of video files (in various formats: mp4, webm, mkv, etc.) and I'd like to add chapter information to them (similar to how Youtube shows links into parts of videos). I'm not terribly ...
xxbbcc's user avatar
  • 354
0 votes
0 answers
38 views

Cross compiling ffmpeg: error while adding libopus: undefined reference to `__memcpy_chk'

I have set in the cmake file the following: set(STACK_PROTECTOR_SUPPORTED 0) set(FORTIFY_SOURCE_SUPPORTED 0) However ffmpeg configure fails at this point: (from config log) ... ... rnx/...
Rajib's user avatar
  • 3,076
0 votes
0 answers
19 views

How to create an uncover effect top to bottom w/ drawtext?

I seek to create an uncover effect top to bottom w/ drawtext. And the options to define the start time/delay and speed. Similar to the all_expr in blend filter, blend=all_expr='if(gte(Y-N*SH,0),A,B)' ...
MayK's user avatar
  • 1
0 votes
1 answer
51 views

FFMPEG+Icecast - playback stops after some time in <audio> element

I’ve set up a looping .mp3 stream using instructions here: Concatenate and icecast. Everything works great, it’s been running for months, however if I try to embed the stream in an audio element, the ...
Rubik's user avatar
  • 1
0 votes
1 answer
70 views

FFMPEG command created a file that I can't delete or rename. If I try to do either of those windows explorer stops responding

Using windows 11. I was trying to merge a png image and a wav file into a video for youtube using ffmpeg. The command I used was: ffmpeg -loop 1 -i image.png -i audio.wav -c:v libx264 -tune stillimage ...
user1854317's user avatar
0 votes
0 answers
51 views

ffplay works from command line but error with .sh script and systemd

(Originally posted as a generic question, then I found the ffplay forum) I'm trying to set up a daemon to play short sound effects as part of an interactive wheelchair ride. (Due for installation next ...
James Dean's user avatar
0 votes
0 answers
11 views

Convert mp4 to mono wav [duplicate]

How do I convert Mp4 to mono wav file? I would like it to not lose that much quality. I tried to convert it to wav but the audio is stero I need it to be MONO PCM
Darren Zou's user avatar
0 votes
0 answers
27 views

Query total size before extracting frames from movie

I'd like to extract all the frames as individual images from a 2 hour movie using ffmpeg the following way: ffmpeg -ss 05:00 -i <input> -t 05:00 filename%05d.png Is there a way to somehow get ...
Max Wayfield's user avatar
1 vote
1 answer
60 views

How to save ffmpeg segmets to disk immediately with sub-second intervals?

I'm trying to record video on a raspberry and have it save as much as possible (sub-second resolution) in case of a power cutoff. I use -f segment to save the encoded stream in 100ms segments with the ...
amfast's user avatar
  • 11
1 vote
1 answer
68 views

ffmpeg - Does it communicate over internet [closed]

We use the library ffmpeg in our project and based on a customer request we are trying to figure out If the library communicates over to Internet any time during the course of operations? It will be ...
Harshvir's user avatar
2 votes
0 answers
472 views

HDR to SDR conversion with ffmpeg

I have some 4K HDR video, which looks very dark (and redish) if directly played on a non-HDR device (in practice with VLC), which is a known issue. I'm trying to convert it to SDR using ffmpeg, and ...
PierU's user avatar
  • 1,589
0 votes
0 answers
56 views

What can I do to debug and avoid decoding artifacts with RTP in ffmpeg?

I do encoding and decoding of a VP9 RTP stream programmatically, and I am experiencing occasional colorful artifacts like these: In the ffmpeg log (both when using ffplay and my own code), this ...
oarfish's user avatar
  • 746
0 votes
0 answers
28 views

How to link custom output protocol with ffmpeg?

I have created a custom ffmpeg output protocol and was able to build ffmpeg to include the protocol. The issue is that I did not like having to get a specific build of ffmpeg to use my protocol. Is ...
rickyz's user avatar
  • 13
0 votes
0 answers
64 views

Comparing GPU accelerated encoding performance of FFMPEG v4 and v5

I've noticed a drop in encoding performance testing the recent FFmpeg 5.1 release with a simple full hardware transcode using h264_nvenc in comparison with FFmpeg 4.3/4.4. With FFmpeg 4.3 the ...
Marco Mayer's user avatar
0 votes
1 answer
100 views

Washed out colours when converting MOV to WEBM using FFMPEG

I'm trying to convert a simple animation from MOV to WEBM so it can be used as an OBS alert for my Twitch stream. However, when I convert using FFMPEG, the colour is slightly washed out. As you can ...
pyefacepoker's user avatar
1 vote
0 answers
54 views

FFMPEG with AVFoundation on MacOS 12.3.1 - USB capture device not recorded at full framerate

I have been trying to get my USB capture device working with FFMPEG 6.0 so that I can have a little more flexibility than OBS offers. I have been running in to some issues with the framerate at any ...
psvg200's user avatar
  • 11
0 votes
1 answer
48 views

Green pixelated issue when applying -vf flag to ffpmeg hls transcoding

I'm trying to create chunks of multiple bitrates to play them smoothly across various devices and bandwidth. But the ffmpeg command output is creating green pixelated video. If I remove the -vf flag ...
The Mask's user avatar
  • 101
2 votes
0 answers
77 views

FFMPEG: Cannot record audio when using android_camera on Android mobile device or emulator

I am attempting to livestream video and audio to my local network from a mobile Android device as a use case for the company I work for. After searching around, I was able to create a video stream ...
JackE99's user avatar
  • 21
1 vote
1 answer
72 views

Encoding multiple live channels

I have a code working that encodes a UDP live channel into an HLS stream using m3u8 container. My question is, is there a way to simplify doing multiple channels, and ensure each is the same quality ...
bv3469's user avatar
  • 11
0 votes
0 answers
30 views

Encoding MKV File Without Changing Header Information

I captured a video using a Kinect Azure SDK device. This captured video (.mkv container) has three tracks: Color, Depth and IR. I extracted the Color track using MKVToolNIX. I could playback this RGB ...
Ashutosh Singla's user avatar
1 vote
2 answers
144 views

How can I setup ffmpeg to continuously produce 1 second videos from piped jpgs?

I am using ffmpeg on Ubuntu 22.04 to create 1 second mp4 videos from piped jpgs. The only issue that I have is that ffmpeg stops executing after the first set of jpgs is piped in. I need ffmpeg to ...
rickyz's user avatar
  • 13