|
|
| Author |
Message |
quantum Site Admin


Joined: 07 Mar 2004 Posts: 1048
Location: Dhaka, Bangladesh
|
Post subject: Playing or streaming FLV file in Flash MX |
|
|
Has anyone worked with large video files and Flash? I am having problem with plain import and embed option. This makes the total swf/flash exe file size too large. Thus, it takes too long to load in the first place and becomes very RAM expensive. So I was looking at the .flv export option. It says in the help file:
| Quote: |
Using external FLV files provides certain capabilities that are not available when you use imported video:
You can use longer video clips in your Flash documents without slowing down playback. External FLV files are played using cached memory. This means that large files are stored in small pieces and accessed dynamically, and do not require as much memory as embedded video files.
An external FLV file can have a different frame rate than the Flash document in which it plays. For example, you can set the Flash document frame rate to 30 fps and the video frame rate to 21 fps. This gives you greater control in ensuring smooth video playback.
With external FLV files, Flash document playback does not have to be interrupted while the video file is loading. Imported video files may sometimes interrupt document playback to perform certain functions; for example, accessing a CD-ROM drive. FLV files can perform functions independently of the Flash document, and thus do not interrupt playback.
Captioning of video content is easier with external FLV files, because you can use event handlers to access metadata for the video. |
Which sounds good to me. I am also doing some research on it in the net. If you have any suggestion or opinion or you know of a easy wasy to play or stream the flv files on the flash movie please reply. _________________
Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
|
|
Sat Sep 11, 04 3:14 am
 |
|
 |
hasnatme Moderator


Joined: 22 Aug 2004 Posts: 283
Location: Dhaka,Bangladesh
|
Post subject: |
|
|
Generally I use Sorenson Squeez for converting any video to .flv and hope this is the best way in the world!!! After converting...drag the movie component to the stage and link to the .flv file from the option. _________________ Just Fly With Your Dreams!!!
Digital Vision
 |
|
Sat Sep 11, 04 7:27 am
 |
|
 |
quantum Site Admin


Joined: 07 Mar 2004 Posts: 1048
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
Hasnat,
(Please check your private message.)
The problem with flv export option of Flash 2004 professional is,as I see, it does not compress very well. Degresses the video quality and the frame rate does not seem to be right. The video jerks. _________________
Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
|
|
Sat Sep 11, 04 7:42 am
 |
|
 |
hasnatme Moderator


Joined: 22 Aug 2004 Posts: 283
Location: Dhaka,Bangladesh
|
Post subject: |
|
|
| quantum wrote: |
| The problem with flv export option of Flash 2004 professional is,as I see, it does not compress very well. Degresses the video quality and the frame rate does not seem to be right. The video jerks. |
Doesn't Matter.....Sorenson is official authorized software from..Macromedia, Apple, Real and many more....... I hope your problem will solve after using this software....this one dynamically compress your movie with sevaral...industrial settings by default and also you can customize it. The quality remain....extremely well as it is as the original.
For example... Apple use this software for their trailers and this is built in at Macromedia Flash 2004 Professional. But on the standalone version..it has some great feature..than the..built-in of Macromedia Flash. _________________ Just Fly With Your Dreams!!!
Digital Vision
 |
|
Sat Sep 11, 04 2:59 pm
 |
|
 |
hasnatme Moderator


Joined: 22 Aug 2004 Posts: 283
Location: Dhaka,Bangladesh
|
Post subject: |
|
|
@quantum
Check your private message. _________________ Just Fly With Your Dreams!!!
Digital Vision
 |
|
Sat Sep 11, 04 2:59 pm
 |
|
 |
hasnut Expert User


Joined: 28 Aug 2004 Posts: 201
|
|
Sat Sep 11, 04 10:47 pm
 |
|
 |
quantum Site Admin


Joined: 07 Mar 2004 Posts: 1048
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
Thanks hasnut. But it's for offline presentation, so I won't really need the streaming technology. The video file size is pretty big, so instead of embedding the video, I just want to load it dynamically in run time. Flv's progressive download process sounds good because it supposedly has better menory management. Let us see. _________________
Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
|
|
Sat Sep 11, 04 11:12 pm
 |
|
 |
hasnut Expert User


Joined: 28 Aug 2004 Posts: 201
|
|
Sun Sep 12, 04 2:09 am
 |
|
 |
quantum Site Admin


Joined: 07 Mar 2004 Posts: 1048
Location: Dhaka, Bangladesh
|
Post subject: FLV advantages with Flash |
|
|
Hasnut,
Probelms with those approach is memory management. I am not sure about director X, But loading a big file in the RAM with the embedded movie in Flash player is not a good idea. I want the main movie to load independently and run smoothly. Streaming or progressive download is better solution I hope, as macromedia says, "example, accessing a CD-ROM drive. FLV files can perform functions independently of the Flash document, and thus do not interrupt playback." _________________
Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
Last edited by quantum on Sun Sep 12, 04 5:39 am; edited 1 time in total |
|
Sun Sep 12, 04 4:50 am
 |
|
 |
hasnatme Moderator


Joined: 22 Aug 2004 Posts: 283
Location: Dhaka,Bangladesh
|
Post subject: |
|
|
@hasnut
Yes Macromedia Director MX is best presentation software in the world.....Its very srong with programming and this can be intigrated to windows operating..like you can control windows component from the director and it basically..uses for database presentation and ofcourse copyright protection is the mainthing of director. But...if you want some extra ordinary animation on your presentation...then you can't use director..though it can import Flash content but it slow down user's PC. I think flash is better for normal presentation today...if there is no database and copyright protection and it also can call specific program to open specific files. _________________ Just Fly With Your Dreams!!!
Digital Vision
 |
|
Sun Sep 12, 04 5:32 am
 |
|
 |
quantum Site Admin


Joined: 07 Mar 2004 Posts: 1048
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
You are right hasnat. Director X is another memory hog. To load an external movie of 15 megabyte a director x application stalls for 5 seconds. This is completely unacceptable. _________________
Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
|
|
Mon Sep 13, 04 12:46 am
 |
|
 |
quantum Site Admin


Joined: 07 Mar 2004 Posts: 1048
Location: Dhaka, Bangladesh
|
Post subject: How Flash handles large video files. FLV good option? |
|
|
As I have gone through the whole flash flv and big video file business I learned several things that should be shared.
1. Flash is unable to handle very large video files practically, no matter how hard you try. By large I mean above 30 megs. You can chop it up, load dynamically, embed it, whatever you do, it just can't do it. It becomes very ram consuming and the computer comes to a stall.
2. Using flv is a better option than anything else out there. The problem with the default flash flv option is that there is only one configuration for exporting. So you cannot customize it. The file size gets too big. You should use sorenson squeeze for compressing the avi.mprg video to flash flv format. Generally, the CD configuration with 2000kb/sec gives a very good quality. Compress the movie to flv at the frame rate which the original flash file is running at.
3. You can embed the flash flv in the flash file itself. Or you can dynamically load the flv at run time. Embed it, if the file size is fairly small. It give better running quality.
4. To load an FLV file dynamically, we’ll require one holder object in Flash. From the Library panel’s option, select New Video. Drag the video object on to the stage and give it an instance name as ‘holder_video’
Add the following code listing on a new layer in Flash.
| Code: |
test_nc = new NetConnection();
test_nc.connect(null);
test_ns = new NetStream(test_nc);
holder_video.attachVideo(test_ns);
test_ns.play(“test.flv”); |
The above code first creates an instance (test_nc) of the NetConnection object and is used while creating test_ns, the NetStream instance. Later the attachVideo command associates holder_video with any media that streams through the test_ns NetStream. Finally, play() starts the video.
5. Another option is to use the MediaDisplay component from the component library. Don't use media controler or media playback. You can not size them perfectly. You can assign which video to play at which frame rate from the Media Display component inspector.
That's about it. If I remember anything else, I will post them here. _________________
Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
|
|
Tue Sep 21, 04 3:20 am
 |
|
 |
hasnatme Moderator


Joined: 22 Aug 2004 Posts: 283
Location: Dhaka,Bangladesh
|
Post subject: |
|
|
This explanation Should help who are not aware of this. _________________ Just Fly With Your Dreams!!!
Digital Vision
 |
|
Tue Sep 21, 04 7:05 am
 |
|
 |
quantum Site Admin


Joined: 07 Mar 2004 Posts: 1048
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
Here is a great tool that was very helpful in my FLV project. It plays FLV on a standalone projector. Like a media player. Great, if you want to test your flvs after compressing them in sorenson squeeze. It also registers the extension .flv. So all you need to do is double click on the .flv file. Neat.
[http://www.martijndevisser.com/archives/000021.php] _________________
Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
|
|
Thu Sep 23, 04 11:23 pm
 |
|
 |
D_D Just In

Joined: 25 Jan 2006 Posts: 2
|
Post subject: |
|
|
Video to Flash Converter is really great proggy that converts any video format to SWF without any quality lossless and generates it to HTML. |
|
Wed Jan 25, 06 5:45 am
 |
|
 |
|