Search

The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2006-02-18 13:55:29

styrmis
Member
Registered: 2005-09-05
Posts: 56
Expertise

Cross-platform internet video streaming

Hi all,

I'm helping out my brother, who has three short videos he would like to show on his website. Currently they are only available as downloads (wmv).

I would like to offer them as downloads still, but also offer the opportunity to play them in most browsers. It seems that flash is the best choice for platform independence.

So, do you agree that flash is the best choice for a solution that will work in most browsers? One important constraint is that I have Linux only, no Windows. I have tried SWFTools, but unfortunately the video contains too many artifacts (even using the highest quality settings).

Does anybody know of a tool (preferably free/open source) that can convert an AVI (for example) to a flash file? Or, if I have the wrong idea, what approach to this problem would you recommend?

Offline

 

#2 2006-02-18 16:33:01

Craig1327
New member
From: Grand Rapids, MI
Registered: 2006-02-06
Posts: 7
Expertise

Re: Cross-platform internet video streaming

styrmis,

You might try converting the movie to a common format like MPEG that can be played or streamed on most platforms without even needing the Marcromedia Flash plug-in installed.

Check out VLC. It is a great open-source video player and convertor that can help quite a bit.

-Craig

Offline

 

#3 2006-02-18 16:39:24

UnLogikal
Habitual Malcontent
From: Flint, Michigan
Registered: 2005-06-08
Posts: 5676
Expertise

Re: Cross-platform internet video streaming

Agreed... I block flash in my browsers because it's a cpu hog. particularly on my powerbook when i'm unplugged. I'd stick with MPEG of some sort.

Last edited by UnLogikal (2006-02-18 16:39:51)


Kyle

Offline

 

#4 2006-02-18 17:40:25

styrmis
Member
Registered: 2005-09-05
Posts: 56
Expertise

Re: Cross-platform internet video streaming

Thanks for the tips. I also block flash by default (mainly because of adverts).

