VideoHelp Forum


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 1 to 12 of 12
Thread
  1. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    Any suggestions of a ffmpeg script to encode a lossless HuffYUV UHD file into a codec suitable for uploading into YouTube, So basically I just want to reduce the file size to stay below the YT file size limit, I would like to keep the 4:2:2 chroma sub and audio as PCM if possible, I've always uploaded lossless HD to YT since bandwidth is not an issue for me but 4k/UHD exceeds YT file size limit for uploading. I know YT compresses everything and makes it much worse, this is the exact reason I keep the file as lossless as possible before uploading so it gets butchered only once. A sample file is attached.
    Image Attached Files
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    What is youtubes bitrate limit ? THe only thing I see is a maximum 256 GB per file
    Quote Quote  
  3. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    My problem is not the bitrate, the file size is the limit.
    Quote Quote  
  4. Something like (in a drag/drop batch file):

    Code:
    ffmpeg -y -i %1 -pix_fmt yuv422p10le ^
        -c:v libx265 -preset slow -profile:v main422-10 -crf 15 -colorspace bt709 ^
        -c:a copy "%~n1.x265.main422-10.mkv"
    That delivered a 5.5 MiB file (from your 245MiB source).
    Quote Quote  
  5. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by dellsam34 View Post
    My problem is not the bitrate, the file size is the limit.
    Well it's related.
    a 30 minute file @ 1000kbs and a 15 minute file at 2000kbps would be about the same size...
    so then the run time AND bit rate become a factor.

    Your file is marked interlaced but it's progressive.
    Encoded it in vdub2 using ffv1 lossless compression @ 422 chroma, PCM audio and received a file at about 55MBs
    I
    Quote Quote  
  6. The AVI file isn't flagged interlaced. MediaInfo always assumes huffyuv in AVI is interlaced.
    Quote Quote  
  7. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo View Post
    The AVI file isn't flagged interlaced. MediaInfo always assumes huffyuv in AVI is interlaced.
    Good point.
    Quote Quote  
  8. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    I will try both ffmpeg and vdub variants and see which one looks better after an upload.
    Quote Quote  
  9. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    Originally Posted by jagabo View Post
    Something like (in a drag/drop batch file):

    Code:
    ffmpeg -y -i %1 -pix_fmt yuv422p10le ^
        -c:v libx265 -preset slow -profile:v main422-10 -crf 15 -colorspace bt709 ^
        -c:a copy "%~n1.x265.main422-10.mkv"
    That delivered a 5.5 MiB file (from your 245MiB source).
    How would I use this for a single file and where to insert the file name?
    Quote Quote  
  10. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    I think jagabo's approach is better. Will give you the option to upload much longer files and shorter upload times.
    I don't think it's necessary to keep it lossless, although on my PC, a bit on the slow side, the lossless encoding is quicker
    Quote Quote  
  11. Originally Posted by dellsam34 View Post
    Originally Posted by jagabo View Post
    Something like (in a drag/drop batch file):

    Code:
    ffmpeg -y -i %1 -pix_fmt yuv422p10le ^
        -c:v libx265 -preset slow -profile:v main422-10 -crf 15 -colorspace bt709 ^
        -c:a copy "%~n1.x265.main422-10.mkv"
    That delivered a 5.5 MiB file (from your 245MiB source).
    How would I use this for a single file and where to insert the file name?
    It's a drag-and-drop batch file. Put the code in a bat file (a plain text file with the extension .bat rather than .txt), then drag/drop a video file onto the bat file. Or put the bat file in your Send To folder. Then you can right click on a video file and select Send To -> (name of bat file) from the context menu.

    Of you can type:

    Code:
    ffmpeg -y -i "input.avi" -pix_fmt yuv422p10le -c:v libx265 -preset slow -profile:v main422-10 -crf 15 -colorspace bt709 -c:a copy "output.mkv"
    Last edited by jagabo; 26th Oct 2024 at 21:09.
    Quote Quote  
  12. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    For some reason that -y caracter at the beginning of the the second script did not process the file, so I removed it and it worked, Here is both lossless and encoded files uploaded to YouTube:

    Lossless: https://youtu.be/mGse2ZN94GQ
    Encoded: https://youtu.be/h9j1KNmxnzA
    Quote Quote  



Similar Threads

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