|
Home > Archive > Macromedia Flash Server > April 2006 > Record or playback issue
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Record or playback issue
|
|
| Marius Bratu 2006-04-20, 6:57 pm |
| I have some problems with recording and playbacking a stream. It seems li=
ke it's a little bit choppy, and i really don't know how to solve this is=
sue. I've tried to calcule the bandwidth, but no result. I play all aroun=
d with camera settings but still nothing.
if i try to increase the buffer time, let's say to 10, 15, then it's a =
little bit better, but the last seconds of the recording do not play anym=
ore, as if they have never been recorded.
=20
Here are the settings that i use:
=20
if (detected_bw>=3D256) {
bufferlength =3D 2;
}=20
else if (detected_bw<256 && detected_bw>=3D100)
{ =20
bufferlength =3D 3;
}=20
outgoingStream.setBufferTime(bufferlength);
your_cam.setMode(260,200,8,false);
your_cam.setQuality(0, quality_value);
your_video.deblocking =3D 2;
=20
and quality_value it's a variable with this possible values: 33, 75, 90=
..
=20
I also provide to you the link to my application
http://www.vektormedia.com/recorder...deo.php?s=3D6c=
49cecac3d5b27d0de51e25cd844329
=20
And here it is the type of hosting that i have for flash media server 2=
:
=20
Plan Name: Analysis
Connections: 10
Peak Streaming Bandwidth: 128 kbps
Disk Space: 25 mb
Monthly Bandwidth Transfer: 1 gb=20
=20
=20
Best regards,
Marius
=09
---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates=
..
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Jake Hilton 2006-04-20, 6:57 pm |
| I know this may not be much of a help... but I don't use setBufferTime at
all.. it has proven to be unreliable.
Jake
On 4/19/06, Marius Bratu <bratumarius2005-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
>
> I have some problems with recording and playbacking a stream. It seems
> like it's a little bit choppy, and i really don't know how to solve this
> issue. I've tried to calcule the bandwidth, but no result. I play all aro=
und
> with camera settings but still nothing.
> if i try to increase the buffer time, let's say to 10, 15, then it's a
> little bit better, but the last seconds of the recording do not play
> anymore, as if they have never been recorded.
>
> Here are the settings that i use:
>
> if (detected_bw>=3D256) {
> bufferlength =3D 2;
> }
> else if (detected_bw<256 && detected_bw>=3D100)
> {
> bufferlength =3D 3;
> }
> outgoingStream.setBufferTime(bufferlength);
> your_cam.setMode(260,200,8,false);
> your_cam.setQuality(0, quality_value);
> your_video.deblocking =3D 2;
>
> and quality_value it's a variable with this possible values: 33, 75, 90=
..
>
> I also provide to you the link to my application
>
> http://www.vektormedia.com/recorder...o.php?s=3D6c49=
cecac3d5b27d0de51e25cd844329
>
> And here it is the type of hosting that i have for flash media server 2=
:
>
> Plan Name: Analysis
> Connections: 10
> Peak Streaming Bandwidth: 128 kbps
> Disk Space: 25 mb
> Monthly Bandwidth Transfer: 1 gb
>
>
> Best regards,
> Marius
>
>
>
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates=
..
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Marius Bratu 2006-04-20, 6:57 pm |
| ok, thanks a lot for your answer. if you can give me more information on =
how you deal with recording and playbacking , i don't know an example or =
something.
i mean if you don't use at all setBufferTime what do you use?
thanks again.
best regards,
marius.
=20
=20
I know this may not be much of a help... but I don't use setBufferTime=20
at
all.. it has proven to be unreliable.
Jake
On 4/19/06, Marius Bratu <bratumarius2005-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
>
> I have some problems with recording and playbacking a stream. It=20
seems
> like it's a little bit choppy, and i really don't know how to solve=20
this
> issue. I've tried to calcule the bandwidth, but no result. I play all=20
around
> with camera settings but still nothing.
> if i try to increase the buffer time, let's say to 10, 15, then=20
it's a
> little bit better, but the last seconds of the recording do not play
> anymore, as if they have never been recorded.
>
> Here are the settings that i use:
>
> if (detected_bw>=3D256) {
> bufferlength =3D 2;
> }
> else if (detected_bw<256 && detected_bw>=3D100)
> {
> bufferlength =3D 3;
> }
> outgoingStream.setBufferTime(bufferlength);
> your_cam.setMode(260,200,8,false);
> your_cam.setQuality(0, quality_value);
> your_video.deblocking =3D 2;
>
> and quality_value it's a variable with this possible values: 33,=20
75, 90.
>
> I also provide to you the link to my application
>
>=20
http://www.vektormedia.com/recorder...o.php?s=3D6c49=
cecac3d5b27d0de51e25cd844329
>
> And here it is the type of hosting that i have for flash media=20
server 2:
>
> Plan Name: Analysis
> Connections: 10
> Peak Streaming Bandwidth: 128 kbps
> Disk Space: 25 mb
> Monthly Bandwidth Transfer: 1 gb
>
>
> Best regards,
> Marius
=09
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ co=
untries) for 2=A2/min or less.
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Dave Bath 2006-04-20, 6:57 pm |
| Hey Marius,
Is the problem not that your peak streaming bandwidth plan is 128kbps? If =
you are encoding to more than this, then you will run into problems.
Dave
----- Original Message -----
From: Marius Bratu <bratumarius2005-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Sent: 19 April 2006 17:20:02
Subject: [FlashComm] Re: Record or playback issue
ok, thanks a lot for your answer. if you can give me more information on ho=
w you deal with recording and playbacking , i don't know an example or some=
thing.
i mean if you don't use at all setBufferTime what do you use?
thanks again.
best regards,
marius.
=20
=20
I know this may not be much of a help... but I don't use setBufferTime=20
at
all.. it has proven to be unreliable.
Jake
On 4/19/06, Marius Bratu <bratumarius2005-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
>
> I have some problems with recording and playbacking a stream. It=20
seems
> like it's a little bit choppy, and i really don't know how to solve=20
this
> issue. I've tried to calcule the bandwidth, but no result. I play all=20
around
> with camera settings but still nothing.
> if i try to increase the buffer time, let's say to 10, 15, then=20
it's a
> little bit better, but the last seconds of the recording do not play
> anymore, as if they have never been recorded.
>
> Here are the settings that i use:
>
> if (detected_bw>=3D256) {
> bufferlength =3D 2;
> }
> else if (detected_bw<256 && detected_bw>=3D100)
> {
> bufferlength =3D 3;
> }
> outgoingStream.setBufferTime(bufferlength);
> your_cam.setMode(260,200,8,false);
> your_cam.setQuality(0, quality_value);
> your_video.deblocking =3D 2;
>
> and quality_value it's a variable with this possible values: 33,=20
75, 90.
>
> I also provide to you the link to my application
>
>=20
http://www.vektormedia.com/recorder...php?s=3D6c49ce=
cac3d5b27d0de51e25cd844329
>
> And here it is the type of hosting that i have for flash media=20
server 2:
>
> Plan Name: Analysis
> Connections: 10
> Peak Streaming Bandwidth: 128 kbps
> Disk Space: 25 mb
> Monthly Bandwidth Transfer: 1 gb
>
>
> Best regards,
> Marius
=09=09
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun=
tries) for 2=C2=A2/min or less.
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Jake Hilton 2006-04-20, 6:57 pm |
| My own solution only really works for progressive playback... otherwise you
are stuck using setBufferTime if it's streaming from FMS/FCS. You may want
to check into what Dave referred to.
Jake
On 4/19/06, Dave Bath <dave-tAgMTqu5zmI@public.gmane.org> wrote:
>
> Hey Marius,
>
> Is the problem not that your peak streaming bandwidth plan is 128kbps? I=
f
> you are encoding to more than this, then you will run into problems.
>
> Dave
>
> ----- Original Message -----
> From: Marius Bratu <bratumarius2005-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
> To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> Sent: 19 April 2006 17:20:02
> Subject: [FlashComm] Re: Record or playback issue
>
> ok, thanks a lot for your answer. if you can give me more information on
> how you deal with recording and playbacking , i don't know an example or
> something.
> i mean if you don't use at all setBufferTime what do you use?
> thanks again.
> best regards,
> marius.
>
>
> I know this may not be much of a help... but I don't use setBufferTime
> at
> all.. it has proven to be unreliable.
>
> Jake
>
> On 4/19/06, Marius Bratu <bratumarius2005-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
> seems
> this
> around
> it's a
> 75, 90.
>
> http://www.vektormedia.com/recorder...o.php?s=3D6c49=
cecac3d5b27d0de51e25cd844329
> server 2:
>
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
> countries) for 2=A2/min or less.
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Bill Sanders 2006-04-20, 6:57 pm |
| Jake,
I've been playing around with Fabio's dynamic buffer, and it seems to =20=
work quite well with the setBufferTime method. Here's the basic code =20
that Fabio provided--it might work for you as well:
startBL =3D 2;
mainBL =3D 15;
ns.setBufferTime(startBL);
ns.onStatus =3D Status;
function Status(info)
{
if (info.code =3D=3D "NetStream.Buffer.Full") {
ns.setBufferTime(mainBL);
}
if (info.code =3D=3D "NetStream.Buffer.Empty") {
ns.setBufferTime(startBL);
}
}
HTH,
Bill
On Apr 20, 2006, at 11:20 AM, Jake Hilton wrote:
> My own solution only really works for progressive playback... =20
> otherwise you
> are stuck using setBufferTime if it's streaming from FMS/FCS. You =20
> may want
> to check into what Dave referred to.
>
> Jake
>
> On 4/19/06, Dave Bath <dave-tAgMTqu5zmI@public.gmane.org> wrote:
[vbcol=seagreen]
[vbcol=seagreen]
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Jake Hilton 2006-04-20, 6:57 pm |
| Interesting slant on filling the buffer with a little.. then once full then
tell the buffer to fill up wth more "stuff". I may just give it a try.
Thanks Bill
Jake
On 4/20/06, Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:
>
> Jake,
>
> I've been playing around with Fabio's dynamic buffer, and it seems to
> work quite well with the setBufferTime method. Here's the basic code
> that Fabio provided--it might work for you as well:
>
> startBL =3D 2;
> mainBL =3D 15;
> ns.setBufferTime(startBL);
> ns.onStatus =3D Status;
> function Status(info)
> {
> if (info.code =3D=3D "NetStream.Buffer.Full") {
> ns.setBufferTime(mainBL);
> }
> if (info.code =3D=3D "NetStream.Buffer.Empty") {
> ns.setBufferTime(startBL);
> }
> }
>
> HTH,
> Bill
>
>
> On Apr 20, 2006, at 11:20 AM, Jake Hilton wrote:
>
>
> bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
>
>
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Marius Bratu 2006-04-20, 6:57 pm |
| Thanks a lot guys for all your answers.
I think i give it a shot with Fabio's dynamic buffer. Hope that will wo=
rk.
Dave, i thought at that problem too, but i really don't know how to enc=
ode below than 128 kbps.Is there some formula to determine the encoding v=
alue?
Regards Marius.
=20
=20
=20
Interesting slant on filling the buffer with a little.. then once full =
then
tell the buffer to fill up wth more "stuff". I may just give it a try.
Thanks Bill
Jake
On 4/20/06, Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:[vbcol=seagreen]
>
> Jake,
>
> I've been playing around with Fabio's dynamic buffer, and it seems to
> work quite well with the setBufferTime method. Here's the basic code
> that Fabio provided--it might work for you as well:
>
> startBL =3D 2;
> mainBL =3D 15;
> ns.setBufferTime(startBL);
> ns.onStatus =3D Status;
> function Status(info)
> {
> if (info.code =3D=3D "NetStream.Buffer.Full") {
> ns.setBufferTime(mainBL);
> }
> if (info.code =3D=3D "NetStream.Buffer.Empty") {
> ns.setBufferTime(startBL);
> }
> }
>
> HTH,
> Bill
>
>
> On Apr 20, 2006, at 11:20 AM, Jake Hilton wrote:
>
y[vbcol=seagreen]
=09
---------------------------------
Celebrate Earth Day everyday! Discover 10 things you can do to help slow=
climate change. Yahoo! Earth Day
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Dave Bath 2006-04-20, 6:57 pm |
| Hey Marius,
In Flash MX2004 flv, the formula i use is ((width x height x framespersecon=
d) / 8) will give you bytes per second (don't divide it by 8 if you want t=
he bits per second obviously).
Therefore, for 128kbps you could only have 320x200x2 frames per second whic=
h is not amazing.
Reduce the size to 160x100 and you're up to 8 fps. =20
I belive this is a fairly crude estimate and probably depends on keyframe i=
nterval as well. Also, i'm not entirely sure how it translates for new VP6=
(flash8) video if thats' what you're using.
I suppose the long and the short of it is that 128kbps will not get you ama=
zingly far if you want high-ish framerate with a decent size window. But t=
hen, that makes good logical sense!
The dynamic buffer may help you slightly, and is a fantastic solution for j=
ittery/high latency links as it smooths out a lot of problems. However, if =
you are just encoding way over your peak bandwidth limit from your hosting =
provider no amount of buffering will fix it.
Just my =C2=A30.02.
Cheers,
Dave
----- Original Message -----
From: Marius Bratu <bratumarius2005-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Sent: 20 April 2006 17:30:22
Subject: [FlashComm] Re: Record or playback issue
Thanks a lot guys for all your answers.
I think i give it a shot with Fabio's dynamic buffer. Hope that will work=
..
Dave, i thought at that problem too, but i really don't know how to encod=
e below than 128 kbps.Is there some formula to determine the encoding value=
?
Regards Marius.
=20
=20
=20
Interesting slant on filling the buffer with a little.. then once full th=
en
tell the buffer to fill up wth more "stuff". I may just give it a try.
Thanks Bill
Jake
On 4/20/06, Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:[vbcol=seagreen]
>
> Jake,
>
> I've been playing around with Fabio's dynamic buffer, and it seems to
> work quite well with the setBufferTime method. Here's the basic code
> that Fabio provided--it might work for you as well:
>
> startBL =3D 2;
> mainBL =3D 15;
> ns.setBufferTime(startBL);
> ns.onStatus =3D Status;
> function Status(info)
> {
> if (info.code =3D=3D "NetStream.Buffer.Full") {
> ns.setBufferTime(mainBL);
> }
> if (info.code =3D=3D "NetStream.Buffer.Empty") {
> ns.setBufferTime(startBL);
> }
> }
>
> HTH,
> Bill
>
>
> On Apr 20, 2006, at 11:20 AM, Jake Hilton wrote:
>
=09=09=09
---------------------------------
Celebrate Earth Day everyday! Discover 10 things you can do to help slow c=
limate change. Yahoo! Earth Day
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
|
|
|
|
|