importing video problem

  • CE/ Pyrocy
  • Proficient
  • Proficient
  • User avatar
  • Posts: 374
  • Loc: Santa Barbara, CA

Post 3+ Months Ago

hey every1.. havent posted in here in a while.

so i made some stuff in After effects and outputed it to .mov.... (im on a mac)
anyway i imported video as an embeded movie clip...i had to do it this way cause several other clips will sync with this one and they have to start and stop right after eachother with no delays on the timeline..

anyway point is... after import and i test movie... the video witch is extremely good quality is now horrible even though i imported as high quality... its all pixelated and crap like when you upload to youtube...

theres gotta be something wrong here cause i've seen severall sites that are useing the same method i am and theres look great.

any help would be greatly appreciated.

thanks,
nick
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • krismeister
  • Graduate
  • Graduate
  • krismeister
  • Posts: 202

Post 3+ Months Ago

I recommend you use the Flash Video Encoder to encode your video into FLV. Then bring that into you Flash library. I've had good results with that.

It has setings for Flash 8 encoding or Flash 7 encoding, and believe me Flash 8 encoding is much much better.

Also if your video is unusually active and dynamic you'll want to encode at a high bitrate. The highest default setting in the Flash Video Encoder is 700Mb/sec. I've occasionally encoded at a higher bitrate on footage which required it, though keep in mind you'll have to preload when you embed it.

If you are still not getting the results you want, you might look into Sorensen Squeeze. I've used it in the past with excellent results.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Also check sizes. I recommend exporting video out of AE at the SAME size as it will appear in Flash. Don't resize the video (either larger or smaller) in Flash after its imported or allow the import function to resize it. (make sure to look in the custom import settings in the Flash Video Encoder or it will resize stuff to a preset based on your selected quality).

Flash has a tendency to demolish stuff that it resizes on its own.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

I have to agree with the others that FLV is the better choice, but the problem is what you want to do with the consecutive playback. Took me a long time to find something that worked. You need the FLVPlayback component to use this but this script will let you run through up to seven FLVs consecutively (There's a very slight hesitation between FLV's unfortunately, but it's a good as I could find.

Code: [ Select ]
my_FLVPlybk.contentPath = "firstvideo.flv";
// Set Videos Behavior

// Create a videos object to hold a video
// playlist and event handler functions...
var videos:Object = new Object();

// Set up to 7 video feeds in a single component
videos.list = new Array();
videos.list[0] = "firstvideo.flv";
videos.list[1] = "secondvideo.flv";
videos.list[2] = "thirdvideo.flv";
videos.list[3] = ""; //you don't have to use them all. You can do up to 7
videos.list[4] = "";
videos.list[5] = "";
videos.list[6] = "";
videos.loop = true;
videos.length = 1;
videos.loaded = false;


// Path to FLVPlayback components
var m = this.my_FLVPlybk;

// Set the path of the first video feed
m.contentPath = videos.list[0];

// Set a 'ready' event handler to load the videos
videos.ready = function( evt:Object ):Void
{
if(!this.loaded){
this.loaded = true;
for( var n=1; n<this.list.length; n++ ){
if( videos.list[n].indexOf(".flv") != -1 ){
m.activeVideoPlayerIndex = n;
m.contentPath = videos.list[n];
this.length++;
}
}
m.activeVideoPlayerIndex = 0;
}
}
m.addEventListener("ready",videos);

// Set a 'complete' event handler to load the next video
videos.complete = function( evt:Object ):Void
{

var nextIndex = Number(evt.vp)+1;
if( nextIndex == this.length){
if( this.loop ){
nextIndex = 0;
}else{
return;
}
}
m.activeVideoPlayerIndex = nextIndex;
m.visibleVideoPlayerIndex = nextIndex;
m.play();
}
m.addEventListener("complete",videos);

// End Set Videos Behavior
  1. my_FLVPlybk.contentPath = "firstvideo.flv";
  2. // Set Videos Behavior
  3. // Create a videos object to hold a video
  4. // playlist and event handler functions...
  5. var videos:Object = new Object();
  6. // Set up to 7 video feeds in a single component
  7. videos.list = new Array();
  8. videos.list[0] = "firstvideo.flv";
  9. videos.list[1] = "secondvideo.flv";
  10. videos.list[2] = "thirdvideo.flv";
  11. videos.list[3] = ""; //you don't have to use them all. You can do up to 7
  12. videos.list[4] = "";
  13. videos.list[5] = "";
  14. videos.list[6] = "";
  15. videos.loop = true;
  16. videos.length = 1;
  17. videos.loaded = false;
  18. // Path to FLVPlayback components
  19. var m = this.my_FLVPlybk;
  20. // Set the path of the first video feed
  21. m.contentPath = videos.list[0];
  22. // Set a 'ready' event handler to load the videos
  23. videos.ready = function( evt:Object ):Void
  24. {
  25. if(!this.loaded){
  26. this.loaded = true;
  27. for( var n=1; n<this.list.length; n++ ){
  28. if( videos.list[n].indexOf(".flv") != -1 ){
  29. m.activeVideoPlayerIndex = n;
  30. m.contentPath = videos.list[n];
  31. this.length++;
  32. }
  33. }
  34. m.activeVideoPlayerIndex = 0;
  35. }
  36. }
  37. m.addEventListener("ready",videos);
  38. // Set a 'complete' event handler to load the next video
  39. videos.complete = function( evt:Object ):Void
  40. {
  41. var nextIndex = Number(evt.vp)+1;
  42. if( nextIndex == this.length){
  43. if( this.loop ){
  44. nextIndex = 0;
  45. }else{
  46. return;
  47. }
  48. }
  49. m.activeVideoPlayerIndex = nextIndex;
  50. m.visibleVideoPlayerIndex = nextIndex;
  51. m.play();
  52. }
  53. m.addEventListener("complete",videos);
  54. // End Set Videos Behavior
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Oh wow. I've been hitting that problem too and couldn't find a solution. That looks like it could get a bit crazy if the videos are very long though.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

Actually it works very well, and truthfully with FLV's encoded as a progressive stream the file size is largely irrelevant. I've streamed as large as 50MB FLV files before with no buffering issues.
  • krismeister
  • Graduate
  • Graduate
  • krismeister
  • Posts: 202

Post 3+ Months Ago

I wasn't saying use FLV all the time. I was saying convert to FLV before you bring it into Flash to embed.

FLV is great if you are using it like traditionally video- like TV.

But if your videos are in fact decorative elements and that need to interact and move and jump frames according to user actions, then you would use the embed method.

And ATNO/TW is right, with streaming video the only thing important is the bitrate- how much data is needed per second. If you had a 5 hour video it could be 1.5GB and still play fine.

Kris
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Hehe No I understand how the flv works. But I've noticed as i think many other people have that there is always some lag between playing flv1 and flv2. Its not seemless and as far as I can tell ATNO/TW's code is some type of background buffer/preloader which I assume would get a bit strange if you had say 4 600mb files to preload. However that said, its the best solution I've seen.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 12 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.