Subscribe: Comments on Digital (dis)content: Mediatomb 0.12 on PS3: video thumbnails, YouTube a...
http://juliensimon.blogspot.com/feeds/6136599244523821442/comments/default
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
apple trailers  apple  audio  ffmpeg  mediatomb  mpeg video  trailers  vcodec mpeg  video  youtube  {input}  {output} dev 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Comments on Digital (dis)content: Mediatomb 0.12 on PS3: video thumbnails, YouTube a...

Comments on Digital (dis)content: Mediatomb 0.12 on PS3: video thumbnails, YouTube and Apple movie trailers





Updated: 2018-04-20T10:20:16.206+02:00

 



Hi again, Just a little feedback, if you use a Fr...

2012-04-03T11:16:02.328+02:00

Hi again,

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.

So we can consider Apple Trailers work nicely at this date.

regards.



02.2012: To make the apple trailer work again mod...

2012-02-16T11:58:15.263+01:00

02.2012:

To make the apple trailer work again modify source:
/src/atrailers_content_handler.cc line 143

temp = temp.replace(_("movies"), _("www"));

to

temp = temp.replace(_("movies"), _("movies"));

very quick fix but it works ;)

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)

please Help ! it's so close to work ;)



The URL of the apple trailers has changed. You nee...

2010-03-26T23:52:29.563+01:00

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 :

if [[ -n "$(echo ${INPUT} | grep ^http://trailers.apple.com)" ]]; then

Then i works again. Thanks a lot for all the hints!



Here is the proper coding for the mediatomb-video-...

2009-12-24T16:19:10.227+01:00

Here is the proper coding for the mediatomb-video-generic script. Works perfectly for me.

#!/bin/bash
INPUT="$1"
OUTPUT="$2"
VIDEO_CODEC="mpeg2video"
VIDEO_BITRATE="4096k"
AUDIO_CODEC="mp2"
AUDIO_BITRATE="192k"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="dvd"

if [[ -n "$(echo ${INPUT} | grep ^http://movies.apple.com)" ]]; then
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
else
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
fi



Excellent job all round on this. Many thanks. I...

2009-12-18T12:48:04.995+01:00

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.



Paul-S: I can't take any credit. I was just su...

2009-12-11T22:26:00.846+01:00

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).

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.



Thank you for the updates to the transcoding scrip...

2009-12-11T00:37:53.193+01:00

Thank you for the updates to the transcoding script, Rick H and Dark1.

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?



Cheers Dark1 that worked a treat ;)

2009-12-10T23:49:07.695+01:00

Cheers Dark1 that worked a treat ;)



I'd like to suggest updating the mediatomb-vid...

2009-12-09T16:51:30.572+01:00

I'd like to suggest updating the mediatomb-video-generic script listed in the how-to to be the working one of:


#!/bin/bash
INPUT="$1"
OUTPUT="$2"
VIDEO_CODEC="mpeg2video"
VIDEO_BITRATE="4096k"
AUDIO_CODEC="mp2"
AUDIO_BITRATE="192k"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="dvd"

if [[ -n "$(echo ${INPUT} | grep ^http://movies.apple.com)" ]]; then
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
else
ffmpeg -y -threads 2 -i ${INPUT} -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null
fi


...because the original does not work.



Great tutorial. Do you happen to know how to trans...

2009-11-22T23:24:23.599+01:00

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).



It seems the issues with Youtube is a change in th...

2009-11-17T22:45:54.710+01:00

It seems the issues with Youtube is a change in the RSS feed that prevents the XML parser finding the right link.
Read more here: http://sourceforge.net/projects/mediatomb/forums/forum/440751/topic/3437844



the ${INFILE} in the if should be ${INPUT}, then i...

2009-11-17T20:25:18.968+01:00

the ${INFILE} in the if should be ${INPUT}, then it works for me.

But I also have the same problem Cavetroll has with the youtube thingy:
mediatomb.log:
ERROR: Failed to get URL for video with id (step 1)youtube_gdata
Is this a bug that's fixed or something else?
And thanks for the great info on this!



