Flash :: Standard Practices For Video Encoding?
Feb 22, 2010Are there any standard practices for Video encoding, streaming, etc?
View 1 RepliesAre there any standard practices for Video encoding, streaming, etc?
View 1 RepliesWhere can I get or buy the flash video component I keep seeing around the web which has the extra function of making the flash video go full screen.
View 4 RepliesI need to perform encoding of a wav file into base64...
View 2 RepliesI am having an interlacing issue when I load my .flv files up to my site.The strange thing is that when I watch them after encoding in Flash Video Encoder (with adobe AIR) the interlacing does not appear. I can't understand why the interlacing issue would appear once the videos are loaded up to the site and yet they look perfectly crisp and clear when I watch the completed .flv's in AIR. I didn't de-interlace the videos the first time I created the .flv's but that shouldn't matter since they play fine in AIR right? Of course I can go back through and de-interlace them, but I want to make sure that this is the problem before I take the time to re-encode them all.
View 1 RepliesI am experimenting with video using the alpha channel capability of the FlashCS3. I followed the tutorial on the gotoandlearn website on how to create chroma keyed video. I exported an avi video file having removed the background. Ive used Flash video encoder for VP6 and flash player 8 with encode alpha channel ticked. However my swf is not showing the video, just a white blank where it should be. It puts out the audio only.
This is the log file.
FILE SUCCESSFULLY ENCODED
- Source file: C:downloadsflash greenscreenvideoscreentestalpha.avi
- Output file: C:downloadsflash greenscreenvideoscreentestalpha2.flv
- Video codec: On2 VP6
- Alpha channel encoded: yes
- Deinterlace: no
- Frame rate: 25 fps
- Key frame interval: 50 frames
- Video data rate: 40 kbps
- Width: 720 pixels
- Height: 576 pixels
- Audio codec: MPEG Layer III (MP3)
- Audio data rate: 16 kbps (mono)
- FLV duration: 00:00:10
- Encoding time: 00:01:00
I am working with an AS2 application that was put together a while back. The app is used to publish a live video stream to FMS. I am using the Camera class to connect to a local camera (Camera.get()) and to setup the encoding specs for the stream that is to be published to FMS. To preview the camera signal, I am using Video.attachVideo() to attach that camera output to a Video instance on the stage. This is all working greta for me. But here's the thing. The video stream that is being pumped to the Video instance is the direct signal from the camera. Nice and clean. I seem to remember that there is a way to view the video signal with the encoding settings applied to it. It's just one little line of code, if I remember correctly. However, I can't seem to find the code that will do that.
Can anyone quickly share the code that will allow me to preview the encoded video stream?
Given:I encode video at 600kbpsI set the video to display by default at 448x336 (4:3)Users can set the video to display at full screen (let's say full screen = 1280x960)I can only provide one video resolution to cover all scenarios .Is there any logic to encoding the video for the larger size of 1280x960? Am I wrong in thinking:
Video encoded at 1280x960 and displayed at this size will look better than video encoded at 448x336 and enlarged to 1280x960; andThere will be minimal difference between video encoded at 1280x960 (and shrunk to 448x336) and video encoded at 448x336.
I need to compress video image data (lets say a display object) in AS3 to a Byte Array with high compression at runtime. Framerate only needs to be around 5 but 1024x768 video needs to go to < 40 Kilobyte per Second without the quality being too bad. I wrote a custom encoder and got it to around 80-100 Kilobyte per Second for 1024*768 which still is too much and I don't see a lot of improvements to be mad to my encoder.
Using JPG or PNG Encoder gives way higher KB/s. Is there any open source way to to decode and encode video in as3 at runtime ? E.g. a H.264 as3 encoder and decoder ? Or other codecs? Or maybe a C# source code of h.264 encoder and decoder ? I think I could port it to as3. Doesnt need to be h.264, just something with good quality when running at 5 Frames/Sec and 40 Kilobyte...
I've been building Flash web sites for a long time now, as a freelance developer. I usually work alone, and so I'm the only one that touches the production work I do.Since I'm in this working position, I don't get a lot of exposure to other styles of flash production. I was wondering if any of you have examples of the best ways to produce high quality flash websites. I'm not talking about huge team projects, but small 40-50 work hour sites.[code]
View 2 RepliesI have a website that has a Flash banner. For devices that do not support Flash (like iPads) I want to display an image instead. What is the best practice to deal with this situation? Should this be handled from the front-end with JavaScript?Should this rather be handled from the back-end? (I am using Java on the back-end)
View 1 RepliesI have a bit of Flash experience, did a full featured movie player, other stuff in AS3 and got plenty of programming skills in other languages, BUT now I need to create a multi paged website. Quite easy, a few pages, some animations here and there, nothing fancy, got all the graphics.
But time is short on this one, so I need some advice about good practices (pack everything into one main MC or make separate swfs and load them in, etc.), where to begin, or what kind of book should I grab to make the job pretty.
anyone know of a good resource for banner development tips and tricks - mainly in regards to image optimization, external imports and filesize reduction. Its been a while since i have looked into smart ways to pack more clarity and quality into flash banners and wanted to reach out.
View 0 RepliesI've been using Flash Video Encoder for quite a while now and never had a problem encoding flash from wmv. But in the last week suddenly encoding crashes on ever attempt. At first I thought it was a change in the format of the video that was being introduced, but then I tired videos that I know that I've converted previously. They crash too. I've also tried on 3 different computers, that have all had success in the past.
View 6 RepliesI have some German content which contains an umlaut (ü). This content is being built into an XML file. I then have a flash file which uses the xml to build a coverflow. My problem is that the 'ü' character is not being displayed in the coverflow. I've made sure the xml is encoded correctly, as you can see from the snippet below:
<?xml version="1.0" encoding="UTF-8"?>
<artworkinfo>
<albuminfo>
[code]....
As you can see, the umlaut is in the albumName element, but when that text displays it simply misses out the 'ü'. I've added a bunch of encoding groups to the text element in the coverflow file, as well as specifically adding the 'ü' in the 'Include these characters' element. I'm stuck for how to get this to display.
Simple question: I have numerous transitional xhtml pages marked up and ready to go. The code is basic but uses a few tags that are not recognized in Flash via HTML import- <h1>,<div> etc. Is there a best practice method for using this code without having to "dummy" down the code for use in Flash? Is there any advantage to importing the xhtml pages as XML and going that route or will I have the same problem?
View 1 Repliesi have rectangle movie and i want to make it triangle or round so it show round in the page. can i do so with i embed it or it must be done in flash before i export swf?Also i forgot how you make transparent area in flash?
View 1 RepliesI am trying to send a twitter update when I press a button in flash. I get the twitter page to open from the flash file but when it passes the variables, it is passing it as the following into the browser address bar [URL] and on the twitter page text box it shows [URL]. The browser is rendering the percent sign and the number 20 as actual text and not as the space that I need it to.
Here is my code
function onTwitterButtonClick(evt:MouseEvent):void{
trace("Twitter button clicked");
var twitterShareURLPart1:String = "[URL]"
var shareUrl:String = "[URL]"+youtubeVidID;
var twitterShareURLPart2:String = "&text="
var escapedText1:String = encodeURIComponent("Check out this latest video from Me");
var gotoURL:URLRequest = new URLRequest (twitterShareURLPart1 + shareUrl + twitterShareURLPart2+escapedText1);
navigateToURL(gotoURL,"_blank");
trace(twitterShareURLPart1 + shareUrl + twitterShareURLPart2 + escapedText1);
}
I have a flash app that needs to download a file, whose name contains UTF-8 characters.
Internally, the filename is read from a UTF-8 XML file, e.g. "my filé.pdf". The code goes something like this:
url = get_filename_from_XML();
req = new URLRequest( url );
ref = new FileReference();
ref.download( req );
The problem is that the URL is encoded in Latin1, i.e. the é is encoded as %E9 instead of %C3%A9 (according to FireBug). How can I get Flash to encode the URL correctly?
I have a problem reading from Flex a url which has Transfer-Encoding: chunked because the FLex waits for the server to send terminate signal which in chunked transfer isn't sent...
View 2 RepliesCan someone tell me the simplest way to add a rollover sound to a standard button in flash ? I was trying to get a small chirp sound to play on rollover of a button. Im using the standard flash button creation hierarchy. Once the fourstages of the button are set. I created a layer above it called sounds then added a blankkeyframe to the over position and dragged the chirp mp3 file onto the stage over the button. Then when i run the webpage the sound effect doesnt play a expected. I tried playing with the dropdownlist of property settings too such as Sound : and theres a dropdown list. I chose chirp.mp3 there but still no luck. Tried some other sync settings too but not able to make this work.
View 1 RepliesI was following this tutorial. He uses the following line for Tweening:
Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME,
onComplete:function() { slideTimer.start(); }});
Instead of using this special designed class for Tweening, how do I use the standard/regular Tweening within Flash so I don't have to always include the .as file with my project? One other thing is, he uses something like this: intSlideCount = xmlSlideshow..image.length();
What are the two dots between the xmlSlideShow and image.length(); means?
Is there any way of being able to use the standard iOS interfaces in Flash CS5? i.e blue title, grey striped background, popup keyboard, standard alert message? etc p.s where would one find example code and tutorials for writing the iphone apps as there seems to be nothing available.
View 1 RepliesFlash has a scrollbar class, documented here: http:[url].......However, besides listing functions and variables, there's no real explanation of how to hook an instance of this class to a textfield.Everything I've tried either ends up in errors or the scrollbar not showing. The documentation lacks a clear way of how you should bind the textfield and the scrollbar toghether, and CS4 isn't providing any help either.how scrollbars work with textfield?
View 2 RepliesI'm new to Flash and trying to communicate with an app engine server but I'm having some encoding problems. [code]This does not work, gives me some encoding errors on the server side. But if I switch POST to GET it automagically works.
View 1 Repliesis there method/algo to detect universal file encodings ?
View 1 RepliesI'm optimizing a PNG encoder for use within Flash SWFs (but I'm writing it in HaXe).I've so far managed to speed things up a fair bit, mostly by using speedy memory read/writes.While profiling my code, I noticed that about 75% of the time is spent in a single call to Flash's built-in compress() method, which uses the zlib algorithm (which uses DEFLATE in turn).I'm not too fussy about compression ratio, but faster compression would be awesome. So, I was wondering if it's worthwhile to try to implement zlib/DEFLATE myself. A little searching has turned up the zlibC.implementation source, but it's not exactly light reading (or easy to port!).Are there any simple implementations of zlib/DEFLATE that I could use as a starting point? I'd rather not have to wade through the two specs, especially since I don't know whether an implementation running in AVM2 could even perform as fast as the native Flash one in the first place.
View 3 RepliesAdobe's "SWF File Format Specification v10" says that Speex encoded data can be used for streaming sound (a little clarification of the "streaming sound" definition here: "The SWF file format supports a streaming sound mode where sound data is played and downloaded in tight synchronization with the timeline. In this mode, sound packets are stored with each frame." - this has nothing to do with any FMS streaming, no ActionScript needed - just plain SWF).This should be accomplished by using a single SoundStreamHead2 tag with StreamSoundCompression set to 11 (which means "Speex", as stated in the abovementioned Specification) and then N pairs of ShowFrame and SoundStreamBlock tags. However, this does not work - Flash Player plays no sound when playing the SWF generated by me this way. Please note, that I am capable of generating such SWFs containing streamed MP3 or PCM data, which then play perfectly. Just not Speex...
I strictly conform to the Specification:URL...I tried the streaming sound approach as well as the event sound - both do not work.Moreover, I was not able to find (anywhere on the Internet) any sample SWF with streaming sound (nor event sound) encoded in Speex. Do they even exist? Anyway, Flash CS5.5 is not capable of generating them.I would just like to know whether Speex support for SWF streaming sound can be found anywhere else than in the Specification. (I know that FLV can contain Speex and that Flash Player can stream Speex from a microphone and that FMS can stream Speex to its clients, but this is not what I am asking for)
Is there a standard equivalent to the Flex HTTPService class in Flash CS4?
View 2 RepliesI'm currently trying to built a little Air Application where I want to set the normal Command-C key to call a function? Is this even possible to use a standard Menu Command?
function createMenu():NativeMenu{
var menu:NativeMenu = new NativeMenu();
var menuOneCommand: NativeMenuItem = menu.addItem(new NativeMenuItem("Menu 1"));
menuOneCommand.keyEquivalent = "C"; //Command Shift C
menuOneCommand.addEventListener(Event.SELECT, myfunction);
return menu;
}
Moreover I would love to know how I can call a function (myfunction) which is actually a MouseEvent Handler?
function myfunction(e:MouseEvent = null) {
trace('Throws Errors at the moment')}
and is flash being replaced by another standard like html 5 completely?
View 5 Replies