header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Manpreet patil
Points:0
Posts:0

11/25/2010 12:10:49 AM

Title: how we can use video Codec(On2 VP6,Sorenson Spark ,H.264)


Hi All,
i want to know how we can use the video codec(On2 VP6,Sorenson Spark ,H.264) in live video streaming.Please help me....



1
Rex
Points: 1280
Posts:0
11/25/2010 4:17:36 AM



On2 Vp6 codec cannot be used for live publishing. Only default codec sorenson spark can be used for live publishing video. The reason behind this is that VP6 codec takes more time to compress than video length which makes it impossible to use it for live video publishing so the On2 VP6 compression codec is not included by ADOBE in flash player. Only On2 Vp6 decoder is there in flash player to play On2 VP6 files.

An already compressed video in Vp6 codec can be played live in flash player using Flash Media server.

Sorenson spark is h263 based codec. Which is extremely fast in compressing video so its used for live capturing and publishing video in flash player.

2
Manpreet patil
Points: 0
Posts:0
11/25/2010 4:41:56 AM



thanks for replay Rex.

Rex, how I can implement the "Sorenson spark" for live video stream. if i'm using spark for compressing stream video. then i hv need to do extra code for decompress it or compressed stream is decompress itself by flash player ???

Regards
Manpreet patil

3
Rex
Points: 1280
Posts:0
11/25/2010 7:35:33 AM



Sorenson is default and the only video codec which means if you publish video using Netstream class its by default published using Sorenson codec. Remember that to capture your camera and publish it live you need some Media server like FMS, WOWZA or RED5. You need to create netconnection to server and then capture the video and send it to server . In another swf you need to connect to server and receive the video. See this page for code that can be used to publish and receive live streaming. For more details look in Flash media server documentaion and samples on Adobe.com

http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d56e-7ff0.html

4
Manpreet patil
Points: 0
Posts:0
11/25/2010 8:43:04 AM



THANKS REX,

Rex, I'm already using this method for publish and play a live video stream. But i have check we are not using any codec by default.
I have check this by following way

trace("used codec>>>>"+netstream.videoCodec);

I got the output 0.

But according to following link if we got a result 0 then we are not using any codec

http://ticore.blogspot.com/2006/11/actionscript-30-netstream-codec.html

videoCodec = 0:No Video Codec
videoCodec = 2:Sorenson Spark Codec
videoCodec = 4:On2 VP6 Codec

now I'm totally confused what is right and what is wrong ?please help me to find out the correct solution and please tell me how we can implement the on2 Vp6 video codec.

Regards
Manpreet patil

5
Brad
Points: 750
Posts:0
11/26/2010 2:24:51 AM



you seems to be confused a lot . the link you posted is for playing any video and while playing you can check the type of codec used to create video. You can not change the codec while playing any video. Codec is specified when you create a flv file. If you are using some software to create flv files then you should have option in that software to set the codec type. In case you are capturing live video in flash file from camera then there is no codec to specify. To create On2 Vp6 files you need to use some external software like sorenson sqeeze or Flash Media Encoder
http://www.sorensonmedia.com/high-quality-flash/
http://www.adobe.com/products/flashmediaserver/flashmediaencoder/

6
Manpreet patil
Points: 0
Posts:0
11/26/2010 5:22:00 AM



Thanks Bred;

According to You In case of live video streaming we are not using any video codec. we can use video codec only by using any encoder software.But according to Rex, By default we are using the "Sorenson Spark Codec". Is this correct or not in case of live streaming..????

Regards
Manpreet Patil

7
Brad
Points: 750
Posts:0
11/27/2010 1:28:05 AM



For live streaming you need a flv file created using On2 or sorenson codec, Rex is telling about live camera feed and for that no codec is used because it can use only one default codec and that's sorenson. For receiving live stream no codec is specified. And in the above link and your code you are just receiving stream.

8
Manpreet patil
Points: 0
Posts:0
11/27/2010 2:15:11 AM



Thanks Rex and Brad,

Now I understand the concept....

Regard,
Manpreet Patil


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions