Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mediatomb - transcoding not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Thu Jul 28, 2011 4:06 pm    Post subject: mediatomb - transcoding not working Reply with quote

Hi,

I have installed mediatomb as per the wiki.

It seems to run fine, but none of my transcoding works. This includes .flv files, .ogg and .flac. I have enabled the debug option of mediatomb, and while it certainly is verbose, I don't see anything there that looks like error output.

My dlna device is a LG BD390 blu-ray player. It plays everything that does not require transcoding just fine. But it skips all flac and ogg files, and hangs on .flv and ogv files.

My config.xml file is pretty stock, I added a couple lines to handle .cr2 and .crw canon raw format files, and I enabled transcoding, but nothing more. (Yes, I did try it with just the stock config as well).

To keep it simple, I'm focusing on the .ogg files to start with. The config file defaults to converting these to pcm, which wasn't working. I don't know if the BD390 handles that or not -- so I changed it to mp3, which I know it can handle. I tested my ffmpeg line on the command line:
Code:
ffmpeg -i "Rush - 06 Something For Nothing.ogg" -acodec  libmp3lame -ab 192k -ar 44100 -ac 2 -f s16be -y sfn.mp3

I tested sfn.mp3 with mplayer, and it works.
I hopped onto the BD390 and pointed it to the file (through mediatomb), and it played just fine (of course there were no tags, but I don't care at this point).
So then I changed the profile command line from:
Code:
<agent command="ffmpeg" arguments="-i %in -acodec pcm_s16be -ab 192k -ar 44100 -ac 2 -f s16be -y %out"/>

to
Code:
ffmpeg -i %in -acodec  libmp3lame -ab 192k -ar 44100 -ac 2 -f s16be -y %out

And it still does not work. I have checked the logs all along the way, and I don't see anything significant in there. But here it is for good measure:
Code:
2011-07-28 11:44:31   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/media/object_id/96612/res_id/none/pr_name/audio2mp3/tr/1, Path: (null)
2011-07-28 11:44:31   DEBUG: [../src/file_request_handler.cc:345] open(): start
2011-07-28 11:44:31   DEBUG: [../src/file_request_handler.cc:360] open(): full url (filename): /content/media/object_id/96612/res_id/none/pr_name/audio2mp3/tr/1, parameters: object_id/96612/res_id/none/pr_name/audio2mp3/tr/1
2011-07-28 11:44:31   DEBUG: [../src/file_request_handler.cc:370] open(): Opening media file with object id 96612
2011-07-28 11:44:31   DEBUG: [../src/file_request_handler.cc:506] open(): path: /home/chris/Audio/Music/Metallica/ride the lightning/metallica - 05 trapped under ice.ogg
2011-07-28 11:44:31   DEBUG: [../src/file_request_handler.cc:519] open(): fetching resource id -1
2011-07-28 11:44:31   DEBUG: [../src/transcoding/transcode_ext_handler.cc:90] open(): start
2011-07-28 11:44:31   DEBUG: [../src/tools.cc:1056] normalizePath(): Normalizing path: /tmp//mt_transcode_U4YIZV
2011-07-28 11:44:31   DEBUG: [../src/transcoding/transcode_ext_handler.cc:322] open(): creating fifo: /tmp/mt_transcode_U4YIZV
2011-07-28 11:44:31    INFO: Arguments: -i %in -acodec libmp3lame -ab 192k -ar 44100 -ac 2 -f s16be -y %out
2011-07-28 11:44:31   DEBUG: [../src/process_executor.cc:77] ProcessExecutor(): Launched process ffmpeg, pid: 8424
2011-07-28 11:44:31   DEBUG: [../src/process_executor.cc:71] ProcessExecutor(): Launching process: ffmpeg
2011-07-28 11:44:31   DEBUG: [../src/io_handler_buffer_helper.cc:224] staticThreadProc(): starting buffer thread... thread: 376547072
2011-07-28 11:44:31   DEBUG: [../src/io_handler_buffer_helper.cc:227] staticThreadProc(): buffer thread shut down. thread: 376547072
2011-07-28 11:44:31   DEBUG: [../src/process_io_handler.cc:438] close(): terminating process, closing /tmp/mt_transcode_U4YIZV
2011-07-28 11:44:31   DEBUG: [../src/process.cc:151] kill_proc(): KILLING TERM PID: 8424
2011-07-28 11:44:32   DEBUG: [../src/process_io_handler.cc:438] close(): terminating process, closing /tmp/mt_transcode_U4YIZV


So, I don't think the problem is with the command line ( the <agent> line)... AFAIK. Once I get the .ogg files transcoding properly, I'm guessing I'll be able to figure the others out as well.

Anyone know what I'm doing wrong here?

Thanks.

G
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Tue Aug 02, 2011 3:30 pm    Post subject: Reply with quote

Truly... no one having this issue?

I have been fiddling with this quite a bit, and nothing seems to help. I did notice that the emerge of mediatomb said it likes ffmpeg to be compiled with -threads... I did that, but still didn't help.
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Tue Aug 02, 2011 8:00 pm    Post subject: Re: mediatomb - transcoding not working Reply with quote

grooveman wrote:
I hopped onto the BD390 and pointed it to the file (through mediatomb), and it played just fine (of course there were no tags, but I don't care at this point).
So then I changed the profile command line from...

Uh, I got that far and then thought: "he just said it worked and then he changed it". That is probably why no one is helping you. You got it working and then you broke it on purpose. Unless maybe you explained that part incorrectly?
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Tue Aug 02, 2011 10:07 pm    Post subject: Re: mediatomb - transcoding not working Reply with quote

Xamindar wrote:
grooveman wrote:
I hopped onto the BD390 and pointed it to the file (through mediatomb), and it played just fine (of course there were no tags, but I don't care at this point).
So then I changed the profile command line from...

Uh, I got that far and then thought: "he just said it worked and then he changed it". That is probably why no one is helping you. You got it working and then you broke it on purpose. Unless maybe you explained that part incorrectly?

You missed:
Quote:
I tested my ffmpeg line on the command line:

which precedes the quote you took above. The key words being "on the command line". Not in "in the config.xml file".

I was saying that the test mp3 file I made worked on the bd390, proving that the ffmpeg command with the options specified, produced usable output. I never stated that mediatomb was working.

Then, after having proved that the ffmpeg command created usable output, I put it in my config.xml. And it doesn't work. Mediatomb will not transcode the file with a known working ffmpeg command. I'm just showing my efforts to rule out ffmpeg as an issue, or my usage of it. Mediatomb never transcoded properly no matter what I did.
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
BT
Guru
Guru


Joined: 13 Jun 2004
Posts: 318

PostPosted: Thu Aug 04, 2011 12:37 am    Post subject: Reply with quote

grooveman,

I don't think you're doing anything wrong. The log clearly shows that transcoding is started but is then terminated without error. This usually indicates that your device doesn't like what it's receiving from MediaTomb. You could analyze the packets with Wireshark and compare them with the packets of a known working UPnP server. The problem then is to get any differences implemented by MediaTomb, which if you haven't noticed is just about dead as a project.

You could try adding the following to your transcoding profile. It disables chunked encoding which is on by default when transcoding. It's a long shot but it might trick your device into working.
Code:
<use-chunked-encoding>no</use-chunked-encoding>
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Thu Aug 04, 2011 12:41 am    Post subject: Reply with quote

I read once that some upnp devices do not like playing stuff that has no set length. Could that be your issue? Are you positive your device accepts "streaming" content over upnp?
Back to top
View user's profile Send private message
handsomejames
n00b
n00b


Joined: 25 Jul 2011
Posts: 1

PostPosted: Thu Aug 04, 2011 10:58 am    Post subject: mediatomb Reply with quote

I put it in my config.xml. And it doesn't work.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1552
Location: Adelaide/Australia

PostPosted: Thu Aug 04, 2011 11:19 am    Post subject: Reply with quote

My mediatomb config is as follows.
It seems to work, but I do not have any ogg format files.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
  <server>
    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>Lyalls Media</name>
    <udn>uuid:931b05c8-815a-41ec-8503-3e90005caf98</udn>
    <home>/var/lib/mediatomb</home>
    <webroot>/usr/share/mediatomb/web</webroot>
    <storage caching="yes">
      <sqlite3 enabled="no">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
      <mysql enabled="yes">
        <host>localhost</host>
        <database>mediatomb</database>
        <username>mediatomb</username>
        <password>mediatomb</password>
      </mysql>
    </storage>
    <protocolInfo extend="yes"/>
    <pc-directory upnp-hide="no"/>
    <extended-runtime-options><!-- 0.1.12 upwards -->
      <ffmpegthumbnailer enabled="yes">
        <thumbnail-size>160</thumbnail-size>
        <seek-percentage>10</seek-percentage>
        <filmstrip-overlay>no</filmstrip-overlay>
        <workaround-bugs>no</workaround-bugs>
        <image-quality>8</image-quality>
      </ffmpegthumbnailer>
      <mark-played-items enabled="yes" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
        <mark>
          <content>video</content>
        </mark>
      </mark-played-items>
      <lastfm enabled="no">
        <username>username</username>
        <password>password</password>
      </lastfm>
    </extended-runtime-options>
  </server>
  <import hidden-files="no">
    <scripting script-charset="UTF-8">
      <common-script>/usr/share/mediatomb/js/common.js</common-script>
      <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="builtin">
        <import-script>/usr/share/mediatomb/js/import.js</import-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="yes">
        <map from="mp3" to="audio/mpeg"/>
        <map from="m4a" to="audio/mp4"/>
        <map from="mp4" to="video/mp4"/>
        <map from="m4v" to="video/mp4"/>
        <map from="mov" to="video/x-quicktime"/>
        <map from="ogx" to="application/ogg"/>
        <map from="ogv" to="video/ogg"/>
        <map from="oga" to="audio/ogg"/>
        <map from="ogg" to="audio/ogg"/>
        <map from="ogm" to="video/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wav" to="audio/vnd.wave"/>
        <map from="WAV" to="audio/vnd.wave"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
        <map from="flv" to="video/x-flv"/>
        <map from="mkv" to="video/x-matroska"/>
        <map from="mka" to="audio/x-matroska"/>
        <map from="avi" to="video/divx"/>
        <map from="m2ts" to="video/avc"/>
        <map from="gif" to="image/gif"/>
        <map from="GIF" to="image/gif"/>
        <map from="jpg" to="image/jpg"/>
        <map from="JPG" to="image/jpg"/>
        <map from="cr2" to="image/raw"/>
        <map from="nef" to="image/raw"/>
        <map from="raw" to="image/raw"/>
        <map from="CR2" to="image/raw"/>
        <map from="NEF" to="image/raw"/>
        <map from="RAW" to="image/raw"/>
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/L16" as="pcm"/>
        <treat mimetype="audio/mp4" as="mp4"/>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="audio/ogg" as="oga"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
        <treat mimetype="audio/x-wav" as="pcm"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="image/x-canon-cr2" as="cr2"/>
        <treat mimetype="image/x-nikon-nef" as="nef"/>
        <treat mimetype="image/raw" as="cr2"/>
        <treat mimetype="video/divx" as="avi"/>
        <treat mimetype="video/mp4" as="mp4"/>
        <treat mimetype="video/ogg" as="ogv"/>
        <treat mimetype="video/quicktime" as="mov"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
        <treat mimetype="video/x-quicktime" as="mov"/>
      </mimetype-contenttype>
    </mappings>
    <online-content>
      <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="mp4" hd="no">
        <favorites user="mediatomb"/>
        <standardfeed feed="most_viewed" time-range="today"/>
        <playlists user="mediatomb"/>
        <uploads user="mediatomb"/>
        <standardfeed feed="recently_featured" time-range="today"/>
      </YouTube>
      <Weborama enabled="no" refresh="28800" update-at-start="no">
        <playlist name="Active" type="playlist" mood="active"/>
        <playlist name="Metal" type="playlist">
          <filter>
            <genres>metal</genres>
          </filter>
        </playlist>
      </Weborama>
      <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/>
    </online-content>
  </import>
  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="audio/ogg" using="audio2pcm"/>
      <transcode mimetype="video/ogg" using="video2jpeg"/>
      <transcode mimetype="application/ogg" using="video2jpeg"/>
      <transcode mimetype="audio/x-flac" using="audio2pcm"/>
      <transcode mimetype="image/raw" using="raw2jpeg"/>
      <transcode mimetype="video/divx" using="video2jpeg"/>
      <transcode mimetype="video/quicktime" using="video2jpeg"/>
      <transcode mimetype="video/x-flv" using="video2jpeg"/>
      <transcode mimetype="video/x-matroska" using="video2mpeg"/>
      <transcode mimetype="video/x-ms-asf" using="video2jpeg"/>
      <transcode mimetype="video/x-ms-wmf" using="video2jpeg"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="audio2pcm" enabled="yes" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>yes</accept-url>
        <first-resource>yes</first-resource>
        <hide-original-resource>yes</hide-original-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <sample-frequency>44100</sample-frequency>
        <audio-channels>2</audio-channels>
        <agent command="ffmpeg" arguments="-i %in -acodec pcm_s16be -ab 192k -ar 44100 -ac 2 -f s16be -y %out"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
<!--profile name="video2mpeg" 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-video2mpeg.sh" arguments="%in %out"/>
        <buffer size="10485760" chunk-size="262144" fill-size="524288"/>
      </profile-->
<!-- Required for 0.11.0
      <profile name="video2jpeg" enabled="yes" type="external">
        <mimetype>image/jpeg</mimetype>
        <accept-url>no</accept-url>
        <thumbnail>yes</thumbnail>
        <resolution>160x160</resolution>
        <agent command="ffmpegthumbnailer" arguments="-i %in -o %out -s 160"/>
        <buffer size="524288" chunk-size="512" fill-size="1024"/>
      </profile>
-->
      <profile name="video2mpeg" 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>
        <sample-frequency>48000</sample-frequency>
        <audio-channels>2</audio-channels>
        <agent command="ffmpeg" arguments="-i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out"/>
        <!--buffer size="10485760" chunk-size="262144" fill-size="524288"/ -->
        <buffer size="20971520" chunk-size="524288" fill-size="1048576"/>
      </profile>
      <profile name="raw2jpeg" enabled="yes" type="external">
        <mimetype>image/jpeg</mimetype>
        <accept-url>no</accept-url>
        <first-resource>yes</first-resource>
        <hide-original-resource>yes</hide-original-resource>
        <!--agent command="/usr/local/bin/mediatomb-raw2jpeg.sh" arguments="%in %out"/ -->
        <buffer size="524288" chunk-size="512" fill-size="1024"/>
      </profile>
    </profiles>
  </transcoding>
</config>

where /usr/local/bin/mediatomb-raw2jpeg.sh contains
Code:
#!/bin/bash

INPUT="$1"
OUTPUT="$2"
exec dcraw -e -c "${INPUT}" > "${OUTPUT}"

_________________
...Lyall
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Thu Aug 04, 2011 9:24 pm    Post subject: Reply with quote

Xamindar wrote:
I read once that some upnp devices do not like playing stuff that has no set length. Could that be your issue? Are you positive your device accepts "streaming" content over upnp?


Am I absolutely positive. No. I don't know how I would know this... I don't see anything on the device that says anything about that... how does one tell?

handsomejames wrote:
I put it in my config.xml. And it doesn't work.

Can you specify what it is exatly you put in config.xml? I'm not sure what "it" is here...


Lyallp:

I tried your config. There are some errors in it.... Maybe you were trying to take out some personal stuff you didn't want shown on the boards. It looks like you have a standard Gentoo configxml, with a couple minor modifications for raw2jpg and video2mpeg, so I took those, and fixed the problems (you commented something and forgot to close the comment and you didn't have an agent element for raw2jpg -- if memory serves, that was all).

Sadly, this didn't work any better than mine. In fact, I have to ask, are you certain yours works with regards to transcoding? If you don't use ogg files, what files do you use, .flv, ogm, .mov....? I curious as to whether your system is really successfully transcoding -- because mine works for files that do not require conversion. It is only for the ones that require conversion that there are problems.

You know, I'm not really attached to this program... if there is a better way of doing this, I'd love to hear it. Transcoding, however, is a must, as I store most of my media in open and raw formats. DLNA without transcoding is useless to me...

I appreciate your input everybody :)
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Fri Aug 05, 2011 12:21 am    Post subject: Reply with quote

I suggest you test it with another device to narrow the issue down. It may just be that your device does not support what you are trying to do. I use mediatomb quite successfully with my ps3s and the only time I had any issues, it was always because of something the ps3 does not support.

Regarding whether your device supports streaming, that is something you need to ask the manufacturer if it is not in the manual. Or do a little googling. But if it is just skipping those files it makes sense because I believe mediatomb just sends a 0 length if it doesn't know it.

Over a year ago when I was setting up mediatomb I received prompt help from the developer here:
http://sourceforge.net/projects/mediatomb/forums/forum/440751

Not sure if he is still actively working on it but worth a try.
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Fri Aug 05, 2011 1:15 am    Post subject: Reply with quote

Xamindar wrote:
I suggest you test it with another device to narrow the issue down. It may just be that your device does not support what you are trying to do. I use mediatomb quite successfully with my ps3s and the only time I had any issues, it was always because of something the ps3 does not support.


Whoops, yes, I forgot to mention that. I have tested it on my Droid phone, and I have the same issues, so I have some corroboration. It is not a lock of course, but it is suggestive that it is mediatomb, but I acknowledge it could just be two grouchy or incompatible devices.

I have actually been to the forums you mentioned and found two posts similar to my issue, both were very stale, and unresolved... so I didn't think I would fare any better there. But, I can check it out... I appreciate the link.

If I don't get something soon, however, I will move on... maybe to that minidlna or something... (I think that is what it was called).

Thanks again.
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1552
Location: Adelaide/Australia

PostPosted: Fri Aug 05, 2011 1:50 am    Post subject: Reply with quote

Well, if you do find a suitable replacement, I am interested as to how well it performs, etc.
_________________
...Lyall
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Fri Aug 05, 2011 3:34 pm    Post subject: Reply with quote

Here is my config stuff if you want to try it.

config.xml:
I obviously removed any usernames and passwords which you are going to want to re-enter.
I also removed the udn part which I am pretty sure mediatomb will recreate.
I turned off lastfm and took out my password. You can re-enable it if you want to use it.
Make sure the [common,playlist,import]-script lines match where they are with your installation.
Remove/modify the directory statements to point to your media files.
I disabled youtube support. You can enable it if you want but I'm not even sure it works anymore.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
  <server>
    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="admin" password="password"/>
      </accounts>
    </ui>
    <name>Chiroru</name>
    <udn></udn>
    <home>/var/lib/mediatomb</home>
    <webroot>/usr/share/mediatomb/web</webroot>
    <storage caching="yes">
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
      <mysql enabled="no">
        <host>localhost</host>
        <database>mediatomb</database>
        <username>mediatomb</username>
        <password>mediatomb</password>
      </mysql>
    </storage>
    <protocolInfo extend="yes"/>
    <pc-directory upnp-hide="no"/>
    <extended-runtime-options>
      <ffmpegthumbnailer enabled="yes">
        <thumbnail-size>160</thumbnail-size>
        <seek-percentage>10</seek-percentage>
        <filmstrip-overlay>yes</filmstrip-overlay>
        <workaround-bugs>no</workaround-bugs>
        <image-quality>8</image-quality>
      </ffmpegthumbnailer>
      <mark-played-items enabled="no" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
      </mark-played-items>
      <lastfm enabled="no">
        <username>username</username>
        <password>password</password>
      </lastfm>
    </extended-runtime-options>
  </server>
  <import hidden-files="no">
    <filesystem-charset>ISO-8859-1</filesystem-charset>
    <metadata-charset>ISO-8859-1</metadata-charset>
    <scripting script-charset="UTF-8">
      <common-script>/usr/share/mediatomb/js/common.js</common-script>
      <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="js">
        <import-script>/usr/share/mediatomb/js/import.js</import-script>
      </virtual-layout>
    </scripting>
  <autoscan use-inotify="auto">
    <directory location="/mnt/user/multimedia/Anime" mode="inotify" recursive="yes" hidden-files="no"/>
    <directory location="/mnt/user/multimedia/Movies" mode="inotify" recursive="yes" hidden-files="no"/>
    <directory location="/mnt/user/multimedia/Music" mode="timed" interval="3600" level="full" recursive="yes" hidden-files="no"/>
    <directory location="/mnt/user/multimedia/Music Videos" mode="inotify" recursive="yes" hidden-files="no"/>
    <directory location="/mnt/user/multimedia/Photos" mode="inotify" recursive="yes" hidden-files="no"/>
    <directory location="/mnt/user/multimedia/TVShows" mode="inotify" recursive="yes" hidden-files="no"/>
    <directory location="/mnt/user/multimedia/Pinball" mode="inotify" recursive="yes" hidden-files="no"/>

  </autoscan>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
<!--        <map from="flv" to="video/x-flv"/> -->
        <map from="m2ts" to="video/avc"/>
        <map from="mka" to="audio/x-matroska"/>
        <map from="mkv" to="video/x-matroska"/>
        <map from="avi" to="video/divx"/>
        <map from="m4a" to="audio/mp4"/>
        <map from="m4v" to="video/mp4"/>
        <map from="mpg" to="video/mpeg"/>
        <map from="mpeg" to="video/mpeg"/>
        <map from="ogm" to="video/x-ogm"/>
        <map from="mov" to="video/x-quicktime"/>
   <map from="ps3" to="video/ps3"/>
   <map from="ogm2" to="video/ogm2"/>
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
        <treat mimetype="audio/x-wav" as="pcm"/>
        <treat mimetype="audio/L16" as="pcm"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
        <treat mimetype="video/mp4" as="mp4"/>
        <treat mimetype="audio/mp4" as="mp4"/>
        <treat mimetype="video/divx" as="avi"/>
        <treat mimetype="video/quicktime" as="mov"/>
        <treat mimetype="video/x-quicktime" as="mov"/>
      </mimetype-contenttype>
    </mappings>
    <online-content>
      <YouTube enabled="no" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="exclude" format="mp4" hd="no">
        <favorites user="NationalGeographic"/>
        <playlists user="Playstation"/>
        <uploads user="username" amount="all"/>
        <favorites user="username"/>
        <standardfeed feed="most_viewed" time-range="today" amount="all"/>
        <standardfeed feed="top_rated" time-range="this_week" amount="all"/>
        <standardfeed feed="recently_featured" time-range="today" amount="all"/>
      </YouTube>
      <AppleTrailers enabled="no" refresh="43200" update-at-start="yes" resolution="640"/>
    </online-content>
  </import>
  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="application/ogg" using="audio-common"/>
      <transcode mimetype="audio/x-flac" using="audio-common"/>
 <!--     <transcode mimetype="video/x-flv" using="video-common"/> -->
      <transcode mimetype="video/x-matroska" using="transcode-matroska"/>
      <transcode mimetype="audio/x-shoutcast" using="audio-common"/>
      <transcode mimetype="video/divx" using="video-common-divx"/>
      <transcode mimetype="video/x-ogm" using="transcode-ogm"/>
      <transcode mimetype="video/x-ogm2" using="transcode-ogm2"/>
      <transcode mimetype="video/x-quicktime" using="video-common"/>
      <transcode mimetype="video/quicktime" using="video-common"/>
      <transcode mimetype="video/ps3" using="video-common"/>     
    </mimetype-profile-mappings>
    <profiles>
      <profile name="audio-common" enabled="yes" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>yes</accept-url>
        <first-resource>yes</first-resource>
        <hide-original-resource>yes</hide-original-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <sample-frequency>44100</sample-frequency>
        <audio-channels>2</audio-channels>
        <agent command="mediatomb-transcode.sh" arguments="-i %in -o %out --audio-common"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
      <profile name="video-common" 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>
        <sample-frequency>48000</sample-frequency>
        <audio-channels>2</audio-channels>
        <agent command="mediatomb-transcode.sh" arguments="-i %in -o %out --video-common"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
      <profile name="video-common-divx" enabled="yes" type="external">
        <avi-fourcc-list mode="process">
          <fourcc>DIV3</fourcc>
        </avi-fourcc-list>
        <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>
        <sample-frequency>48000</sample-frequency>
        <audio-channels>2</audio-channels>
        <agent command="mediatomb-transcode.sh" arguments="-i %in -o %out --video-common"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
      <profile name="transcode-matroska" 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>
        <sample-frequency>48000</sample-frequency>
        <audio-channels>2</audio-channels>
        <agent command="mediatomb-transcode.sh" arguments="-i %in -o %out --transcode-matroska"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
      <profile name="transcode-ogm" 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>
        <sample-frequency>48000</sample-frequency>
        <audio-channels>2</audio-channels>
        <agent command="mediatomb-transcode.sh" arguments="-i %in -o %out --transcode-ogm"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
      <profile name="transcode-ogm2" 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>
        <sample-frequency>48000</sample-frequency>
        <audio-channels>2</audio-channels>
        <agent command="mediatomb-transcode.sh" arguments="-i %in -o %out --transcode-ogm2"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
    </profiles>
  </transcoding>
</config>


mediatomb-transcode.sh:
It obviously requires you have ffmpeg installed.
You also need mencoder (part of mplayer package) installed if you have ogm or mkv files and need them transcoded with subtitles.

Code:
#!/bin/sh
 
# This script is used by MediaTomb for transcoding support.
 
# Basic function that will transcode any input file into the target type
# mpeg2 ffmpeg supports
video_common() {
    local input="$1"
    local output="$2"
    ffmpeg -i "$input" -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y "$output"
}
 
# Basic function that will transcode any input file into the PCM format
audio_common() {
    local input="$1"
    local output="$2"
    ffmpeg -i "$input" -acodec pcm_s16be -ab 192k -ar 44100 -ac 2 -f s16be -y "$output"
}
 
# Function to transcode matroska files to dvd compatible format
transcode_matroska() {
    local input="$1"
    local output="$2"
    local alang="$3"
    local slang="$4"
 
    # Default to english if languages are not set
    [ "$alang" ] || alang="jpn"
    [ "$slang" ] || slang="eng"
 
    # Use mencoder if available, else fall back to using ffmpeg.
    # Transcoding using ffmpeg will not include subtitles.
    if which mencoder >/dev/null 2>&1; then
        mencoder "$input" -oac lavc -ovc lavc -of mpeg -mc 0 \
            -mpegopts format=dvd:tsaf \
            -vf softskip,hqdn3d,harddup \
            -srate 48000 \
            -af lavcresample=48000:volnorm=2 \
            -ofps 25 \
            -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=5120:vstrict=0:keyint=15:vbitrate=5120:acodec=ac3:abitrate=192 \
            -alang "$alang" -slang "$slang" -font 'Bitstream Vera Sans' \
            -o "$output"
    else
        ffmpeg -alang "$alang" -slang "$slang" -i "$input" -vcodec mpeg2video -b 4096k -r 25 \
       -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y "$output"
    fi
}

# Function to transcode ogm files into mpeg2 for PS3 and add subtitles
transcode_ogm() {
    local input="$1"
    local output="$2"
    local alang="$3"
    local slang="$4"

    # Default to english subs and (hopefully) Japanese audio if languages are not specified on input.
    # ogm doesn't list audio languages so we have to set it with (-aid #). In all my ogm files
    # 0 is english and 1 is Japanese.

    [ "$alang" ] || alang="1"
    [ "$slang" ] || slang="English"


    # Use mencoder if available, else fall back to using ffmpeg.
    # Transcoding using ffmpeg will not include subtitles.
    if which mencoder >/dev/null 2>&1; then
        mencoder "$input" -oac lavc -ovc lavc -of mpeg -mc 0 \
            -mpegopts format=dvd:tsaf \
            -vf softskip,hqdn3d,harddup \
            -srate 48000 \
            -af lavcresample=48000:volnorm=2 \
            -ofps 25 \
            -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=5120:vstrict=0:keyint=15:vbitrate=5120:acodec=ac3:abitrate=192 \
            -aid "$alang" -slang "$slang" -font 'Bitstream Vera Sans' \
            -o "$output"
    else
        ffmpeg -alang "$alang" -slang "$slang" -i "$input" -vcodec mpeg2video -b 4096k -r 25 \
            -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y "$output"
    fi
}




 
# Our "main" function below.
 
USAGE="
This script is used by MediaTomb for transcoding support. It can also serve as
a script to transcode various files in a format suitable for streaming directly.
 
Synopsis:
 mediatomb-transcode [TRANSCODE FUNCTION OPTION] [GENERIC OPTIONS]
 
Generic Options:
 -h, --help                 Display this help message.
 -i, --input                Input file that is meant to be transcoded.
 -o, --output               Output file that will be read back by MediaTomb.
 --audio-lang               Specify ISO 639 language code to use for audio.
 --subtitle-lang            Specify ISO 639 language code to use for subtitles.
 
Transcode Function Options (one is required):
 --video-common             Perform generic video transcoding.
 --audio-common             Perform generic audio transcoding.
 --transcode-matroska       Used in transcoding matroska files.
 --transcode-ogm            Used in transcoding ogm/theora files.
"
 
while [ "$#" -gt "0" ]
do
    case "$1" in
        -i|--input)
            INPUT="$2"
            shift; shift;
            ;;
        -o|--output)
            OUTPUT="$2"
            shift; shift;
            ;;
        --video-common)
            USE_VIDEO_COMMON=1
            shift
            ;;
        --audio-common)
            USE_AUDIO_COMMON=1
            shift
            ;;
        --transcode-matroska)
            USE_TRANSCODE_MATROSKA=1
            shift
            ;;
        --transcode-ogm)
            USE_TRANSCODE_OGM=1
            shift
            ;;
        --audio-lang)
            ALANG="$2"
            shift; shift;
            ;;
        --subtitle-lang)
            SLANG="$2"
            shift; shift;
            ;;
        -h|--help|*)
            echo "${USAGE}"
            exit 1
            ;;
    esac
