VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Originally Posted by Warcraft3 View Post
    Originally Posted by jagabo View Post
    Originally Posted by Warcraft3 View Post
    When 407 and 709 are uploaded to Youtube they have the same (wrong) contrast.
    Download the videos from Youtube and play them locally. I think you'll find the contrast is fine.
    I check the contrast from the downloaded videos.

    Originally Posted by pandy View Post

    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.
    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
    Hi,

    firstly, sorry my bad english...

    Where I can use these codes? I downloaded x264vfw and paste your code to Extra command line on x264vfw. Then run VirtualDub and configure. I paste this code again. Result ERROR ...

    Click image for larger version

Name:	1.jpg
Views:	288
Size:	348.1 KB
ID:	35243

    Click image for larger version

Name:	2.jpg
Views:	277
Size:	392.6 KB
ID:	35241

    Click image for larger version

Name:	3.jpg
Views:	241
Size:	333.1 KB
ID:	35240

    Click image for larger version

Name:	4.jpg
Views:	235
Size:	324.8 KB
ID:	35239

    Click image for larger version

Name:	5.jpg
Views:	238
Size:	287.1 KB
ID:	35242
    Quote Quote  
  2. You cannot use ffmpeg commands in x264vfw. You can use VirtulDub's "alias" and "convert format" filters if you want to convert the color matrix.

    Like that for BT.709 to BT.601:
    Image
    [Attachment 35244 - Click to enlarge]


    Then e.g. "--colormatrix bt470bg" as an extra command for x264vfw. But I don't know what Youtube expects nor if it cares at all about color matrix metadata.
    Last edited by sneaker; 16th Jan 2016 at 10:03.
    Quote Quote  
  3. Originally Posted by sneaker View Post
    You cannot use ffmpeg commands in x264vfw. You can use VirtulDub's "alias" and "convert format" filters if you want to convert the color matrix.

    Like that for BT.709 to BT.601:
    Image
    [Attachment 35244 - Click to enlarge]


    Then e.g. "--colormatrix bt470bg" as an extra command for x264vfw. But I don't know what Youtube expects nor if it cares at all about color matrix metadata.
    Thanks for answer.

    But I want to use all parametres in this code ..

    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
    I search and this code for ffmpeg .. And I downloaded x64 static on http://ffmpeg.zeranoe.com/builds/

    But I read articles and watch videos but I cant find how can use this codes..

    I have to learn it. If you have time .. Could you explain by ScreenShots pls if you have time
    Quote Quote  
  4. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    This will work, I just tested it out. You'll have to edit the path to your ffmpeg 64-bit.

    Code:
    SET PATH="C:\FFMpeg\64-bit"
    @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"
    for %%a in ("*.mp4") do ffmpeg -i "%%a" -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 -c:a copy -f mp4 "%%a_YTaa.mp4"
    
    pause
    And here is the test encode:
    Image Attached Files
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  5. Originally Posted by racer-x View Post
    This will work, I just tested it out. You'll have to edit the path to your ffmpeg 64-bit.

    Code:
    SET PATH="C:\FFMpeg\64-bit"
    @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"
    for %%a in ("*.mp4") do ffmpeg -i "%%a" -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 -c:a copy -f mp4 "%%a_YTaa.mp4"
    
    pause
    And here is the test encode:
    I dont know how use ffmpeg ? I find this code and I download ffmeg but I dont know use ... Can you teach me , How can I use this code ..

    Edit: I found this video and l learned. https://www.youtube.com/watch?v=FHtQfmXv_Ek

    Thanks to all ..
    Last edited by yasinaslan16; 16th Jan 2016 at 14:42. Reason: I find how can use codes
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!