PDA

View Full Version : [Video] Adobe Flash - Making your own streams!



Sukisho
09-07-2010, 08:27 PM
[Video] Flash: Making your own streams!
Various people have asked me about this since I've been using my own streams often rather than Youtube and such sites all the time. So if you're tired of them removing your videos and you have your own host, here's a quick tutorial on how to make your own streaming video! Waring: Somethings depend on the version of Flash you have.

http://voice-acting.net/tutorial/Flash/Flash01.png
-Open up flash, create a new file then Go to file > Import > Import Video
-Make sure to select the highest quality version of your video

http://voice-acting.net//tutorial/Flash/Flash02.png
-For Deployment: select "Progressive download from a web server". This is so that it knows it will be downloading the video off the host as it runs the data through the stream.

http://voice-acting.net/tutorial/Flash/Flash03.png
-Select "Flash 7 - High Quality (7000kbps)" (will differ depending on your version)
-You can adjust any of the settings further individually if you wish by just clicking their tabs, and then hit next.
-Choose a skin, I usually go with "SkinOverPlaySeekMute.swf"
-Then finish, save the project.

http://voice-acting.net/tutorial/Flash/Flash05.png
-Wait for it to import the video, then adjust the stage to a slightly bigger size then the video. Like mine is 640 x 360, so click the properties box in the bottom window (not shown) and changed the stage to 680 x 400. Then I repositioned the video into the new area.

http://voice-acting.net/tutorial/Flash/Flash06.png
-Then just save it out by hitting publish in the file menu. Last upload the SWFs, FLV, Javascript (.js), .html files created from the project to your host and you've got your very own stream.

Ryusuke
09-20-2010, 08:45 PM
The deployment bit and some other steps like the encoding doesn't pop up in my version of Adobe Flash. Are you using a different program?

Sukisho
09-20-2010, 08:56 PM
Well I'm using Flash CS3, so like I said it does depend on the version....somethings may be different.

Ryusuke
09-21-2010, 07:08 AM
Welp, I got past those steps now. Uploaded everything to the server, but everytime I try to open the "html" it just usually comes out blank. Linked it to two other people, one guy had the same problem, but the other got it working. hm.

Adam
09-21-2010, 02:01 PM
Welp, I got past those steps now. Uploaded everything to the server, but everytime I try to open the "html" it just usually comes out blank. Linked it to two other people, one guy had the same problem, but the other got it working. hm.

Here's the issue, it is possible that your server does not support FLV. You will have to contact your provider and ask them. I had this issue too at first when I set up the streaming video player for my site.

Ask them about adding the following MIME types:

.flv, .mov, .avi, .wmv, and any other video formats you may be using. Usually it doesn't take that long for them to add it.

Edit:

Wait, you said one guy got it working? Hrmm, you may have to update your Flash Player to the latest version. Link it in here. If the one person was able to get it to work then it might have something to do with your browsers.

Sukisho
09-21-2010, 03:03 PM
Yeah it may be a browser issues or the Flash player. I know I had those kind of problems at first, but just checking to make sure you have the newest Flash installed usually fixes the problem.

Ryusuke
09-21-2010, 03:27 PM
Yep, still getting a blank. Here's the link for you guys to try out.

http://www.kh2.co.uk/_ryusuke/References/Bink%27s%20Sake%20reference.html

Guess I'll just talk to the server providers of this site to have it enabled to avi, flv, etc.

Adam
09-21-2010, 03:38 PM
Yep, still getting a blank. Here's the link for you guys to try out.

http://www.kh2.co.uk/_ryusuke/References/Bink%27s%20Sake%20reference.html

Guess I'll just talk to the server providers of this site to have it enabled to avi, flv, etc.

It seems like it's an issue in the actual html coding.

Here's a direct link to your swf which works.

http://www.kh2.co.uk/_ryusuke/References/Bink's%20Sake%20reference.swf

So you don't have to bother calling your server provider. I could go through the html coding to see what the issue is exactly, but I'm at work so I wouldn't really be of much use until I get out, but that isn't til 5 est time.

Edit:

This may be the issue


'src', 'Bink's Sake reference',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Bink's Sake reference',
'bgcolor', '#ffffff',
'name', 'Bink's Sake reference',
'menu', 'true',
'allowFullScreen', 'true',
'allowScriptAccess','sameDomain',
'movie', 'Bink's Sake reference',
'salign', ''
); //end AC code


You see what I underlined and highlighted? When using this type of coding | ' (opens it) and then ' (using it again closes it), so when you're using the apostrophe for "Bink's" it is confusing the coding, making it think you're closing "Bink". And as such, it's leaving something mismatched.

Try this (Again, I'm at work, so I'm kinda half assing this quickly)


'src', 'Binks Sake reference',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Binks Sake reference',
'bgcolor', '#ffffff',
'name', 'Binks Sake reference',
'menu', 'true',
'allowFullScreen', 'true',
'allowScriptAccess','sameDomain',
'movie', 'Binks Sake reference',
'salign', ''
); //end AC code

By getting rid of the apostrophe you may have to change the name of the swf file to be the exact same way as it is in the code. "Binks Sake reference"

Try it and see if it fixes the issue.

I highlighted the top line of the fixed coding. "src" means the source file, so originally because the apostrophe was confusing the script, it wasn't able to find the swf file, and as such, nothing showed up. So yeah, you'll have to rename the swf file to "Binks Sake reference" and fix that coding.

Ryusuke
09-21-2010, 03:44 PM
Alright, then. Thanks. But, how are you gonna go about going through the html coding?

Adam
09-21-2010, 03:46 PM
Alright, then. Thanks. But, how are you gonna go about going through the html coding?


I do web work for freelance and a job ^^.

I just have to view the source code of the actual page.

I edited the above post as you were replying.

Edit: Wait, you just published this in Flash, so you got the default html file then right?

If that's the case, then it's possible that if you rename the actual flash file and republish it under the new name without the apostrophe it'll solve the problem.

Ryusuke
09-21-2010, 03:48 PM
Oh, that's cool.

Oh. The apostrophe. Of course...XD Thanks a lot, man. I'll go do that now.

Adam
09-21-2010, 03:56 PM
You're welcome. I hope that was the problem.

Sukisho
09-21-2010, 05:37 PM
I know a problem. You haven't uploaded the "AC_RunActiveContent.js" file, cause I get the error message when loading the page, which is a javascript that does something for the files. It may not work because that's not there.

Adam
09-21-2010, 07:11 PM
I know a problem. You haven't uploaded the "AC_RunActiveContent.js" file, cause I get the error message when loading the page, which is a javascript that does something for the files. It may not work because that's not there.

Yeah, that's definitely what's holding it back now. I didn't even get that error with the previous one.

I tried it again without the apostrophe in the title and that's the error that's coming up.

The file is usually automatically created and it should, hypothetically be in the folder where you published the flash.

Ryusuke
09-21-2010, 08:59 PM
http://www.kh2.co.uk/_ryusuke/References/Binks%20Sake%20reference.html

It works now! Thanks guys.

Sukisho
09-21-2010, 09:04 PM
It sure does :D

So yay this was useful after all :lol:

Adam
09-22-2010, 01:54 PM
It sure does :D

So yay this was useful after all :lol:

It's a good thread and it's very useful for those who don't want to stream on youtube with their limitations, size and length wise, as well as the high probablity that their fandub would be taken down and they'd get banned.

Tomoyo Ichijouji
03-07-2011, 08:29 PM
Is there any way to get this code to work without having the program? I've tried ganking the JS file from the example (sorry Ryusuke XD;; ) and copying the code and seeing if switching out the URLs would do the trick, but so far I've only gotten it to stream the swf raw, no player menus that let you pause or seek.

Adam
03-07-2011, 08:53 PM
Is there any way to get this code to work without having the program? I've tried ganking the JS file from the example (sorry Ryusuke XD;; ) and copying the code and seeing if switching out the URLs would do the trick, but so far I've only gotten it to stream the swf raw, no player menus that let you pause or seek.

Doubtful. I'd have to check when I get home since I'm about to leave for work. This is based off a swf file that is created, so you would need that swf file as the base. I guess hypothetically it could be possible, but like I said I'd have to check it out when I get home.

Tomoyo Ichijouji
03-08-2011, 06:09 AM
As it turns out, the question is a moot point -- the program I'm using DOES have an option to make your own streaming player with the corresponding extra XML files and such:

http://www.dvdvideosoft.com/products/dvd/Free-Video-to-Flash-Converter.htm

And to demonstrate that it works...

http://hidden-currents.org/testingembed.htm

I love how much control you have over the various options, too. If you want more than the basics then you have to do a little manual fiddling with the code, but I'm more than enough comfortable with basic code editing to be able to do that. 8D

Erm...should I post a separate thread tutorial for this other program, or should I just leave the URL in this thread for other people to check out?