21:54
I was using video_player to do the rest of the metadata extraction I need but I didn't find a way to get the resolution with this package.
22:18
The following code works perfectly as long as I only move the crop rectangle, however as soon as I change its size I no longer get frames out of my filter (av_buffersink_get_frame returns -11). It's crazy, even after the size changes, if it eventually changes to the original size that frame will go through, then it will go back to no longer providing frames.
Would anyone happen to know what I'm doing wrong?
My filter setup (note the crop & scale combination, it should (I think?) scale whatever I crop to the output video size):
// buffer source -> buffer sink (...)
18:44
I am encoding a few videos with av1an and svt-av1-psy.
I have one file with audio that goes out of sync. I usually encode the audio in opus, but even remuxing the original stream result in out of sync.
It seems the new av1 video is shorter of 831ms compare to original. Using mkvtoolnix to set -831ms and use the "correct video timing..." option result in a file that is not far of being well sync, but no quiet perfect and the total lenght of the video is even shorter.
So is there any way to use the original h264 video file as a reference for the new AV1 (...)
12:35
I'm converting MKV files and hardcoding subtitles into MP4 format. I have over 100 files and want to speed the process up by enabling hardware encoding. I am able to hardware encode without hardcoding the subtitles via --filter_complex but as soon as I apply the filter it errors out.
Here is my command line that works perfectly fine.
ffmpeg -i input.mkv -filter_complex "[0:v:0]subtitles='input.mkv':si=0[v]" -map "[v]" -map 0:a:1 -c:a copy -map_chapters -1 "output.mp4"
Here is my command line that works with hardware encoding without --filter_complex
(...)
05:05
FFmpeg.AutoGen version: 7.0
Following is similar with Program.cs in "FFmpeg.AutoGen.Example" directory.
var sourceSize = vsd.FrameSize;
var sourcePixelFormat = AVPixelFormat.AV_PIX_FMT_CUDA;
var destinationSize = sourceSize;
var destinationPixelFormat = AVPixelFormat.AV_PIX_FMT_BGRA;
VideoFrameConverter vfc = new VideoFrameConverter(sourceSize, sourcePixelFormat, destinationSize, destinationPixelFormat);
However, when 'ffmpeg.sws_getContext' is called, ffmpeg shows below error message.
ffmpeg error message: [swscaler ⓐ 000001b7af30aa00] (...)