Jump to content


Welcome to DBSTalk


Sign In 

Create Account
Welcome to DBSTalk. Our community covers all aspects of video delivery solutions including: Direct Broadcast Satellite (DBS), Cable Television, and Internet Protocol Television (IPTV). We also have forums to discuss popular television programs, home theater equipment, and internet streaming service providers. Members of our community include experts who can help you solve technical problems, industry professionals, company representatives, and novices who are here to learn.

Like most online communities you must register to view or post in our community. Sign-up is a free and simple process that requires minimal information. Be a part of our community by signing in or creating an account. The Digital Bit Stream starts here!
  • Reply to existing topics or start a discussion of your own
  • Subscribe to topics and forums and get email updates
  • Send private personal messages (PM) to other forum members
  • Customize your profile page and make new friends
 
Guest Message by DevFuse

Photo
- - - - -

Media Share - Mediatomb Is Now Working


  • Please log in to reply
636 replies to this topic

#41 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 08:56 AM

I added a new set of jpegs to my database, and they look just the same as I described earlier when displayed using the HR20. Each is shown in the middle of the screen with room for one image of the same size above it and one below it, and with room for two to the left and two to the right. So, there would be room on my 16:9 TV screen to show a 5 x 3 array of such images at once.


I've been attempting to understand the photo display procedure between the HR20 and mediatomb using the wireshark capture. This is what I see:

1. The HR20 sends a browse request for the available photos in a container.
2. Mediatomb sends the info for each photo. I see two photo references returned: the full size photo (first item) and the thumbnail (second item).
3. The user selects the photo to be displayed from the HR20 menu.
4. The HR20 requests the photo from mediatomb
5. Mediatomb sends the photo
6. The HR20 displays the photo.

My guess is the HR20 doesn't like something about the first photo (full size) and asks for the thumbnail.
TVersity users are finding the HR20 is having issues displaying high res photos.

Just curious...what do your filenames look like and your typical resolution? The photos that displayed as thumbs for me look like this:

Dale's Pics Sue & wayne Wedding Mar 1, 2004 014.jpg (Maybe the HR20 doesn't like this with the non-text/numerical chars?)
From an Olympus camera
Resolution: 2560x1920

I sent the info to Jin and hopefully he can find something.

...Ads Help To Support This SIte...

#42 OFFLINE   GregLee

GregLee

    Hall Of Fame

  • Registered
  • 1,596 posts
Joined: Dec 28, 2005

Posted 24 May 2008 - 08:59 AM

Not all my video files are shown on the HR20 as playable. Those with file extension ".mpg" containing mpeg 1 video are playable, but when they contain mpeg 2 or mpeg 4, they're shown with an "X".
Greg

#43 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 09:10 AM

Not all my video files are shown on the HR20 as playable. Those with file extension ".mpg" containing mpeg 1 video are playable, but when they contain mpeg 2 or mpeg 4, they're shown with an "X".


That is weird...normally if it can play MPEG1, it can play MPEG2. MPEG4 will need transcoding. Do your mpeg2s have the .mpg file extension? Also, look at the web UI (database view) and find an mpeg2 file in the tree. Click on the edit icon(pencil and paper icon). Does the mimetype say video/mpeg?

#44 OFFLINE   GregLee

GregLee

    Hall Of Fame

  • Registered
  • 1,596 posts
Joined: Dec 28, 2005

Posted 24 May 2008 - 09:45 AM

3. The user selects the photo to be displayed from the HR20 menu.

If you mean a menu of thumbnails, I never see such a menu. Just filenames.

Just curious...what do your filenames look like and your typical resolution?

Here are some examples. Some 3296x2472 jpegs (from a camera), then some 1280x1024 wallpapers. I've marked in the right column whether the H20 counts them as displayable ("OK") or not ("X").

Width                : 3296
Height               : 2472

-rw-r--r-- 1 greg wheel 1180580 May 23 11:37 tripod_c-000030.JPG	OK
-rw-r--r-- 1 greg wheel 1225144 May 23 11:37 tripod_c-000031.JPG	OK
-rw-r--r-- 1 greg wheel 1267208 May 23 11:37 tripod_c-000032.JPG	OK
-rw-r--r-- 1 greg wheel 1107552 May 23 11:38 tripod_c-000033.JPG	OK
-rw-r--r-- 1 greg wheel 1109984 May 23 11:38 tripod_c-000034.JPG	OK
-rw-r--r-- 1 greg wheel 1160660 May 23 11:38 tripod_c-000035.JPG	OK
-rw-r--r-- 1 greg wheel 1116548 May 23 11:40 tripod_c-000036.JPG	OK
-rw-r--r-- 1 greg wheel 1144964 May 23 11:40 tripod_c-000037.JPG	OK
-rw-r--r-- 1 greg wheel 1096392 May 23 11:41 tripod_c-000038.JPG	OK
-rw-r--r-- 1 greg wheel 1075468 May 23 11:41 tripod_c-000039.JPG	OK