done
 
# Perform specified function
if [ $USE_VIDEO_COMMON ]; then
    video_common "$INPUT" "$OUTPUT"
elif [ $USE_AUDIO_COMMON ]; then
    audio_common "$INPUT" "$OUTPUT"
elif [ $USE_TRANSCODE_MATROSKA ]; then
    transcode_matroska "$INPUT" "$OUTPUT" "$ALANG" "$SLANG"
elif [ $USE_TRANSCODE_OGM ]; then
    transcode_ogm "$INPUT" "$OUTPUT" "$ALANG" "$SLANG"
else
    # Must specify one transcoding function
    echo "${USAGE}"
    exit 1
fi




config.xml was in /etc/mediatomb/config.xml
the mediatomb-transcode.sh was in /usr/local/bin but you can just put it in any path folder.


Let me know if you have any questions. There is some goofy stuff in there to work around anime subtitle transcoding issues I had with some of my files and also with some avi files the ps3 doesn't like. It shouldn't affect you but it just makes it a little more confusing (the ogm2 and ps3 mimetypes mainly).
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Thu Dec 15, 2011 3:19 pm    Post subject: Reply with quote

I have tried all suggestions posted, and I appreciate the help, but this is still not working. I cannot get anything to transcode. Since my BDR will read files I have manually transcoded (on the command line, and saved to disk), the problem has to be with MediaTomb. Maybe it just won't deliver the streaming output in a way that makes my Blu-ray player happy... I don't know. :cry: I really, really, really, really do not want to have to keep multiple copies of all my media just to accommodate this damn thing....

It always seems that the only people who have gotten this to work have playstation 3s... It makes me wonder if MT has been tested enough with other devices...
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
MasterCATZ
n00b
n00b


Joined: 13 Dec 2011
Posts: 6

PostPosted: Sat Jan 28, 2012 8:13 am    Post subject: Reply with quote

I am also having transcoding issues

I just have no proof that its even trying to transcode

it just seems to be passing the mkv directly

for now I just want every thing transcoded to mpeg2 ( audio can stay intact ) just so I can see if it will work


what I really want to eventually do its convert my 10 bit anime to 8 bit .. or something that can be hardware decoded on my ION

this is log of 1 of the 3 apparently fail safe scripts I have tried


script 1
mediatomb-transcode-video-ffmpeg
Code:
INPUT="$1"
OUTPUT="$2"
VIDEO_CODEC="mpeg2video"
VIDEO_BITRATE="4096k"
AUDIO_CODEC="mp2"
AUDIO_BITRATE="192k"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="dvd"
exec /usr/bin/ffmpeg -threads 2 -i "${INPUT}" -vcodec ${VIDEO_CODEC} -b ${VIDEO_BITRATE} \
-acodec ${AUDIO_CODEC} -ab ${AUDIO_BITRATE} -ar ${AUDIO_SAMPLERATE} -ac ${AUDIO_CHANNELS} \
-f ${FORMAT} - > "${OUTPUT}" #2>/dev/null


script2
mencoder
Code:

exec mencoder \
-oac lavc -ovc lavc \
-of mpeg \
-mpegopts format=dvd:tsaf \
-vf softskip,scale=720:576,hqdn3d,harddup \
-srate 48000 \
-af lavcresample=48000:volnorm=2 \
-ofps 25 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=5120:vstrict=0:keyint=15:vbitrate=5120:acodec=ac3:abitrate=192:autoaspect \
"$1" -o "$2"


mediatomb-multifunctional versions 1 + 2 and mixes trid

Code:
#!/bin/bash
#
# General all-covering MediaTomb transcoding script.
#
#############################################################################
# Edit the parameters below to suit your needs.
#############################################################################

# Subtitles imply transcoding; set to 1 to disable subtitle rendering.
# For divx this doesn't matter much but for mp4, mkv and DVD it does.
DISABLESUBS=0

# Change this to enable different DVD subtitle languages.
SUBS="jp,en"

# Change this line to set the average bitrate.
# Use something like 8000 for wired connections; lower to 2000 for wireless.
AVBIT=8000

# Change this line to set the maximum bitrate.
# Use something like 12000 for wired connections; lower to 5000 for wireless.
MVBIT=12000

# Change this line to set the MPEG audio bitrate in kbps. AC3 is fixed to 384.
AABIT=256

# Change this line to set your favourite subtitle font.
SFONT="/etc/mediatomb/DejaVuSans.ttf"

# Change this line to set the size of subtitles. 20-25 is okay.
SUBSIZE=20

# Enable downscaling of transcoded content to 720 pixels wide (DVD format)?
DOWNSCALE=1

# If downscaling is enabled, anything over this width (pixels) will be downscaled.
MAXSIZE=900

# Enable logging to file?
LOGGING=1

# If logging is enabled, log to which file?
LOGFILE="/var/log/mediatomb-transcode.log"


FILE=$1
VERSION="0.12"

MENCODER=$(which mencoder)
MEDIAINFO=$(which mediainfo)
FFMPEG=$(which ffmpeg)
LSDVD=$(which lsdvd)
XML=$(which xmlstarlet)

M_TR_M="-oac lavc -ovc lavc -of mpeg -lavcopts \
    abitrate=${AABIT}:vcodec=mpeg2video:keyint=1:vbitrate=${AVBIT}:\
    vrc_maxrate=${MVBIT}:vrc_buf_size=1835 \
    -mpegopts muxrate=12000 -af lavcresample=44100 "
M_TR_A="-oac lavc -ovc copy -of mpeg -lavcopts \
    abitrate=${AABIT} -af lavcresample=44100 "
M_RE_M="-oac copy -ovc copy -of mpeg -mpegopts format=dvd -noskip -mc 0 "
F_TR_M="-acodec ac3 -ab 384k -vcodec copy -vbsf h264_mp4toannexb -f mpegts -y "
F_RE_M="-acodec copy -vcodec copy -vbsf h264_mp4toannexb -f mpegts -y "
SUBOPTS="-slang ${SUBS} "
SRTOPTS="-font ${SFONT} -subfont-autoscale 0 \
    -subfont-text-scale ${SUBSIZE} -subpos 100 "
SIZEOPTS="-vf harddup,scale=720:-2 "
NOSIZEOPTS="-vf harddup "
S24FPS="23.976"
S24OPT="-ofps 24000/1001 "
S30FPS="29.970"
S30OPT="-ofps 30000/1001 "

VCODEC=""
ACODEC=""
VWIDTH=""
VFPS=""
QPEL=""
AVCPROF=""

OPTS=("")

declare -i MODE=0

#############################################################################
# Functions
#############################################################################

function log {
        if [ "${LOGGING}" == "1" ] ; then
                echo -e "$(date +'%Y/%m/%d %H:%m:%S') \t $1" >> ${LOGFILE}
        fi
}

function mediainfo {
        MIOUT=$(mktemp /tmp/tmp.mediainfo.XXXXXX)
        log "Logging mediainfo XML to ${MIOUT}."
        ${MEDIAINFO} --output=xml "${FILE}" > ${MIOUT}
        VCODEC=$(${XML} sel -t -m ".//track[@type='Video']" -v "Format" ${MIOUT} )
        ACODEC=$(${XML} sel -t -m ".//track[@type='Audio']" -v "Format" ${MIOUT} )
        VWIDTH=$(${XML} sel -t -m ".//track[@type='Video']" -v "Width" \
            ${MIOUT} | sed 's/ pixels//' )
        VFPS=$(${XML} sel -t -m ".//track[@type='Video']" -v "Frame_rate" \
            ${MIOUT} | sed 's/ fps//' )
        AVCPROF=$(${XML} sel -t -m ".//track[@type='Video']" -v "Format_profile" \
            ${MIOUT} | sed 's/[^0-9]//g' )
        QPEL=$(${XML} sel -t -m ".//track[@type='Video']" -v "Format_settings__QPel" \
            ${MIOUT} )
        log "Variables found: \
            ${VCODEC} | ${ACODEC} | ${VWIDTH} | ${VFPS} | ${AVCPROF} | ${QPEL} "
        rm -f ${MIOUT}
}

function tropts {
        if [ "${DOWNSCALE}" == "1" -a ${VWIDTH} -gt ${MAXSIZE} ] ; then
                log "Rescaling to 720 pixels wide."
                OPTS+=(${SIZEOPTS})
        else
                log "Rescaling disabled or file within limits."
                OPTS+=(${NOSIZEOPTS})
        fi
        if [ "${VFPS}" == "${S24FPS}" ] ; then
                log "Framerate adjusted for mencoder."
                OPTS+=(${S24OPT})
        else if [ "${VFPS}" == "${S30FPS}" ] ; then
                log "Framerate adjusted for mencoder."
                OPTS+=(${S30OPT})
        else
                log "Framerate acceptable for mencoder."
        fi
        fi
}

function getmode {
        # Fixed case: DVD ISO.
        if [ "${FEXT}" == "ISO" ] ; then
                CHAPTER=$(${LSDVD} "${FILE}" | grep Longest | sed 's/.* //')
                log "DVD iso image found: Longest chapter is ${CHAPTER}."
                MODE+=${DISABLESUBS}1000000
                return 0
        fi
        # Fixed case: subtitle found: transcode by default.
        if [ "${DISABLESUBS}" == "0" -a -e "$(echo $FILE | sed 's/...$/sub/')" ] ; then
                log "SRT subtitle found."
                SUB=$(echo $FILE | sed 's/...$/sub/')
                MODE+=100000
                return 0
        elif [ "${DISABLESUBS}" == "0" -a -e "$(echo $FILE | sed 's/...$/srt/')" ] ; then
                log "SUB subtitle found."
                SUB=$(echo $FILE | sed 's/...$/srt/')
                MODE+=100000
                return 0
        fi

        log "No subtitles found, or subtitle rendering disabled."
        mediainfo

        case ${VCODEC} in
        "AVC")
                if [ "${AVCPROF}" -gt "41" ] ; then
                        # Cannot handle h.264 4.1+
                        MODE+=10000     
                else         
                        # We can handle the rest                         
                        MODE+=1         
                fi ;;
        "MPEG-4 Visual")
                if [ "${QPEL}" == "No" ] ; then
                        # No QPEL: we could remux the video         
                        MODE+=100       
                else           
                        # QPEL: just transcode it all                       
                        MODE+=10000     
                fi ;;
        * )
                        # Transcode everything we don't know
                        MODE+=10000 ;; 
        esac

        case ${ACODEC} in
        "AC-3" | "MPEG Audio" )     
                        # These should be wellknown                   
                        MODE+=1 ;;     
        * )
                if [ "${MODE}" -lt "100" ] ; then   
                        # If video is AVC, transcode audio in m2ts   
                        MODE+=10       
                else     
                        # Otherwise in other container                       
                        MODE+=1000     
                fi ;;
        esac

}

function processmode {
        log "Mode is ${MODE}."
        if [ ! "${MODE}" -lt "10000000" ] ; then
                EXEC="${MENCODER} -dvd-device"
                OPTS+=(dvd://${CHAPTER} ${M_RE_M} -o )
        elif [ ! "${MODE}" -lt "1000000" ] ; then
                EXEC="${MENCODER} -dvd-device"
                OPTS+=(dvd://${CHAPTER} ${SUBOPTS} ${M_TR_M} -o )
        elif [ ! "${MODE}" -lt "100000" ] ; then
                EXEC=${MENCODER}
                tropts
                OPTS+=(${M_TR_M} -sub ${SUB} ${SRTOPTS} -o )
        elif [ ! "${MODE}" -lt "10000" ] ; then
                EXEC=${MENCODER}
                tropts
                OPTS+=(${M_TR_M} -o )
        elif [ ! "${MODE}" -lt "1000" ] ; then
                EXEC=${MENCODER}
                tropts
                OPTS+=(${M_TR_M} -o)
        elif [ ! "${MODE}" -lt "100" ] ; then
                EXEC=${MENCODER}
                OPTS+=(${M_TR_M} -o)
        elif [ ! "${MODE}" -lt "10" ] ; then
                EXEC="${FFMPEG} -i"
                OPTS+=(${F_TR_M})
        elif [ ! "${MODE}" -lt "1" ] ; then
                EXEC="${FFMPEG} -i"
                OPTS+=(${F_RE_M})
        else
                log "I'm sorry  I can't do mode=0."
        fi
}

#############################################################################
# Main method
#############################################################################

log "Starting MediaTomb Multifunctional Transcoder (version ${VERSION})."
FEXT=$(echo $FILE | sed 's/.*\.//' | tr [a-z] [A-Z])
log "${FEXT} file specified: \"${FILE}\""

getmode
processmode

log "Starting exec:"
log "${EXEC} \"${FILE}\" ${OPTS[@]} ${2} &>/dev/null"
exec ${EXEC} "${FILE}" ${OPTS[@]} "${2}" &>/dev/null




and the debug of my last attempt

when I used twonky i could see trancoding happening but it was doing every file .. not ones being acessed / wanted to stream ...
request url given

http://192.168.2.6:49153/content/media/object_id/603/res_id/0

Code:

MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/

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

2012-01-28 18:19:51    INFO: Loading configuration from: /root/.mediatomb/config.xml
2012-01-28 18:19:51    INFO: Checking configuration...
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/tmpdir using default value: /tmp/
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/servedir using default value:
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/storage/sqlite3/synchronous using default value: off
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/storage/sqlite3/on-error using default value: restore
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/storage/sqlite3/backup/attribute::enabled using default value: no
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/storage/sqlite3/backup/attribute::interval using default value: 600
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/ui/attribute::poll-when-idle using default value: no
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/ui/attribute::poll-interval using default value: 2
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/ui/items-per-page/attribute::default using default value: 25
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/mappings/extension-mimetype/attribute::case-sensitive using default value: no
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:1352] validate(): received US-ASCII from nl_langinfo
2012-01-28 18:19:51    INFO: Setting filesystem import charset to UTF-8
2012-01-28 18:19:51    INFO: Setting metadata import charset to ISO-8859-15
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/playlist-charset using default value: US-ASCII
2012-01-28 18:19:51    INFO: Setting playlist charset to US-ASCII
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/pc-directory/attribute::upnp-hide using default value: no
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/interface using default value:
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/ip using default value:
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/bookmark using default value: mediatomb.html
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/modelName using default value: MediaTomb
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/modelDescription using default value: Free UPnP AV MediaServer, GNU GPL
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/modelNumber using default value: 0.12.1
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/serialNumber using default value: 1
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/manufacturerURL using default value: http://mediatomb.cc/
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/presentationURL using default value:
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/presentationURL/attribute::append-to using default value: none
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/upnp-string-limit using default value: -1
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/scripting/playlist-script/attribute::create-link using default value: yes
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/port using default value: 0
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /server/alive using default value: 1800
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/autoscan/attribute::use-inotify using default value: auto
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /transcoding/attribute::fetch-buffer-size using default value: 262144
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /transcoding/attribute::fetch-buffer-fill-size using default value: 0
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/library-options/libexif/auxdata using default value:
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/library-options/id3/auxdata using default value:
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/magic-file using default value:
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/online-content/YouTube/attribute::enabled using default value: no
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/online-content/YouTube/attribute::racy-content using default value: exclude
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/online-content/YouTube/attribute::format using default value: mp4
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/online-content/YouTube/attribute::hd using default value: no
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/online-content/YouTube/attribute::refresh using default value: 28800
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/online-content/YouTube/attribute::purge-after using default value: 604800
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2358] getOption(): Config: option not found: /import/online-content/YouTube/attribute::update-at-start using default value: no
2012-01-28 18:19:51 WARNING: You enabled the YouTube feature, which allows you
                             to watch YouTube videos on your UPnP device!
                             Please check http://www.youtube.com/t/terms
                             By using this feature you may be violating YouTube
                             service terms and conditions!

2012-01-28 18:19:51    INFO: Configuration check succeeded.
2012-01-28 18:19:51   DEBUG: [../src/config_manager.cc:2260] validate(): Config file dump after validation:
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
  <server>
    <ui enabled="yes" show-tooltips="yes" poll-when-idle="no" poll-interval="2">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    <items-per-page default="25"><option>10</option><option>25</option><option>50</option><option>100</option></items-per-page></ui>
    <name>MediaTomb</name>
    <udn>uuid:ec153df6-6ed0-49b7-b94f-2c8f42b8464c</udn>
    <home>/root/.mediatomb</home>
    <webroot>/usr/local/share/mediatomb/web</webroot>
    <storage caching="yes">
      <sqlite3 enabled="yes">
        <database-file>/root/.mediatomb/mediatomb.db</database-file>
      <synchronous>off</synchronous><on-error>restore</on-error><backup enabled="no" interval="600"/></sqlite3>
      <mysql enabled="no">
        <host>localhost</host>
        <username>mediatomb</username>
        <database>mediatomb</database>
      </mysql>
    </storage>
    <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
    <!--
       Uncomment the lines below to get rid of jerky avi playback on the
       DSM320 or to enable subtitles support on the DSM units
    -->
    <!--
    <custom-http-headers>
      <add header="X-User-Agent: redsonic"/>
    </custom-http-headers>

    <manufacturerURL>redsonic.com</manufacturerURL>
    <modelNumber>105</modelNumber>
    -->
    <!-- Uncomment the line below if you have a Telegent TG100 -->
    <!--
       <upnp-string-limit>101</upnp-string-limit>
    -->
    <extended-runtime-options>
      <ffmpegthumbnailer enabled="yes">
        <thumbnail-size>128</thumbnail-size>
        <seek-percentage>5</seek-percentage>
        <filmstrip-overlay>yes</filmstrip-overlay>
        <workaround-bugs>no</workaround-bugs>
        <image-quality>8</image-quality>
      </ffmpegthumbnailer>
      <mark-played-items enabled="yes" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
        <mark>
          <content>video</content>
        </mark>
      </mark-played-items>
    </extended-runtime-options>
  <tmpdir>/tmp/</tmpdir><servedir></servedir><pc-directory upnp-hide="no"/><interface></interface><ip></ip><bookmark>mediatomb.html</bookmark><modelName>MediaTomb</modelName><modelDescription>Free UPnP AV MediaServer, GNU GPL</modelDescription><modelNumber>0.12.1</modelNumber><serialNumber>1</serialNumber><manufacturerURL>http://mediatomb.cc/</manufacturerURL><presentationURL append-to="none"></presentationURL><upnp-string-limit>-1</upnp-string-limit><port>0</port><alive>1800</alive></server>
  <import hidden-files="no">
    <filesystem-charset>UTF-8</filesystem-charset>
    <metadata-charset>ISO-8859-15</metadata-charset>
    <scripting script-charset="UTF-8">
      <common-script>/usr/local/share/mediatomb/js/common.js</common-script>
      <playlist-script create-link="yes">/usr/local/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="builtin">
        <import-script>/usr/local/share/mediatomb/js/import.js</import-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no" case-sensitive="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
        <map from="ts" to="video/mpeg"/>
    <map from="vob" to="video/mpeg"/>
    <map from="wav" to="audio/wav"/>
    <map from="mpg" to="video/mpeg"/>
    <map from="aac" to="audio/x-aac"/>
    <map from="m4a" to="audio/mp4"/>
    <map from="mkv" to="video/x-matroska"/>
    <map from="mov" to="video/x-quicktime"/>
    <map from="flv" to="video/x-flv"/>
    <map from="divx" to="video/x-divx"/>
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
        <treat mimetype="audio/x-wav" as="pcm"/>
        <treat mimetype="audio/L16" as="pcm"/>
      </mimetype-contenttype>
    </mappings>
  <playlist-charset>US-ASCII</playlist-charset><autoscan use-inotify="auto"/><library-options><libexif><auxdata></auxdata></libexif><id3><auxdata></auxdata></id3></library-options><magic-file></magic-file><online-content><YouTube enabled="no" racy-content="exclude" format="mp4" hd="no" refresh="28800" purge-after="604800" update-at-start="no"/></online-content></import>
  <transcoding enabled="yes" fetch-buffer-size="262144" fetch-buffer-fill-size="0">
    <mimetype-profile-mappings>
      <transcode mimetype="video/x-flv" using="vlcmpeg"/>
      <transcode mimetype="application/ogg" using="vlcmpeg"/>
      <transcode mimetype="application/ogg" using="oggflac2raw"/>
      <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
      <transcode mimetype="application/octet-stream" using="ffmpeg"/>
      <transcode mimetype="video/x-matroska" using="video-common"/>
      <!-- <transcode mimetype="audio/x-flac" using="audio-common"/> -->
      <transcode mimetype="video/x-divx" using="video-thumbnail"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="oggflac2raw" enabled="no" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>no</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <agent command="ogg123" arguments="-d raw -f %out %in"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
     </profile>
       <profile name="video-thumbnail" enabled="yes" type="external">
       <mimetype>image/jpeg</mimetype>
       <accept-url>yes</accept-url>
       <thumbnail>yes</thumbnail>
       <resolution>128x128</resolution>
       <agent command="ffmpegthumbnailer" arguments="-i %in -o %out -s 128"/>
       <buffer size="524288" chunk-size="512" fill-size="1024"/>
     </profile>     
<profile name="audio-common" enabled="no" type="external">
      <mimetype>audio/x-wav</mimetype>
      <accept-url>yes</accept-url>
      <first-resource>yes</first-resource>
      <accept-ogg-theora>no</accept-ogg-theora>
      <agent command="mediatomb-transcode-audio" arguments="%in %out"/>
      <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
     </profile>
      <profile name="vlcmpeg" enabled="no" type="external">
        <mimetype>video/mpeg</mimetype>
        <accept-url>yes</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>yes</accept-ogg-theora>
        <agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
   <profile name="ffmpeg" enabled="yes" type="external">
   <mimetype>video/mpeg</mimetype>
   <accept-url>no</accept-url>
   <first-resource>yes</first-resource>
   <agent command="mediatomb-transcode-video.sh" arguments="%in %out"/>
   <buffer size="1048576" chunk-size="131072" fill-size="524288"/>
      </profile>       
        <profile name="video-common" enabled="yes" type="external">
   <mimetype>video/mpeg</mimetype>
   <accept-url>yes</accept-url>
   <first-resource>yes</first-resource>
   <accept-ogg-theora>yes</accept-ogg-theora>
   <agent command="mediatomb-transcode-video-ffmpeg.sh" arguments="%in %out"/>
   <buffer size="10485760" chunk-size="262144" fill-size="524288"/>
      </profile>   
