Questions tagged [ffmpeg]

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
1 vote
0 answers
8 views

FFMPEG merge 3 videos and audio together with 1 command

I'm trying to merge 3 videos and 1 audio track to 1 signle video with ffmpeg. At the moment i got working command which converts 2 videos and 1 audio together. One video called overlay is with ...
1 vote
0 answers
13 views

FFMPEG : Add video (partial video effect) under the image with ffmpeg

I have a video, video.mp4, and an image, artwork.png I would like, to use FFmpeg: To display the video.mp4 effect inside the image artwork.png If possible, resize output.mp4 as per the demo ...
0 votes
0 answers
5 views

ffmpeg error with device when transcoding from HEVC to H.264 on GPU using NVENC and CUDA

I wanted to transcode my videos that have hevc encoding into h.264 using ffmpeg with Nvidia CUDA acceleration. Basically I've followed the guide provided in the official documentation and read through ...
0 votes
0 answers
5 views

During h264 -> h265 conversion (single-pass), can I somehow eliminate these artifacts?

I'm trying to transcode a h264 stream to h265 for better bandwidth utilization, but I got massive artifacts on h265, which were not presented on h264: I'm using ffmpeg to do this, on a live stream (...
  • 121
0 votes
0 answers
5 views

FFMPEG: FIFO buffer to smoothen bandwidth requirements?

I'm trying to achieve something pretty simple, but it's very hard to describe: There is a live video stream which uses h264 for it's video, and m4a for it's audio. This stream is not mine, and I have ...
  • 121
0 votes
0 answers
5 views

Support for Windows Media Video 9 Screen in FFMPEG or Any Other Encoder [closed]

From my experience, the Windows Media Video 9 Screen is the most optimized video format for screen video capture. I was wondering about: Is there a way to encode a screen cast in FFMPEG using Windows ...
  • 101
0 votes
0 answers
26 views

Reducing latency with ffmpeg RTSP->HLS->video.js

I am presently using ffmpeg to pull a stream from a camera using RTSP, and then output it as an HLS stream. I also have a webpage with a video.js player, using the example code found on this page. My ...
-1 votes
0 answers
6 views

Holding one initial frame in a slideshow and then looping the remaining frames for a specific time without repeating the first frame, in ffmpeg how?

I know that making a frame linger can be done using the tpad function, and overlay can also be used. How might I go about having the frame which lasts for several seconds not be repeated, while ...
0 votes
0 answers
13 views

ffmpeg demuxer file size

I have used ffmpeg to concatenate two MKV containers with both files having AV1 codec like so: ffmpeg -f concat -i input.txt -c copy "out.mkv" Interestingly enough, the first file has ...
1 vote
0 answers
32 views

MPEG-TS imprecise cut position on exact PTS, if cutting audio as well

Good morning, after 1 month of research and attempts, still wondering the correct solution. I have frequently tv mpeg-ts (h264+aac) file to cut part from. I have a script to cut at exact times ...
0 votes
0 answers
25 views

How do I drawtext two subtitle files one after another in one command?

The following command overlays text on the video: ffmpeg -hide_banner -i Loving_Caliber.mp4 -vf drawtext="textfile=subs1.txt:fontsize=75" output.mp4 where subs1.txt is a textfile containing ...
0 votes
0 answers
67 views

ffmpeg: How to burn in the timecode from a stream's metadata

I have a timelapse video from a GoPro and want to overlay the time of the recording on the current frame. For instance, a frame taken at 9am might show 09:00. It seems like the drawtext filter is the ...
0 votes
0 answers
15 views

How to convert mkv to a container that works well on apple devices while keeping the audio tracksand subtitles

I have a mkv file that I would like to transcode to to a container that works well on Apple devices. I have identified the following options to help me reach my goal based on the ffmpegs video ...
  • 101
0 votes
0 answers
10 views

How do I trim X seconds from the beginning and end of a video without reencoding?

I want to trim 5 seconds from the beginning and end of the video in a single pass without reencoding. Exactly 5 seconds is not important, nearest keyframe will do. The videos are of different ...
  • 101
1 vote
0 answers
20 views

ffmpeg stream_loop option produces shaky video and adds (milli) seconds to the beginning

I have a video file say input.mp4 and I would like to loop this file say 6 times The following command does the job ffmpeg -stream_loop 5 -i input.mp4 -c copy out.mp4 However, the result is a shaky ...
  • 111
0 votes
0 answers
7 views

How do you convert a folder of .wav audio into .mp4 video with a .png image file using ffmpeg in the command prompt?

I have tried to do ffmpeg for i in *.wav; do ffmpeg -loop 1 -i image.png -i "$i" "${i%.*}.mp4" -c:v libx264 -c:a aac -b:a 192k -shortest %04d.mp4 but it doesn't work and I am ...
  • 1
0 votes
0 answers
35 views

ffmpeg append overlay of png in nginx live stream rtmp

ffmpeg -i "rtmp://rtmpserver" -i picture.png -filter_complex "overlay=10:main_h-overlay_h-10" test.mp4 but i want this to work to but cant use -c copy if im right.. exec_static /...
0 votes
0 answers
12 views

Is it doable to use a text file with a list of files as input when concatenating and reencoding with ffmpeg and -filter_complex?

When trying to concatenate mp4 files with the following script #!/usr/bin/bash echo "The number of files to be concatenated?" read no ffmpeg -loglevel warning -hide_banner -i ...
0 votes
0 answers
21 views

Creating a transparent .mov video using ffmpeg does not open in Quicktime

I created a transparent video from png files with the following command: $ ffmpeg -framerate 250 -i transparent.%04d.png -c copy movie.mov I can open the file with MKPlayer and it's indeed a ...
  • 133
0 votes
0 answers
15 views

Embedding transparent videos in Keynote for Mac

I have a few transparent .png files from which I would like to create a video that I can then embed in a Keynote presentation. I thought NOT to use a .gif since they are extremely heavy. Then I found ...
  • 133
1 vote
0 answers
6 views

How do I control the time of the movie= parameter when overlaying video with video?

The following command overlays main.mp4 with talkingHead.mp4. ffmpeg -hide_banner -i main.mp4 -vf "movie=talkingHead.mp4, scale=400:-1 [inner]; [in][inner] overlay=main_w-(overlay_w+10): main_h-(...
0 votes
1 answer
29 views

ffmpeg recording audio / video sync issues

I'm using ffmpeg to record NTSC analog video on Linux Fedora 36 using a Blackmagic Intensity Pro 4K for video and a Scarlett 2i2 for audio. I'm using a TBC to avoid dropped frames and to ensure a ...
0 votes
0 answers
20 views

I think I'm ruining my HDR content

I think I'm ruining my HDR content or at least it feels like it. My main goal is to lower bitrate of my video files while keeping the HDR intact, the command I'm using is the following: -y -hwaccel ...
0 votes
1 answer
41 views

Why does ffmpeg flip upside-down the video when concatenating with -f concat?

My text file list_of_fragments contains the list of video files to be concatenated. I assumed they have the same streams (shot from the same smartphone, with the same settings) file barbell-home.mp4 ...
0 votes
0 answers
16 views

FFmpeg, How to extend video by looping section in the middle

I have a 2min video (50fps), and would like to stretch it to 3min by looping part from 1:00 to 1:05 ten times including audio but looping from 1:00 to 1:03 20x. I'd like to do it with ffmpeg in ...
  • 1
0 votes
1 answer
24 views

FFMPEG xstack output flickering between inputs

I am leveraging ffmpeg (specifically the python-ffmpeg lib) to take two mp4 inputs, partially overlay them using xstack and output the combined mp4. This is mostly working but I consistently am ...
0 votes
0 answers
8 views

How to paste a video in a specific image frame through ffmpeg?

lets say I have this video: https://te.legra.ph/file/716bee67fe384b3ed58f0.mp4 How can I change this to: https://te.legra.ph/file/17380855f6c3c1a4d6909.mp4 ? The resolution of the frame image is fixed,...
0 votes
2 answers
44 views

ffmpeg concat vob files not working?

I am trying to convert dvd .VOB files (unencrypted) to .mp4, but first want to concat them ... I made a text file: file './VTS_01_1.VOB' file './VTS_01_2.VOB' file './VTS_01_3.VOB' file './VTS_01_4....
  • 101
1 vote
1 answer
24 views

ffmpeg combine multitrack audio

I have three audio files which I am attempting to combine into a multitrack audio file. ffmpeg -i A.wav -i B.mp3 -i C.wav -map 0 out.mp4 But the result seems to be (testing with ffmpeg -i) just a ...
0 votes
0 answers
31 views

FFMPEG VMAF consistently low rating despite quality encode

I've seen similar issues but can't seem to come to a resolution myself. I have a 4K rip that is in hevc, 10bit depth, which my older phone can't play since it lacks GPU acceleration. Therefore, I'm ...
  • 1
0 votes
1 answer
50 views

ffmpeg-converted video file won't play in Windows Media Player or Movies & TV

I am using ffmpeg-python to convert an hevc mkv file to an h264 mp4. This is the relevant code: ffmpeg.input(video_file).output(out_name, vcodec='libx264', **{'pix_fmt': 'yuv420p'}).run() Yet after ...
  • 103
0 votes
0 answers
24 views

FFMPEG How to copy stream but limit upload bitrate

I'm using the following command to copy a video stream and push it to an rtmp url: ffmpeg -re -i "http://mydomain.com/index.m3u8" -g 50 -c copy -bf 0 -b:v 2M -maxrate 2M -bufsize 1M -f flv &...
  • 101
0 votes
1 answer
34 views

Error when trying to execute ffmpeg command

I'm just starting with ffmpeg, and i can't get any command to run, they all return "Unable to find a suitable output format for 'i' i: Invalid argument" The command was just ffmpeg i ...
1 vote
0 answers
15 views

Any way to *list*, not remove, duplicate frames in an an MP4 file?

I can use ffmpeg -mpdecimate to remove duplicate frames in a video file, but is there any way to just list them, using ffmpeg or otherwise? Ideally I'd get an output saying nothing happens at time x ...
  • 111
0 votes
0 answers
31 views

Need help compiling a custom, minimal FFmpeg build

I'm using FFmpeg's showspectrumpic function to generate spectrogram pictures : I have a working FFmpeg build that does what I need, but it's quite heavy (almost 100mo). Is it possible to compile a ...
1 vote
1 answer
35 views

ffmpeg: Changes to FPS only work if I don't include audio in the export, how can I keep audio and choose the FPS value?

How can I export a video to .mjpeg at my selected FPS value (7 FPS for stop motion video) while including audio in the export? I use the -i input command in ffmpeg to include my .ogg audio file: ...
1 vote
1 answer
35 views

Why is FFmpeg adding a minute to videos created with an audio source & image source?

I've been using FFmpeg to combine an audio file (.wav) and an image (.jpg) into a video (.mp4), the command I looked up seemed to work when testing it, so I tweaked it a bit (mostly just adding the ...
  • 13
1 vote
0 answers
34 views

ffmpeg merge videos with different audio encoding

How can I merge two videos that have different audio encoding using ffmpeg. I don't want to re-encode the video but re-encoding of the audio portion is fine. Video1 audio codec: sowt Channels: Stereo ...
  • 111
1 vote
1 answer
67 views

ffmpeg - Too many inputs specified for the "split" filter

So I'm trying to add text and a logo onto all my video qualities with HLS and I am receiving the error Too many inputs specified for the "split" filter. I am not sure how to correct it so ...
0 votes
0 answers
47 views

ffmpeg - How do I modify Channel Layout labels only on 8 separate mono audio tracks?

I have a QuickTime .mov file which has 1 video track (ProRes 4444 XQ) and 8 mono audio tracks, which combined make up the 5.1 surround mix and a stereo mixdown. Per delivery requirements, I need to ...
1 vote
1 answer
27 views

How do I add (layer) a .wav audio file to a ProRes 422 HQ .mxf video without re-encoding?

Here's the detailed info of the .mxf video General Complete name : D:\R-2180634-1250074380.jpeg-gigapixel-low_res-scale-2_00x.mxf Format : ...
1 vote
0 answers
34 views

ffmpeg drawtext + colorspectrum - background partly transparent only

I am currently working with the drawtext/alphamerge filters to have the text coloured with colorspectrum on a transparent background. While I have been trying many options, the closest I managed to ...
  • 11
0 votes
1 answer
43 views

Is there a way to name/label inputs in ffmpeg, instead of using input number?

I'm writing a program to automate building of an ffmpeg command line. One thing that is challenging me is that ffmpeg uses index numbers to identify the input sources. It would be easier if there was ...
0 votes
0 answers
59 views

Issues in trimming a video with FFmpeg

I have a .webm video captured through a web browser. Using ffmpeg, I want to trim it into its first 30s without re-encoding and quality degradation. But I have issues doing it and ffmpeg complains ...
  • 101
1 vote
1 answer
82 views

Mpeg file not playing to the end - how to fix corruption

I have a 3.6gb mpeg2 video file the length should be about 25min but the file is corrupt after about 13 minutes and it stops there. This is the result I got when I tried to correct it: Z:\Recovery\bin&...
  • 11
0 votes
0 answers
51 views

FFmpeg v4l2 recording - variable frame rate output

I have a video device and an audio device I'm trying to record from, as below: $ v4l2-ctl -d /dev/video0 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'MJPG' (Motion-JPEG,...
  • 1
0 votes
0 answers
74 views

how to compare 2 video (side by side, lossless way) with ffmpeg?

I have 2 mkv. They have the same pixel format and resolution. They are the same video but: A.mkv Is the original file B.mkv Is encoded with x265 I want to play them simultaneament. Only the left ...
0 votes
0 answers
47 views

ffmpeg MP4/x264 output colours change when input source is different resolution (bug?)

I'm a beginner to ffmpeg so I'm having a hard time believing that a utility so old and so widely used has such a fundamental bug, but the evidence is staring me in the face and leads me to no other ...
  • 101
0 votes
0 answers
31 views

How to use FFMPEG graph2dot tool

I'm trying to debug some FFMPEG filters and can't get graph2dot to work. Using the simplest example from the documentation: echo "nullsrc,scale=640:360,nullsink" > vf graph2dot -i vf -o ...
0 votes
0 answers
20 views

Could someone please explain significance VIF and ADM metrices in VMAF?

I've been studying about video quality assessment metric VMAF and I know VMAF score is calculated based on VIF, DLM and Motion. I want to know in layman terms how is VIF and DLM calculated and then ...

1
2 3 4 5
39