I'm making a website for vod. I use ffmpeg and at first I would like to use the x264 codec. Could someone help me adjust the command so that the video plays well on a computer, mobile phone and TV?
-c:v libx264 -preset slow -crf 20 -maxrate 4M -bufsize 8M -keyint_min 100 -g 100 -sc_threshold 0 -pix_fmt yuv420p -profile:v high
for 1080p
Currently my command is this, can it be improved?
+ Reply to Thread
Results 1 to 8 of 8
-
-
Next time you post a thread use a more descriptive title rather than 'help me',for this time i changed the title.
I think,therefore i am a hamster. -
It seem to look allright, alltough maybe could try find an website plugin/addon to help determine what type of hardware the website visitor is using so can get one video optimized for the tv, one optimized for an phone and one optimized for the computer.. would mean you would end up with very many many videos but would make it an real cool vod site! i guess atleast unless you had some custom made zip solution to unpack it live on the server and live encoded it for each viewer.. would be an cool message "your video is beeing prepared" during the unpack+encoding..
Edit: And yeah an command for 1920x1080p resolution would be needed to the current command line i guess! Maybe adding "-cmp chroma" will be nice!Last edited by Swedaniel; 2nd Jan 2024 at 05:09.
-
Thank you for your answer, I cannot have 1 video in several versions due to costs. I would like to have a setting that gives good visual sensations, but the size is not too large.
Can you explain to me what the function does ?
-cmp chroma
Regards -
It is some sort of color thing, im not really an expert on it except for testing without it and with it and i liked the video with the "-cmp chroma" command in in it better then the one without it!
Edit: And you can use allso "-preset veryslow", seem to give better quality results allso! and yeah small file size help with the loading time if it is an website, have you concidered using the lipvpx + webm? atleast from over here my 1080p videos is more then half the size with vp8 (libvpx) + webm compared to the mp4's with h.264, and the quality seem to be the same, alltough they have been made with 2 different encoders! While the 1080p mp4 with h264 is 29mb im looking at an 8mb video with webm+vp8! it is quite the difference on loading times!Last edited by Swedaniel; 2nd Jan 2024 at 07:28.
-
You were right, it seems that the film is of better quality. Or maybe you know how to get rid of artifacts that are created, for example, when something moves quickly, e.g. near the actor's head
-
If it is just small things it seem to help with increasing the video bitrate, if it is some huge artifacts (black boxes) it dont seem to help very much with increasing the bitrate, but can help try look for an different encoder or an other version of the codec.. alltough try use an different video player first or try find an alternative solution to decoding the video for playback if using the same video player, for example an mp4+h264 video encoded with Avidemux give some bad results with DivX Player but the same video work fine right about anywhere ellse!
Edit: If you're using crf values, maybe can lower the -crf value to get better result, try maybe -crf 15, if it does not get better you can try decrease it some more, if it get better with -crf 15 you can try fine tune it some by increasing it to 16-18 to see if/when it come back to find an fine tuned and percise setting, some encoders can use crf values to 0, which is recalled as "lossless", atleast according to Q-Encoder, if using for example WinFF it is limited to 4 as lowest crf value.Last edited by Swedaniel; 3rd Jan 2024 at 23:35.
Similar Threads
-
Downloading an embedded video from a website
By frifix in forum Video Streaming DownloadingReplies: 17Last Post: 21st Mar 2023, 10:04 -
How can I download video from this website?
By rlaahqm in forum Video Streaming DownloadingReplies: 8Last Post: 30th Dec 2022, 21:50 -
Not able to download this video from one website
By VideoOn in forum Video Streaming DownloadingReplies: 12Last Post: 1st Jul 2022, 14:29 -
Cannot download encrypted m3u8 video, the video works on the website
By krestek in forum Video Streaming DownloadingReplies: 6Last Post: 21st Feb 2022, 14:27 -
How do I download video from this website? Please Help!
By AngelofDarkness in forum Video Streaming DownloadingReplies: 4Last Post: 15th Sep 2020, 17:07