• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Do livepkgr cen broadcast both in RTMP and in HTTP live streaming?

Community Beginner ,
Dec 16, 2012 Dec 16, 2012

Copy link to clipboard

Copied

When live cam publish stream to livepkgr for example:

out_netStream.publish("livestream?adbe-live-event=eventID", "live");


do livepkgr cen broadcast out this stream at the same time in parallel both in

RTMP and in HTTP live streaming?

thanks

cheinan

Views

2.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 17, 2012 Dec 17, 2012

Copy link to clipboard

Copied

Yes, you can play the same stream being published to livepkgr app using rtmp also.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 17, 2012 Dec 17, 2012

Copy link to clipboard

Copied

When i try to see the RTMP stream at the browser swf viewr side

from publishing that way:

out_netStream.publish("livestream?adbe-live-event=eventID", "live");

I try:

in_netStream.play("eventID");

in_netStream.play("livestream?adbe-live-event=eventID");

in_netStream.play("livestream");

none is working...

What i have to write here?

in_netStream.play("???"); (just write whet have to be insted of the - ???).

big thanks

cheinan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 17, 2012 Dec 17, 2012

Copy link to clipboard

Copied

in_stream.play("livestream") should work. Are you sure you are publishing "livestream" and not "livestream%i" ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 17, 2012 Dec 17, 2012

Copy link to clipboard

Copied

i cen play the stream like that:

in_netStream.play("livestream");

only when i do not encode the out_netStream

in H264VideoStreamSettings

for example this wil not work:

  out_netStream = new NetStream(nc);

  out_netStream.attachCamera(cam);

  var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();

  h264Settings.setProfileLevel(H264Profile.MAIN, H264Level.LEVEL_3_1); //BASELINE

  h264Settings.setMode(320, 240, 16);

  h264Settings.setKeyFrameInterval(4);

  cam.setQuality(0, 90);

  cam.setMode(320, 240, 16, true);

  cam.setKeyFrameInterval(16);

  out_netStream.videoStreamSettings = h264Settings;

  out_netStream.publish("livestream?adbe-live-event=eventID", "live");

  and  in swf viewr side this not working:

  in_netStream.play("livestream");

  i cen see only green screen

and for example this will work: 

  out_netStream = new NetStream(nc);

  out_netStream.attachCamera(cam);

  cam.setQuality(0, 90);

  cam.setMode(320, 240, 16, true);

  cam.setKeyFrameInterval(16);

  out_netStream.publish("livestream?adbe-live-event=eventID", "live");

  and  in swf viewr side this without H264VideoStreamSettings is working:

  in_netStream.play("livestream");

but in order to broadcast in http live streaming i must use  H264VideoStreamSettings

so what i need to do in order to use H264VideoStreamSettings

and at the same time to play the livestream in rtmp in the regular swf?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 17, 2012 Dec 17, 2012

Copy link to clipboard

Copied

H264 codec is not supported for FLV format. FLV format supports only On2 and Soreson for Video and MP3/Nellymoser/Speex for Audio for streaming through AMS.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 17, 2012 Dec 17, 2012

Copy link to clipboard

Copied

Hi,

I tried this at my end and it worked for both HDS as well as RTMP playback.

Following is the code, once NetConnection.Connect.Success is received:

For publishing:

out_netStream = new NetStream(nc);

 

cam = Camera.getCamera();

cam.setQuality(0, 90);

cam.setMode(320, 240, 16, true);

cam.setKeyFrameInterval(16);

 

out_netStream.attachCamera(cam);

                              

h264Settings = new H264VideoStreamSettings();

h264Settings.setProfileLevel(H264Profile.MAIN, H264Level.LEVEL_3_1); //BASELINE

h264Settings.setMode(320, 240, 16);

h264Settings.setKeyFrameInterval(4);

                  

out_netStream.videoStreamSettings = h264Settings;

out_netStream.publish("livestream?adbe-live-event=eventID", "live");

For Playback using RTMP:

in_netStream = new NetStream(nc);

in_netStream.play("livestream");

vid.attachNetStream(in_netStream);


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 18, 2012 Dec 18, 2012

Copy link to clipboard

Copied

I tried exactly your code and i get

only green screen when i use

out_netStream.videoStreamSettings = h264Settings;

and without h264Settings its working

so way i get only green screen when i use

out_netStream.videoStreamSettings = h264Settings ?

thanks

cheinan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 18, 2012 Dec 18, 2012

Copy link to clipboard

Copied

Hi Cheinan,

Above code is working for me. So, there is something wrong at your end. What is the Flash Player version when you are trying to publish and playback?

As H264VideoStreamSettings class is supported by Flash Player 11 onwards.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 18, 2012 Dec 18, 2012

Copy link to clipboard

Copied

LATEST

Ok finaly i Succeed

Big thanks for all to your good halp!

I am working with FlashDevelop and the problem was

it was on 11.1 player version

i update the player version to 11.4 and its working

the only problem is when the stream is with

H264VideoStreamSettings class

the in_netStream.play("livestream");

is in a bit less quality and reacting more slowly

is there any way to avoid or improve that?

thanks

cheinan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines