Questions tagged [video-encoding]
Specific issues with encoding video to a certain format, also related to [video-conversion]
159
questions with no upvoted or accepted answers
9
votes
1
answer
4k
views
How can I compress video by taking advantage of its static content?
I have an HD video that is a presentation, so it consists mostly of still images. It's a 50 minute, 200MB MP4 file, downloaded from YouTube.
Is there a way to take advantage of the static nature of ...
3
votes
0
answers
817
views
Converting video int Webm using ffmpeg, file size
I have found this article from google describing how to convert video into webm https://sites.google.com/a/webmproject.org/wiki/ffmpeg/vp9-encoding-guide
I used following command to convert video ...
3
votes
0
answers
447
views
FFMPEG motion compensation and search
I'm trying to modify the motion detection part of FFMPEG. What I want to do is to extend the search space, so that whenever the macroblock hits the rightmost edge of the frame, I need it to still move ...
3
votes
0
answers
13k
views
FFMPEG Lossless Video Output Options
I am looking for lossless video output options from FFMPEG that can be viewed without any special codecs or special players such as VLC. I want a basic use to be able to open up the video with a ...
3
votes
0
answers
2k
views
Converting series of images with ffmpeg results in black video
I've just downloaded ffmpeg since it seems to perfectly match my needs (make a video from a set of pictures). I'm currently playing around with some examples just to get started and there's something ...
3
votes
0
answers
2k
views
Avconv increases file size
I am using the version of avconv in Ubuntu 12.04 to archive videos. I would preferably use some kind of lossless video compression (e.g., huffyuv or FFV1), but using the original video stream (copy ...
3
votes
1
answer
3k
views
Add keyframe to middle of video without reencoding entire video
I need to add I-frames to the middle of mp4s at ad breaks so I can segment to HLS and have I-frames when the video cues back in. I know how to do this while reencoding the entire video and forcing key ...
2
votes
1
answer
2k
views
errors in encoding avc x264 to av1 using latest ffmpeg libaom linux
I have a system with Intel i3 10th generation processor and Asus H510 me motherboard. I have installed Arch Linux x86_64 latest version and after that I have installed aom package from official ...
2
votes
0
answers
1k
views
ffmpeg Combine 2 video files into one with two audio tracks (different languages)
I have multiple pairs of video files (.mp4) that are basically the same video but in different languages (original english and synchronised german in my case). I know that with ffmpeg I can take ...
2
votes
0
answers
104
views
Is there a way to reduce the size of a video file to a specific size?
I'm trying to get a video file to be a specific number of bytes. Basically, I will have a video X of duration/fps/compression ratio x, which I will want to change the size of to be the exact same size ...
2
votes
2
answers
3k
views
ffmpeg reducing frame rate doesn't decrease file size
My goal is to reduce the overall file size of a video without quality loss. The source video is at 30fps with keyframes every 90 frames. For our purposes we only need the video to be at 3fps and ...
2
votes
0
answers
1k
views
FFMPEG command error for scene detection: Output file is empty
I'm trying to detect scenes in a given video and after playing around with scenecut thresholds, store the first frame of each scene as an image.
I'm using the following command:
ffmpeg -i input.mp4 ...
2
votes
0
answers
814
views
Time-based instead of frame-based zones (with different CRF) for ffmpeg+x264/x265 encoding?
x264/5 have a zones parameter to support different encode settings for part of a video, but it only accepts frame numbers, not timestamps.
This is a minor inconvenience with constant-frame-rate video, ...
2
votes
0
answers
2k
views
FFMPEG split a video into multiple scenes/shot videos
I want to use FFMPEG (or ffprobe) to split a video into multiple shot videos/scenes (scene1.mp4 to sceneX.mp4, each a separate video). So whenever there is a scene change, it should cut it. What is ...
2
votes
3
answers
3k
views
How can I reduce the size of video created from FFmpeg
I'm using FFmpeg to make a video from image scequences. My purpose is to create a video has a transparent background in mov/mp4 format.
Either using "-c:v qtrle" or "-c:v png" can achieve my purpose, ...
2
votes
0
answers
1k
views
Using ffmpeg for creating H.265 video compatible with Windows 10
Windows 10 supposedly supports H.265, but I can't get it to play files encoded with H.265, which appears to be the current best format.
I'm running it like this:
ffmpeg.exe -r 60 -i "video_%04d.png" ...
2
votes
0
answers
319
views
How to smooth out jaggy lines with AviSynth?
I have a quite crappy quality video in 480p, I then transcode it with AviSynth and MeGUI. I use a few scripts to enhance the quality, as well as upscaling the video to 720p. As you can see in the ...
2
votes
0
answers
90
views
Error when adding silent channels to ProRes file in FFMpeg
I'm trying to follow this guide to build a usable 5.1 audio for a piece of hardware with specific needs.
When I run the command:
ffmpeg -ar 48000 -acodec pcm_s24le -f s24le -ac 5 -i /dev/zero -i ...
2
votes
1
answer
3k
views
Is it possible to embed subtitles in an MP4 with the forced option in MeGui?
I want to show subtitles with my web player (it supports Flash and HTML5). I'm using the MP4 format and I can add subtitles to the player with an external SRT file, but I want to embed subtitle to my ...
2
votes
0
answers
310
views
FFmpeg audio disappears in the middle of the video
I've been trying to convert a sequence of PNG files to a video with some sound (mp3 or wav). It pretty much works with different codecs and quality settings for both video and audio.But the audio ...
2
votes
0
answers
573
views
problems encoding 1080p60fps MTS files with ffmpeg to DNxHD proxy; plays too slow in NLE compositor window.
I was advised to encode my HD files with ffmpeg to DNxHD proxy with 220M bitrate rather then 45M so the image doesnt have too much artifacts. I reduced the framerate to 29.97 fps when I encoded the ...
2
votes
0
answers
403
views
H.264 encoder with clearer options for specifying minimum & maximum video bitrate?
I almost never get stuck with things like this and kinda figure things out myself... but I'm at a complete loss here.
I've used Handbrake, X-Media Recode, and lots of other encoders and they're ...
2
votes
1
answer
3k
views
Add soft subtitles with formatting and position
I’ve been using ffmpeg to do everything so far with a video, stringing animation frames together, adding audio, overlaying images, and adding subtitles. So I expect that the answer to my question ...
1
vote
1
answer
144
views
How to merge raw H.264 video and AAC audio streams, making sure the video matches audio duration?
I had a corrupt screen recording, and I used mp4fixer to extract the raw h264 stream and the aac streams separately. The audio sounds just fine, but the h264 stream doesn't seem to have a well defined ...
1
vote
0
answers
293
views
How to Speed Up Complex Text Overlay in FFmpeg
I'm using FFmpeg to overlay text on videos, and I find the process to be quite slow. The operation becomes especially slow when I add complex drawtext filters. I'm running this on a MacBook Pro with ...
1
vote
1
answer
90
views
ffmpeg, need help to make small thumbnail slideshow video from long video
With ffmpeg command, I am trying to create a small thumbnail slideshow video of a large video
by selecting one frame every 60 seconds and then combining those frames to make a video in a way that each ...
1
vote
0
answers
97
views
can one filter_complex handle different audio layouts?
I am trying to set up an ffmpeg command that handles 2 different audio layouts on the input:
type #1: a single stereo track, i.e. [0:a:0] is a stereo channel.
type #2: a couple of mono tracks, i.e. [0:...
1
vote
1
answer
545
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
116
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 ...
1
vote
0
answers
438
views
Why does the video file (x264) made with ffmpeg have a much higher bitrate compared to when I reencode it using the same settings in Handbrake?
I'm a ffmpeg beginner and am converting a series of .png images taken every 10s into a timelapse video. The images are named pic1.png, pic2.png, etc.
For this I'm using the following ffmpeg command:
...
1
vote
0
answers
177
views
FFMPEG - process interlaced frames in mixed footage separately
I have a video file - an NTSC DVD rip. I want to convert it into PAL. The problem with that NTSC DVD is that it's a mixture of 23.976 fps telecined content and true 29.97 fps interlaced content.
I ...
1
vote
0
answers
200
views
ffmpeg last frame freezes, audio keeps playing
I'm using fffmpeg to cut an H.264 video into specific shots. I need it to be frame accurate, which isnt a problem if I only encode video (now that I know how to calculate the ms from the number of ...
1
vote
0
answers
564
views
What variant of Spline algorithm is used in "spline" parameter from "scale" filter?
FFmpeg has two filters to scale the video: scale and zscale - zscale has spline16 and spline36 parameters (they represent Spline16 and Spline36 variants of the algorithm), scale has spline parameter.
...
1
vote
0
answers
276
views
Cannot start livestream on youtube even though ffmpeg seems to work?
I am a novice on ffpmeg and trying to go for a livestream youtube radio via azuracast. I have created an instance on oracle cloud and installed azuracast there. I can listen to the songs I uploaded in ...
1
vote
0
answers
74
views
Having audio and playback issues when attempting to capture DVCPro50 tapes over Firewire with FFmpeg
I've been trying to capture DVCPro50 tapes that were recorded at 23.976 fps over Firewire and I'm unable to come up with a command to get the file to play back properly. I can get a file with audio at ...
1
vote
0
answers
770
views
FFMPEG How to do segments encoding in MXF XDCAM HD422
I'm trying to encode a feed from a Decklink card to MXF XDCAM HD422 by segment, so I use the following command line:
ffmpeg.exe -f dshow -video_size 1920x1080 -r 25 -pixel_format uyvy422 -rtbufsize ...
1
vote
0
answers
256
views
How to hard code / embed subtitles of videos inside a folder with FFMPEG
Lets say I have folder A with lots of videos that have TX3G subtitles
Some videos don't have any subtitles
So I need a windows command to process all videos inside this folder and embed / hard code ...
1
vote
0
answers
324
views
How to convert .DXA file with ffmpeg
I have .dxa video footage that I'd like to convert to a more standard format with ffmpeg. By doing research I found some people reccomend converting to .yuv first, then convert from .yuv to .mp4. (...
1
vote
0
answers
4k
views
Using FFPMEG, create a MJPEG stream from a file to simulate a webcam
I'd like to use ffmpeg to simulate a network webcam.
These usually give out an MJPEG feed that plays in a browser.
I want to create a stream like this locally as a test case
for a software I plan to ...
1
vote
0
answers
572
views
How can I decrease the V8 processing time when using ffmpeg?
I am working on a project where a lot of videos need to be converted quickly in a fairly good quality. I decided to use ffmpeg and V8 encoding because of the licensing of the codec. h.264 isn't an ...
1
vote
0
answers
358
views
Screenshots to video using ffmpeg
I have screenshots that are taken .25 seconds apart, that I'm trying to combine into a video. No matter what I try it ends up too fast or too slow/choppy. I've tried the following commands.
ffmpeg -...
1
vote
3
answers
2k
views
How to ffmpeg encode using same codecs and parameters as certain file has?
I need to merge two different video files and I am using LosslessCut for the task. Yet it says that the files need to have the same codecs, dimension, framerate.
Source is mkv V_MPEG4/ISO/AVC with ...
1
vote
0
answers
398
views
Video Encoding uses 100% of iGPU and video lags extensively
When I play a video (youtube or local) it runs smooth until some time (seconds or minutes) were it starts to lag really heavy. At this time the GPU Usage goes up to 100% in Taskmanager caused by the ...
1
vote
0
answers
109
views
Trim video into multiple sections ffmpeg
I need to trim a video into multiple sections of unequal duration and output them as separate files.
For example a .mp4 100 seconds long and I need to extract and keep
output0.mp4 from 5 - 10sec
...
1
vote
0
answers
108
views
OBS settings for recording presentation (still screen) with mouse cursor in low size and good quality?
How could I reproduce these settings with OBS Studio FFmpeg recorder?
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/mp42)
Format : AVC
Format profile : [email protected]
Format ...
1
vote
1
answer
2k
views
Missing Initial Key Frame Issue in VLC media player causes few second blank screen at the start of the video
I have videos which missing initial keyframe. Thus when I open the video file with VLC player, nothing happens on the screen until the first key frame.
Example picture: https://i.stack.imgur.com/nBYrR....
1
vote
1
answer
1k
views
Check if Videos are corrupted automatically
I have 100 videos and I would like to check if they are all fully downloaded and not cut at a certain point, due to the internet breakout.
Is there a way for this to be done automatically and for the ...
1
vote
0
answers
439
views
Upscaling videos with artificial intelligence?
I am looking for a way to encode videos with AI upscaling (in Windows 10). I found this article but it uses a method where you must split the video into individual frames (from command line), then ...
1
vote
0
answers
213
views
looking to improve qaulity for video output
For the last 5 years I have been streaming a live stream 24/7 from a streaming studio which requires low latency rtmp output to a web based player client.
I am using vMix to capture my sdi signal from ...
1
vote
0
answers
392
views
How to Get Video Lossless Rotation When Re-encoding Using FFmpeg?
I'm looking for how to rotate a video without losing any quality when re-encoding. I currently use ffmpeg -i "inputvideo" -crf 0 -vf transpose=2 -acodec copy "outputvideo". ...