720p in a mp4 container, H264 w/ max bitrate of 4Mbps, and AAC audio might be your best choice. You might want to compare Constant Rate Factor (CRF) versus Two-Pass ABR and 265 versus 264. Is the same as ffmpeg -y -i "1.mkv" -c:v libx265 -b:v 4M -pass 1 -an -f matroska NUL & ffmpeg -i "1.mkv" -c:v libx265 -b:v 4M -pass 2 -c:a aac -b:a 128k "output.mkv" Non-Windows users use /dev/null instead of NUL and \ instead of ^ ffmpeg -y -i "1.mkv" -c:v libx265 -b:v 4M -pass 1 -an -f matroska NUL &^įfmpeg -i "1.mkv" -c:v libx265 -b:v 4M -pass 2 -c:a aac -b:a 128k "output.mkv" Windows users use NUL instead of /dev/null and ^ instead of \ You might want to download, install and use Handbrake for Windows 64-bit and WinFF to learn what settings to use. How to choose ffmpeg codec and container for low bandwidth video server: I believe this is how I would do that: (ffmpeg -y -i input.mkv -c:v libx265 -b:v 4M -x265-params pass=1 -an -f mkv NUL) -AND (^ ffmpeg -i "Arrival (2016).mkv" -c:v libx265 -b:v 4M -x265-params pass=2 -c:a copy output.mkv) ![]() Can someone explain to me what is meant by output format and what I should be using to encode this from h264 to h265 in a mkv container? ffmpeg -y -i input.mkv -c:v libx265 -b:v 4M -x265-params pass=1 -an -f mkv /dev/null & \ ffmpeg -i "Arrival (2016).mkv" -c:v libx265 -b:v 4M -x265-params pass=2 -c:a copy output.mkvĪlso, in order to make this work on my windows PC, I am trying to learn how to edit some of the arguments to allow it to work in Powershell. I have found the proper ffmpeg code two do a two-pass encoding, but in all examples I have found, they use an output format of mp4 but state that "you need to specify an output format (with -f) that matches the output format you will use in pass 2." I assume my "output format" is mkv, but that does not allow my code to run. My upload speed is limited to 5 Mb/s.Īlthough I could easily do this with simple software, I want to learn more coding. ![]() I want to shrink the file size using h.265 compression and targeting a bitrate of 4 Mbits/s so that I can stream it while I am away from my home over my Plex server. ![]() Using ffmpeg to get info from the video, it is in h.264 in an mkv container. I recently backed up one of my Blu-ray movies and it is about 36 GB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |