Can anyone talk a look at this script? I am to make this setup into a FFMPEG script and even an AVISynth/AVS script. Here is what I am trying to do:
- Using Virtualdub I was going to do two resizes using Nearest Neighbor and later Lanzcos3. The Nearest Neighbor resize filter was going to upscale the video while the other filter was for aspect ratio correction via "Compute Height from Ratio" on Lanzcos3. I know you do not have to do this in FFMPEG or AVISynth but you could in Virtualdub2.
- I was to resize it to four times bigger than usual since that is considered HD and I do not want it to be bigger than what it can allowed to be.
- I was put in a .mp4 video container with .aac as the audio container. Someone recommended me libopus as a possible audio codec but I want to play it safe with .aac.
- As for codecs and compression, I mostly use x264 8 bit with a Slower compression with the constant rate factor being either 16 or lossless.
- I wanted colorspace from RGB to YUV. I mostly work with pixels from old video games.
I was wondering how can I do so with this FFMPEG script? Do those options that I have about match what I want do? And if possible, how can export it to AVISynth or AVS.
Here is the script in question:
Code:ffmpeg -i input -vf "scale=iwX:ihX" -sws_flags neighbor -pix_fmt yuv420p -c:v libx264 -preset slower -crf 16 -c:a libopus -b:a 128k
+ Reply to Thread
Results 1 to 9 of 9
-
Last edited by Guernsey; 6th Dec 2022 at 23:44.
-
Your syntax for -vf is all wrong.
Code:-vf "scale=iw*4:ih*4:sws_flags=neighbor,format=yuv420p"
-
you can even simplify scale syntax further (and force scale to particular behavior):
Code:-vf "scale=iw*4:-2:sws_flags=neighbor+accurate_rnd+full_chroma_int+full_chroma_inp,format=pix_fmts=yuv420p"
-
There are some pixel art resamplers featured in PointSize for avisynth
http://avisynth.nl/index.php/PointSize -
-
You can use -vf trim to specify frames or times to include (and by extension, exclude)
https://ffmpeg.org/ffmpeg-filters.html#trim -
Or use -ss to start at a specific time.
Code:ffmpeg -i input.ext -ss 00:05:00.000 output.ext
Similar Threads
-
FFmpeg script
By Boris987 in forum Video Streaming DownloadingReplies: 0Last Post: 18th Jul 2021, 12:13 -
Colour of video changes when using FFMPEG with AVS Script
By bradwiggo in forum Video ConversionReplies: 5Last Post: 3rd Jul 2021, 05:51 -
Useful FFmpeg Windows Batch Script
By Guanadon in forum Newbie / General discussionsReplies: 0Last Post: 22nd Sep 2020, 10:48 -
How to use an older avisynth script in ffmpeg
By tyee in forum Video ConversionReplies: 4Last Post: 26th May 2019, 19:25 -
ffmpeg script
By loa909 in forum Newbie / General discussionsReplies: 2Last Post: 2nd Nov 2018, 11:15