Aug 25, 2010

Play octoshape stream on windows with VLC player

  1. Install windows octoshape plugin at http://www.octoshape.com/files/octosetup.exe
  2. Install VLC player at http://www.videolan.org/vlc/download-windows.html. Use the installer so later octoshape can pick it as the preferred player. (Updated 12/26/2010: A dirty way to make sure windows associate all media files to vlc player is to explicitly set in vlc's Tool -> Preferences -> Interface -> Set up associations, select all file types. Then in Octoshape Settings (right click on the Octoshape system tray icon and select Settings), select use "System player")
  3. Create a bat file named stream.bat.
  4. In Windows XP, type in the bat file. "C:\Documents and Settings\[user]\Application Data\Octoshape\Octoshape Streaming Services\OctoshapeClient.exe" -url:[octostream]
  5. In Windows Vista/7 "C:\Users\[user]\AppData\Roaming\Octoshape\Octoshape Streaming Services\OctoshapeClient.exe" -url:[octostream]
  6. Replace [user] with your current user name, [octostream] with the name of the octoshape stream.
  7. Double click on stream.bat. The VLC player should be started. Press the play button to play.

35 comments:

  1. Hi
    really nice
    thanks
    can u please tell me how to embedded on to website, or ply on vlc direct without making this file, I have many channels I put on my website for my family to watch without opening file just clicking link & watching it
    thanks

    ReplyDelete
  2. Have a look at http://wiki.videolan.org/HowTo_Integrate_VLC_plugin_in_your_webpage

    Just make sure when you install vlc on your machine, install the plugin for the corresponding web browser.

    ReplyDelete
  3. Hi Eddie,
    Its a kind of strange coincidence that a foreigner (me) living in Hong Kong stumbles upon the blog of a HongKonger living in a foreign country (you).

    I came to your blog while looking for information to configure Octoshape to play TV streams via VLC. Your solution is really helpful. But I am not sure if I can use this method to view password-protected TV channels?

    I have subscribed to a service that lets me watch live TV channels on the laptop (thats how I ended up installing Octoshape). But, to watch these channels,I have to log-in to their website and then select the channel I want to view. Then it starts streaming thro a player embedded in the browser. I am not sure which media player are they launching on my laptop to stream inside the browser window. So the issue is, I cannot view channels on VLC or otehr media players directly.

    Do you know if there is any way to overcome this problem? Any help would be greatly appreciated. And I promise to take you for a yumcha when you are in HK next time.

    ~Bob

    ReplyDelete
  4. You need to figure out the name of the octoshape stream first. Check the source code of the web page in which the media is played (with Internet Explorer, check the "developer tools" item). You may be able to locate the name somewhere in the site. (I'm not optimistic though since you mention the site is password protected.)

    Here is an example: http://programme.rthk.hk/channel/radio/player_popup.php?rid=173&player=hq&type=live
    Look for keywords like "octoshape"
    The respective stream name is "rthk.ch2".

    ReplyDelete
  5. Hi Eddie I am trying to record the following channel. Do you thing that it would be possible for me to use your method?

    Thanks
    Emil

    ReplyDelete
  6. here is the channel
    http://www.medeniyyettv.az/tvcanli.htm

    ReplyDelete
    Replies
    1. It appears that the link is broken...

      Delete
  7. Your are right the liuk has changed
    http://www.medeniyyettv.az/canli/medeniyyet-canli.htm

    ReplyDelete
    Replies
    1. Yes you can. Please replace [octostream] above with the actual octostream link you find from the source code of the web page. It is the string following "player_stream" in your case.

      Delete
  8. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Hi Eddie
      what about this channel
      http://www.aztv.az/canli/radio-canli.htm
      When I am trying to use the method that you have suggested I am getting this error
      No suitable decoder module:
      VLC does not support the audio or video format "undf". Unfortunately there is no way for you to fix this.

      The bat file is like this
      "C:\Documents and Settings\aee\Application Data\Octoshape\Octoshape Streaming Services\OctoshapeClient.exe" -url:"octoshape://streams.octoshape.net/aztv/live/radio/republica/250k";

      Delete
    2. That error message is due to the absence of video, which is normal for a radio stream. Don't worry in this case. Just ignore the error message.

      Delete
  9. I was able to play and record the program.
    Now I am trying to record an internet radio however I am getting the foolowing error:
    No suitable decoder module:
    "VLC does not support the audio or video format "undf". Unfortunately there is no way for you to fix this."

    The address for the site is
    http://www.aztv.az/canli/radio-canli.htm
    and the batfile that I have created to play the audio in VLC contains the following command:
    "C:\Documents and Settings\aee\Application Data\Octoshape\Octoshape Streaming Services\OctoshapeClient.exe" -url:"octoshape://streams.octoshape.net/aztv/live/radio/republica/250k";


    Do you know ahat the problem code be?

    Thanks in advance
    Emil

    ReplyDelete
  10. It only plays 1 min and 24 seconds then stops.
    the same also happens when I record however during the recording I don't get the error message that I described above.

    ReplyDelete
    Replies
    1. I can play it continuously for more than 3 minutes. Could you please try again?

      Delete
  11. I tried it again and it stops after 1 minute . Could it be because of my router. What version of VLC are you using?

    ReplyDelete
    Replies
    1. I use the latest version of vlc.
      Do you encounter the same problem when playing other streams with the same method, or playing the stream on the webpage?

      Delete
  12. Hi, Eddie, can you give exact and proven instruction to play the link (octoshape stream) below in VLC 2.0.2 for Windows Vista?

    http://www.maharishichannel.in/CHANNEL_3/index.html

    Thanx

    ReplyDelete
  13. Hi, Eddie. i tried it successfully but warning message show: "You don't have the permission to view this stream".

    i have got this stream membership and how could i do watching this stream?

    Thanks.

    ReplyDelete
    Replies
    1. The authentication may have to be done through the web page. In that case, you may not be able to view the stream with vlc directly. Sorry.

      Delete
  14. Can you help me? I want to listen and watch (it has video) this channel: octoshape://streams.octoshape.net/sion/live/channel1-hdm/global/autohd
    When I run my stream.bat file I get the next message: "You have no media player supporting the protocol of this stream"
    I have VLC installed and as default. It's the only media player installed in my PC. I have Windows 7.

    Regards, Federico.

    ReplyDelete
    Replies
    1. 1) Have you installed octoshape on your computer?
      2) Which media player is opened in your case?

      Delete
  15. do you know, does octoshapeclient.exe have other parameters except "-url" do i use my ticket to watch aunthenticated streams via vlc.

    ReplyDelete
  16. Today, I cannot get an octoshape connection using the proposed approach. It plays a few seconds and then hang. Even putting directly the octoshape stream url directly in the VLC player does not work anymore. It always worked before. Is this only on my computer or a change in the stream that I use? Anyone else has the same issue?

    ReplyDelete
    Replies
    1. Just to add that the same problem occurs with smplayer. It worked before both with VLC and smplayer, but now it fails with both in a very similar way.

      Delete
    2. Also, I can get the stream on my browser (Chrome) with no problem. The problem occurs only with the players VLC and smplayer and perhaps others.

      Delete
    3. OK, now it is not stable on Chrome as well. I suspect it is a change in the stream I use. If it was with the octoshape protocol, I would have heard of it.

      Delete
    4. If the stream stops on the official web page as well, it is likely that the stream itself has some issues. If the stream doesn't play well only with means other than from the official web page, the stream provider may have put up some policies that allow playing the stream to be played through the official web page only.

      Delete
  17. When i click on stream.bat. file, Octoshape warn me for "Could not find channel [octostream]" and VLC doesn't start. Is there any solution?

    ReplyDelete
  18. What octostream do you use? Also make sure that there is no spacing between url: and the octostream name.
    For example, if [octostream] is rthk.ch1, you should have url:rthh.ch1

    ReplyDelete
  19. Does it work? When I click on stream.bat file, Vlc doesn't start.

    ReplyDelete