HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


mp4 support for video uploads

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#52567 (In Topic #11451)
Avatar

Honoured member

the jwplayer supports it - does OCPortal?

I've searched the forums for "video, mp4" and I got nothing related to using OCP with mp4 video.

I'm building a niche social network that will depend alot on UGC video.

I've looked through the tuts and couldn't find an answer to my question.

I just uploaded a sample mp4 file to my test site and I've got no player or thumbnail ? OCP actually didn't let me initially upload it since the mp4 filetype was not allowed. I changed that in the adminzone and was able to upload it to my video gallery but I'm not seeing the video.

Is this a supported format? Is there something "simple" that can be changed to enable this?

Thx.
Back to the top
 
Posted
Rating:
#52568
Avatar

Honoured member

Forgive me for not being more specific.

I want to have all videos playback via the player.swf  and not via the quicktime, etc…  I would prefer that my user experience be one of it just works and not have to install plugins or warn them that x, y, z are required to see videos.

The player that comes with OCP supports a wide if not all enclusive range of the OCP allowed filetypes for video.

Thx again.

Looking forward to the response.
Back to the top
 
Posted
Rating:
#52570
Avatar

Community saint

I have .swf files for my site as well, but I ended up just uploading an image shot to the "image" part of it and then putting the .swf file on a separate comcode page. But they are user interaction, so they won't be able to go in the "video" section. (plug)

Would be nice to have another category for .swf files, tho. That way everything goes together smoothly.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#52571
Avatar

Community saint

Also, for mp4… why not use it in QuickTime? Are you QuickTime prejudice? lol  :lol:

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#52573
Avatar

Honoured member

swf support gets hairy for UGC.  I agree that it would be a nice to have, but I'm asking about…

I just want to be able to offer my users easy upload of their video files to my site and uniform play back of those videos from a single player.

The swf that I was referring to is the actual player that plays flv's in OCP.  It supports a wide range of other container and video types.

Back to the top
 
Posted
Rating:
#52589
Avatar

I'm testing this now. With quicktime it works for me, but only shows the player controls if I set the right width/height when using the attachment tag (width/height attributes). However with galleries there's good news, mp4 is basically quicktime (it's based on quicktime, and our video width/height/length code for quicktime actually works) so a very simple code change allowed me to make it auto-detect (attached, will be included in next patch release).
Attachment
sources/galleries2.php
» Download: galleries2.php (34 Kb, 174 downloads so far)

In my next post I'll see about making it work via flvplayer.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#52590
Avatar

Okay, that was easy. In sources/support.php change 'mp4'=>'video/mpeg', to 'mp4'=>'video/x-flv',.

I suggest you save the whole changed function get_mime_type($extension) function into a sources_custom/support.php file so it won't get lost on upgrades. Remember to put "<?php" at the top of the file.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#52612
Avatar

Honoured member

Both those changes are working fantastically!

Thx Chris.
Back to the top
 
Posted
Rating:
#76102
Avatar

Fan in training

I know this is a bit of an old thread but I'm having the same issue a few years later but with a different file format (mpeg2 - mpg) lol. How do you change this in Version 7.1.5 as Chrome automatically goes to QuickTime for this and Internet Explorer goes to Media Player but I want them both to use JWPlayer or Media Player as QuickTime seems to not like life for me.
Back to the top
 
Posted
Rating:
#76112
Avatar

(Hi Steven :))

jwplayer will never play mpeg2. It strictly can do whatever Flash or the browser can do, which is basically h264 or flv.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76160
Avatar

Fan in training

i knew it could do flash, used it as such before, wasnt sure on the mpg, is there a way to force the website to use windows media player pluggin on all browsers for windows users as my experience with the chrome quicktime pluggin have been sketchy.

(oh and hi :) long time no speak)
Back to the top
 
Posted
Rating:
#76162
Avatar

That's a really difficult one to answer, but basically it is 'no'. I think the templates already hint it via the classid (classid="..") in GALLERY_VIDEO_GENERAL.tpl, but I think only IE supports that (possibly also Firefox on Windows). Other browsers tend to call up plugins based on the mime type (type="…"), and multiple plugins may compete for the same mime type. This stuff has always confused me though, I think there may be workarounds, e.g. choosing a specific mime type only Windows Media Player recognises, but I'm not sure.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76166
Avatar

Fan in training

just clicked in my head, what about using the DivX pluggin? Thats cross browser and cross-platform...
Back to the top
 
Posted
Rating:
#76167
Avatar

I wouldn't know how to be honest. But you can put whatever markup you like in GALLERY_VIDEO_GENERAL.tpl, so if you can find an example and make it work, please share :).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#76200
Avatar

Community saint

Chris Graham said

…  so if you can find an example and make it work, please share :).
Yes.

PLEASE!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: