好吧,我已经使用 Linux Ubuntu 12.04 一年多了,但我仍然对它一无所知。我唯一能做的就是使用互联网。我想开始将我在计算机上玩的游戏流式传输到 Twitch.tv。,但我不知道如何。所有下载仅适用于 Windows。我找到了一个网站,告诉你怎么做,但因为我对 linux 一无所知,所以我做不到。我还没有能够通过第一步。有人可以给我一个关于如何做到这一点的分步教程。请不要认为你是具体的,因为我相信它会帮助我。该网站的链接是这样的 - http://www.creativetux.com/2012/11/streaming-to-twitchtv-with-linux.html
您可能必须使用ffmpeg或avconv提供您的 Twitch.tv 密钥,可在此处找到:http :
//www.twitch.tv/broadcast/dashboard/streamkey
我个人使用,ffmpeg因为avconv出于某种原因,当从我的笔记本电脑流式传输时,只在流上显示我的鼠标。一个简短的例子是:
# stream key. You can set this manually.
STREAM_KEY=$(cat ~/.twitch_key)
# stream url. Note the formats for twitch.tv and justin.tv
# twitch:"rtmp://live.twitch.tv/app/$STREAM_KEY"
# justin:"rtmp://live.justin.tv/app/$STREAM_KEY"
STREAM_URL="rtmp://live.twitch.tv/app/$STREAM_KEY"
ffmpeg \
-f alsa -ac 2 -i "pulse" \
-f x11grab -s $(xwininfo -root | awk '/geometry/ {print $2}'i) -r "30" -i :0.0 \
-vcodec libx264 -s "640x360" -vpre "fast" \
-acodec libmp3lame -threads 6 -qscale 5 -b 64KB \
-f flv -ar 44100 "$STREAM_URL"
Run Code Online (Sandbox Code Playgroud)
有几个要点将整个过程捆绑到一个更容易理解的脚本中。我找不到我喜欢的,所以我根据上面的代码创建了自己的:https : //gist.github.com/oseparovic/2db2aaa737cd37e7c068
你可以在这篇文章中看到更多关于从 ubuntu 流式传输到 twitch.tv/justin.tv 的信息:http : //www.thegameengine.org/miscellaneous/streaming-twitch-tv-ubuntu/