</profiles>
  </transcoding>
</config>
2012-01-28 18:19:51   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 0 -> 1
2012-01-28 18:19:51   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 1 -> 2
2012-01-28 18:19:51   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 2 -> 3
2012-01-28 18:19:51   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 3 -> 4
2012-01-28 18:19:51   DEBUG: [../src/server.cc:118] upnp_init(): start
2012-01-28 18:19:51   DEBUG: [../src/storage/sqlite3/sqlite3_storage.cc:190] init(): db_version: 3
2012-01-28 18:19:51   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 4 -> 5
2012-01-28 18:19:51    INFO: Initialized port: 49153
2012-01-28 18:19:51    INFO: Server bound to: 192.168.2.6
2012-01-28 18:19:51   DEBUG: [../src/server.cc:203] upnp_init(): webroot: /usr/local/share/mediatomb/web
2012-01-28 18:19:51   DEBUG: [../src/upnp_xml.cc:200] UpnpXML_RenderDeviceDescription(): start
2012-01-28 18:19:52   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 5 -> 6
2012-01-28 18:19:52   DEBUG: [../src/storage/sql_storage.cc:1815] updateAutoscanPersistentList(): setting persistent autoscans untouched - scanmode: timed;
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/update_manager.cc:291] staticThreadProc(): starting update thread... thread: 155228160
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/storage/sql_storage.cc:1826] updateAutoscanPersistentList(): updating/adding persistent autoscans (count: 0)
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 6 -> 7
2012-01-28 18:19:52   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 7 -> 8
2012-01-28 18:19:52    INFO: MediaTomb Web UI can be reached by following this link:
2012-01-28 18:19:52    INFO: http://192.168.2.6:49153/
2012-01-28 18:19:52   DEBUG: [../src/server.cc:311] upnp_init(): end
2012-01-28 18:19:52   DEBUG: [../src/timer.cc:67] triggerWait(): triggerWait. - 0 subscriber(s)
2012-01-28 18:19:52   DEBUG: [../src/timer.cc:98] triggerWait(): nothing to do, sleeping...
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:52   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:52   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:52   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:55   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:55   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:55   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:55   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:55   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:55   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:56   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:56   DEBUG: [../src/upnp_cds_subscriptions.cc:52] process_subscription_request(): start
2012-01-28 18:19:56   DEBUG: [../src/server.cc:362] upnp_callback(): start
2012-01-28 18:19:56   DEBUG: [../src/upnp_cds_subscriptions.cc:72] process_subscription_request(): end
2012-01-28 18:19:56   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:19:56   DEBUG: [../src/server.cc:423] upnp_callback(): returning 0
2012-01-28 18:21:11   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=auth&return_type=xml&sid=8bd19af01fb0a0bedfb64eae5fda36fd&action=get_config, Path: (null)
2012-01-28 18:21:11   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=auth&return_type=xml&sid=8bd19af01fb0a0bedfb64eae5fda36fd&action=get_config
2012-01-28 18:21:11   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 8 -> 9
2012-01-28 18:21:14   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=auth&return_type=xml&sid=8bd19af01fb0a0bedfb64eae5fda36fd&action=get_sid, Path: (null)
2012-01-28 18:21:14   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=auth&return_type=xml&sid=8bd19af01fb0a0bedfb64eae5fda36fd&action=get_sid
2012-01-28 18:21:14   DEBUG: [../src/web/auth.cc:141] process(): checking/getting sid...
2012-01-28 18:21:14   DEBUG: [../src/timer.h:79] addTimerSubscriber(): adding subscriber...
2012-01-28 18:21:14   DEBUG: [../src/timer.cc:67] triggerWait(): triggerWait. - 1 subscriber(s)
2012-01-28 18:21:14   DEBUG: [../src/timer.cc:77] triggerWait(): sleeping...
2012-01-28 18:21:15   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=get, Path: (null)
2012-01-28 18:21:15   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=get
2012-01-28 18:21:15   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=containers&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=0&select_it=0, Path: (null)
2012-01-28 18:21:15   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=containers&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=0&select_it=0
2012-01-28 18:21:15   DEBUG: [../src/web/containers.cc:50] process(): containers.cc: containers::process()
2012-01-28 18:21:15   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=items&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=0&start=0&count=25&updates=check, Path: (null)
2012-01-28 18:21:15   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=items&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=0&start=0&count=25&updates=check
2012-01-28 18:21:15   DEBUG: [../src/storage/sql_storage.cc:785] browse(): QUERY: SELECT "f"."id","f"."ref_id","f"."parent_id","f"."object_type","f"."upnp_class","f"."dc_title","f"."location","f"."location_hash","f"."metadata","f"."auxdata","f"."resources","f"."update_id","f"."mime_type","f"."flags","f"."track_number","f"."service_id","rf"."upnp_class","rf"."location","rf"."metadata","rf"."auxdata","rf"."resources","rf"."mime_type","rf"."service_id","as"."persistent" FROM "mt_cds_object" "f" LEFT JOIN "mt_cds_object" "rf" ON "f"."ref_id"="rf"."id" LEFT JOIN "mt_autoscan" "as" ON "as"."obj_id"="f"."id"  WHERE "f"."parent_id"=0 AND "f"."object_type"=1 ORDER BY "f"."dc_title"
2012-01-28 18:21:15   DEBUG: [../src/storage/sql_storage.cc:785] browse(): QUERY: SELECT "f"."id","f"."ref_id","f"."parent_id","f"."object_type","f"."upnp_class","f"."dc_title","f"."location","f"."location_hash","f"."metadata","f"."auxdata","f"."resources","f"."update_id","f"."mime_type","f"."flags","f"."track_number","f"."service_id","rf"."upnp_class","rf"."location","rf"."metadata","rf"."auxdata","rf"."resources","rf"."mime_type","rf"."service_id","as"."persistent" FROM "mt_cds_object" "f" LEFT JOIN "mt_cds_object" "rf" ON "f"."ref_id"="rf"."id" LEFT JOIN "mt_autoscan" "as" ON "as"."obj_id"="f"."id"  WHERE "f"."parent_id"=0 AND ("f"."object_type" & 2) = 2 ORDER BY "f"."dc_title" LIMIT 25 OFFSET 0
2012-01-28 18:21:16   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=containers&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=6&select_it=0, Path: (null)
2012-01-28 18:21:16   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=containers&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=6&select_it=0
2012-01-28 18:21:16   DEBUG: [../src/web/containers.cc:50] process(): containers.cc: containers::process()
2012-01-28 18:21:16   DEBUG: [../src/storage/sql_storage.cc:785] browse(): QUERY: SELECT "f"."id","f"."ref_id","f"."parent_id","f"."object_type","f"."upnp_class","f"."dc_title","f"."location","f"."location_hash","f"."metadata","f"."auxdata","f"."resources","f"."update_id","f"."mime_type","f"."flags","f"."track_number","f"."service_id","rf"."upnp_class","rf"."location","rf"."metadata","rf"."auxdata","rf"."resources","rf"."mime_type","rf"."service_id","as"."persistent" FROM "mt_cds_object" "f" LEFT JOIN "mt_cds_object" "rf" ON "f"."ref_id"="rf"."id" LEFT JOIN "mt_autoscan" "as" ON "as"."obj_id"="f"."id"  WHERE "f"."parent_id"=6 AND "f"."object_type"=1 ORDER BY "f"."dc_title"
2012-01-28 18:21:16   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=items&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=7&start=0&count=25&updates=check, Path: (null)
2012-01-28 18:21:16   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=items&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=7&start=0&count=25&updates=check
2012-01-28 18:21:16   DEBUG: [../src/storage/sql_storage.cc:785] browse(): QUERY: SELECT "f"."id","f"."ref_id","f"."parent_id","f"."object_type","f"."upnp_class","f"."dc_title","f"."location","f"."location_hash","f"."metadata","f"."auxdata","f"."resources","f"."update_id","f"."mime_type","f"."flags","f"."track_number","f"."service_id","rf"."upnp_class","rf"."location","rf"."metadata","rf"."auxdata","rf"."resources","rf"."mime_type","rf"."service_id","as"."persistent" FROM "mt_cds_object" "f" LEFT JOIN "mt_cds_object" "rf" ON "f"."ref_id"="rf"."id" LEFT JOIN "mt_autoscan" "as" ON "as"."obj_id"="f"."id"  WHERE "f"."parent_id"=7 AND ("f"."object_type" & 2) = 2 ORDER BY "f"."dc_title" LIMIT 25 OFFSET 0
2012-01-28 18:21:22   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=check, Path: (null)
2012-01-28 18:21:22   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=check
2012-01-28 18:21:32   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=check, Path: (null)
2012-01-28 18:21:32   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=check
2012-01-28 18:21:33   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=items&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=7&start=50&count=25&updates=check, Path: (null)
2012-01-28 18:21:33   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=items&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&parent_id=7&start=50&count=25&updates=check
2012-01-28 18:21:33   DEBUG: [../src/storage/sql_storage.cc:785] browse(): QUERY: SELECT "f"."id","f"."ref_id","f"."parent_id","f"."object_type","f"."upnp_class","f"."dc_title","f"."location","f"."location_hash","f"."metadata","f"."auxdata","f"."resources","f"."update_id","f"."mime_type","f"."flags","f"."track_number","f"."service_id","rf"."upnp_class","rf"."location","rf"."metadata","rf"."auxdata","rf"."resources","rf"."mime_type","rf"."service_id","as"."persistent" FROM "mt_cds_object" "f" LEFT JOIN "mt_cds_object" "rf" ON "f"."ref_id"="rf"."id" LEFT JOIN "mt_autoscan" "as" ON "as"."obj_id"="f"."id"  WHERE "f"."parent_id"=7 AND ("f"."object_type" & 2) = 2 ORDER BY "f"."dc_title" LIMIT 25 OFFSET 50
2012-01-28 18:21:48   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=check, Path: (null)
2012-01-28 18:21:48   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=check
2012-01-28 18:21:49   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/media/object_id/603/res_id/0, Path: (null)
2012-01-28 18:21:49   DEBUG: [../src/file_request_handler.cc:345] open(): start
2012-01-28 18:21:49   DEBUG: [../src/file_request_handler.cc:360] open(): full url (filename): /content/media/object_id/603/res_id/0, parameters: object_id/603/res_id/0
2012-01-28 18:21:49   DEBUG: [../src/file_request_handler.cc:370] open(): Opening media file with object id 603
2012-01-28 18:21:49   DEBUG: [../src/file_request_handler.cc:506] open(): path: /files/complete/New Folder/[HorribleSubs] Fate Zero - 10 [720p].mkv
2012-01-28 18:21:49   DEBUG: [../src/file_request_handler.cc:519] open(): fetching resource id 0
2012-01-28 18:21:49   DEBUG: [../src/file_request_handler.cc:671] open(): Adding content disposition header: Content-Disposition: attachment; filename="[HorribleSubs] Fate Zero - 10 [720p].mkv"
2012-01-28 18:21:49   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 9 -> 10
2012-01-28 18:21:49   DEBUG: [../src/play_hook.cc:68] trigger(): Marking object [HorribleSubs] Fate Zero - 10 [720p].mkv as played
2012-01-28 18:21:49   DEBUG: [../src/storage/sql_storage.cc:568] updateObject(): upd_query: UPDATE "mt_cds_object" SET "object_type"=2,"ref_id"=602,"upnp_class"=NULL,"dc_title"='[HorribleSubs] Fate Zero - 10 [720p].mkv',"metadata"=NULL,"auxdata"=NULL,"resources"=NULL,"flags"=513,"location"=NULL,"location_hash"=NULL,"track_number"=NULL,"service_id"=NULL,"mime_type"='video/transcode',"parent_id"=7 WHERE id = 603
2012-01-28 18:22:13   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=check, Path: (null)
2012-01-28 18:22:13   DEBUG: [../src/web_request_handler.cc:247] open(): request: /content/interface?req_type=void&return_type=xml&sid=bfdcc0b8a5843c9d51d54d62398552ab&updates=check
2012-01-28 18:22:17   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/media/object_id/603/res_id/0, Path: (null)
2012-01-28 18:22:17   DEBUG: [../src/file_request_handler.cc:345] open(): start
2012-01-28 18:22:17   DEBUG: [../src/file_request_handler.cc:360] open(): full url (filename): /content/media/object_id/603/res_id/0, parameters: object_id/603/res_id/0
2012-01-28 18:22:17   DEBUG: [../src/file_request_handler.cc:370] open(): Opening media file with object id 603
2012-01-28 18:22:17   DEBUG: [../src/file_request_handler.cc:506] open(): path: /[HorribleSubs] Fate Zero - 10 [720p].mkv
2012-01-28 18:22:17   DEBUG: [../src/file_request_handler.cc:519] open(): fetching resource id 0
2012-01-28 18:22:17   DEBUG: [../src/file_request_handler.cc:671] open(): Adding content disposition header: Content-Disposition: attachment; filename="[HorribleSubs] Fate Zero - 10 [720p].mkv"
2012-01-28 18:22:24   DEBUG: [../src/web_callbacks.cc:72] create_request_handler(): Filename: /content/media/object_id/603/res_id/0, Path: (null)
2012-01-28 18:22:24   DEBUG: [../src/file_request_handler.cc:345] open(): start
2012-01-28 18:22:24   DEBUG: [../src/file_request_handler.cc:360] open(): full url (filename): /content/media/object_id/603/res_id/0, parameters: object_id/603/res_id/0
2012-01-28 18:22:24   DEBUG: [../src/file_request_handler.cc:370] open(): Opening media file with object id 603
2012-01-28 18:22:24   DEBUG: [../src/file_request_handler.cc:506] open(): path: /[HorribleSubs] Fate Zero - 10 [720p].mkv
2012-01-28 18:22:24   DEBUG: [../src/file_request_handler.cc:519] open(): fetching resource id 0
2012-01-28 18:22:24   DEBUG: [../src/file_request_handler.cc:671] open(): Adding content disposition header: Content-Disposition: attachment; filename="[HorribleSubs] Fate Zero - 10 [720p].mkv"
^C2012-01-28 18:23:08    INFO: MediaTomb shutting down. Please wait...


