View previous topic :: View next topic |
Author |
Message |
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Sat Feb 16, 2008 11:52 pm Post subject: |
|
|
Crapo,
If you want the MediaTomb logs to be more verbose then emerge MediaTomb with the debug USE flag enabled. Cidero is a great tool for analyzing the XML sent by MediaTomb and I have been using it for a while. The <first-resource> tag should already be in the transcoding profiles posted on the Wiki. The <hide-original-resource> tag is usually not necessary as most UPnP devices simply play the first resource which in this case is the transcoded stream. However for testing it might be needed to ensure that the UPnP device is not selecting the wrong resource. It is normal for UPnP servers to send multiple resources as it's part of the UPnP specification.
If you take a look at the XML from the ASX resource you should see the URL that MediaTomb is sending to your UPnP device. Try playing that URL with VLC or MPlayer and if it works then it's an issue with your UPnP device. Your device might have a similar issue to the PS3 with streams that have an unknown content length. This is the issue that you noticed about missing fields but it's impossible to add a size or length field for an Internet radio stream. The MediaTomb developers were testing a hack that faked the content length with a very large number but it's still very experimental. If you still can't get it to work I suggest you log onto the MediaTomb IRC and speak to the MediaTomb developers. They will probably already know if it's possible to play transcoded internet radio streams with your UPnP device. |
|
Back to top |
|
|
NoNaMeNo n00b
Joined: 01 Nov 2006 Posts: 23
|
Posted: Mon Feb 18, 2008 9:54 pm Post subject: Tip |
|
|
I would like to say a TIP, disable the WEBUI, it shows all the / fs. I have jailed and works fine, but it is not the default. |
|
Back to top |
|
|
c8a7w n00b
Joined: 06 Oct 2005 Posts: 62
|
Posted: Mon Feb 18, 2008 10:39 pm Post subject: |
|
|
can any PS3 user post a fully working config file?
im getting unsupported file messages and have been trawling the web looking for answers and cant find any. a working config file would be grea to let me check though mine to see if im going wrong there or not. |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Tue Feb 19, 2008 12:33 am Post subject: |
|
|
NoNaMeNo,
You are correct that the MediaTomb WebUI exposes the entire filesystem, but most people will be using MediaTomb in a home LAN which is a trusted environment so security is not a real concern. MediaTomb does offer a simple account mechanism (disabled in config.xml) but it will not stop serious security threats. I will probably add a notice to the Wiki just to remind people of the possible security issues. |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Tue Feb 19, 2008 12:42 am Post subject: |
|
|
c8a7w,
I have sent you my working config.xml. Please report your results. |
|
Back to top |
|
|
c8a7w n00b
Joined: 06 Oct 2005 Posts: 62
|
Posted: Tue Feb 19, 2008 12:47 am Post subject: |
|
|
BT wrote: | c8a7w,
I have sent you my working config.xml. Please report your results. |
thanks i have recieved and tried it both without and without transcoding enabled.
some home movies i have in .wmv are working but no other video files are. including ones that will stream from WMP. |
|
Back to top |
|
|
c8a7w n00b
Joined: 06 Oct 2005 Posts: 62
|
Posted: Tue Feb 19, 2008 12:51 am Post subject: |
|
|
c8a7w wrote: | BT wrote: | c8a7w,
I have sent you my working config.xml. Please report your results. |
thanks i have recieved and tried it both without and without transcoding enabled.
some home movies i have in .wmv are working but no other video files are. including ones that will stream from WMP. |
scratch that!!!!
it seems to be working but with trails from my previous (incorrect) config so the files i had in the database are not working.
just added another file and it is working.
well it seems to be fulling working now, thank-you BT. i can now finish transfering all my files to my new media-server and stop using WMP, YAY |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Tue Feb 19, 2008 1:06 am Post subject: |
|
|
c8a7w,
Good to know you have it working. |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Tue Feb 19, 2008 8:30 am Post subject: |
|
|
I have added a section to the Wiki for PS3 video thumbnail support. The thumbnails are generated by FFmpeg Thumbnailer which is in Portage. I recommend using the latest version (1.1.5) which is keyword masked. Enjoy
Last edited by BT on Mon Nov 10, 2008 5:19 am; edited 3 times in total |
|
Back to top |
|
|
c8a7w n00b
Joined: 06 Oct 2005 Posts: 62
|
Posted: Tue Feb 19, 2008 4:48 pm Post subject: |
|
|
ooooo i will try that later!
anyone know if there is a way to only transcode the files the ps3 doesn't support? or would i have to transcode EVERY .avi file |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Tue Feb 19, 2008 10:23 pm Post subject: |
|
|
c8a7w,
MediaTomb can selectively transcode AVI files based on their FourCC. The MediaTomb developers have also looked at transcoding AVI files based on their QPEL, but there doesn't seem to be any quick and easy way to identify the QPEL.
Last edited by BT on Wed Nov 05, 2008 4:24 am; edited 2 times in total |
|
Back to top |
|
|
c8a7w n00b
Joined: 06 Oct 2005 Posts: 62
|
Posted: Tue Feb 19, 2008 11:48 pm Post subject: |
|
|
BT wrote: | c8a7w,
MediaTomb can selectively transcode AVI files based on their FourCC. The MediaTomb developers have also looked at transcoding AVI files based on their QPEL, but there doesn't seem to be any quick and easy way to identify the QPEL. |
cool, i totaly missed that bit of the wiki
probably wont get the chance to mess about with it till the weekend but ill report back once i do |
|
Back to top |
|
|
Aonoa Guru
Joined: 23 May 2002 Posts: 589
|
Posted: Sun Feb 24, 2008 1:30 pm Post subject: |
|
|
When ffmpeg transcodes some matroska files, I get "corrupted data" messages, however if I retry playing the file 4-5 times it will suddenly start playing. The result is a video that freezes a lot, sort of like my server was too slow to play it properly. As far as I can tell, the matroska files in question are 100% similar (same codecs) to other files that play just fine on my PS3.
BT, have you run across this? any ideas?
EDIT: Solved, sort of. I changed my buffer sizes to <buffer size="10485760" chunk-size="262144" fill-size="524288"/>. I also updated to the latest svn revision 1707. Now the files play without corrupt data messages, but playback is still jerky. Almost forgot, concerning video metadata I changed from using ffmpeg to libextractor. |
|
Back to top |
|
|
instigatorx n00b
Joined: 24 Feb 2008 Posts: 1
|
Posted: Sun Feb 24, 2008 10:02 pm Post subject: AVI transcoding |
|
|
Can someone send me a working config file that will transcode AVI videos? Here's my config that works for H264/M4V videos. MP4/AVI doesn't work.
Thanks!
<?xml version="1.0" encoding="UTF-8"?><config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sche
maLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
<server>
<ui enabled="yes">
<accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<name>MediaTomb</name>
<udn>uuid:2f962cbc-b775-43e9-b753-15bb8bc14635</udn>
<home>/root/.mediatomb</home>
<webroot>/usr/local/share/mediatomb/web</webroot>
<storage>
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
</storage>
<protocolInfo extend="no"/><!-- 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>
-->
</server>
<import hidden-files="no">
<scripting script-charset="UTF-8">
<virtual-layout type="builtin"/>
</scripting>
<autoscan use-inotify="auto">
<directory location="/share/Vol1/Movies" mode="inotify"
level="full" 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"/>
<!-- Uncomment the line below for PS3 divx support -->
<!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
<map from="avi" to="video/x-divx"/>
</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="video/x-msvideo" as="avi"/>
<treat mimetype="video/x-dvix" as="avi"/>
</mimetype-contenttype>
</mappings>
<online-content>
<!-- Make sure to setup a transcoding profile for flv -->
<YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800">
<favorites user="mediatomb"/>
<popular time-range="month"/>
<playlist id="CF03127692F9D803" name="MediaTomb Playlist" start-page="1" amount="all"/>
<user user="mediatomb" start-page="1" amount="all"/>
<category-and-tag category="music" tag="Six Feet Under" start-page="1" amount="10"/>
<tag tag="Военное Дело" start-page="1" amount="all"/>
<featured/>
</YouTube>
</online-content>
</import>
<transcoding enabled="yes">
<mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="vlcmpeg"/>
<transcode mimetype="video/mp4" using="vlcmpeg"/>
<transcode mimetype="video/x-msvideo" using="vlcmpeg"/>
<transcode mimetype="video/avi" using="vlcmpeg"/>
<transcode mimetype="video/x-divx" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="oggflac2raw"/>
<transcode mimetype="audio/x-flac" using="oggflac2raw"/>
</mimetype-profile-mappings>
<profiles>
<profile name="oggflac2raw" enabled="yes" 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="vlcmpeg" enabled="yes" type="external">
<avi-fourcc-list mode="ignore">
</avi-fourcc-list>
<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>
</profiles>
</transcoding>
</config>
[/gwn][/code][/list] |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Mon Feb 25, 2008 12:46 am Post subject: |
|
|
Heion,
The jerky video playback can be caused if your machine is too slow. This usually happens with HD video where the resolution is very large. You can try increasing the transcoding buffer sizes. The default buffer sizes on the Wiki are 10MB, 256KB, 512KB. Try setting the buffer size to 20MB and fill size to 1MB. The larger buffer sizes will result in longer playback time. Using libextractor will not cause jerky video playback but import speed will be affected as libextractor is very slow at extracting metadata. Also, the MT developers have finished work on the latest version and plan to release sometime this week. |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Mon Feb 25, 2008 12:53 am Post subject: |
|
|
instigatorx,
Remove the <avi-fourcc-list mode="ignore"> </avi-fourcc-list> section from the vlcmpeg profile. You could also just set mode="ignore" to mode="disabled". |
|
Back to top |
|
|
sensee n00b
Joined: 13 Jan 2004 Posts: 13 Location: Linköping, Sweden
|
Posted: Thu Feb 28, 2008 1:54 pm Post subject: |
|
|
BT wrote: | c8a7w,
I have sent you my working config.xml. Please report your results. |
Hi, i just installed MT today and have tried a config, but i would really like yours as well as a comparison, since i have not got `all movies´ to work as of yet.
Please! |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Thu Feb 28, 2008 11:50 pm Post subject: |
|
|
sensee,
I have sent you my config.xml. Please report your results. |
|
Back to top |
|
|
sensee n00b
Joined: 13 Jan 2004 Posts: 13 Location: Linköping, Sweden
|
Posted: Fri Feb 29, 2008 8:10 am Post subject: |
|
|
Yeah, i saw the config but have not tried it yet, will do in this weekend when i get home from work.
As of now i have a "quite large" list of unplayables and i thought i should try and narrow the list down asap so we could get on with "solving the unplayables"...
I will return with my "list" when i have tried your config as well as my own (i created one while emerging... ;O ). |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Fri Feb 29, 2008 11:33 am Post subject: |
|
|
sensee,
When you post your list of unplayable media could you also specify which UPnP device you are using. I'm not sure how much my config.xml can help you as I have only added PS3 DivX support and transcoding profiles for FLAC and Flash files. The rest of my config.xml is identical to the one posted on the Wiki.
Last edited by BT on Wed Nov 05, 2008 4:24 am; edited 2 times in total |
|
Back to top |
|
|
sensee n00b
Joined: 13 Jan 2004 Posts: 13 Location: Linköping, Sweden
|
Posted: Fri Feb 29, 2008 11:52 am Post subject: |
|
|
BT wrote: | sensee,
When you post your list of unplayable media could you also specify which UPnP device you are using. I'm not sure how much my config.xml can help you as I have only added PS3 DivX support and transcoding profiles for FLAC and Flash files. The rest of my config.xml is the same as the one posted on the Wiki. |
Yea, i saw that, and you are right about the fact that i have failed to mention that i as well run this to/from a PS3.
I bought the PS3 last week after i discovered that my current Mac Mini setup could not play some of the more "heavy" media i threw at it. For instance 1080p versions of Films and TV series. That made me buy a PS3, instead of a new Mini, which was more expensive, to try out some demos but mostly as my new Disc player as well as MediaServer via UPnP. My mini is now acting as closet server with a MediaTomb install to serve my media.
At first i started out making a config of my own, but since i could not play all formats i have on disk as of now, i thought i should get a few other lists as well and "merge" them into something more complete. So far i have gotten three configs besides my own, thanks to BT, Heion and c8a7w. When i get home from work today i will try and create a new config again.
My idea is that if we can provide a "complete" listing for media (mainly movies) to a PS3 that would be great.
FYI, i also run "http://www.nullriver.com/products/medialink" from my mac as i they have "far superior" handling of my images and songs from my Macs. This means that the "sole priority" for my MediaTomb installation is to provide the movies and films for my PS3.
Regards.
//sensee |
|
Back to top |
|
|
sensee n00b
Joined: 13 Jan 2004 Posts: 13 Location: Linköping, Sweden
|
Posted: Fri Feb 29, 2008 11:55 am Post subject: |
|
|
Oh, i also forgot to mention that i am really grateful for all the solid and good work all of you have put into this "project" so far.
I hope to be able to contribute some as well. |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Fri Feb 29, 2008 12:40 pm Post subject: |
|
|
sensee wrote: | FYI, i also run "http://www.nullriver.com/products/medialink" from my mac as i they have "far superior" handling of my images and songs from my Macs. This means that the "sole priority" for my MediaTomb installation is to provide the movies and films for my PS3. |
I'm not sure what you mean by "far superior" but MediaTomb can stream any type of media. Whether the media is playable or not is dependent on the UPnP device. MediaLink does have some nice features such as iTunes integration, but if your interested in running MediaTomb on your Mac, Fink provides packages for OS X. The packages are for MediaTomb 0.10.0 only but this will change once MediaTomb 0.11.0 is released in the next day or so.
sensee wrote: | Oh, i also forgot to mention that i am really grateful for all the solid and good work all of you have put into this "project" so far. |
Thanks.
Last edited by BT on Sun Aug 24, 2008 1:14 am; edited 1 time in total |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Sun Mar 02, 2008 3:59 am Post subject: |
|
|
MediaTomb 0.11.0 has been released!. The main feature of this release is obviously transcoding. The full change log can be found here. It looks like the MediaTomb developers removed the YouTube feature just before release. I don't know their reason for doing so as I wasn't around when they released. I strongly suggest you completely remove any previous versions before installing 0.11.0, just make sure you backup your config.xml. To remove previous versions:
Code: | # /etc/init.d/mediatomb stop
# emerge -C mediatomb
# userdel mediatomb
# rm -r /var/lib/mediatomb
# rm -r /etc/mediatomb |
Now install 0.11.0 by following the instructions on the Wiki which have been updated for 0.11.0. A note to the users of previous ebuilds, transcoding support is now controlled by the transcode USE flag so make sure you enable it if you need transcoding.
Edit 1: The YouTube feature was removed minutes before release after it was discovered that the YouTube API had changed and broke MediaTomb's implementation. The developers plan to do a quick release which will re-instate the YouTube support.
Edit 2: I have posted a slightly modified MediaTomb 0.11.0 ebuild to Bugzilla. The transcode USE flag has been removed and transcoding support is now always enabled. I have also added a curl USE flag which should be enabled when you want to transcode online content with transcoders such as FFmpeg that don't support URL's as input.
Last edited by BT on Wed Nov 05, 2008 4:23 am; edited 2 times in total |
|
Back to top |
|
|
Aonoa Guru
Joined: 23 May 2002 Posts: 589
|
Posted: Tue Mar 04, 2008 9:02 am Post subject: |
|
|
Hooray! Mediatomb 0.11.0 works like a charm. Thanks for your good work, everyone. |
|
Back to top |
|
|
|