Streaming

Hi! After consulting this page concerning FFmpeg recording & streaming : https://github.com/Themaister/RetroArch/wiki/FFmpeg-recording-and-live-streaming. I wonder if it is possible to directly stream from my computer, as a stream server. This way a friend could directly connect to my server with VLC and retrieve my playing sesion. The command line could looks like this :

retroarch --record rtp://localhost:port --recordconfig recording.cfg

I believe the streaming support in RetroArch is confined to real-time applications. However, you can hook it into something like twitch.tv, which supports stream archiving for later viewing. You can also do video dumping and post that somewhere on your machine for your friend to stream.

For what you’re describing, I would recommend just making BSV recordings (tiny files that keep a log of your button presses for playback) and let you friend watch that way.

Thanks a lot, I’m gonna check this out. ++

I would like to have a real-time streaming. I tried the opposite : using retroarch as client and VLC as server. I think my goal is in sight. So I started a streaming server with VLC :

Open Network Steam -> rtp://@:1234

And use this command line

retroarch -L libretro-git-snes9x-next.dll "Donkey Kong Country (U) (V1.2) [!].smc" --record udp://127.0.0.1:1234?pkt_size=188?buffer_size=65535 --recordconfig rec.cfg 

With this rec.cfg file :

vcodec = libx264
acodec = libmp3lame
pix_fmt = yuv420p
scale_factor = 2
threads = 3
video_crf = 25
video_preset = superfast
video_tune = animation
audio_global_quality = 75
sample_rate = 44100
format = rtp

But I have this error:


[libx264 @ 090e5300] using SAR=178/143
[libx264 @ 090e5300] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 090e5300] profile High, level 3.1
[rtp @ 090ed300] Only one stream supported in the RTP muxer
RetroArch [ERROR] :: Failed to start FFmpeg recording.
 

It seems like FFmpeg cannot manage both audio and video. But I’m not really familiar with it.

So do you have any idea of what parameters do I have to use to get this right?

UP!

EDIT: not working yet :frowning:

No :frowning: ! Almost. I have a problem with rtp streaming…

UP! (Again)