Menu

Error in Configuration -- Transcoding

Help
Tim Schall
2008-02-07
2013-05-30
  • Tim Schall

    Tim Schall - 2008-02-07

    Hi All:

    I had transcoding running on Ubuntu 7.10 for several days.  All I am interested in right now is transcoding FLAC files to mp3 for streaming to a Linksys WMLS-11B.  Last night I updated to the most recent SVN and now I get an error:

    MediaTomb UPnP Server version 0.11.0-pre - http://mediatomb.cc/

    ===============================================================================
    Copyright 2005-2007 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
    MediaTomb is free software, covered by the GNU General Public License version 2

    2008-02-07 02:15:22    INFO: Loading configuration from: /home/grover/.mediatomb/config.xml
    2008-02-07 02:15:22    INFO: Checking configuration...
    2008-02-07 02:15:22    INFO: Setting filesystem import charset to UTF-8
    2008-02-07 02:15:22    INFO: Setting metadata import charset to UTF-8
    2008-02-07 02:15:22    INFO: Setting playlist charset to UTF-8
    2008-02-07 02:15:22   ERROR: error in configuration: transcoding profiles exist, but no mimetype to profile mappings specified

    And the relevant part of my config.xml file:

    <transcoding enabled="yes">
        <mappings>
            <mimetype-profile>
                <transcode mimetype="audio/x-flac" using="audio"/>
            </mimetype-profile>
        </mappings>
        <profiles>
            <profile name="audio" enabled="yes" type="external">
                <mimetype>audio/mpeg</mimetype>
                <accept-url>yes</accept-url>
                <first-resource>yes</first-resource>
                <agent command="/home/grover/mediatomb-transcode-audio" arguments="%in %out"/>
                <buffer size="10485760" chunk-size="131072" fill-size="5242880"/>
            </profile>
        </profiles>
    </transcoding>

    And the 'media-transcode-audio' file:

    #!/bin/sh
    exec ffmpeg -acodec mp3 -ab 80 -i "$1" -f mp3 - >"$2"

    Any thoughts?

    Tim

     
    • Jin

      Jin - 2008-02-07

      I changed the configuration layout a little, I updated the howto:
      http://www.deadlock.dhs.org/jin/mt-tr-howto.txt

      you can have a look there, basically the mappings part was reduced in depth.

      Kind regards,
      Jin

       
    • Jin

      Jin - 2008-02-07

      If you download the asx file you will see the following inside it:
      <ASX version = "3.0">
      <entry>
      <duration value="04:00:00.0" />
      <ref href="mms://wm-live.abacast.com/blazers-jammin95-32" />
      <ref href="http://wm-live.abacast.com/blazers-jammin95-32" />
      </entry>
      </ASX>

      if you go further and download the http variant you will get a file with this contents:
      [Reference]
      Ref1=http://wm-live.abacast.com/blazers-jammin95-32?MSWMExt=.asf
      Ref2=http://64.62.164.215:80/blazers-jammin95-32?MSWMExt=.asf

      The question is - does the PS3 support asf streams? We know that the PS3 does not support MP3 streams when streaming from shoutcast.

      We found a workaround that can be used together with transcoding, it's being tested by some users, drop by in our IRC channel if you would like to try it as well. The main idea is to transcode the audio to an MPEG2 video, with a fake video stream. Since the PS3 accepts MPEG2 video files without knowing the content length this workaround can be used to stream internet radio.

      Documentation on this will appear once we have tested and confirmed that it works well.

      Kind regards,
      Jin

       

Log in to post a comment.