Skip to main content

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

why getting error using ffmpeg Could find no file with path 'frame_%4.bmp' and index in the range 0-4?

the command line D:\Output1>ffmpeg -f image2 -framerate 1 -i frame_%4.bmp -loop 0 d:\video.gif [image2 @ 000001f981d10380] Could find no file with path 'frame_%4.bmp' and index in the range 0-4 [in#...
Daniel Lip's user avatar
0 votes
0 answers
16 views

ffmpeg high CPU usage ubuntu server

Hello everyone I need help with my ffmpeg, I have compiled an ffmpeg to be able to restream mpd drm streams, everything works but after about 1-2 hours the cpu starts to increase inhtop and my load ...
Dejan Milanovic's user avatar
0 votes
2 answers
29 views

Merging multiple audios to a video

I'm a total beginner with FFmpeg and I wanted to know if there's any way to merge multiple audio files and a video. I guess the final file would be MKV. I was able to do it with only one audio file ...
CG372's user avatar
  • 3
0 votes
0 answers
28 views

Using libx265 and dash, there is sound, no video

ffmpeg -i /v.webm -preset slow -map_metadata -1 -profile:v main -c:v libx265 -pix_fmt yuv420p \ -keyint_min 250 -g 250 -sc_threshold 0 \ -map 0:a -c:a aac -b:a 128k -ac 2 -ar 48000 \ ...
Dmitrii's user avatar
1 vote
1 answer
12 views

ffmpeg overlay 2D video onto 360 video

I have a 360 video and want to add a short intro video that is in 2D. I'm trying to keep the 2D video as 2D, at least for the initial rotation & fov, however I can't figure out how. If I just ...
Nobody's user avatar
  • 21
0 votes
0 answers
30 views

ffmpeg downscale video using nearest neighbour

I'm a huge noob but am a content creator who needs some help. I need an mp4 video downscaled using the nearest neighbour algorithm but I have no idea at all how to use ffmpeg. I have the latest ...
Daniel Bishop's user avatar
0 votes
1 answer
43 views

Trying to understand video conversion, difference

Downloaded YouTube video in 240 quality, as well as 1080. I took 1080 as the input file, executed this command: ffmpeg -i /1080p.mp4 -map_metadata -1 -pix_fmt yuv420p -c:a libfdk_aac -c:v libx264 -vf ...
Dmitrii's user avatar
0 votes
1 answer
35 views

FFMPEG mp3 Encryption

I have been trying to make encrypted mp3 audio like this: ffmpeg -i input.mp3 -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 4fac3c5fef15380e158040eef78d5d67 -encryption_kid ...
Alex's user avatar
  • 1
1 vote
0 answers
14 views

about ffmpeg option atomic_writing used in segment output

I made a ffmpeg command like this: ffmpeg -y -i ./test.mp4 -ar 16000 -ac 1 -acodec pcm_s16le -f segment -segment_format s16le -segment_time 5 -vn -copyts -frame_pts true -atomic_writing true ./files/%...
张明义's user avatar
0 votes
1 answer
70 views

The quality and size of the frame are the same, but the weight is different

ffmpeg -hide_banner -y -i /144.mp4 \ -r 25 -c:v libx264 -pix_fmt yuv420p -preset veryfast -profile:v main \ -keyint_min 250 -g 250 -sc_threshold 0 \ -c:a aac -b:a 128k -ac 2 -ar ...
Dmitrii's user avatar
0 votes
1 answer
48 views

FFMPEG only streaming one frame when capturing an application

I am streaming video captured from Device A to Device B. When I stream the entire captured desktop using ffmpeg -f gdigrab -framerate 25 -i desktop -vcodec mpeg4 -q 12 -f mpegts "udp://[...
this_is_a_display_name's user avatar
0 votes
0 answers
26 views

Correct way of 2 pass encoding without FPS reset

I'm trying to do a 2 pass encoding with ffmpeg but I'm having problems with the frame rate reseting to default 25 by using fps_mode cfr (constant frame rate), if I use something else I also get ...
Ricardo Bohner's user avatar
0 votes
1 answer
55 views

ffmpeg - concatenating identical audio-only files results in "non-montonic DTS" warning

I am trying to join some video files and have an issue. I have boiled down the problem to the following minimal working example. I create a 2-second mp4 with a silent audio stream: $ ffmpeg -f lavfi -...
Trevor's user avatar
  • 309
0 votes
1 answer
55 views

How do I save a ffmpeg stream from another device?

I am streaming a desktop capture using ffmpeg -f gdigrab -framerate 30 -i desktop -vcodec mpeg4 -q 12 -f mpegts udp://IP:PORT . I can use ffplay -f mpegts udp://IP:PORT to play the streamed video on ...
this_is_a_display_name's user avatar
-2 votes
1 answer
60 views

FFmpeg MP4 command not working as expected [closed]

I’ve tried to use FFmpeg to prepare a video for YouTube, based on the YouTube recommended upload encoding settings but can’t make it work. Does anyone know the exact encoding FFmpeg command based on ...
Michael's user avatar
  • 21
1 vote
1 answer
66 views

FFmpeg: ffv1 -context parameter

What forces ffv1 to encode in intra-frame mode -context 0 or -g 1 or both? It says here (in Compression details) that to force intra-frame encoding I should use -context 0 (as far as I understand). ...
Skyfall's user avatar
  • 13
0 votes
0 answers
19 views

ffmpeg - How do I convert audio while preserving its bitrate?

I want to convert audio downloaded from YouTube (in OPUS codec) to OGG, but when I do this using the basic ffmpeg -i -vn <file> command, there is a slight decrease in bitrate (as an example, ...
RedBees's user avatar
0 votes
0 answers
20 views

ffmpeg causing some sort of a conflict with a MPV script

I have tried to reinstall ffmpeg but it doesn't solve the problem. The script that I am running is cut-video.lua. [cut_video] built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) [cut_video] configuration: ...
adam's user avatar
  • 1
1 vote
1 answer
72 views

Python/FFMPEG - Converting a CbBI (Apple) PNG to a regular PNG

I've got a PNG file from an IPA, and trying to open it in Windows Photos inverses all the colors, so I thought that it's an Apple specific format and I found out I am not wrong: $ file AppIcon29x29....
HGStyle's user avatar
  • 63
1 vote
0 answers
16 views

no audio when encoding 5.1 ch audio to opus

when i was encoding a dts 5.1 ch audio that had the layout of C L R Ls Rs LFE , file using ffmpeg via libopus , i found that the resulting file did not play in vlc, due to the channel layout being ...
yoong jin chow's user avatar
0 votes
1 answer
27 views

Reencoded video with ffmpeg is not matching input sar,dar provided

I am trying to reencode a video (temp.mp4) to a certain width/height, with particular sar/dar/fps to match it with another mp4 file which I need to join with temp.mp4 file. I want to achieve these ...
Smith Kumar's user avatar
0 votes
0 answers
39 views

How to use Picture event in ASS format

There are different articles mentioning that ASS provides a Picture event, mentioned here and here I have been trying to apply it like below but, without success and I couldn't find examples on the ...
fady taher's user avatar
-2 votes
1 answer
38 views

How to extract all frames of a video using GTX 550 ti?

My GPU is Nvidia GTX 550 ti and I should extract all frames of video files for my job. my GPU not support latest version of CUDA. I tried multiple softwares to use my GPU for frame extracting but all ...
Pubg Mobile's user avatar
1 vote
1 answer
87 views

Is there a fast way to get the timestamp of a keyframe near an offset?

I've found many solutions to find the location of keyframes in videos using ffprobe, but all of them are slow, like roughly 0.1x real time on an 8k video. While this is fine for finding a keyframe ...
user avatar
0 votes
0 answers
28 views

Error while reencoding and combining 3 mp4 files with ffmpeg

I am using the ffmpeg command given in top answer on this below page to join 3 mp4 videos https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg It says to use that ...
Smith Kumar's user avatar
2 votes
1 answer
42 views

The proper way to limit framerate when recording screen on macOS

macOS 14.5, FFmpeg 7.0.1. To record the screen, if I use the code from Wiki, that is, ffmpeg -f avfoundation -i 1 output.mp4 the frame rate seems to be so high that when I press q to stop recording, ...
jsx97's user avatar
  • 71
1 vote
1 answer
28 views

How can I concatenate videos that don't always have audio using ffmpeg?

I have 5 video files (although, it could be 100s), some with audio, some without. They are more-or-less a consistent size but I'll force that by using something like -vf "320:240" on the ...
Skeeve's user avatar
  • 61
0 votes
0 answers
12 views

is real-time video compression possible on a Raspberry Pi to wirelessly transmit multiple live feeds? [migrated]

the idea I want to achieve is this: I'm planning to make an eye-tracker device, which is in 2 parts: the first part is what the subject/user wears, includes an eyeglass-shaped frame, 2 Infrared ...
Valo_iO's user avatar
0 votes
1 answer
39 views

Trying to merge ffmpeg commands into one

I initially tried doing this as one command, but after struggling with it I wrote a quick script to create a bunch of intermediate files to get the job done, but that isn't quite working either. The ...
user avatar
0 votes
0 answers
48 views

Video logo clock ffmpeg

With the codes I created myself, the time setting does not appear. Only the screw logo and the movie name appears. I could not make this time setting. Are there any friends who can help me? ffmpeg -i ...
Yes Tech's user avatar
0 votes
0 answers
55 views

transition circleclose is not working in FFMPEG

wanted to add circleclose transition to 2 videos while adding. transition effect is not coming. What is the issue in below FFMPEG command? ffmpeg -i D:/development/copy/...
D.B.'s user avatar
  • 121
0 votes
1 answer
19 views

FFMPEG segment_times arg makes command too long

Context: I have long video files (600+ hours) that I want to split on resolution change & keep the high-res parts. I have extracted all the timestamps to a file with ffprobe so now all that's left ...
Hato1's user avatar
  • 13
0 votes
1 answer
19 views

Concatenating audio with image for video in ffmpeg causes infinite video

I'm attempting to concatenate 2 audio files, with a 5 second silence between them. This will also have a still image for the video. I'm following the example of the same thing here How can I add ...
Kirk's user avatar
  • 103
0 votes
0 answers
32 views

To make 'trim' and 'atrim' work synchronously

The following command trims a video using the trim video filter: ffmpeg -y -i input.mp4 -vf "trim='00\:00\:05':'00\:00\:10',setpts=PTS-STARTPTS" output.mp4 But if the video also contains ...
jsx97's user avatar
  • 71
0 votes
0 answers
20 views

Adding custom tags to AVI video file

I use software that accepts another AVI file, but not mine. I converted my file to have similar properties, and currently, there is not much difference between the files, I think the only thing I have ...
Yarden's user avatar
  • 1
0 votes
0 answers
62 views

Green screen on RTSP stream from USB camera using mediamtx (ffmpeg)

I need to cast a stream from a USB camera via RTSP as stable as possible (at any moment i need to be able to get a static picture on a remote host, reflecting the real state of affairs in front of the ...
Pavel's user avatar
  • 1
0 votes
0 answers
21 views

How to change output to timestamps for ffmpeg freezedtect?

ffmpeg -i demo.mp4 -vf "freezedetect=n=-60dB:d=5" -map 0:v:0 -f null - Will output: lavfi.freezedetect.freeze_start: 324.266667 lavfi.freezedetect.freeze_duration: 5.066667 lavfi....
Farn3's user avatar
  • 1
1 vote
0 answers
33 views

Best settings to compress a 4K 60fps ProRes 422HQ video to ~50GB HEVC using FFmpeg? [closed]

I recently upscaled a 1080p 60fps 90-minute video to 4K using Topaz. The output was set to ProRes 422HQ, resulting in a file size of 1.2TB. Naturally, I don’t want to keep the file this large and aim ...
Tibério's user avatar
1 vote
1 answer
76 views

FFmpeg -ss option and keyframes

I would like to clarify that I understand how to use -ss, -t, -to, stream copy, and the difference between stream copying and reencoding/transcoding. What I don't understand, is how the seeking/...
Blacki's user avatar
  • 11
2 votes
1 answer
99 views

Transition effects are not coming with my ffmpeg command

I am trying to bring transition effect when I am joining the videos. I am getting output video but not getting proper transition effects. My video length is as below ...
D.B.'s user avatar
  • 121
1 vote
1 answer
100 views

Ffmpeg image parameter for YouTube

Is there any image png command equivalent to parameter below? ffmpeg -loop 1 -framerate 2 -i input.png -i audio.m4a -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt ...
Michael's user avatar
  • 21
0 votes
1 answer
60 views

How do you create an ffmpeg lossless image without re-encoding?

I'm using the command below but not sure if it’s really lossless and without re-encoding? Is there specific command to create lossless image and without re-encoding? I'm new to this. ffmpeg -lavfi &...
Michael's user avatar
  • 21
0 votes
0 answers
15 views

Apple 14+ is not playing this audio, used ffmpeg to increase volume in audio [migrated]

I recorded an audio using audacity, then increased its volume 10 times using ffmpeg. When I am sending this audio as attachment to my friends to test, then people with older i-phones are able to hear ...
Smith Kumar's user avatar
0 votes
1 answer
21 views

How can I delay a particular rectangular region in a video relative to the rest of it using FFMPEG or other software?

I am watching a video which is a power-point presentation but it also has a view of the speaker in the bottom left corner. Unfortunately, the powerpoint-view and the speaker-view are not synchronized. ...
Dargscisyhp's user avatar
1 vote
0 answers
69 views

ffmpeg doesn't have access to qsv nor vulkan

I'm running gentoo, and I have media-libs/oneVPL-intel-gpu installed, and latest mesa drivers, and intel gmm, however, qsv refuses to transcode and gives me the following error everytime ffmpeg -...
Deyaa's user avatar
  • 23
1 vote
0 answers
22 views

Is there a way to use Intel QSV to have hwaccelerated tone mapping in ffmpeg?

Currently I am trying ffmpeg -hwaccel qsv -hwaccel_output_format qsv -i "Z://Movies/Luca/Luca.mkv" -vf 'hwdownload,format=p010,zscale=transfer=linear,tonemap=hable,zscale=transfer=bt709,...
Nathan Cloutier's user avatar
2 votes
0 answers
99 views

Why can ffmpeg cause a reboot?

Four times in a row, when I started a short simple ffmpeg command on my Ubuntu host, after about ten seconds it rebooted cleanly. Nothing appeared in /var/log/syslog. The fourth time, I ran it ...
Camille Goudeseune's user avatar
0 votes
0 answers
18 views

Avidemux loads vertical video in horizontal orientation

I have recorded a video while holding phone vertically. It opens vertically on phone, as well as on PC, in VLC. However, when I load it in Avidemux it rotates the video to horizontal aspect rate. I ...
overdriven's user avatar
0 votes
0 answers
42 views

How do I prevent an extended frame when suspending and resuming an ffmpeg process?

I have a c# application where I have control of an ffmpeg (https://www.ffmpeg.org/) process. I am using it to capture video and audio, either from desktop or webcam. I am using code similar to the ...
this_is_a_display_name's user avatar
2 votes
1 answer
154 views

What a correct playlist.m3u8 should contain, or should look like?

24/06/2024: [Presentation of the problem] I had dowloaded some videos from the Internet, few years ago. I obtained many files: a series of files in .ts a single file playlist.m3u8 In my example: A ...
dg lr's user avatar
  • 57

1
2 3 4 5
143