Difference between revisions of "Playing Videos and Music"

From EmuVR Wiki
Jump to: navigation, search
m
Line 74: Line 74:
 
* Open this new file with Notepad to add this line and save: <code><nowiki>http://127.0.0.1:8080</nowiki></code>
 
* Open this new file with Notepad to add this line and save: <code><nowiki>http://127.0.0.1:8080</nowiki></code>
 
* Scan with '''Game Scanner''' as usual, to add the new file to your inventory as a VHS.
 
* Scan with '''Game Scanner''' as usual, to add the new file to your inventory as a VHS.
* Create a new '''.bat''' file and edit it with Notepad to add the following command, using a Youtube video as example: <code><nowiki>"C:\Streamlink\streamlink.bat" --player-external-http --player-external-http-port 8080 --player-no-close https://www.youtube.com/watch?v=dQw4w9WgXcQ 480p
+
* Create a new '''.bat''' file and edit it with Notepad to add the following command, using a Youtube video as example:
 +
<code><nowiki>"C:\Streamlink\streamlink.bat" --player-external-http --player-external-http-port 8080 --player-no-close https://www.youtube.com/watch?v=dQw4w9WgXcQ 480p
 
</nowiki></code>
 
</nowiki></code>
 
* Replace the Youtube URL in the command above with any other supported source, like Twitch, as listed [https://streamlink.github.io/plugin_matrix.html here].
 
* Replace the Youtube URL in the command above with any other supported source, like Twitch, as listed [https://streamlink.github.io/plugin_matrix.html here].

Revision as of 06:38, 12 April 2021

TL;DR: To play video and music files, you'll just add them exactly like you add your games. When creating folders for your systems inside EmuVR\Games, just add a Video and/or a Music folder, copy your video and music files there, add them to Game Scanner, assign the Video or Music media types to them (or click Autofill), then click Scan. They'll show up in your inventory menu in EmuVR.

Read below for more detailed instructions.


Thanks to the FFMPEG core, EmuVR supports playback of video and music files. Additionally, you can also play compatible web streams, provided you have a valid accessible URL. This guide will offer some brief instruction on setting up these types of media.


Video/Music§ Link

Video and Music are a straightforward setup, as the steps are similar to setting up games.

  • Create a folder inside EmuVR\Games for your movies. This can be whatever you'd like, but it's recommended you pick something along the lines of Videos or Music.
  • Place your media files in this new directory. Compatible file formats: .mkv, .avi, .f4v, .f4f, .3gp, .ogm, .flv, .mp4, .mp3, .flac, .ogg, .m4a, .webm, .3g2, .mov, .wmv, .mpg, .mpeg, .vob, .asf, .divx, .m2p, .m2ts, .ps, .ts, .mxf, .wma, .wav
    More info in the libretro docs for the FFMPEG core, located here.
  • Run Game Scanner. If you named your folder similar to the name examples above, it should detect them when you click Autofill. If not, add the folder manually.
  • Ensure the media type is set to Video or Music depending on the media type.
  • Scan.
  • Launch EmuVR.

As long as you've used compatible media and setup Game Scanner properly, you should now have the option to spawn a new system and cartridges for your Videos and Music.

Important Notes

  • While we have proper VHS and VRC models, the DVD and Casette / CD media types (while functionally identical) will currently show up as generic console and cartridge models. These variations are placeholders for when more models are created in the future.
  • As it's the case with games, avoid adding more than 1000 video or music files, as it can cause instability, break Netplay or even crash EmuVR.
  • If you would like to play more than one file per VHS or cartridge, you can do so by manually merging your files(a topic not covered here, as it is somewhat advanced), or by reading the section below about Streaming for an alternative.


Streaming§ Link

In addition to using video files from your HDD, you can also directly stream some media formats without needing to download anything.

Streaming from the Web§ Link

The FFMPEG Core, by default, handles a wide variety of media including common stream formats. Getting those URLs into EmuVR is fairly straightforward, but does need a bit of manual work.

  • Create a new file in your Games/Video directory. You can name it whatever you would like, but it must end with the extension .str (be sure to enable file extensions or you might actually end with an invisible "filename.str.txt")
  • Open this new file with Notepad.
  • Paste the link to the stream you'd like to play. Note that this needs to be a direct link, not just the webpage the stream is on. A direct link will end with a file format, and will usually prompt you to download a file if you put it in your browser. (As an example, the link might look something like http://mycoolsite.com/stream/supercoolstream.m3u8 or https://sample-videos.com/video123/mp4/480/big_buck_bunny_480p_10mb.mp4.
  • Save the file.
  • Run Game Scanner. You should now have a cartridge in game named after the .str file you created.

Important Notes

If the console immediately turns off without playing, it usually means that either the link is not accessible or that it's not compatible with ffmpeg. Verify that you are using a direct link to the stream, and that it's accessible in a incognito/private browser window.

No, Youtube and Twitch don't work with this method.


Streaming from your PC (Experimental / Advanced)§ Link

Disclaimer: These are workarounds using third party software, which might stop working after any update or for any unpredictable reason.
Again, this is experimental, unreliable, unstable, unpredictable, and out of our control. It might work for some people and not for you.
This is not supported. Good luck.


These methods can help you stream from sources not accessible from a direct links, like Youtube or Twitch, or let you join multiple local videos into a single stream.

Click below to learn more.

[Streamlink Method]
 
[VLC Method]