Take and Scrape Your Own Videos
-
Hello @herb_fargus, I'm thinking about streaming my Retropie's screen to my Kubuntu desktop PC that's connected to my video projector, so that an audience of guests could watch the games. Can you kindly give me some hints how to set that up?
-
@clyde haven't the foggiest. Could try the twitch thing, or there is some experimental streaming thing that doesn't use a vnc server. Can't remember what it is, never tried it myself though I imagine there would be some latency
-
@herb_fargus Well, thanks anyway. I may look further into it when I have the time and leisure, since it isn't urgent at the moment. Latency wouldn't be a big issue as long as it's not more than a few seconds, since the audience wouldn't play but just watch. edit: On the players' side, there should be as little lag as possible, of course.
-
@clyde I started a post specific to the whole streaming thing and I think I came up\with a viable software solution, the uv4l raspidisp driver / webrtc server enables you to stream video with not a terrible latency that can be accessed from any web browser on the same network. Audio may be a bit of a trick to sort but I've tested it and it functions.
Further discussion on this thread if interested.
-
@herb_fargus Wow, that's great. I'll check it out.
-
Great post. Unfortunately, I'm having an issue with the recording function on the RetroPie while recording gameplay. When launching an NES game, the emulator is really slow.
Has anyone encountered this problem?
Thanks,
Valente
-
Just to follow up, I noticed a YouTube video of a user also complaining about lag when using ffmpeg. Even with my Raspberry Pi 3B+, the lag makes NES games unplayable.
I've tried using other core emulators and recording settings to no avail. Let me know if anyone has any positive experiences with RetroPie and recording.
Thanks,
-
More necroposting,
There have been some changes with RetroArch with the video recording where in theory we should be able to use a hotkey to start/stop recordings. The latest Raspbian also has ffmpeg with hardware decoding so I wonder if that could help with some of the performance issues people have been having. though video recording is encoding a video so that may not help if it only has hardware acceleration for decoding.
-
@herb_fargus I found that relying on sleep to properly time a 30 second video was getting mixed results so I modified your script a little to crop the video afterward for a more uniform recording length.
It requires that you install ffmpeg beforehand though.
#!/usr/bin/env bash system="$1" emulator="$2" rompath="$3" launch="$4" rom_file="${rompath##*/}" rom="${rom_file%.*}" mediadir="$HOME/RetroPie/roms/$system/images" tmpfile="/tmp/$rom-video.mkv" videofile="$mediadir/$rom-video.mkv" # Create videos folder in system's rom folder if [[ ! -d "$mediadir" ]]; then mkdir -p "$mediadir" dialog --msgbox "$mediadir created!" 20 60 >/dev/tty fi # Launch to record gameplay on RetroArch Systems. if [[ "$launch" =~ retroarch ]]; then eval "$launch" "--record \"$tmpfile\"" & sleep 120 killall retroarch # Crop video to 30 seconds eval "ffmpeg -y -t 30" "-i \"$tmpfile\"" "-acodec copy \"$videofile\"" & exit 1 else dialog --msgbox "Video recording is not supported for this system" 20 60 >/dev/tty fi
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.