我正在尝试使用Shaka打包程序以从144x256
到1080x1920
的不同比例打包HLS,以便使用hevc
进行自适应流式传输,它工作正常,但是是否需要更多参数以获得良好的视频质量和优化。
下面是我使用的命令:
ffmpeg -i original.mp4 -c:a aac -strict experimental -b:a 128k -c:v libx265 -vf scale=144:256 144_256_h265.mp4 -hide_banner
ffmpeg -i original.mp4 -c:a aac -strict experimental -b:a 128k -c:v libx265 -vf scale=360:640 360_640_h265.mp4 -hide_banner
ffmpeg -i original.mp4 -c:a aac -strict experimental -b:a 128k -c:v libx265 -vf scale=720:1280 720_1280_h265.mp4 -hide_banner
ffmpeg -i original.mp4 -c:a aac -strict experimental -b:a 128k -c:v libx265 -vf scale=1080:1920 1080_1920_h265.mp4 -hide_banner
HLS Packaging Using shaka packager.
packager-osx in=144_256_h265.mp4,stream=audio,output=hls/audio.mp4,playlist_name=audio.m3u8,hls_group_id=audio,hls_name=ENGLISH in=144_256_h265.mp4,stream=video,output=hls/h265_144p.mp4,playlist_name=h265_144p.m3u8,iframe_playlist_name=h265_144p_iframe.m3u8 in=360_640_h265.mp4,stream=video,output=hls/h265_360p.mp4,playlist_name=h265_360p.m3u8,iframe_playlist_name=h265_360p_iframe.m3u8 in=720_1280_h265.mp4,stream=video,output=hls/h265_720p.mp4,playlist_name=h265_720p.m3u8,iframe_playlist_name=h265_720p_iframe.m3u8 in=1080_1920_h265.mp4,stream=video,output=hls/h265_1080p.mp4,playlist_name=h265_1080p.m3u8,iframe_playlist_name=h265_1080p_iframe.m3u8 --hls_master_playlist_output hls/h265_master.m3u8