Width                : 1280
Height               : 1024

-rw-r--r-- 1 greg wheel 485534 Jul 17  2007 Burto-1082578688.jpg	X
-rw-r--r-- 1 greg wheel 407293 Jul 17  2007 challin-1148789631.jpg	X
-rw-r--r-- 1 greg wheel 436455 Jul 17  2007 DixieNormus-1135913920.jpg	X
-rw-r--r-- 1 greg wheel 471312 Jul 17  2007 DixieNormus-1162292453.jpg	X
-rw-r--r-- 1 greg wheel 373907 Jul 17  2007 Foxfire66-1146355230.jpg	X
-rw-r--r-- 1 greg wheel 459075 Jul 17  2007 Mindstormer-1124471863.jpg	X
-rw-r--r-- 1 greg wheel 219777 Jul 17  2007 mnemonics-1158972868.jpg	OK
-rw-r--r-- 1 greg wheel 178217 Jul 17  2007 mouthpiece.jpg		X
-rw-r--r-- 1 greg wheel 397026 Jul 17  2007 MrXwild-1099954120.jpg	X
-rw-r--r-- 1 greg wheel 634184 Jul 17  2007 MrXwild-1104382515.jpg	X
-rw-r--r-- 1 greg wheel 504497 Jul 17  2007 MrXwild-1104639905.jpg	X
-rw-r--r-- 1 greg wheel 391044 Jul 17  2007 MrXwild-1105859448.jpg	X
-rw-r--r-- 1 greg wheel 351526 Jul 17  2007 MrXwild-1108354780.jpg	X
-rw-r--r-- 1 greg wheel 392029 Jul 17  2007 mum42-1085752824.jpg	OK
-rw-r--r-- 1 greg wheel 240929 Jul 17  2007 mythica-1072184402.jpg	X
-rw-r--r-- 1 greg wheel 341550 Jul 17  2007 mythica-1076743546.jpg	X
-rw-r--r-- 1 greg wheel 293705 Jul 17  2007 mythica-1076883802.jpg	X
-rw-r--r-- 1 greg wheel 119770 Jul 17  2007 mythica-1078644062.jpg	X
-rw-r--r-- 1 greg wheel 230559 Jul 17  2007 mythica-1082104668.jpg	X
-rw-r--r-- 1 greg wheel 303598 Jul 17  2007 Piner-1078460946.jpg	X
-rw-r--r-- 1 greg wheel 190887 Jul 17  2007 Prowler_75-1102971505.jpg	OK
-rw-r--r-- 1 greg wheel 360871 Jul 17  2007 rabagojason-1132279845.jpg	X
-rw-r--r-- 1 greg wheel 595061 Jul 17  2007 vicvog-1145056930.jpg	OK
-rw-r--r-- 1 greg wheel 515779 Jul 17  2007 vicvog-1151354479.jpg	OK
-rw-r--r-- 1 greg wheel 545436 Jul 17  2007 WENPEDER-1151328063.jpg	OK
-rw-r--r-- 1 greg wheel  70462 Jul 17  2007 xiist-1080224235.jpg	X
-rw-r--r-- 1 greg wheel 131213 Jul 17  2007 xyccoc-1119379732.jpg	X

Greg

#45 OFFLINE   bobnielsen

bobnielsen

    Éminence grise

  • DBSTalk Club
  • 7,968 posts
  • LocationBainbridge Island, WA
Joined: Jun 29, 2006

Posted 24 May 2008 - 09:57 AM

It compiled easily on my Mac Mini, but I get a runtime error that sqlite is needed (No, I didn't RTFM). I'm installing sqlite3 from macports and will try again.

#46 OFFLINE   GregLee

GregLee

    Hall Of Fame

  • Registered
  • 1,596 posts
Joined: Dec 28, 2005

Posted 24 May 2008 - 10:33 AM

That is weird...normally if it can play MPEG1, it can play MPEG2. MPEG4 will need transcoding. Do your mpeg2s have the .mpg file extension? Also, look at the web UI (database view) and find an mpeg2 file in the tree. Click on the edit icon(pencil and paper icon). Does the mimetype say video/mpeg?

No, the mimetype for my 9 unplayable .mpg files that are MPEG-2 is given as "video/mp2p". The mimetype for my single playable .mpg file that is MPEG-1 is "video/mpeg". I don't know just what file extensions my MPEG-2 videos have, other than .mpg -- I could find out, I suppose.
Greg

#47 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 10:58 AM

If you mean a menu of thumbnails, I never see such a menu. Just filenames.

Here are some examples. Some 3296x2472 jpegs (from a camera), then some 1280x1024 wallpapers. I've marked in the right column whether the H20 counts them as displayable ("OK") or not ("X").


Width                : 3296
Height               : 2472

-rw-r--r-- 1 greg wheel 1180580 May 23 11:37 tripod_c-000030.JPG	OK
-rw-r--r-- 1 greg wheel 1225144 May 23 11:37 tripod_c-000031.JPG	OK
-rw-r--r-- 1 greg wheel 1267208 May 23 11:37 tripod_c-000032.JPG	OK
-rw-r--r-- 1 greg wheel 1107552 May 23 11:38 tripod_c-000033.JPG	OK
-rw-r--r-- 1 greg wheel 1109984 May 23 11:38 tripod_c-000034.JPG	OK
-rw-r--r-- 1 greg wheel 1160660 May 23 11:38 tripod_c-000035.JPG	OK
-rw-r--r-- 1 greg wheel 1116548 May 23 11:40 tripod_c-000036.JPG	OK
-rw-r--r-- 1 greg wheel 1144964 May 23 11:40 tripod_c-000037.JPG	OK
-rw-r--r-- 1 greg wheel 1096392 May 23 11:41 tripod_c-000038.JPG	OK
-rw-r--r-- 1 greg wheel 1075468 May 23 11:41 tripod_c-000039.JPG	OK

Width                : 1280
Height               : 1024

-rw-r--r-- 1 greg wheel 485534 Jul 17  2007 Burto-1082578688.jpg	X
-rw-r--r-- 1 greg wheel 407293 Jul 17  2007 challin-1148789631.jpg	X
-rw-r--r-- 1 greg wheel 436455 Jul 17  2007 DixieNormus-1135913920.jpg	X
-rw-r--r-- 1 greg wheel 471312 Jul 17  2007 DixieNormus-1162292453.jpg	X
-rw-r--r-- 1 greg wheel 373907 Jul 17  2007 Foxfire66-1146355230.jpg	X
-rw-r--r-- 1 greg wheel 459075 Jul 17  2007 Mindstormer-1124471863.jpg	X
-rw-r--r-- 1 greg wheel 219777 Jul 17  2007 mnemonics-1158972868.jpg	OK
-rw-r--r-- 1 greg wheel 178217 Jul 17  2007 mouthpiece.jpg		X
-rw-r--r-- 1 greg wheel 397026 Jul 17  2007 MrXwild-1099954120.jpg	X
-rw-r--r-- 1 greg wheel 634184 Jul 17  2007 MrXwild-1104382515.jpg	X
-rw-r--r-- 1 greg wheel 504497 Jul 17  2007 MrXwild-1104639905.jpg	X
-rw-r--r-- 1 greg wheel 391044 Jul 17  2007 MrXwild-1105859448.jpg	X
-rw-r--r-- 1 greg wheel 351526 Jul 17  2007 MrXwild-1108354780.jpg	X
-rw-r--r-- 1 greg wheel 392029 Jul 17  2007 mum42-1085752824.jpg	OK
-rw-r--r-- 1 greg wheel 240929 Jul 17  2007 mythica-1072184402.jpg	X
-rw-r--r-- 1 greg wheel 341550 Jul 17  2007 mythica-1076743546.jpg	X
-rw-r--r-- 1 greg wheel 293705 Jul 17  2007 mythica-1076883802.jpg	X
-rw-r--r-- 1 greg wheel 119770 Jul 17  2007 mythica-1078644062.jpg	X
-rw-r--r-- 1 greg wheel 230559 Jul 17  2007 mythica-1082104668.jpg	X
-rw-r--r-- 1 greg wheel 303598 Jul 17  2007 Piner-1078460946.jpg	X
-rw-r--r-- 1 greg wheel 190887 Jul 17  2007 Prowler_75-1102971505.jpg	OK
-rw-r--r-- 1 greg wheel 360871 Jul 17  2007 rabagojason-1132279845.jpg	X
-rw-r--r-- 1 greg wheel 595061 Jul 17  2007 vicvog-1145056930.jpg	OK
-rw-r--r-- 1 greg wheel 515779 Jul 17  2007 vicvog-1151354479.jpg	OK
-rw-r--r-- 1 greg wheel 545436 Jul 17  2007 WENPEDER-1151328063.jpg	OK
-rw-r--r-- 1 greg wheel  70462 Jul 17  2007 xiist-1080224235.jpg	X
-rw-r--r-- 1 greg wheel 131213 Jul 17  2007 xyccoc-1119379732.jpg	X


This one has me stumped... maybe Jin will find something.

#48 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 11:00 AM

It compiled easily on my Mac Mini, but I get a runtime error that sqlite is needed (No, I didn't RTFM). I'm installing sqlite3 from macports and will try again.


You can either use sqlite or mysql, but sqlite is easier because mediatomb can automatically configure it for you.

#49 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 11:09 AM

No, the mimetype for my 9 unplayable .mpg files that are MPEG-2 is given as "video/mp2p". The mimetype for my single playable .mpg file that is MPEG-1 is "video/mpeg". I don't know just what file extensions my MPEG-2 videos have, other than .mpg -- I could find out, I suppose.


The HR2x can only play video/mpeg without transcoding at this time and that is why your files are X'ed. Video/mpeg can either be MPEG1 or MPEG2. Try putting this line in your config.xml in the <extension-mimetype> section:

<map from="mpg" to="video/mpeg"/>

If your extensions are other than .mpg. replace the mpg in the mapping to whatever the extension is. You may also have to clear the old video files from the db and re-import them (using the web ui). Let me know if this works.

#50 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 11:36 AM

Greg, one more thing to try with the photos. In config.xml in the <scripting> section, is virtual-layout type "js" or "builtin"? Try changing this setting and re-import your photos (after purging from the db). Also, do not change to "js" unless you included spidermonkey javascript support when you compiled.

#51 OFFLINE   GregLee

GregLee

    Hall Of Fame

  • Registered
  • 1,596 posts
Joined: Dec 28, 2005

Posted 24 May 2008 - 01:01 PM

Try putting this line in your config.xml in the <extension-mimetype> section:

<map from="mpg" to="video/mpeg"/>

If your extensions are other than .mpg. replace the mpg in the mapping to whatever the extension is. You may also have to clear the old video files from the db and re-import them (using the web ui). Let me know if this works.

It did work. I added the map-from line you suggested, restarted MediaTomb, removed the video files from the database, put them back in, and now all the .mpg files I have show as playable, and all but one do actually play.

I also changed virtual-layout type to "js" and purged and reimported the directory of 1280x1024 jpeg files I listed earlier, but that didn't make any difference. The same ones as before show as not displayable, and those that are displayable show up as wee little images.
Greg

#52 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 02:13 PM

It did work. I added the map-from line you suggested, restarted MediaTomb, removed the video files from the database, put them back in, and now all the .mpg files I have show as playable, and all but one do actually play.

I also changed virtual-layout type to "js" and purged and reimported the directory of 1280x1024 jpeg files I listed earlier, but that didn't make any difference. The same ones as before show as not displayable, and those that are displayable show up as wee little images.


Reply from Jin:

> It is obvious that the HR2x is requesting the thumbnail, but why?

I think that question should be directed to the HR2x support folks ;)

I can only assume that the device considers the 2560x1920 as too big and takes the thumbnail. Does it apply some scaling to the images, or does it always show them 1:1 ?

Well, I do not think I can help you here, there's nothing wrong in those logs. You could try to enable DLNA by setting the protocolInfo extend attribute to yes, there we would use DLNA extensions to explicitly tell the player that the particular resource is a thumbnail. But of course it depends if the device pays attention to those tags and so on.

Kind regards,
Jin


Go ahead and try what he suggested. My wife is impatiently waiting for me so I'll try this later. Time to go see Indiana Jones :)

#53 OFFLINE   GregLee

GregLee

    Hall Of Fame

  • Registered
  • 1,596 posts
Joined: Dec 28, 2005

Posted 24 May 2008 - 03:02 PM

Go ahead and try what he suggested.

My protocolInfo extend is already set to "yes".

By the way, I don't understand why the HR20 is doing this slide-show thing with jpegs, anyway (if that's what it is). When I select a file by name to display, why isn't it simply displayed?
Greg