I've tried doing what Rick H said, but this ca...

2009-11-17T11:26:31.972+01:00

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
if [[ -n "$(echo ${INFILE} | grep ^http://movies.apple.com)" ]]; then
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
else
ffmpeg -y -threads 2 -i ${INFILE} -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null
fi

Was this correct? And if so...why do I get a network error?



That worked like a charm! Many thanks! I was think...

2009-10-17T00:33:08.858+02:00

That worked like a charm! Many thanks!
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...
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
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?
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
This is driving me crazy as I can`t find a solution for this. Again, any help or advice would be highly appreciated.
Thanks



You can get around this by having the script parse...

2009-10-16T11:16:04.341+02:00

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.

For example:
if [[ -n "$(echo ${INFILE} | grep ^http://movies.apple.com)" ]]; then
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
else
ffmpeg -y -threads 2 -i ${INFILE} -acodec ac3 -ab 192000 -vcodec mpeg2video -vb 4096000 -f dvd ${OUTPUT} &> /dev/null
fi



Hi Rick Thanks for that. Your command works well w...

2009-10-16T02:43:59.151+02:00

Hi Rick
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?
Thanks



I too would like to thank the the author for a ver...

2009-10-15T05:25:38.400+02:00

I too would like to thank the the author for a very informative post.

As cavetroll mentioned, Apple Trailers fails to a redirect.
This is because Apple is expecting a Quicktime user-agent string in the http request.

To do this the 'mediatomb-video-generic' script needs to be updated to change the ffmpeg command like so:
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

Note that the audio codec has also been changed to 'ac3' without specifying number of AUDIO_CHANNELS.
This way you won't lose surround sound for many of those trailers that have it.

Cheers ;)



Hi. Many thanks for the tutorial. It`s great! Unfo...

2009-10-13T21:19:04.899+02:00

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.
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

Can somebody help me out, please? Thanks



For those who experinced problems with ffmpeg (a-l...

2009-09-19T01:17:29.599+02:00

For those who experinced problems with ffmpeg (a-la %in %out):
there is a bug with latest libs
https://bugs.launchpad.net/medibuntu/+bug/269997
ffmpeg just couldn't find appropriate codecs

To solve just istall via aptitude unstripped versions of those libs.
Everything works fine then (except one bug in config with thumbnailer - solved too)



just discovered another problem when trying to pla...

2009-06-26T16:08:47.083+02:00

just discovered another problem when trying to play .flac audio. mediatomb log shows:

2009-06-26 13:44:20 ERROR: process terminated early
2009-06-26 13:44:20 INFO: Arguments: -ac 2 -ar 44100 -y -i %in -f s16be %out



Same as Paultje. Can't get/play Youtube/Apple....

2009-06-26T16:04:54.170+02:00

Same as Paultje. Can't get/play Youtube/Apple. Using your guide, your config file and i get the same in the log file:

2009-06-26 14:12:37 INFO: Arguments: %in %out

Running Ubuntu 9.04

There was a comment earlier about an Ubuntu fix, but that post at the other site seems to have been deleted.



Hi, Unfortunately it doesn't work for me. Whe...

2009-06-22T18:07:57.543+02:00

Hi,

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:
2009-06-22 17:13:24 INFO: Arguments: %in %out

Any clue how I can fix this?

Tia,
Paul



Good guide, I followed the Gentoo guide but this w...

2009-06-20T11:09:51.743+02:00

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?

The Gentoo guide can be found : http://en.gentoo-wiki.com/wiki/MediaTomb#Select_the_Transcoder



For those who have followed the directions and are...

2009-04-24T10:06:00.000+02:00

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 file correctly. Copy the required sections out of the default import file that would have been installed in /etc/mediatomb. (I had a similar problem)

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.

Is there a way to make it wait for the video?



Hi Julien, merci for the Mediatomb Howto. Almost ...

2009-04-19T10:17:00.000+02:00

Hi Julien,

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?

Thanks

Ole