catalyst2 community forums  

Go Back   catalyst2 community forums > catalyst2 Community > General Chit-Chat

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 03-07-2004, 11:55 AM   #1 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
How to embed video in webpage?

Thought I'd start a new topic.

Can anyone point me towards online resource that gives me instructions on how to embed video (mpeg) into a webpage? Ideally I want potential visitors to not have to download or install any plugins to view, hence mpeg viewing facility should be standard in more spec PCs?

Hope to hear, thanks

Al
aljames is offline   Reply With Quote
Old 04-07-2004, 01:46 PM   #2 (permalink)
Senior Member
 
Jenny's Avatar
 
Join Date: Jan 2003
Location: Stockholm, Sweden
Posts: 277
Send a message via MSN to Jenny
Have you tried the traditional HTML?

<object data="movie.mpg" type="video/mpg" width="200" height="200">

or a bit more antique :

<embed src="movie.mpg" width="200" height="200" autostart="true" type="movie/mpg">


Jenny
Jenny is offline   Reply With Quote
Old 04-07-2004, 02:07 PM   #3 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
Thanks Jenny, I tried the second bit of code and it displayed the windows media graphic, but what goes in the ="video/mpg" bit?

Does adding this code mean that the mpeg will play for every one of my visitors?
Thanks again
Al
aljames is offline   Reply With Quote
Old 04-07-2004, 02:09 PM   #4 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
p.s. I have a 10Mb wmv file as the video. What is the best program for compressing this to bog std mpeg format? and will it be the same size or smaller?

Al
aljames is offline   Reply With Quote
Old 04-07-2004, 02:38 PM   #5 (permalink)
Senior Member
 
Jenny's Avatar
 
Join Date: Jan 2003
Location: Stockholm, Sweden
Posts: 277
Send a message via MSN to Jenny
Multimedia content and video content in particular is not very easy to handle. The file sizes are very high and you never know if the target computer is able to display it (right codec???)

For displaying a video, I would offer it as Real (Helix) and WMV/ASF stream and as MPG to download.

Both tools (Helix) and WMV encoder are free.

www.real.com
http://www.microsoft.com/downloads/d...DisplayLang=en

A nice converting software can be found here : http://www.flaskmpeg.net/
Jenny is offline   Reply With Quote
Old 04-07-2004, 05:48 PM   #6 (permalink)
Registered User
 
markjanssen's Avatar
 
Join Date: May 2003
Location: /home/mark/
Posts: 389
Send a message via ICQ to markjanssen Send a message via AIM to markjanssen Send a message via MSN to markjanssen Send a message via Yahoo to markjanssen
Quote:
Originally posted by Jenny
Have you tried the traditional HTML?

<object data="movie.mpg" type="video/mpg" width="200" height="200">

or a bit more antique :

<embed src="movie.mpg" width="200" height="200" autostart="true" type="movie/mpg">


Jenny
Don't use the embed, it's abolished (as you said already).
Also don't refer to any proprietary plugins unless you really need to, and even then use one that works on several platforms. That's also why you should *never ever* use windows media as the only choice: nobody not using windows will be able to view it (unless they do some nasty tricks etc. etc.).
I would really recommend aljames to do some multiplatform and multibrowser testing before putting the code in public pages. And even then, I'd recommend you to place a link to the video so people can download it and view it in their favourite player.
__________________
#mark
-bash: /dev/mind: No such file or directory

homepage: http://www.givemehelp.co.uk/ / support forums: http://www.givemehelp.co.uk/forums/ / irc: #givemehelp on quakenet
email: mark@givemehelp.co.uk / msn: mark@givemehelp.co.uk / aim: mark177283829 / icq: 177283829 / yahoo: mark177283829
Mozilla Firefox: Safer, Faster, Better
markjanssen is offline   Reply With Quote
Old 05-07-2004, 10:54 AM   #7 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
Good advice mark. I will arrange different video types shortly.

I've tried encoding my wmv (34Mb video) into an mpeg1 using premier pro 7 but the resultant file is like, 650 Mb!!

How can I get this to be around 10Mb MPEG but similar quality to the wmv file?

Also is MPEG2 better?

Al
aljames is offline   Reply With Quote
Old 05-07-2004, 11:32 AM   #8 (permalink)
Registered User
 
markjanssen's Avatar
 
Join Date: May 2003
Location: /home/mark/
Posts: 389
Send a message via ICQ to markjanssen Send a message via AIM to markjanssen Send a message via MSN to markjanssen Send a message via Yahoo to markjanssen
MPEG2 gives better quality on lower file sizes I think.
__________________
#mark
-bash: /dev/mind: No such file or directory

homepage: http://www.givemehelp.co.uk/ / support forums: http://www.givemehelp.co.uk/forums/ / irc: #givemehelp on quakenet
email: mark@givemehelp.co.uk / msn: mark@givemehelp.co.uk / aim: mark177283829 / icq: 177283829 / yahoo: mark177283829
Mozilla Firefox: Safer, Faster, Better
markjanssen is offline   Reply With Quote
Old 05-07-2004, 11:48 AM   #9 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
mpeg 2 produces the same 650mb file size.
aljames is offline   Reply With Quote
Old 05-07-2004, 12:56 PM   #10 (permalink)
Registered User
 
markjanssen's Avatar
 
Join Date: May 2003
Location: /home/mark/
Posts: 389
Send a message via ICQ to markjanssen Send a message via AIM to markjanssen Send a message via MSN to markjanssen Send a message via Yahoo to markjanssen
Thats weird. Are you sure that you're not highering the resolution or framerate?
__________________
#mark
-bash: /dev/mind: No such file or directory

homepage: http://www.givemehelp.co.uk/ / support forums: http://www.givemehelp.co.uk/forums/ / irc: #givemehelp on quakenet
email: mark@givemehelp.co.uk / msn: mark@givemehelp.co.uk / aim: mark177283829 / icq: 177283829 / yahoo: mark177283829
Mozilla Firefox: Safer, Faster, Better
markjanssen is offline   Reply With Quote
Old 07-07-2004, 10:43 AM   #11 (permalink)
Senior Member
 
Jenny's Avatar
 
Join Date: Jan 2003
Location: Stockholm, Sweden
Posts: 277
Send a message via MSN to Jenny
Quote:
Originally posted by markjanssen
[b]That's also why you should *never ever* use windows media as the only choice: nobody not using windows will be able to view it (unless they do some nasty tricks etc. etc.).
That's why I mentioned Helix

Jenny
Jenny is offline   Reply With Quote
Old 07-07-2004, 08:46 PM   #12 (permalink)
Registered User
 
Waldovia PM's Avatar
 
Join Date: Jul 2003
Location: West Midlands
Posts: 188
I just found out Netscape won't ask Media Player to open wmv videos

I've decided to use avi instead.
Waldovia PM is offline   Reply With Quote
Old 07-07-2004, 10:12 PM   #13 (permalink)
Registered User
 
markjanssen's Avatar
 
Join Date: May 2003
Location: /home/mark/
Posts: 389
Send a message via ICQ to markjanssen Send a message via AIM to markjanssen Send a message via MSN to markjanssen Send a message via Yahoo to markjanssen
WMV should work in netscape/mozilla/firefox.
I wouldn't advise you to use it, but it should just work.
__________________
#mark
-bash: /dev/mind: No such file or directory

homepage: http://www.givemehelp.co.uk/ / support forums: http://www.givemehelp.co.uk/forums/ / irc: #givemehelp on quakenet
email: mark@givemehelp.co.uk / msn: mark@givemehelp.co.uk / aim: mark177283829 / icq: 177283829 / yahoo: mark177283829
Mozilla Firefox: Safer, Faster, Better
markjanssen is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.