Aspect Ratio Change in Video Player

Permalink
Hello,

I'm just starting to work with Concrete5, and learning as I go. I've never designed a website before, so I'm completely new to this game. I'm having a good time with it, but I'm stumped as to one thing lately: I've been able to upload video to my newly created website, most of which are native 16x9 HD dimensions. However, one of my videos is native 4x3, uploaded to it's own page, and it's being stretched to 16x9 dimensions. Changing the dimensions in the video player block itself does nothing. This is 5.3.1.1. Any help or insight you can give would be greatly appreciated. Thanks! in advance!

 
griebel replied on at Permalink Reply 2 Attachments
griebel
This block use the open source Flowplayer to play .flv files. See screenshot. You have height and width detected, and fullscreen option.

Installation:
1) Unpack attached video.zip to yourdomain.com/blocks/video
2) Add "Video Player" block to page

Have fun :)
Remo replied on at Permalink Reply
Remo
Joshua published an alternative player a while ago too..

I think the player in the core should be replaced..

flowplayer doesn't seem to be a good choice since it's published under GPL which makes it impossible to ship with the core, but fine if you install it on your own.
mario replied on at Permalink Reply 1 Attachment
mario
Thanks Griebel! sizing actually works now.

I generally don't like my videos all autoplaying if I have more than one on the page. This attached file modifies your attached view.php so that all players (flv,wmv,mpg,mov, etc.) shouldn't autoplay.
dirkler replied on at Permalink Reply
dirkler
Thanks to both Remo and mario.
I was having the same aspect ratio issues and both of your solutions did exactly what I wanted.
Can't thank you guys enough!
edbeeny replied on at Permalink Reply 1 Attachment
edbeeny
mario
Thanks for your post.
I have changed the script a bit so when you select the video and set the size you can select if you want it to auto start or not.

Find attached.

add the files to the griebel's download earlier.
enque replied on at Permalink Reply
enque
Any ideas on getting mpeg4 to play or show.
Nothing shows up on the page after I have added the video block with an mpeg4 video and I'm not too sure why. I'm on Version 5.3.2 and using the latest update to the flow video player by edbeeny.
mario replied on at Permalink Reply
mario
thanks for the update edbeeny. i'l check it out :)
BHWW replied on at Permalink Reply
BHWW
Hi edbeeny

Would you please be able to indicate what code is required to disable the the auto play function in the standard video player?

Thanks
ehgaal replied on at Permalink Reply
Any way to get a replay button at the end of the video? Also, the circle that's supposed to follow the line/length of the stream is sitting at the beginning, so you can't fast forward/rewind. Any way to fix that?

Thanks so much for this!
therock112 replied on at Permalink Reply
[SOLVED]

I had to add the following in two locations in addition to id="player<?=$bID?>">:

change the following :
flowplayer("player", "<?=$this->getBlockU

to :

flowplayer("player<?=$bID?>", "<?=$this->getBlockU

now, if I have multiple flv videos, it appears to work.

--------------------------------------
by adding id="player<?=$bID?>"> is not helping.

any other ideas??

i modified that in the view.php file in cms/blocks/video
KicktheCAN replied on at Permalink Reply
Whenever I add this block to a page I get no option to choose the video or size and "Edit" does not appear in the context menu when clicking on it. I am using 5.5.2.1.
nigelhaslam replied on at Permalink Reply
Thanks for this useful thread.

The Flowplayer is a lot more attractive than the core player, however, I'm having trouble getting more than one clip on a page.

Being new to C5 I may have followed the instructions wrongly, I did the following:

Downloaded both Griebel's and Edbeeny's attachments

Copied the contents of Edbeeny's zip into Griebel's video folder

Replaced the core video folder with the new combined video folder.

Now, when I add a second video to a page I just get a black block of the correct looking size.

Any clues?

3D Hack
colin4255 replied on at Permalink Reply
colin4255
Me too. I installed the updates listed eariler in this post and while any one instance of the player works perfectly with no autoplay, any second or subsequent players I add to the same page just don't show up at all.
admin replied on at Permalink Reply
I can't get the above methods to work. I'm using 5.4.0RC1. Compatibility issue?

Should I put griebel's files in /blocks/video, or /concrete/blocks/video? Based on the description, it sounds like /blocks/video.

If I put it in either or both directories my page renders fine except for the video block, which is sized properly, but spews out the following.

getFileObject(); $rel_file_path=$file->getRelativePath(); ?>
width); $vHeight=intval($controller->height); if ($c->isEditMode()) { ?>
getFilename()).'
'; if( strstr(strtolower($file->getFilename()),'.flv') ){ if($controller->autoplay == "true") { ?>
getFilename()),'.wmv') || strstr(strtolower($file->getFilename()),'.mpg') || strstr(strtolower($file->getFilename()),'.mpeg') ){ ?>getFilename()),'.avi') ){ ?> getFilename()),'.mov') || strstr(strtolower($file->getFilename()),'.qt') ){ ?>

It looks like a pathing issue? Suggestions? Thanks.
drroller replied on at Permalink Reply
drroller
I have the same problem, I think it needs an update to work on the most current Concrete5
Sitehenge replied on at Permalink Reply 1 Attachment
Sitehenge
I combined edbeeny's files with griebel's and put it in blocks/video and it works fine with 5.4.1.1.
mikeb replied on at Permalink Reply
mikeb
Hi,

great contributions thanks. I have about 50 videos to put on a client website I'm building with C5 and these updates to the video player are fantastic.

Create a splash image by including an img tag after the anchor href in the view file. This image can be a 'branded' style player just point the img ref to an image of your choice as below:

<a href="<?=$rel_file_path?>" style="display:block;width:<?=$controller->width?>px;height:<?=$controller->height?>px" id="player">
// Image added here between anchor tags
<img src="mysplashimage.png" alt="My player" />
</a>
edbeeny replied on at Permalink Reply
edbeeny
I had this problem too.
The issue I had is the player id's must be unique on the page
To resolve this issue I changed
id="player"> to
id="player<?=$bID?>">

This makes it unique and it should work.
kevdzhang replied on at Permalink Reply
Hi mikeb, any way to add an individual splash image for each video. I'm having website with a lot of videos too, and I would like a thumbnail image/splash image for each specific video. Any ideas??
keeasti replied on at Permalink Reply
keeasti
Thanks everyone ... Flowplayer is so much better than the stock player. I am new to C5 and this is the only flaw I have found so far.