FFmpeg convert videos without quality loss

Merge video + audio and convert to 8-bit H.264 with deinterlace

ffmpeg -i Svatba_Petr_1.m2v -i Svatba_Petr_1.wav -c:v libx264 -crf 18 -vf "bwdif,format=yuv420p" -c:a aac D:\output3.mp4
  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: H.264 for more info on -crf and -preset.

  • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.

  • bwdif - deinterlace.

10-bit/12-bit HEVC to 8-bit H.264

ffmpeg -i input -map 0 -c:v libx264 -crf 18 -vf format=yuv420p -c:a copy output.mkv
  • -map 0 will include all streams (default stream selection only selects 1 stream per type). See FFmpeg Wiki: Map.

  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: H.264 for more info on -crf and -preset.

  • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.

10-bit/12-bit HEVC to 10-bit H.264

ffmpeg -i input -map 0 -c:v libx264 -crf 18 -c:a copy output.mkv
  • -map 0 will include all streams (default stream selection only selects 1 stream per type). See FFmpeg Wiki: Map.

  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: H.264 for more info on -crf and -preset.

  • No need for the format filter in this case.

10-bit/12-bit HEVC to 8-bit HEVC

ffmpeg -i input -map 0 -c:v libx265 -crf 20 -vf format=yuv420p -c:a copy output.mkv
  • -map 0 will include all streams (default stream selection only selects 1 stream per type). See FFmpeg Wiki: Map.

  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: HEVC / H.265 for more info on -crf and -preset.

  • Uses the format filter to choose the yuv420p pixel format to create 8-bit output.

12-bit HEVC to 10-bit HEVC

ffmpeg -i input -map 0 -c:v libx265 -crf 20 -vf format=yuv420p10le -c:a copy output.mkv
  • -map 0 will include all streams (default stream selection only selects 1 stream per type). See FFmpeg Wiki: Map.

  • Adjust the -crf value to provide the desired level of quality. Add the -preset option if you want to adjust encoding speed. See FFmpeg Wiki: HEVC / H.265 for more info on -crf and -preset.

  • Uses the format filter to choose the yuv420p10le pixel format to create 10-bit output. Other 10-bit pixel formats supported by libx265 are yuv422p10le & yuv444p10le, but your player may not like these. See ffmpeg -h encoder=libx265 for additional supported pixel formats.

GoPro 4K MPEG4 to FullHD 50p MPEG4 cca 1600-2000 kbps

ffmpeg -i GX010183.MP4 -vf scale=1920:1080 -crf 35 -c:a copy GX010183_fullHD.MP4

Firefox Chrome unsafe port

Mozilla Firefox:

  • In the address bar, type about:config and press Enter to access the configuration page.
  • Use the search bar above to look for the following configuration parameter: network.security.ports.banned.override
    • If the parameter already exist: double-click it, then add a comma to the end of its value followed by the port number you need to allow (no spaces) and click OK. If you need to override multiple ports, separate each number with a comma (no spaces).
    • If the parameter does not exist: create it by right-clicking anywhere on the page, choosing New > String and typing (or copy-pasting) the above name, then type in the port number you need to allow (no spaces) and click OK. If you need to override multiple ports, separate each number with a comma (no spaces).

network.security.ports.banned.override    1-65535

 

Chrome:

Right click on your chrome icon that you use to launch chrome, and click properties.

To allow ports 81,84 and 87, change it to:

C:\Users\dougt\AppData\Local\Google\Chrome\Application\chrome.exe --explicitly-allowed-ports=81,84,87