All Questions
Tagged with video video-conversion
503
questions
0
votes
0
answers
34
views
Video width&height is horizontal but video frames are vertical. How to fix it with ffmpeg?
I have a video, that when checked with ffmpeg/ffprobe shows a horizontal aspect ratio.
ffprobe.exe my_video.mp4 -show_streams -of json
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'my_video.mp4':
...
1
vote
0
answers
56
views
How can I remove every nth frame from raw video using ffmpeg?
I have many cine films that have been digitally converted. They have been converted as a 25 fps with 2 frames in every 23 duplicated. I need to remove the duplicated frames using a bitstream filter so ...
0
votes
0
answers
62
views
Split Videos using File Size in ffmpeg
How do I split videos by file size using ffmpeg? For example, I have a 1.92GB video and I want to split it into 200MB videos. There are two ways how I want to split them:
Losslessly by using the -c ...
0
votes
1
answer
64
views
How to convert videos of any format to MP4 and only take the first minute of the video
I'm working on a project, essentially a social media app for the traveler community. In this application, users can upload videos in any format, but I need to save them in MP4 format so that any ...
0
votes
0
answers
29
views
YUV: Change the Chroma Subsampling and Bit Depth Without Losing Quality
Let's say I have a short video with YUV 4:4:4 and 10bit depth, and I convert it to a FFV1 with YUV 4:2:0 and 8bit depth. Is the FFV1 lossless? Will the colors be the same?
If so, how do I convert ...
0
votes
0
answers
17
views
How to create a video encoding ladder for any aspect ratio?
For a given video uploaded by a user, I need to create three versions of it to cover standard definition (SD), high definition (HD), full high definition (FHD), and ultra high definition (UHD e.g. 4K)....
1
vote
1
answer
142
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, ...
1
vote
1
answer
374
views
How to fix ffmpeg concatenated video playback issue?
I want to put watermarks in my video (in Specific time). I researched some sources, and it said I need to (video filter) reencode the whole video to put a watermark, but I don't have a high-end PC to ...
0
votes
1
answer
314
views
How to choose correct color space and transfer function with ffplay
I need to play a video using ffplay that was recorded with GeForce Experience screen recorder, but the rendered video has incorrect colors. It works correctly if I play it with VLC player, but I need ...
3
votes
1
answer
267
views
FFmpeg zoompan animation results in zig-zag pattern
The goal is for a user to specify a zoomPoint in a video and we then render that using FFmpeg. There will be a zoom in and zoom out animation. Here are some example values:
"scale":4, ...
0
votes
0
answers
127
views
FFMPEG does not load Font from ASS file
I'm trying to burn an ASS subtitle file onto a video using ffmpeg. This is the style part of the ASS file:
[Script Info]
; Script generated by FFmpeg/Lavc60.3.100
ScriptType: v4.00+
PlayResX: 384
...
1
vote
0
answers
133
views
Playback drops frames or stutter on good hardware
I'm planning to use TDARR and trying to prevent any issues before with (re)encoding. And I have stumbled on issue with one TV Show - recently I have downloaded refreshed old show but playback stutters ...
0
votes
0
answers
84
views
FFMPEG - PNG Overlay - Fade In / Out - Start & End of video + Combine Videos
Hoping someone can help me with this.
I'm looking to automate some editing tasks.
I want to write an FFMPEG command that will do the following. Input is VIDEO.MP4
Add a 1 second fade in and out to ...
1
vote
1
answer
1k
views
ffmpeg video encoding has no audio
When I convert any video in ffmpeg - e.g. mp4 to mkv, mkv to mkv - I lose audio for some reason
here are the parameters I originally used:
ffmpeg -i input.mkv -vf scale=640x480 -vcodec libx264 -...
0
votes
1
answer
219
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 -...
0
votes
1
answer
469
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 ...
0
votes
0
answers
87
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
...
0
votes
0
answers
163
views
h264_qsv is choppy when live streaming
I am trying to do live streaming of video games using h264_qvs, but is choppy when compared to libx264. Here are some variations of the ffmpeg command I am running:
Variation 1
ffmpeg.exe -y -hwaccel ...
0
votes
1
answer
515
views
ffmpeg - cut without reencoding and strange behaviour: application provided duration is out of range for mov/mp4 format
In Ubuntu 18.04 I quite often used the following command for trimming part of the video without re encoding (which means without any quality loss).
ffmpeg -ss 00:06:00 -i DSCF5984.MOV -t 00:07:00 -c ...
1
vote
1
answer
1k
views
FFMPEG: How to convert VFR to CFR without messing up the timing
I got a video of the iOS simulator recorded with
xcrun simctl io booted recordVideo raw.mov
This video has a variable framerate
Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), ...
0
votes
1
answer
898
views
Edit video h.264 metadata without encode
How can I edit these video (h264) parameters (on pic) without encode?
VUI parameters "video_signal_type_present_flag" and "colour_description_present_flag".
As far as I understand, ...
0
votes
0
answers
203
views
Converting exr frames to mp4 has scrambled frames
I have an exr frame sequence that I would like to convert to an mp4 or mov. The frames are in proper order and I can play the sequence properly in any image sequence player such as mplay or nuke.
The ...
0
votes
0
answers
97
views
ffmpeg takes a lot of time when splitting a video towards the end
I have a 3 hours long video and I am trying to split the video at given intervals. The intervals which appear earlier are quickly split but the later ones takes a lot of time. The command that I have ...
1
vote
2
answers
368
views
FFmpeg - How to replace the image of a video with a png without modifying the audio?
I'm trying to modify several videos as quickly as possible. The goal is to replace the original image of the videos with a black or white image, in short, an image with nothing.
Searching the internet ...
0
votes
2
answers
67
views
How to run same cmd code across multiple folders
I'm trying to run same cmd code across multiple folders:
ffmpeg -i "00.mkv" -codec copy "00.mp4"
So i have few folders that have .mkv and would like to convert them into mp4 but ...
0
votes
0
answers
63
views
is there a way to do multiple file operations in ffmpeg input
I have gopro video's that need heavy color editing and i have figured out to disassemble my videos in high quality frames -> converting them with ART-rawconverter -> Reassembeling them into ...
0
votes
1
answer
342
views
ffmpeg warning and no sound on the encoding video
i try to convert a dvd to mp4 with ffmpeg (on windows) but i have some warning message AND i have no sound on the converted video
i use this cli :
ffmpeg -hwaccel qsv -i VTS_01_1.vob -vf yadif -c:v ...
0
votes
0
answers
119
views
Averaging film transfer from 59.94fps to 24fps using ffmpeg?
I have some video files which were transferred from black-and-white film to 29.97 fps interlaced. The film was transferred too darkly (meaning that it requires some brightening), and it also has some ...
0
votes
0
answers
146
views
FFMpeg fails with LZW decode failed / invalid block label when converting gif to mp4
I'm using FFmpeg to convert gif into mp4 files. On some gif files I encounter an invalid block label error. The program seems to still output an okay mp4 file but I'd rather it not encounter the error ...
0
votes
1
answer
234
views
What is the syntax for ffmpeg's -vf "split" option?
I'm trying to learn how to use ffmpeg, and I came across this filtering example on http://trac.ffmpeg.org/wiki/FancyFilteringExamples. Specifically, this one:
ffplay -f lavfi -i mandelbrot -vf "...
0
votes
0
answers
143
views
How to add random music for video with ffmpeg
I'm a new user of FFmpeg, I want to add random music (defined folder) for multiple video with ffmpeg ?
Specifically: I have a FFmpeg command, i used to process multiple videos in the folder at the ...
2
votes
1
answer
2k
views
Is it okay to re-encode videos from traditional lossless codec to modern lossless codec to save space and preserve quality?
Lossless video codec means almost zero information loss. After some internet search I found that there are some traditional opensource lossless codec like huffyuv, lagarith, utvideo and ffv1, which ...
0
votes
0
answers
69
views
There is mosaic phenomenon when muxing h264 raw stream to mp4 or flv by using ffmpeg6.0
I am currently using ffmpeg 6.0 to encapsulate h264 raw streams into mp4, flv, or rtmp formats. When the bitrate exceeds 1024kb/s, there is mosaic phenomenon at the bottom of the final picture. I ...
-1
votes
1
answer
749
views
Two video overlays another with FFMPEG
I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.
FFmpeg command (ok):
ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo....
1
vote
1
answer
429
views
Unwrapping 360 video file
I'm looking for a way to unwrap surveillance camera 360 video file.
I tried this using ffmpeg :
ffmpeg -i Stationnement.mp4 -vf "v360=eac:e" Stationnement_Output.mp4
and got this error
[...
1
vote
1
answer
66
views
VIdeo overlays another incorrectly - background is over overlay
I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.
FFmpeg command (ok):
ffmpeg -stream_loop -1 -i background1080p.mp4 -i input1080p.mp4 ...
1
vote
1
answer
76
views
ffmpeg: Merge short audio sound between two audio streams
I have two videos input1.mp4 and input2.mp4 both of them with duration of 60 seconds. I also have one 8 seconds long audio input sound.mp3. So right now I'm concatenating these two videos with xfade ...
1
vote
1
answer
799
views
ffmpeg shows "get_buffer() failed". Is this a bug?
ffmpeg version 2023-06-19-git-1617d1a752-full_build-www.gyan.dev
i7-1255U, Windows 11
The command line is
"ffmpeg.exe" -y -hwaccel qsv -ss 00:00:03.461 -to 00:00:12.009 -i "input....
1
vote
1
answer
1k
views
FFMPEG hardware decoder is much slower than software decoder, why?
I'm new to ffmpeg. I want to convert videos to mjpeg (frame independent). At first I thought hardware acceleration should be faster. Then I tried both hardware decoders and software decoders:
"...
1
vote
1
answer
175
views
Trimming ffmpeg
I used this command to trim the video:
"ffmpeg -i input.mp4 -to 00:06:49 -c copy out1.ts
ffmpeg -ss 00:07:13 -i input.mp4 -c copy out2.ts
ffmpeg -i 'concat:out1.ts|out2.ts' -c copy output3.mp4&...
-1
votes
1
answer
477
views
How can I burn in .ass file and a watermark to a video file using ffmpeg simultaneously?
I want to add subtitles and a watermark to a video using ffmpeg. For now, I'm using Handbrake to burn in the subtitles and later I execute an ffmpeg command to add a watermark from png file.
The ...
1
vote
1
answer
144
views
Why does my SVT-HEVC-encoded video run out of sync?
I'm trying to transcode a video (with audio) to HEVC using Intel's SVT-HEVC encoder. The video's audio tracks are in sync before transcoding.
Both ffprobe and mediainfo agree that the input video is ...
2
votes
0
answers
353
views
Facing delay in audio while using ffmpeg with h264_nvenc encoder
I am trying to capture my windows10 desktop with desktop duplication api and on-gpu D3D11 textures, in the form of ffmpeg D3D11VA frames @60 fps. Required command is given here. On top of that I am ...
3
votes
2
answers
492
views
How to copy a data stream (non-A/V) from input MP4 file from a DJI drone with FFmpeg?
I've got an MP4 video file captured by DJI drone. The file contains the video stream (H.264) and also two data streams of unknown format. I would like to convert the video from h.264 to h.265 and also ...
1
vote
0
answers
223
views
Steps to troubleshoot lost audio and subtitles after using ffmpeg?
I have a video file in which the video and subtitles are about 27.3 seconds ahead of the audio. I'd like to sync them back up. I followed the instructions on this post: In ffmpeg, how to delay only ...
0
votes
1
answer
2k
views
Handbrake - automatically keep aspect ratio when downscaling?
How can I in Handbrake 1.6 automatically keep the aspect ratio when downscaling a clip?
I found this YouTube video https://www.youtube.com/watch?v=XwiVjJwVawo and as you can see there used to be a ...
0
votes
2
answers
57
views
How to merge series of ffmpeg commands?
I am using the following series of commands to produce a video. Is it possible to merge all or some of those commands?
First, I extract some parts of the video, let's say three:
ffmpeg -y -ss 1666 -i ...
2
votes
1
answer
228
views
Different brightness merging multiple BMP files into MP4 using ffmpeg
I want to edit a small video frame/image by image without losing quality (or without losing much of it). I have used ffmpeg to split into images using the following line:
ffmpeg -i test.mp4 $filename%%...
1
vote
0
answers
915
views
How can I get FFmpeg to better use GPU and CPU resources the way HandBrake does?
Occasionally I needed interpolation feature for my videos, but i failed to find option in HandBrake GUI (if HandBrake already have it, please let me know). After some trying to launch minterpolate ...
0
votes
1
answer
190
views
Replace video track in MKV with track from .h264
I want to replace only the video part in my existing mkv file with the video.h264 file I created externally, I don't want to interfere with other parts or features in my mkv file such as audio or ...