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
0 votes
0 answers
2 views

FFMPEG Seeking with concat demuxer out of sync

I have a very simple use case that's driving me bananas. My problem and question: I'm using ffmpeg version 5.1.2 on a MacOS and i'm using ffmpeg seeking and concat demuxer to cut many 1 minute videos ...
  • 101
0 votes
0 answers
3 views

How output multiple stats file for multiple output?

I'm launching encoding ffmpeg using GPU with 2 outputs: one using H264_NVENC and one using HEVC_ENV. To enable video stats output I'm putting -vstats before input file. To specify output of video ...
  • 101
0 votes
1 answer
10 views

ffmpeg seek position options not working with h264

I can use ss and sseof parameters with mp4 files and stream the result, but I get errors when I use same commands on h264 file (checked that it also works without seek parameters) here are the ...
  • 3
0 votes
0 answers
11 views

Why, in FFmpeg with libx265 the timestamp tbn parameter is always 1k even when it seems not logical?

I encode with ffmpeg and noticed that when I encode a y4m video in 29,97 FPS into a h265 video with libx265, the parameter of the two videos are the following : original y4m : 29.97 fps, tbc : 29.97 ...
0 votes
0 answers
11 views

Converting MTS to MP4 gives strange artefacts

I am converting video taken with various personal cameras in .MTS format to mp4 in order to reduce the file size. I am getting some strange artefacts and I wonder what simple mistake I am making? ...
  • 1
0 votes
0 answers
7 views

How to convert .png files into a .mp4 file in ffmpeg? [duplicate]

I created an animation consisting of 64 frames each saved as a .png file. I've been trying to convert all those into a single video, but the videos that ffmpeg generates don't play, as if they were ...
0 votes
0 answers
7 views

after merging videos together, unable to apply sticker at the same position on video as show in video preview .. how to do it using ffmpeg

The issue is that when we merge two or more videos then we have to make their scale same to achieve it,because of which the video resolution get change. After that when trying to apply overlay on that ...
  • 1
0 votes
0 answers
35 views

FFmpeg: maximum VHS quality?

I'm digitizing a number of VHS tapes into lossless video files using FFmpeg. How can I optimize my FFmpeg command further in order to come closer to the requested specs below, with the best possible ...
0 votes
0 answers
17 views

ffmpeg: video size/quality changes when applying ffmpeg with no filters or other parameters

I've used ffmpeg for years for minor tweaks to sound & video but I know pretty much zero about containers and codecs and whatnot. I've recently had a need to reduce the physical (disk) size of ...
0 votes
0 answers
20 views

A video tool or ffmpeg filter to fix slightly shaky films from the 70s and 80s?

Lots of high-grossing older films including some that were released in the 90s have an almost imperceptible shake that is maybe due to the conversion from film to digital. You can only see it in ...
  • 101
0 votes
1 answer
25 views

How to re-encode leaving only every Nth frame in?

I have several hours of CCTV footage that I'd like to reasonably quickly skim. If there was a way to take every say 60th frame from it and put together a video from those frames that would be perfect. ...
1 vote
1 answer
30 views

Why does ffprobe report color space as unknown?

If the caja file properties report YUV for color space, why does ffprobe report color space as unknown ? The video in question was obtained from Astronomy Picture of the Day (APOD) Spinning Moon. Here ...
0 votes
0 answers
46 views

In FFMPEG's H.265 encoder, which CRF value leads to "visually lossless" results?

I am trying to shrink some videos from 1920x1080 to 1280x720 and to achieve a reasonable compromise between video quality and file size. I have decided to give FFMPEG's H.265 encoder a try, and now ...
  • 111
0 votes
0 answers
30 views

How to create a webM with a Transparent background from a MP4 Green Screen

Been trying this for some time now with little to no results. I have an MP4 of characters recorded against a Green Screen and have managed, through FFMpeg to strip out the green screen with an Alpha ...
  • 101
0 votes
0 answers
37 views

Changing speed and reversing in one filtergraph

Right now, I manually make videos that follow a consistent format, and have decided to make a program to automatically make the video for me. Here is an example of the videos that i am trying to ...
  • 1
0 votes
0 answers
8 views

How to fix "dull" colors on flowblade export?

I use flowblade (v2.8) on Linux as a video editor and VLC as player. I've run into problems with the colors looking dull on preview and after export (rendering) using flowblade. The video file has ...
0 votes
0 answers
18 views

Apply blend mode "overlay" to image watermark that smaller than video

I'm trying to make watermark with blend mode "overlay" like in Photoshop or Premiere Pro and apply it to video that larger than watermark image: https://i.imgur.com/OXRV68u.png This is how ...
2 votes
0 answers
26 views

How to know which ffmpeg encoders are hardware accelerated?

On any given build of ffmpeg, ffmpeg -encoders will list which encoders can be used for encoding video. Of the encoders listed, how can I tell which ones use hardware acceleration?
0 votes
0 answers
24 views

How to crop specific pixels on left and right side of a video using FFMPEG?

I have an MKV video file that is 704x480 and I need to crop 12 pixels from the left side and 10 from the right side. I have tried the following ffmeg -i "H:\Z-Movies\Movie 5WBN.mkv" -vf &...
0 votes
0 answers
74 views

Raspberry Pi Youtube Livestream - ffmpeg error: av_interleaved_write_frame(): Broken pipe

I'm using a Raspberry Pi 3B (OS: Raspian) to livestream an attached camera feed to YouTube using the following command in a python script(I removed the livestream secret key): raspivid -o - -t 0 -vf -...
1 vote
0 answers
44 views

routing rtmp ect streams via ffmpeg+python is it possible?

Is it possible to solve this problem using ffmpeg+python or in conjunction with another solution. I need a server solution, so Vmix, obs, etc are not suitable. ( eg: I have two (and/or more) streams ...
0 votes
0 answers
16 views

How can i Formart all Videos in a Folder to the same Framerate, Audio Sample Rate, Resolution with FFmpeg

I have a Folder with about 200 short clips (1-2sec each). And i try to combine them with ffmpeg concat. for f in *.mp4 ; do echo file \'$f\' >> list.txt; done && ffmpeg -f concat -safe 0 ...
0 votes
0 answers
17 views

Stream Webcam video to a website

I am trying to build a system where I want to stream video from a webcam to a website, I am new to video processing, but so far, I have learned that I need to use FFmpeg lib, an AWS-S3 bucket and hls....
1 vote
0 answers
21 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
1 answer
29 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
129 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
8 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
10 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
13 views

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

From my experience, the Windows Media Video 9 Screen is the most optimized video format for screen video capture. I was wondering, is there a way to encode a screen cast in FFMPEG using Windows Media ...
  • 101
0 votes
1 answer
134 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 ...
0 votes
0 answers
25 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
68 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
48 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
163 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
25 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
20 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
27 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
66 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
32 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
50 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
25 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
7 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
107 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
40 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
91 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
31 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
29 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
82 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
2 3 4 5
40