I've used mencoder to convert the videos to MPEG2 just to see whether that would help avi2swf's conversion performance (it didn't).

So, I'll make the videos available in most of the codecs I have available, such as MPEG and xvid. I wasn't aware that MPEG could be embedded/streamed without a streaming server of some kind. I'll go read up on this.

Thanks!

Offline

 

#5 2006-02-19 01:44:23

Medievalist
Member
From: SoCal U.S.A.
Registered: 2004-09-14
Posts: 39
Website  Expertise

Re: Cross-platform internet video streaming

Streaming requires a streaming server, but various video formats allow for buffering, so that the video will start playing before it's completely downloaded.

Offline

 

#6 2006-02-19 04:11:25

odinsdream
Member
Registered: 2004-09-25
Posts: 586
Website  Expertise

Re: Cross-platform internet video streaming

I've always had trouble setting up any kind of in-browser video player in Linux, but I've had no problem actually playing the files once I download them (with something like mplayer or xine). Please keep this in mind when creating your webpage, and be sure to provide regular old links directly to the video files alongside your embedded versions.

As for creating the streaming file, I've had good luck using Quicktime Pro on a mac. Export your video to quicktime format, and be sure to check the part that says "Prepare for Internet Streaming" and enable "Hinted Streaming", and activate keyframes. That'll allow the movie to start playing in the browser while the rest of it is downloaded.

Offline

 

#7 2006-02-19 09:31:49

atl
lolcoder
From: Carnforth, Lancs, UK
Registered: 2005-12-14
Posts: 290
Website  Expertise

Re: Cross-platform internet video streaming

@odinsdream: not entirely correct. Simply "Prepare for internet streaming" > "Fast start" should do what you say (and is likely to be sufficient for this application). "Hinted Streaming" adds a significant amount to the file size, and that added streaming track doesn't help anything unless you're serving it via a streaming server. (Such as what cough DreamHost provides. shrug)


˙ǝpoɔıun 5992+n ı

Offline

 

#8 2006-02-19 21:13:35

odinsdream
Member
Registered: 2004-09-25
Posts: 586
Website  Expertise

Re: Cross-platform internet video streaming

Thanks for the clarification, atl. I'm by no means an expert. I just experimented and stopped when something worked.

Offline

 

#9 2006-02-19 21:42:28

J
Member
From: Paris, France
Registered: 2005-02-24
Posts: 320
Website  Expertise

Re: Cross-platform internet video streaming

odinsdream wrote:

As for creating the streaming file, I've had good luck using Quicktime Pro on a mac. Export your video to quicktime format, and be sure to check the part that says "Prepare for Internet Streaming" and enable "Hinted Streaming", and activate keyframes. That'll allow the movie to start playing in the browser while the rest of it is downloaded.


In the Quicktime format, I guess ?

I've stopped using it years ago, on Windows it bloat the machine beyond sanity. It's not cross platform at all.

Offline

 

#10 2006-02-19 22:21:50

styrmis
Member
Registered: 2005-09-05
Posts: 56
Expertise

Re: Cross-platform internet video streaming

I'm going to go with the flash video in the site, with the option to download in mpeg2 and xvid.

Afaik this is the most platform independent way to distribute a short movie. The fact that I cannot play quicktime/wmv movies in my own browser is quite a negative point against them.

Offline

 

#11 2006-03-14 12:42:46

nukacola
New member
Registered: 2006-02-09
Posts: 2
Expertise

Re: Cross-platform internet video streaming

Offline

 

#12 2006-03-16 02:01:19

julik
Member
From: Utrecht, Netherlands
Registered: 2005-03-12
Posts: 224
Website  Expertise

Re: Cross-platform internet video streaming

It depends on how widely you want to go in platform support. I would settle for the latest-and-greatest Quicktime H.264, the image kicks ass and it's very bandiwdth-friendly. But then again, I don't think you would be able to play it on free Unix systems (they have no QT).
If you want to be more cross-platform, then go for the conventional MPEG-2 with MP3 or AC3 sound, should be OK as well (but you will need an MPEG encoder).

I usually avoid Flash video like a plague. They adapted one of the worst video codecs (On2 VP6) for Flash Video, and it's only feature is that youc an play it with a different framerate than your Flash timeline (and you get an ugly controller component). Besides I'm not sure if Flash 7/8 is available on Linux. Video as SWF sucks tremendously.

Last edited by julik (2006-03-19 12:56:08)

Offline

 

#13 2006-03-16 08:16:49

vivified
Member
From: Rotterdam, NL
Registered: 2006-01-19
Posts: 270
Website  Expertise

Re: Cross-platform internet video streaming

[quote=J

Offline

 

#14 2006-03-16 11:39:35

styrmis
Member
Registered: 2005-09-05
Posts: 56
Expertise

Re: Cross-platform internet video streaming

Everyone is very quick to disparage the use of Flash, perhaps because it is such an awful site design tool.

However, I still think that it is the most cross-platform solution for viewing video in a browser. Look at Google Video and YouTube.

Viewing on a PC is a different question with a very simple answer, so that is not in question here.

Offline

 

#15 2006-03-19 12:58:15

julik
Member
From: Utrecht, Netherlands
Registered: 2005-03-12
Posts: 224
Website  Expertise

Re: Cross-platform internet video streaming

styrmis, it's the most cross-platfoirm (though I doubt if it works properly on Linux - so you have it actually on 3 platforms, Mac, Win and Linux x86). If you let Linux go you can make dramatically better image with much less bandwidth use, avoiding flash altogether.

I made a typo in my post above. But nevertheless, you decide.

I still look at the use of Flash for video as if it was a perversion (because that's what I think it is).

Offline

 

#16 2006-04-21 14:00:36

Tsuma
New member
Registered: 2006-02-16
Posts: 13
Expertise

Re: Cross-platform internet video streaming

I've exported and uploaded regular, hinted, non-hinted, "Fast Start" and "Prepare for Streaming" variations of the same Quicktime MOV to Textdrive. It's a JPEG slide show, which has no option for keyframes.

My goal is not streaming video, but progressive video that starts playing as soon as enough is downloaded. Right now users give up thinking it's not working but in fact it's just a slow download of the 8 Mb file.

However, all versions of my video open in exactly the same way -- that is, nothing plays until they're fully downloaded.

What am I doing wrong or are there specific server - side settings I need to have support adjust for my account?

Does the codec matter?

atl wrote:

@odinsdream: not entirely correct. Simply "Prepare for internet streaming" > "Fast start" should do what you say (and is likely to be sufficient for this application). "Hinted Streaming" adds a significant amount to the file size, and that added streaming track doesn't help anything unless you're serving it via a streaming server. (Such as what cough DreamHost provides. shrug)

Last edited by Tsuma (2006-04-21 15:01:53)

Offline

 

#17 2006-04-21 15:39:42

styrmis
Member
Registered: 2005-09-05
Posts: 56
Expertise

Re: Cross-platform internet video streaming

Tsuma, I believe you need to use some software which wraps the video in a player application (which might be invisible, i.e. no controls visible). My brother sent me a flash video he had created using some Windows shareware and it consisted of an .flv file (the video) and a .swf which loaded the content (presumably doing its best to emulate streaming).

Offline

 

#18 2006-04-21 18:34:40

odinsdream
Member
Registered: 2004-09-25
Posts: 586
Website  Expertise

Re: Cross-platform internet video streaming

Tsuma; I encoded this video in the method I described earlier, and it begins playback when enough is downloaded, at least in the browsers I've tried, and with normal quicktime player.

http://simplykiwi.com/snl-lazy_sunday.mov

Last edited by odinsdream (2006-04-21 18:35:22)

Offline

 

#19 2006-04-27 10:55:37

D_D
New member
Registered: 2006-04-27
Posts: 1
Expertise

Re: Cross-platform internet video streaming

Avi2swf Great tool:D

Offline

 

#20 2006-04-27 12:51:37

bigshow
Member
From: Edinburgh, UK
Registered: 2006-02-14
Posts: 674
Expertise

Re: Cross-platform internet video streaming

why not upload it to Google Video or YouTube, both of these services are free and provide an embeddable player that you can stick on a homepage, plus it may improve the circulation of your video (if that is the intention).

Offline

 

#21 2006-04-27 21:00:48

Tsuma
New member
Registered: 2006-02-16
Posts: 13
Expertise

Re: Cross-platform internet video streaming

styrmis wrote:

Tsuma, I believe you need to use some software which wraps the video in a player application (which might be invisible, i.e. no controls visible). My brother sent me a flash video he had created using some Windows shareware and it consisted of an .flv file (the video) and a .swf which loaded the content (presumably doing its best to emulate streaming).


Actually I do want the controls to be visible -- it's a JPEG encoded slide show easily created with my media management app, iView Media Pro, that makes it easier for my customers to select prints they want to order.

Here's an example (again, be patient because it's not a progressive download).

http://roskar.textdriven.com/PershingLAX/2006-04-22_Varsity_vs_HAKLAX.mov

The catch is -- any export to any other file format loses my Chapter index (lower right).

Oh well.

Offline

 

#22 2006-04-29 02:02:53

2chemp
New member
From: Ukraine
Registered: 2006-04-29
Posts: 5
Website  Expertise

Re: Cross-platform internet video streaming

D_D +1
Avi2swf most powerful & faster program, that i ever try;)

Offline

 

#23 2006-04-29 23:53:51

Medievalist
Member
From: SoCal U.S.A.
Registered: 2004-09-14
Posts: 39
Website  Expertise

Re: Cross-platform internet video streaming

Tsuma

You need to read
http://www.apple.com/quicktime/tutorials/embed.html

and

http://developer.apple.com/documentation/QuickTime/RM/Streaming/StreamingClient/B-Chapter/chapter_1000_section_1.html

To learn when to use which sort of "streaming" and which (rtp/http) gives you what.

Offline

 

#24 2006-05-18 22:02:55

thesheep
Member
From: London
Registered: 2006-02-26
Posts: 69
Website  Expertise

Re: Cross-platform internet video streaming

odinsdream, your video is really funny

Offline

 

#25 2006-05-18 22:20:43

Boogenstein
Title deleted
From: Wausau, Wisconsin, USA.
Registered: 2004-06-02
Posts: 1447
Website  Expertise

Re: Cross-platform internet video streaming

+1 for the vid' o'sdream!


I already drank the answer

Online

 

#26 2006-07-03 07:05:30

kukaracha
New member
Registered: 2006-07-03
Posts: 1
Expertise

Re: Cross-platform internet video streaming

styrmis wrote:

Does anybody know of a tool (preferably free/open source) that can convert an AVI (for example) to a flash file?


you wrote you have linux only, it's a problem :) i know a great amount of such programs for windows! but there's a free online converting service vidflash.com where you can upload and convert video (and other formats) to flash (and to other formats too). you will not need to install any codecs and software.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson