I want to keep the same colors/contrast have the original video.
The video was recorded with Fraps software, how can i know the color space of the original video ?
I'll try the codes you've shared, thanks.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.
+ Reply to Thread
Results 61 to 82 of 82
Thread
-
-
Well as there is no very easy way to check color space (but usually only two are used i.e. 601 and 709) then i would suggest empirical method - just try both and verify result.
Quantization range i.e. your "contrast/brightness" - i would go for Avisynth with this avisynth script (however it can be used as input for ffmpeg so ffplay will work with this script fine:
Code:src="Crysis.avi_YT.mp4" V=FFVideoSource(src, cache = true, cachefile = src + ".ffindex", fpsnum = -1, fpsden = 1, threads = -1, seekmode = 1) #A=FFAudioSource(src, cache = true, cachefile = src + ".ffindex") #AudioDub(V,A).KillAudio() V ColorYUV (analyze=true)
-
Same problem, different colors and contrast.
I'll try this...
I've found some info, maybe helps...
https://trac.ffmpeg.org/ticket/1636
I usually render my videos with x264 VFW through Sony Vegas, can i use these ffmpeg there ?Last edited by Warcraft3; 28th Apr 2015 at 19:03.
-
Another question, with this code for example, what should i remove in order not to upscale the video (just for testing):
Code:@SET x264opts="deblock=2,3:bframes=2:bitrate=19000:vbv-maxrate=25000:vbv-bufsize=31250:colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=on:level=5.1:keyint=151:keyint_min=150:scenecut=-1:nal-hrd=vbr:force-cfr=1:qpmin=4:cabac=1:nr=500:threads=auto:no-psnr:no-ssim" @ffmpeg -threads %NUMBER_OF_PROCESSORS%*1.5 -i %1 -c:a copy -c:v libx264 -preset veryfast -tune fastdecode -profile:v high -x264opts %x264opts% -x264-params %x264opts% -vf "xbr=4,scale=iw/2:-2:sws_flags=spline:sws_dither=a_dither,colormatrix=bt601:bt709,format='pix_fmts=yuv420p'" -movflags faststart -y -f mp4 %1_YTaa.mp4 @pause
Encoded videos from FFMPEG and played with Media Player Classic:
Encoded using 407 color space: wrong color space, same contrast
Encoded using 709 color space: SAME color space and contrast as the original.
Same videos uploaded to Youtube:
Encoded using 407 color space: less contrast (less)
Encoded using 709 color space: less contrast (less)
When 407 and 709 are uploaded to Youtube they have the same (wrong) contrast.
The 407/709 colors on Youtube are the same, i can't see if they are the same as the original video because the image has less contrast but it seems they are the same.
So now i need to fix the contrast...Last edited by Warcraft3; 28th Apr 2015 at 19:47.
-
Should work now OK - un-rem "encode" line for YT file, rem line for "test", currently script is configured for "test".
Code:@SET x264opts="deblock=2,3:bframes=2:bitrate=19000:vbv-maxrate=25000:vbv-bufsize=31250:colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=off:level=5.1:keyint=151:keyint_min=150:scenecut=-1:nal-hrd=vbr:force-cfr=1:qpmin=4:cabac=1:nr=500:threads=auto:no-psnr:no-ssim" @rem this one is for encode @rem ffmpeg -threads %NUMBER_OF_PROCESSORS%*1.5 -i %1 -c:a copy -c:v libx264 -preset veryfast -tune fastdecode -profile:v high -x264opts %x264opts% -x264-params %x264opts% -vf "xbr=4,scale=3840:2160:sws_flags=spline:sws_dither=a_dither:in_range='jpeg/full/pc':out_range='mpeg/tv':in_color_matrix=bt601:out_color_matrix=bt709,format='pix_fmts=yuv420p'" -movflags faststart -y -f mp4 %1_YTaa.mp4 @rem this on is for test @ffmpeg -threads %NUMBER_OF_PROCESSORS%*1.5 -i %1 -c:a copy -c:v libx264 -preset veryfast -tune fastdecode -profile:v high -x264opts %x264opts% -x264-params %x264opts% -vf "scale=1920:1080:sws_flags=spline:sws_dither=a_dither:in_range='jpeg/full/pc':out_range='mpeg/tv':in_color_matrix=bt601:out_color_matrix=bt709,format='pix_fmts=yuv420p'" -movflags faststart -y -f mp4 %1_YTaa.mp4 @pause
-
-
I check the contrast from the downloaded videos.
This worked !
Same contrast and colours when it's upload to Youtube !
Code:@SET x264opts="deblock=2,3:bframes=2:bitrate=19000:vbv-maxrate=25000:vbv-bufsize=31250:colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=off:level=5.1:keyint=151:keyint_min=150:scenecut=-1:nal-hrd=vbr:force-cfr=1:qpmin=4:cabac=1:nr=500:threads=auto:no-psnr:no-ssim" @ffmpeg -threads %NUMBER_OF_PROCESSORS%*1.5 -i %1 -c:a copy -c:v libx264 -preset veryfast -tune fastdecode -profile:v high -x264opts %x264opts% -x264-params %x264opts% -vf "xbr=4,scale=iw/2:-2:sws_flags=spline:sws_dither=a_dither,colormatrix=bt601:bt709,format='pix_fmts=yuv420p'" -movflags faststart -y -f mp4 %1_YTaa.mp4 @pause
Last edited by Warcraft3; 30th Apr 2015 at 23:24.
-
Guys, i found a solution and made a tutorial / demonstration about this specific problem.
https://www.youtube.com/watch?v=djHKe-7WxXA -
Last edited by pandy; 15th Nov 2015 at 07:27.
-
@pandy
Fix audio in your movie - currently it is barely audible - use dynamic compression + removing background noise + adjust level.
If i understood - you selecting VP9 but uploading movie with H.264 codec - are you able explain why ?
About using the x264, well that because I am not an expert in the field and I just use what I've seen in tutorials. I use NVENC (Shadow Play) for recording or DxTory (Lagarith codec) but for rendering, I only know how to work with h264. If you can show me a tutorial about using VP9 for rendering, I would be very grateful. -
Noise gate? aggressive dynamic compression should help, you can reduce bandwidth (apply bandpass filter - somewhere around 200 - 5000-7000Hz)
Well - problem with YT is that YT will re-compress all uploaded video to H.64 and VP9 and up-loader is not able to control this at all.
As i understand you selecting VP9 as format to e played and because internal political decision YT will prefer VP9 over H.264 and higher bitrate is provided for VP9 content.
Problem with VP9 is almost lack of HW acceleration - at least VP9 HW acceleration is not as popular as HW acceleration for H264.
VP9 is quite simple and i am not expert either - if you are interested in VP9 then perhaps ffmpeg is good to start:
http://wiki.webmproject.org/ffmpeg/vp9-encoding-guide
https://trac.ffmpeg.org/wiki/Encode/VP9 -
@pandy
So lets say I encode a videp using VP9 in ffmpeg, will youtube offer it higher quality than if I was using h264 ? I noticed the lack of hardware acceleration in vp9 on YouTube, but still ... the big difference in quality makes me want to playback gameplay videos using VP9 over H264. -
YT will offer both video types (VP+H.264) for players - from my observation seem that YT offer VP9 with higher bitrate (to compete with H.264 and to promote VP9).
So there is small chance than VP9 can offer higher quality (higher than H.264).
This seem to be not related to upload format (so H.264 is similar to VP9) - problem we trying to solve is pumping (overloading codec) quantizer on I frames - seem that with fixed GOP size (5 seconds) YT is unable to properly encode difficult videos (such as computer graphics) where there is plenty high frequency content (additionally not sufficiently antialiased).
Dirty workaround is to repeat YT settings before uploading video and destroy video quality in a more controlled way...
Didn't analyzed YT video details but it looks like CBR type as such I frames will always suffer from quantizer pumping.
If you download video to your computer (i use 'complete youtube saver') you can compare H.264 and VP9. -
VP9 is better but not sure how video source was coded - looks like H.264 has IPB frames and VP9 version use only IP frames, side to this YT no longer is fixed GOP size - seem there is some scene change algorithm in use.
Not sure why YT use VP9 without B frames - this may explain lower quantizer fluctuations and as such less pumping effect...
Strangely bitrate fo H.264 is higher than for VP9.
Some additional details - seem that VP9 use non standard video speed and also scene detection is more sensitive - once again less pumping...Last edited by pandy; 15th Nov 2015 at 13:20.
-
Hi,
firstly, sorry my bad english...
Where I can use your codes? I downloaded x264vfw and paste your code to Extra command line on x264vfw. Then run VirtualDub and configure. I paste your code again. ERROR ...
-
-
-
I'm glad I came across this thread, I look forward to reading all the posts soon.
I've been having the exact same problem since I got a Hero 4 Black. I've been trying to get started recording motorcycle rides in 1080p60 Superview. I've seen many others use those same settings and their videos look great. So do mine in the beginning (probably because the bike isn't moving). But a little bit into the video I have the same issue where every 5 seconds the video gets intolerably blurry. It's pretty much stopped me for uploading any videos to youtube for over a year.
Hoping some of the suggestions posted here will work for me as well. -
Hi guys, I don't know if this thread is still active but hopefully this helps some people. I had exactly the same horrible pixelation issue. But i stumbled upon a fix. Simply render at 1440p.
-
Before raising any concerns please download both (h.264 and VP9) codec highest possible video version, never judge YT quality inside web browser, use only locally downloaded file with trusted player (MPC-HC with LAV filters is very good one).
-
You are referring to what is commonly referred to as "Video Definition", most famously associated with the term HD, meaning High Definition Video. You're describing a video with Low Definition. Also, the video has poor pixelation, as Craig 1991 mentioned. I suggest using the term "Definition" in your future Google Queries.
Similar Threads
-
Batch replace first 20 seconds of about 50 MKV-Videos
By Vlaves in forum EditingReplies: 2Last Post: 3rd Apr 2013, 05:52 -
Need help with YouTube videos
By alray1989 in forum Newbie / General discussionsReplies: 2Last Post: 4th Sep 2012, 14:13 -
My videos are up on youtube, how do they look?
By fuzzblaster in forum Newbie / General discussionsReplies: 6Last Post: 8th Dec 2010, 19:52 -
Pixelated videos - Is there a way to change the default renderer?
By klischee in forum Software PlayingReplies: 6Last Post: 29th Oct 2010, 17:21 -
Adding Two Seconds To Videos!
By prowesse in forum EditingReplies: 6Last Post: 28th Aug 2010, 17:13