is there any command convert 720p video to lower bitrate 480p using ffmpeg CMD
+ Reply to Thread
Results 1 to 19 of 19
-
Last edited by grabyea; 28th Sep 2021 at 19:52.
-
The basic command is:
Code:ffmpeg -i source.mp4 -vf scale=-4:480 -c:v libx264 -b:v X -c:a copy output.mp4
-
bad section. this is Video Streaming Downloading section.
for your question is better Video Conversion or Editing section. -
THANKS its worked
also check this thread
https://forum.videohelp.com/threads/403271-convert-ts-to-mp4-using-ffmpeg -
bad section. this is Video Streaming Downloading section.
for your question is better Video Conversion or Editing section.
ffmpeg -i source.mp4 -vf scale=-4:480 -c:v libx264 -b:v X -c:a copy output.mp4
Code:ffmpeg -i "source.mp4" -vf scale=-4:480 -c:v libx264 -crf 20 -preset slower -c:a copy output.mp4
Last edited by abolibibelot; 4th Oct 2021 at 12:19.
-
With "-vf scale=X:Y" the first number (X) is the desired width, the second number (Y) the desired height. If the value is a negative number ffmpeg will automatically calculate the value based on the other dimension but will be rounded to the nearest multiple of -N. Progressive YV12 video requires mod2 widths and heights, interlaced YV12 requires mod 4 heights, mod2 widths. Some players require mod4 for both width and height. I recommend you stick with mod4 to be safe (even though it may give a small aspect ratio error).
For example, if you start with a 1920x1080 video and downscale to 900 pixels wide with "-vf scale=900:-4" ffmpeg will calculate the height to nearest mod4 value (integer multiple of 4, ie 4, 8, 12, 16, 20...). The perfect height would be 506.25 but the height has to be an integer. The nearest integer is 506 but that is mod2, not mod4 (506/4=126.5). 508 is the nearest mod4 value to 506.25 (508/4=127). That results in about a 1/2 percent aspect ratio error -- but you won't notice that small an error upon viewing the new video. -
@lomero
@jagabo
from last few days if i try to download live strea =m m38 url in streamlink its giving this error but when i uninstall and install streamlink again it only works 1 time and than again eror any idea whats wrong?
Could Not Find C:\Program Files (x86)\Streamlink\Python\VCRUNTIME140.dll.dat
File "J:\Streamlink\bin\streamlink.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file J:\Streamlink\bin\streamlink.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
i have tried all streamlink version new and
im using this command since long time never had issue but now
streamlink "m3u8 link" best -o video.tsLast edited by grabyea; 24th Nov 2021 at 19:25.
-
Try (re)installing Microsoft Visual Studio 2015 Runtime: https://www.microsoft.com/en-gb/download/details.aspx?id=48145
-
-
This was already explained in post #9.
replace -vf scale=-4:480 with -vf scale=-4:1080 -
Last edited by grabyea; 5th Nov 2022 at 18:33.
-
Never allow mod 1 with subsampled chroma (4:1:1, 4:2:0, 4:2:2). I prefer to use mod 4 instead of mod 2 because some old players have problems with mod 2. And interlaced video must be mod 4 vertically.
-
-
The scale filter resizes any input size to the specified output size. Once again, I prefer to use mod 4 sizes.
Similar Threads
-
Change resolution of a .mkv file from 720p to 480p using VidCoder
By Alice in forum Video ConversionReplies: 7Last Post: 2nd Oct 2020, 16:10 -
Help Upscaling 480p NTSC DVD's To Progressive 720p Video
By LouieChuckyMerry in forum Video ConversionReplies: 16Last Post: 7th Mar 2020, 13:47 -
Is there an Avisynth Lossless Video Codec that uses lower bitrate for 720p?
By VideoFanatic in forum Video ConversionReplies: 7Last Post: 17th Apr 2018, 19:44 -
ffmpeg lower the total bitrate after extract
By UnlikeME in forum Video ConversionReplies: 5Last Post: 4th Feb 2018, 03:52 -
Reencoding video to a lower bitrate: downsample first?
By pachura in forum Video ConversionReplies: 3Last Post: 31st Mar 2017, 12:14