使用 ffmpeg 程式,針對 mp4 在 Twitch、Youtube直播
重要備忘
Twitch
1
2C:\_DATA\ffmpeg-latest-win64-static\bin\ffmpeg.exe -re -stream_loop -1 -i R:\sample.mp4 -vcodec libx264 -acodec aac -f flv rtmp://live-dfw.twitch.tv/app/{stream_key}
C:\_DATA\ffmpeg-latest-win64-static\bin\ffmpeg.exe -re -stream_loop -1 -i R:\sample.mp4 -vcodec libx264 -acodec aac -f flv rtmp://live-dfw.twitch.tv/app/live_999999999_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYoutube
1
2C:\_DATA\ffmpeg-latest-win64-static\bin\ffmpeg.exe -re -stream_loop -1 -i R:\sample.mp4 -vcodec libx264 -acodec aac -f flv rtmp://a.rtmp.youtube.com/live2/{stream_key}
C:\_DATA\ffmpeg-latest-win64-static\bin\ffmpeg.exe -re -stream_loop -1 -i R:\sample.mp4 -vcodec libx264 -acodec aac -f flv rtmp://a.rtmp.youtube.com/live2/XXXX-XXXX-XXXX-XXXX-XXXX