tag:blogger.com,1999:blog-55564945108682262.post6136599244523821442..comments2023-08-08T08:24:24.818+02:00Comments on Digital (dis)content: Mediatomb 0.12 on PS3: video thumbnails, YouTube and Apple movie trailersAnonymoushttp://www.blogger.com/profile/07878729502793140294noreply@blogger.comBlogger54125tag:blogger.com,1999:blog-55564945108682262.post-68101418957259869712012-04-03T11:16:02.328+02:002012-04-03T11:16:02.328+02:00Hi again,
Just a little feedback, if you use a Fr...Hi again,<br /><br />Just a little feedback, if you use a Freebox Revolution V6 doesn't read trailers commpletely and stop before end, XBMC doesn't have the probleme.<br /><br />So we can consider Apple Trailers work nicely at this date.<br /><br />regards.Eelwohttps://www.blogger.com/profile/00404031953349516835noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-43589229433427618532012-02-16T11:58:15.263+01:002012-02-16T11:58:15.263+01:0002.2012:
To make the apple trailer work again mod...02.2012:<br /><br />To make the apple trailer work again modify source:<br />/src/atrailers_content_handler.cc line 143<br /><br /> temp = temp.replace(_("movies"), _("www"));<br /><br />to<br /><br /> temp = temp.replace(_("movies"), _("movies"));<br /><br />very quick fix but it works ;)<br /><br />Anyway i'm experiencing a problem, MT create succesively two /tmp/mt_transcode_XXXX when transcoding one trailer, as soon as he create the second file, trailer stop, i send a log exampple in next message (4096 chars limit)<br /><br />please Help ! it's so close to work ;)Eelwohttps://www.blogger.com/profile/00404031953349516835noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-71593680835885662712010-03-26T23:52:29.563+01:002010-03-26T23:52:29.563+01:00The URL of the apple trailers has changed. You nee...The URL of the apple trailers has changed. You need to modify the "if" statement od the mediatomb-video-generic script from movies.apple.com to trailers.apple.com :<br /><br />if [[ -n "$(echo ${INPUT} | grep ^http://trailers.apple.com)" ]]; then<br /><br />Then i works again. Thanks a lot for all the hints!Unknownhttps://www.blogger.com/profile/01954274329448070156noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-60356646405598022272009-12-24T16:19:10.227+01:002009-12-24T16:19:10.227+01:00Here is the proper coding for the mediatomb-video-...Here is the proper coding for the mediatomb-video-generic script. Works perfectly for me.<br /><br /><b><i>#!/bin/bash<br />INPUT="$1"<br />OUTPUT="$2"<br />VIDEO_CODEC="mpeg2video"<br />VIDEO_BITRATE="4096k"<br />AUDIO_CODEC="mp2"<br />AUDIO_BITRATE="192k"<br />AUDIO_SAMPLERATE="48000"<br />AUDIO_CHANNELS="2"<br />FORMAT="dvd"<br /><br />if [[ -n "$(echo ${INPUT} | grep ^http://movies.apple.com)" ]]; then<br />wget --quiet -U 'QuickTime/7.6.2' ${INPUT} -O - | ffmpeg -y -threads 2 -i - -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null<br />else<br />ffmpeg -threads 2 -i "${INPUT}" -vcodec ${VIDEO_CODEC} -b ${VIDEO_BITRATE} \<br />-acodec ${AUDIO_CODEC} -ab ${AUDIO_BITRATE} -ar ${AUDIO_SAMPLERATE} -ac ${AUDIO_CHANNELS} \<br />-f ${FORMAT} - > "${OUTPUT}" 2>/dev/null<br />fi <br /></i></b>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-49845247044444521352009-12-18T12:48:04.995+01:002009-12-18T12:48:04.995+01:00Excellent job all round on this. Many thanks. I...Excellent job all round on this. Many thanks. I've got everything working well...except youtube. Maybe I'm missing something, but cant see what. I'm getting a "failed to get XML content from YouTube service" message in the terminal window. I'd be grateful for any direction as to what I should be looking for.JBGnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-40514186474781455082009-12-11T22:26:00.846+01:002009-12-11T22:26:00.846+01:00Paul-S: I can't take any credit. I was just su...Paul-S: I can't take any credit. I was just suggesting that the author update his post to have the working script that Rick H posted (and Elias corrected).<br /><br />I *still* can't get DVD working. The iso shows up and 99 audio tracks which is weird since I have VOB mapped to video/mpeg, there are no audio only tracks and besides that there are only 50 VOB tracks.Markhttps://www.blogger.com/profile/17788395346398553809noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-72909976940606208212009-12-11T00:37:53.193+01:002009-12-11T00:37:53.193+01:00Thank you for the updates to the transcoding scrip...Thank you for the updates to the transcoding script, Rick H and Dark1.<br /><br />There is one thing I'm curious about, the Apple trailers are available up to 1080p resolution, but my mediatomb won't let me use higher than 720p. Will 1080p support come?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-52186842050337541562009-12-10T23:49:07.695+01:002009-12-10T23:49:07.695+01:00Cheers Dark1 that worked a treat ;)Cheers Dark1 that worked a treat ;)Paul-Snoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-86006188814973657552009-12-09T16:51:30.572+01:002009-12-09T16:51:30.572+01:00I'd like to suggest updating the mediatomb-vid...I'd like to suggest updating the mediatomb-video-generic script listed in the how-to to be the working one of:<br /><br /><b><br />#!/bin/bash<br />INPUT="$1"<br />OUTPUT="$2"<br />VIDEO_CODEC="mpeg2video"<br />VIDEO_BITRATE="4096k"<br />AUDIO_CODEC="mp2"<br />AUDIO_BITRATE="192k"<br />AUDIO_SAMPLERATE="48000"<br />AUDIO_CHANNELS="2"<br />FORMAT="dvd"<br /><br />if [[ -n "$(echo ${INPUT} | grep ^http://movies.apple.com)" ]]; then<br />wget --quiet -U 'QuickTime/7.6.2' ${INPUT} -O - | ffmpeg -y -threads 2 -i - -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null<br />else<br />ffmpeg -y -threads 2 -i ${INPUT} -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null<br />fi<br /></b><br /><br />...because the original does not work.Markhttps://www.blogger.com/profile/17788395346398553809noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-10447532717603963332009-11-22T23:24:23.599+01:002009-11-22T23:24:23.599+01:00Great tutorial. Do you happen to know how to trans...Great tutorial. Do you happen to know how to transcode for iPhone on the fly? I have an UPnP app called PlugPlayer which works great, but will only work with files that already work on my iPhone. I'd like to be able to transcode files on the fly (like avi) to play in my iPhone without having to convert them (if possible).Unknownhttps://www.blogger.com/profile/15530313780033183059noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-80760708752750141002009-11-17T22:45:54.710+01:002009-11-17T22:45:54.710+01:00It seems the issues with Youtube is a change in th...It seems the issues with Youtube is a change in the RSS feed that prevents the XML parser finding the right link. <br />Read more here: http://sourceforge.net/projects/mediatomb/forums/forum/440751/topic/3437844Unknownhttps://www.blogger.com/profile/17265962258051957178noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-83797671313531634482009-11-17T20:25:18.968+01:002009-11-17T20:25:18.968+01:00the ${INFILE} in the if should be ${INPUT}, then i...the ${INFILE} in the if should be ${INPUT}, then it works for me.<br /><br />But I also have the same problem Cavetroll has with the youtube thingy:<br />mediatomb.log:<br />ERROR: Failed to get URL for video with id (step 1)youtube_gdata<br />Is this a bug that's fixed or something else?<br />And thanks for the great info on this!Unknownhttps://www.blogger.com/profile/06077225441865554719noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-24776388363786708282009-11-17T11:26:31.972+01:002009-11-17T11:26:31.972+01:00I've tried doing what Rick H said, but this ca...I've tried doing what Rick H said, but this caused Apple trailers to fail with a network error. But i'm not sure if i did it correctly.. I changed the ffmpeg command that was in "mediatomb-video-generic" to <br />if [[ -n "$(echo ${INFILE} | grep ^http://movies.apple.com)" ]]; then<br />wget --quiet -U 'QuickTime/7.6.2' ${INPUT} -O - | ffmpeg -y -threads 2 -i - -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null<br />else<br />ffmpeg -y -threads 2 -i ${INFILE} -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null<br />fi <br /><br />Was this correct? And if so...why do I get a network error?Unknownhttps://www.blogger.com/profile/17265962258051957178noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-57559255698044367372009-10-17T00:33:08.858+02:002009-10-17T00:33:08.858+02:00That worked like a charm! Many thanks!
I was think...That worked like a charm! Many thanks!<br />I was thinking of an if-else statement but didn`t know how to implement it, as I`m not that familiar with the syntax of bash-scripting. Time to learn...<br />Anyway. That problem solved another one occured. I re-installed a service called mt-daapd which can publish a specific folder to appear as a Shared Library in iTunes. This package depends on libavcodec, libavcodec52 and libavutil49. Those libs get installed in /usr/lib. As soon as they are there, ffmpeg is broken. I get this error message: ffmpeg: symbol lookup error: /usr/local/lib/libavdevice.so.52: undefined symbol: av_free_packet<br />I really don`t know what`s going on as it points to the correct lib. There must be some problems with library linking, I guess. I`m no Linux expert, but it should be possible for local libs (/usr/local/lib) to co-exist with system wide libs (/usr/lib), non?<br />I guess the same would happen if I`d install any other package (like vlc...) that is dependent on those libav* libs in /usr/lib<br />This is driving me crazy as I can`t find a solution for this. Again, any help or advice would be highly appreciated.<br />Thankscavetrollhttps://www.blogger.com/profile/11173423313988770768noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-55274129541646368542009-10-16T11:16:04.341+02:002009-10-16T11:16:04.341+02:00You can get around this by having the script parse...You can get around this by having the script parse the ${INPUT} text variable to see whether it is an Apple Trailers URL and set the ffmpeg command accordingly.<br /> <br />For example:<br />if [[ -n "$(echo ${INFILE} | grep ^http://movies.apple.com)" ]]; then<br /> wget --quiet -U 'QuickTime/7.6.2' ${INPUT} -O - | ffmpeg -y -threads 2 -i - -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null<br />else<br /> ffmpeg -y -threads 2 -i ${INFILE} -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null<br />fiRick Hnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-37432495620446590632009-10-16T02:43:59.151+02:002009-10-16T02:43:59.151+02:00Hi Rick
Thanks for that. Your command works well w...Hi Rick<br />Thanks for that. Your command works well with Apple Trailers but unfortunately breaks all other format transcoding. Unless I`m missing something I can`t setup a transcoding profile for Apple trailers alone, as this would break .mov transcoding, too. Any suggestions?<br />Thankscavetrollhttps://www.blogger.com/profile/11173423313988770768noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-54662339395373656002009-10-15T05:25:38.400+02:002009-10-15T05:25:38.400+02:00I too would like to thank the the author for a ver...I too would like to thank the the author for a very informative post.<br /><br />As cavetroll mentioned, Apple Trailers fails to a redirect.<br />This is because Apple is expecting a Quicktime user-agent string in the http request.<br /><br />To do this the 'mediatomb-video-generic' script needs to be updated to change the ffmpeg command like so:<br />wget --quiet -U 'QuickTime/7.6.2' ${INPUT} -O - | ffmpeg -y -threads 2 -i - -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null<br /><br />Note that the audio codec has also been changed to 'ac3' without specifying number of AUDIO_CHANNELS.<br />This way you won't lose surround sound for many of those trailers that have it.<br /><br />Cheers ;)Rick Hnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-48028033107797612492009-10-13T21:19:04.899+02:002009-10-13T21:19:04.899+02:00Hi. Many thanks for the tutorial. It`s great! Unfo...Hi. Many thanks for the tutorial. It`s great! Unfortunately I can`t get neither Apple Trailers nor Youtube to work. The links to the trailers from the RSS-feed don`t seem to work any more. For example http://movies.apple.com/movies/sony/2012/2012-tlr2_h640w.mov redirects to the Apple Trailer main-page, as the link doesn`t work.<br />As far as Youtube is concerned, I`m getting the following error in mediatomb.log: ERROR: Failed to get URL for video with id (step 1)youtube_gdata<br /><br />Can somebody help me out, please? Thankscavetrollhttps://www.blogger.com/profile/11173423313988770768noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-42864153161127792862009-09-19T01:17:29.599+02:002009-09-19T01:17:29.599+02:00For those who experinced problems with ffmpeg (a-l...For those who experinced problems with ffmpeg (a-la %in %out):<br />there is a bug with latest libs<br />https://bugs.launchpad.net/medibuntu/+bug/269997<br />ffmpeg just couldn't find appropriate codecs<br /><br />To solve just istall via aptitude unstripped versions of those libs.<br />Everything works fine then (except one bug in config with thumbnailer - solved too)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-59094433477086268832009-06-26T16:08:47.083+02:002009-06-26T16:08:47.083+02:00just discovered another problem when trying to pla...just discovered another problem when trying to play .flac audio. mediatomb log shows:<br /><br />2009-06-26 13:44:20 ERROR: process terminated early<br />2009-06-26 13:44:20 INFO: Arguments: -ac 2 -ar 44100 -y -i %in -f s16be %outMike Ahttps://www.blogger.com/profile/09519428614889061477noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-33732454034202970122009-06-26T16:04:54.170+02:002009-06-26T16:04:54.170+02:00Same as Paultje. Can't get/play Youtube/Apple....Same as Paultje. Can't get/play Youtube/Apple. Using your guide, your config file and i get the same in the log file:<br /><br />2009-06-26 14:12:37 INFO: Arguments: %in %out<br /><br />Running Ubuntu 9.04 <br /><br />There was a comment earlier about an Ubuntu fix, but that post at the other site seems to have been deleted.Mike Ahttps://www.blogger.com/profile/09519428614889061477noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-24097045969378922252009-06-22T18:07:57.543+02:002009-06-22T18:07:57.543+02:00Hi,
Unfortunately it doesn't work for me. Whe...Hi,<br /><br />Unfortunately it doesn't work for me. When I try to play Youtube / Apple or mkv files a message appears that says the data is broken. In the mediatomb log file I see the following:<br /> 2009-06-22 17:13:24 INFO: Arguments: %in %out<br /><br />Any clue how I can fix this?<br /><br />Tia,<br />PaulUnknownhttps://www.blogger.com/profile/06462511610590901124noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-25319628948987574192009-06-20T11:09:51.743+02:002009-06-20T11:09:51.743+02:00Good guide, I followed the Gentoo guide but this w...Good guide, I followed the Gentoo guide but this works too. The only downside is having no seeking or pausing. Did anyone figure out how to do that? Not being able to pause or skip around in a video makes this hack cool, but mostly useless to me. Any suggestions?<br /><br />The Gentoo guide can be found : http://en.gentoo-wiki.com/wiki/MediaTomb#Select_the_TranscoderMarsianManhttps://www.blogger.com/profile/16508037851369111568noreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-52181141366455796412009-04-24T10:06:00.000+02:002009-04-24T10:06:00.000+02:00For those who have followed the directions and are...For those who have followed the directions and are using the config.xml file but still can't see online services on the PS3, you probably need to set up your import.js file correctly. Copy the required sections out of the default import.js file that would have been installed in /etc/mediatomb. (I had a similar problem)<br /><br />My problem is with ffmpeg (to troubleshoot it, open up the script with nano and add 2> /tmp/ffmpeg-error.log to the end of the exec line): it gets a 2 signal part way into transcoding it, I think it may not be downloading the video quickly enough.<br /><br />Is there a way to make it wait for the video?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-55564945108682262.post-16974979045111542792009-04-19T10:17:00.000+02:002009-04-19T10:17:00.000+02:00Hi Julien,
merci for the Mediatomb Howto. Almost ...Hi Julien,<br /><br />merci for the Mediatomb Howto. Almost everything works, except the text-to-speech transcoding, that can read textfiles. I am using espeak with mbrola. But how can I set it up in the config.xml. I added "object.item.audioItem.musicTrack"for text/* to see the txt-file in the browser. But I receive the error "linear PCM" not supported? Can you help me?<br /><br />Thanks<br /><br />OleAnonymousnoreply@blogger.com