Last edited by MasterCATZ on Sat Jan 28, 2012 9:36 am; edited 1 time in total
Back to top
View user's profile Send private message
MasterCATZ
n00b
n00b


Joined: 13 Dec 2011
Posts: 6

PostPosted: Sat Jan 28, 2012 8:40 am    Post subject: Reply with quote

Duplicate post

Last edited by MasterCATZ on Sat Jan 28, 2012 9:47 am; edited 1 time in total
Back to top
View user's profile Send private message
MasterCATZ
n00b
n00b


Joined: 13 Dec 2011
Posts: 6

PostPosted: Sat Jan 28, 2012 8:41 am    Post subject: Reply with quote

Duplicate post
Back to top
View user's profile Send private message
chaddawikz
n00b
n00b


Joined: 06 Jun 2012
Posts: 2

PostPosted: Wed Jun 06, 2012 10:26 am    Post subject: Had this problem before somewhere.... Reply with quote

Had problems getting Mediatomb to start transcoding anything (for WP7) until i added "/pr_name/profile" to the end of the url (given when clicking a link in web UI) - where "profile" is the transcoding profile name. Came across this in a post about the different urls in version 0.11 and 0.12.
Back to top
View user's profile Send private message
chaddawikz
n00b
n00b


Joined: 06 Jun 2012
Posts: 2

PostPosted: Wed Jun 06, 2012 10:34 am    Post subject: .... Reply with quote

Oh yeh, if it has "/res_id/0" at the end (originally), change to "/res_id/none".
Back to top
View user's profile Send private message
razze
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 161
Location: Espoo, Finland

PostPosted: Mon Sep 03, 2012 7:22 pm    Post subject: Reply with quote

Any news on the LG BD390 issue? I can stream (with transcoding) to my Android phone using an app called MediaHome, and I can stream content that the LG can handle natively without transcoding, and it works fine. But I cannot stream transcoded content - if I interpret the log file correctly the LG keeps requesting the file over and over again but will not start playing.

Partial log:
Code:
2012-09-03 22:08:03    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:06    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:09    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:13    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:16    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:19    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:21    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:24    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:27    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:30    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:34    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:37    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:40    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:43    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:45    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:48    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out
2012-09-03 22:08:51    INFO: Arguments: -i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out


Has anybody gotten the BD390 to play transcoded material? Any help would be appreciated...
_________________
--------------------------
Linux User #393524

AMD Athlon 64 X2 3800+ @2,3 GHz, Asus A8V, VIA K8T800PRO, Nvidia GeForce 7600GS, 2 Gb Dual Channel DDR RAM, 2x Samsung SP120 200Gb, 2x WD 320Gb, Plextor PX-716A, linux-2.6.31-gentoo-r10
Back to top
View user's profile Send private message
grooveman
Veteran
Veteran


Joined: 24 Feb 2003
Posts: 1217

PostPosted: Mon Sep 03, 2012 7:39 pm    Post subject: Reply with quote

No, sorry. I tried everything, and eventually gave up. I wound up writing a script that would make readable copies of my ogg files -- just like I said I didn't want to do.... so now I have every song I own in wmv AND ogg format... just to satisfy my blu-ray player :evil:

Can't wait until I get my OUYA... I think this will all be behind me then :)
_________________
To look without without looking within is like looking without without looking at all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum