Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Video Thumbails (avi & mp4) & Audio Problem
Hyde
#1 Posted : Friday, 18 February 2011 3:21:40 PM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Hi Martin

Gallery up and running now :)

Can you help with a couple of problems I'm experiencing in connection with:-

1. No thumbnails for avi or mp4 video files.
2. mp4 files don't display at all, nor do I get sound.
3. avi files play the video, just no sound.

I've upped the number of seconds into the video files from 3 to 5 seconds with no effect.

I've installed the binary pack. Any idea if I can do something to ensure it's running?

Thanks
Hyde.
Hyde
#2 Posted : Monday, 21 February 2011 7:35:47 AM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Added some new media files to the library and in doing so found that GSP created thumbnails for both AVI and MP4 files.

So I've re-synchronised the whole library.

I now have thumbnails for about 95% of my AVI and MP4 files. Just don't understand why this isn't 100%, or why it was zero% before :-?

The synchronisation sometimes fails but clicking the synchronise button kicks this process off again apparently from where it failed.

Again, on the "sometimes it works, sometimes it doesn't" theme I get sound from some AVI files, but by no means all. Since they're all created by the same Casio camera I can't think why some work and others don't :-?

And although I've got thumbnails for my mp4 files, I still don't get sound or video. The playbar moves across the player and the time it displays for the clip looks to be right, but nothing by way sound of or video.

Any ideas?
Roger Martin
#3 Posted : Monday, 21 February 2011 8:28:09 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I don't really know, but a couple thoughts:

1. Make sure you're not getting cached versions of the thumbnail images. Force a browser refresh with F5 or CTRL-F5.

2. Video/audio problems are often caused by a plug-in not being able to play the video/audio codec in a file. Consider converting them to a different format.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Hyde
#4 Posted : Monday, 21 February 2011 9:45:17 AM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Okay checked the whole album. F5 didn't do it on its own, but a re-synchronise of each folder that displayed any media file with the default thumbnail and then an F5, did resolve it :-)

I'll see if I can detect a pattern as to why some AVI's play sound and others don't.

But none of the above has had any positive outcome on playing mp4 movies at all, so all I've got for these at the moment is a nice thumbnail :-?

[edit]What might be the reason for the mp4 thumbnails having the correct 16:9 ratio but the player always opens using what looks like a 4:3 ratio? Does that point to something not being quite right for mp4 files perhaps?

[edit2]Nope that's not it, the player has the size set in 'Media Object Types'. Actually, feature request if possible... Can't the player auto size to the dimensions given in the metadata?

Roger Martin wrote:
2. Video/audio problems are often caused by a plug-in not being able to play the video/audio codec in a file. Consider converting them to a different format.
Is the plug-in not loaded by the Flowplayer? I can play these AVI and MP4 files in WMP11. Granted I did have to download some codecs for the mp4 files for WMP to play them.
Roger Martin
#5 Posted : Tuesday, 22 February 2011 8:54:17 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

You are right that the video player size is controlled by settings in the site admin area, but the aspect ratio should be correct, regardless of that setting. I just confirmed it by looking at the videos on the demo site. Notice the bars that appear above and below the widescreen videos. If your aspect ratio is wrong that could be an issue with the videos themselves.

FlowPlayer uses Flash as the underlying technology, and it can only play video/audio that is supported in Flash.

You can change which plug-in plays media by editing the browser template, but this requires HTML skills and is an advanced technique. That said, by adjusting the template you can have your videos rendered in the WMP plug-in, or any other plug-in of your choice.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Hyde
#6 Posted : Wednesday, 23 February 2011 4:17:39 AM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Roger Martin wrote:
You are right that the video player size is controlled by settings in the site admin area, but the aspect ratio should be correct, regardless of that setting. I just confirmed it by looking at the videos on the demo site. Notice the bars that appear above and below the widescreen videos. If your aspect ratio is wrong that could be an issue with the videos themselves.
Sorry I meant that the whole player resized to match the video aspect ratio so you don't get bars.

Roger Martin wrote:
FlowPlayer uses Flash as the underlying technology, and it can only play video/audio that is supported in Flash.
Hmmm, looks like Flash has supported mp4 & aac since version 9. So I assume that this version of FlowPlayer ought to be able tocope then?

Roger Martin wrote:
You can change which plug-in plays media by editing the browser template, but this requires HTML skills and is an advanced technique. That said, by adjusting the template you can have your videos rendered in the WMP plug-in, or any other plug-in of your choice.
Yeah I'm not up for that ;-) Another feature request coming up then... Can the installer cope with a new section that asks the user which plug-in they wish to use and then select an appropriate template to use?
Hyde
#7 Posted : Sunday, 27 February 2011 7:03:09 AM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Roger Martin wrote:
FlowPlayer uses Flash as the underlying technology, and it can only play video/audio that is supported in Flash.
Hyde wrote:
Hmmm, looks like Flash has supported mp4 & aac since version 9. So I assume that this version of FlowPlayer ought to be able to cope then?
So where can we go from here? On the FlowPlayer website they talk of http://flowplayer.org/plugins/streaming/rtmp.html Would this help? If so how do I install and use it?
Roger Martin
#9 Posted : Sunday, 27 February 2011 7:43:26 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

MP4 is a container format, but if Flash/FlowPlayer can't understand the underlying video/audio codec, it won't be able to play. So be sure to use a supported codec.

As for AAC, GSP does not support that out of the box. I will investigate adding support for it. Meanwhile, you might be able to get it working by adding a record to the gs_MimeType table to tell GSP about the file type. Then add a record to gs_BrowserTemplate to tell GSP how to render AAC files in the browser. If you think FlowPlayer can handle it, you can copy one of the other records that specify FlowPlayer (like MP4).
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Hyde
#10 Posted : Sunday, 27 February 2011 7:59:52 AM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Roger Martin wrote:
MP4 is a container format, but if Flash/FlowPlayer can't understand the underlying video/audio codec, it won't be able to play. So be sure to use a supported codec.
This is what I don't understand. I'd have thought the Nokia MP4 format would be based on an industry format codec, one that Flash/FlowPlayer look as though they support. How can I establish the correct codec if Nokia, Flash & Flowplayer just talk in terms of containers?

Roger Martin wrote:
As for AAC, GSP does not support that out of the box. I will investigate adding support for it.
Many thanks.

Roger Martin wrote:
Meanwhile, you might be able to get it working by adding a record to the gs_MimeType table to tell GSP about the file type. Then add a record to gs_BrowserTemplate to tell GSP how to render AAC files in the browser. If you think FlowPlayer can handle it, you can copy one of the other records that specify FlowPlayer (like MP4).
I think you and I both know that's outside my capability ;-)

In case it helps here's the metadata reported by GSP...

Code:
[['Duration','00:00:42.74'],
['Bit rate','2666 kb/s'],
['Audio format','Audio: aac, 48000 Hz, mono, s16, 95 kb/s'],
['Video format','Video: mpeg4, yuv420p, 640x352 [PAR 1:1 DAR 20:11], 2564 kb/s, 29.29 fps, 100 tbr, 30k tbn, 100 tbc'],
['Width','640 px'],
['Height','352 px']];


[edit]Downloaded an app called GSpot. This reports the following for one of my mp4 files...

Code:
mp42: MP4 v2 [ISO 14496-14]
- 3gp4: 3GPP Media (.3GP) Release 4
- isom: MP4 Base Media v1 [IS0 14496-12:2003]
Recommended Display Size: 640 x 352
Created:     2010 Apr 16 14:46:49
Modified:     2010 Apr 16 14:46:49
How do we establish if Flash/FlowPlayer supports this please?
Roger Martin
#11 Posted : Sunday, 27 February 2011 1:59:41 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I don't know the answers to your questions. Those have to do with what Flash and FlowPlayer support, so I respectfully refer you to websites that provide support for them.

Codecs/container formats/plug-ins get really complicated and messy, and I don't even begin to understand it all. That is why us web developers are looking forward to HTML5 and a common video/audio standard.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Hyde
#12 Posted : Sunday, 27 February 2011 2:51:01 PM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Okay, I'm posting on the FlowPlayer forums too, although not generating any responses just yet.

I wouldn't confess to knowing anything about HTML5 but I can't see how that might help :-?

Video devices have been developed to write to a format considered by the manufacturer to show their product in its best possible light or where licensing costs are important to them. Whilst these devices might output something compatible with HTML5 in the future there's a mass of products already in the wild that will continue to need support for the formats we have today.
Hyde
#13 Posted : Sunday, 27 February 2011 2:58:11 PM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Just one thought...

My media files (and the photo's) are on another share on the WHS to where GSP is installed. This wouldn't be causing a problem would it? Bit of a long shot since the photo's are displayed and I can play the AVI files although they take a while to load even though they're restricted to 1m duration.

Just wanted to make sure there wasn't some issue with media being elsewhere that's all?
Roger Martin
#14 Posted : Sunday, 27 February 2011 7:40:08 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I wouldn't think that has anything to do with it.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Hyde
#15 Posted : Saturday, 19 March 2011 3:49:04 PM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

In one of our support emails I think you mentioned an option to change the media player used when clicking on a thumbnail?

I'm getting no where at all on the FlowPlayer website about the ability of Flash or Flowplayer to play mp4 files created by a mobile phone. A number of test files I've created with ffmpeg and My MP4Box that play in GSP (but without audio) don't play at all in WMP11 or PS3Media Server. So even if I managed to find a conversion setting suitable for Flowplayer it wouldn't then be usable in the other environments I use. It'll be easier by far for me to point my family at the codecs needed by WMP11 than get any contribution at all from the FlowPlayer forums.

Therefore I'd like to explore the option to use WMP11 for any of the movie formats but specifically AVI and MP4 instead of FlowPlayer.

Would you be willing to expand on what's needed?

Thanks
Hyde
Roger Martin
#16 Posted : Sunday, 20 March 2011 7:49:07 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

GSP is already configured to use WMP for all audio files when the browser is IE, so you can use that as a model for setting up other file types. Look at the table gs_BrowserTemplate at the record where MimeType='audio/*' and BrowserId='ie'. Notice the column HtmlTemplate - that is the template GSP uses for playing an audio file in IE.

You can use this same template for other file types to force the browser to use WMP for them. Just copy the text in HtmlTemplate into one of the other records (for example 'video/mp4'). Note that IE does pretty well with the WMP plug-in but you may not get great results with other browsers.

These templates are cached by GSP, so you need to restart the IIS app pool after you update them.

There is more info in the Admin Guide about how the templates work.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
mranderson
#8 Posted : Tuesday, 12 April 2011 3:03:04 PM(UTC)
Rank: Newbie

Joined: 1/04/2011(UTC)
Posts: 2
Location: USA-UT

Roger Martin;6614 wrote:
You can change which plug-in plays media by editing the browser template, but this requires HTML skills and is an advanced technique. That said, by adjusting the template you can have your videos rendered in the WMP plug-in, or any other plug-in of your choice.


Roger can you point me in the direction of the browser template? I would like to give this a try as I'm having the same problem with MP4's in Flowplayer.
Roger Martin
#18 Posted : Tuesday, 12 April 2011 5:14:44 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

It's the database table gs_BrowserTemplate.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
mranderson
#19 Posted : Tuesday, 12 April 2011 5:31:06 PM(UTC)
Rank: Newbie

Joined: 1/04/2011(UTC)
Posts: 2
Location: USA-UT

Thanks Roger. OUTSTANDING project. Wishing you much success.
Hyde
#17 Posted : Thursday, 16 June 2011 8:17:28 AM(UTC)
Rank: Advanced Member

Joined: 7/11/2008(UTC)
Posts: 65
Location: UK

Roger Martin;6846 wrote:
GSP is already configured to use WMP for all audio files when the browser is IE, so you can use that as a model for setting up other file types. Look at the table gs_BrowserTemplate at the record where MimeType='audio/*' and BrowserId='ie'. Notice the column HtmlTemplate - that is the template GSP uses for playing an audio file in IE.

You can use this same template for other file types to force the browser to use WMP for them. Just copy the text in HtmlTemplate into one of the other records (for example 'video/mp4'). Note that IE does pretty well with the WMP plug-in but you may not get great results with other browsers.

These templates are cached by GSP, so you need to restart the IIS app pool after you update them.

There is more info in the Admin Guide about how the templates work.

Hi Roger

Just trying this now as I've got some spare time.

Ran into a problem with the ScriptTemplate field. It insists on having a value but the value for ScriptTemplate against MimeType='audio/*' and BrowserId='ie' is Null. How can I stop SQLLite Administrator complaining about this?

Thanks
Roger Martin
#20 Posted : Thursday, 16 June 2011 9:00:19 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Nulls are not allowed. Use an empty string.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
2 Pages12>
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.