#54 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 06:17 PM

My protocolInfo extend is already set to "yes".

By the way, I don't understand why the HR20 is doing this slide-show thing with jpegs, anyway (if that's what it is). When I select a file by name to display, why isn't it simply displayed?


It has always done that... this question has been asked a lot, along with the ability to control the slide show duration between pictures.

The TVersity users have complained that the HR2x broke the image streaming a couple of NR ago, so what you are seeing (especially with the images that don't work at all) is the same thing they are complaining about.

#55 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 09:29 PM

My protocolInfo extend is already set to "yes".

By the way, I don't understand why the HR20 is doing this slide-show thing with jpegs, anyway (if that's what it is). When I select a file by name to display, why isn't it simply displayed?


Do you have a Windows box hooked into your network? If so, you can install TVersity and see if your photos display OK. If they are also messed up in TVersity, it is probably an HR2x issue and there is nothing that can be done until DirecTV fixes it.

#56 OFFLINE   GregLee

GregLee

    Hall Of Fame

  • Registered
  • 1,596 posts
Joined: Dec 28, 2005

Posted 24 May 2008 - 10:26 PM

I do not have an MS Windows box. However, last Fall I ran Twonky awhile, and it displayed jpegs on the HR20 okay -- an array of thumbnails then full sized images. Are you suggesting that my jpegs are peculiarly diseased?
Greg

#57 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 10:48 PM

I do not have an MS Windows box. However, last Fall I ran Twonky awhile, and it displayed jpegs on the HR20 okay -- an array of thumbnails then full sized images. Are you suggesting that my jpegs are peculiarly diseased?


People are claiming that photos worked really well in TVersity and WMP11 until 2 National Releases ago. Since then, there seem to be a lot of issues with these servers displaying photos and thumbnails (the menu type.) I am thinking that Media Share is indeed broken and this is probably why we are seeing problems with Mediatomb.

I did have a chance to try using TVersity and when I tried to browse the directory with the suspect jpegs, it locked up my HR20 while trying to generate the thumbnails. It did this twice in a row for me...

Have you tried getting MPEG4 video working yet? If the mimetype is video/x-msvideo, my setting and scripts should work for you. Anything else will probably require a tweak.

#58 OFFLINE   GregLee

GregLee

    Hall Of Fame

  • Registered
  • 1,596 posts
Joined: Dec 28, 2005

Posted 24 May 2008 - 11:25 PM

Have you tried getting MPEG4 video working yet? If the mimetype is video/x-msvideo, my setting and scripts should work for you. Anything else will probably require a tweak.

Videos are working fine -- mpeg1, mpeg2, mpeg4 (but not Matroska). Quicktime .mov files don't play yet. Music files play fine -- mp3 and flac, and perhaps others (but not wav).
Greg

#59 OFFLINE   boilerjt

boilerjt

    Icon

  • Topic Starter
  • Registered
  • 908 posts
Joined: Jan 11, 2007

Posted 24 May 2008 - 11:46 PM

Videos are working fine -- mpeg1, mpeg2, mpeg4 (but not Matroska). Quicktime .mov files don't play yet. Music files play fine -- mp3 and flac, and perhaps others (but not wav).


I've been trying to get a quicktime 720p movie trailer working, but I am going to have to compile a VLC or ffmpeg that works with both x264 and mp4 audio. It is recognized by the HR20, though After that, I'll probably give the mkv a shot. I do have flv video working, which is H263 video with mp3 audio (used by youtube).

Audio seems to be pretty simple and I'll try to get wav working tomorrow.

UPDATE: I have WAV working with no transcoding.
<map from="wav" to="audio/wav"/> in <extension-mimetype>
<treat mimetype="audio/wav" as="wav"/> in <mimetype-contenttype>
No reference to audio/wav in <mimetype-profile-mappings>
You'll probably have to re-import as well.

#60 OFFLINE   bixfisher

bixfisher

    AllStar

  • Registered
  • 92 posts
Joined: Jul 09, 2007

Posted 25 May 2008 - 05:35 AM

I have been talking to a techie guy that seems to think all this thumbnail and photo showing stuff since the NR several weeks ago is due to a timeout issue. I was originally advised that there is a "pixel count" issue with the IN DEMAND module but this guy seemed to blow that idea off.
The LARGER or HIGHER RES images take longer to download and therefore, take longer for the thumbs to be created. Apparently they put a shorter TIME OUT break in the code that is in the current NR. That is why the HR2x's are displaying broken image symbols on some images that take too long to download, and the images themselves will cause a time out and the DVR will simply kick out and go to live television.
I have noticed that when I ask it to play music along with the slide shows, it plays many of the photos it won't play when showing photos without music. Damn strange isn't it? My videos wmf files and audio files all play perfectly, just the photos are screwed up.
Very frustrating to say the least! I wish they would just FIX THIS!


wbf




spam firewall