How can use this code to encode video?I check the contrast from the downloaded videos.
This worked !
If your wish is to use a different color space for h.264 then x264 VUI need to be also modified - replace 709 by bt470bg i.e. colorprim=bt470bg:transfer=bt470bg:colormatrix=bt4 70bg , side to this you may wish to disable VUI signalization for full quantization range - currently this is: fullrange=on where it can be: fullrange=off for 16-235 luma sample values and 16 - 240 chroma sample values.
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
Closed Thread
Results 1 to 2 of 2
-
yasinaslan16, Do not post the same topic on several forums.
Please do not cross post, once is enough.
Continue in: https://forum.videohelp.com/threads/376428-How-can-encode-by-these-codes
Moderator redwudz
Similar Threads
-
looking for the video link inside the video_source code
By vhelp in forum Video Streaming DownloadingReplies: 12Last Post: 13th Sep 2015, 11:04 -
how can code me a custom video edit software ? please need help.
By MS-HD in forum ProgrammingReplies: 0Last Post: 2nd Aug 2015, 07:06 -
Video embed code
By hcs in forum Newbie / General discussionsReplies: 5Last Post: 30th Jun 2014, 09:36 -
muxing audio and video from hevc encode to final video container
By vhelp in forum AudioReplies: 24Last Post: 21st Nov 2013, 10:31 -
Is there any video card that can encode/convert video at lightning speed?
By johnharlin in forum Video ConversionReplies: 11Last Post: 17th Mar 2012, 15:27