Results 1 to 4 of 4

Thread: NSV Streams via Mediatomb

  1. #1
    Join Date
    Jan 2009
    Location
    DC
    Beans
    362
    Distro
    Ubuntu 10.04 Lucid Lynx

    NSV Streams via Mediatomb

    I had this setup and working before with some help, so I know it is possible.

    I want to use Mediatomb to transcode a Shoutcast NSV stream on the fly so I can watch it on my Playstation. I know I can use both mencoder/mplayer and VLC for the transcoding.

    I am running Ubuntu server 9.04 with the latest Mediatomb from the repo.

    Thanks in advance.

  2. #2
    Join Date
    May 2005
    Location
    Reykjavík,Iceland
    Beans
    48
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: NSV Streams via Mediatomb

    I'm doing exactly that on my server ..
    but I'm using ffmpeg to transcode the sopcast stream ..

    I can post my setup details if you want.

  3. #3
    Join Date
    Jan 2009
    Location
    DC
    Beans
    362
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: NSV Streams via Mediatomb

    I would love that. I can work with what you post.

  4. #4
    Join Date
    May 2005
    Location
    Reykjavík,Iceland
    Beans
    48
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: NSV Streams via Mediatomb

    First of all .. make sure that ffmpeg and sp-sc (The sopcast cli binary) is installed.

    1) Download the sopcast-start and sopcast-stop scripts I've created from here http://konni.com/~konni/mediatomb/
    place the into /usr/local/bin and chmod +x

    2) Do the same with the mediatomb-video-generic script and place it into /usr/local/bin and chmod +x. You might need to adjust the script to where you have ffmpeg installed.
    You can adjust the "threads" parameter to 2 if you have a dual core machine (my server is quad core) or take this directive out if you have an old cpu.

    3) Edit the mediatomb config.xml, add "<transcode mimetype="video/sopcast-x-ms-wmv" using="video-generic"/>" into the "<mimetype-profile-mappings>" section, and add this
    Code:
     <profile name="video-generic" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <hide-original-resource>yes</hide-original-resource>
            <accept-ogg-theora>yes</accept-ogg-theora>
            <agent command="/usr/local/bin/mediatomb-video-generic" arguments="%in %out"/>
            <buffer size="24000000" chunk-size="1024000" fill-size="120000"/>
          </profile>
    into the transcoding profiles and save the file.

    4) Goto the mediatomb web ui, click on videos, click the plus sign to add new item, fill it out like this ..
    Code:
     
     External Link (URL)
     Title: Sopcast
     URL: http://127.0.0.1:9999
     Protocol: http-get
     Class: object.item.videoItem	
     Description: Sopcast
     Mimetype: video/sopcast-x-ms-wmv
    now you are all set ..
    to watch sopcast via mediatomb ..
    ssh to your box, type in "sopcast-start $url" where $url is the actual sopcast link ..
    then on your mediarenderer click the sopcast link and you should see the stream.

    When you are finished wathing .. ssh again into your box and type in "sopcast-stop" to kill all sopcast streams (sp-sc) on the machine

    Cheers,
    Blues-
    Last edited by Blues-; November 21st, 2010 at 03:37 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •