-
How to connect with Adobe Media Server random remote Shared Object
Hello, I have my application on the web developed in Flash Professional CC and exported to Flash Player 13.
In my web app, I have 2 classes: connection (which creates the connection with my Adobe Media Server) and GlobalObject (that creates the remote shared object).
This is the code I have:
Connection class
import flash.events.AsyncErrorEvent;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent;
import flash.events.SyncEvent;
import flash.events.NetStatusEvent;
import flash.net.NetConnection;
import flash.net.ObjectEncoding;
import flash.net.SharedObject;
var nc:NetConnection = new NetConnection();
nc.objectEncoding = ObjectEncoding.AMF3;
NC.client = this;
nc.proxyType = "best";
nc.addEventListener (NetStatusEvent.NET_STATUS, netSAServerRTMPStatus);
nc.addEventListener (IOErrorEvent.IO_ERROR, onIOError);
nc.addEventListener (AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
nc.addEventListener (SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
NC. Connect ("rtmp://myAMS_URL:1935 / myApp", "myRandomChannel");
var _ro:GlobalObject;
function onIOError(e:IOErrorEvent):void
{
trace ("onIOError");
}
function asyncErrorHandler(e:AsyncErrorEvent):void
{
trace ("asyncErrorHandler =" + e.error);
}
function onSecurityError(e:SecurityError):void
{
trace ("onSecurityError =" + e.error);
}
function netSAServerRTMPStatus(event:NetStatusEvent):void
{
Switch (info.code)
{
case "NetConnection.Connect.Success":
trace ("Connected");
ConnectToSharedObject();
by default:
trace (e.info.code);
break;
}
}
function ConnectToSharedObject (): void
{
_ro = new GlobalObject();
var randomRO:Number = Math.Random ();
_ro. Connect (randomRO, nc, false);
trace (_ro. Connected);
If (_ro. Connected is true)
{
_ro.addEventListener ("onNewMsg", onNewMsg);
_ro.sendNewMsg ("hello");
}
}
function onNewMsg(e:Event):void
{
trace (e.Target.chatMsg);
}
GlobalObject class
import flash.events.AsyncErrorEvent;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.SyncEvent;
import flash.net.NetConnection;
import flash.net.ObjectEncoding;
import flash.net.SharedObject;
var so: SharedObject;
var connected: Boolean;
var _msg:String;
function GlobalObject()
{
Super();
}
function connect(p_soName:String,_p_nc:NetConnection,_p_persistant:Boolean):void
{
create StoredObject
So = SharedObject.getRemote (p_soName, p_nc.uri, p_persistant);
so.client = this;
Configure the onSync events
so.addEventListener (SyncEvent.SYNC, onSync);
connect to the SO
so. Connect (p_nc);
connected = true
}
function logout (): void
{
so. Close();
}
function onSync(evt:SyncEvent):void
{
trace ("onSync");
}
public void sendNewMsg(msg:String):void
{
so. Send ("mewMsg", msg);
}
function mewMsg(msg:String):void
{
_msg = msg;
dispatchEvent (new Event ("onNewMsg", _msg));
}
The problem is that I have ever received the 'onSync' event, then, so I never got the messages. What I am doing wrong? I have to add or change?
I have no code (C:\ProgramFiles\Adobe\AdobeMediaServer5\applications\myApp) server-side. All this code is compiled and exported as a SWF file, and this is the file that the user charge when go to my Web page.
Hope someon could help me.
Best regards
Manel
Hello
The problem is solved! The point is that the AMS folder that I created were defined as 'direct' default app. Once I changed that, it work corretly.
Best regards
-
Can I install Adobe Media Server - 5 standard for Linux Centos 6 AMS?
I would like to know if I can install standard AMS 5 on Centos 6? And if so which version would be better?
I see that Amazon EC2 running a version of Adobe Media Server 5 on a Centos 6.3 operating system. So, it must be possible, right?
I tried to install AMS on 7 Centos 5 but have not been able to get HTTP Dynamic streaming to work properly, so don't want to stuggle again, but I won't be stuck with Centos 5 more that I can't run the latest version of PHP or Lee there.
Please can someone explain if this is possible?
Yes AMS works on all 6.x CentOS... CentOS 7 is not supported... We always encourage you to use the latest version of AMS which is 5.0.7 as to date.
-
The Adobe Media Server run on Linux?
[Newbie Alert]
My goal is to set up a kind of YouTube or Google Drive of the poor. The user clicks on a MP4 file name and a video clip is broadcast. Similarly for other types of files: MP3, WAV, etc.
The server OS will be Linux.
I would be grateful for the help, comments on this and related issues.
TIA
Hi Raymond,
Welcome to the adobe forums.
Yes, you can install adobe media server on Linux OS. For more information on system requirements minimum requirements please check:Tech specs | Adobe Media Server 5 Professional
And to set up VOD for HTTP please check broadcast multimedia content on demand (HTTP) and RTMP, please check at the request of broadcast media content (RTMP).
To configure content storage please go by with this help file: http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2925 e64 - 7fc7.html
Let me know if you need help.
Kind regards
Redoutey
-
Where to download Adobe Media Server tools?
I need the track down the 'Adobe F4V post processing".
The documentation page for the "tools Adobe Media Server" (http://www.adobe.com/products/adobe-media-server-family/tool-downloads.html) of links to a download page, but this page returns a 404 error.
Here's the 404 link where I should be able to download tools: http://offers.adobe.com/en/na/leap/landings/fmstools.html
Any idea where I can get them from?
Thank you
Steven
Download tools is fixed now. Please download it from
http://www.Adobe.com/products/Adobe-Media-Server-family/tool-downloads.html
-
Native integration WebRTC audio/video on all AIRLINES, including Adobe Media Server platforms
Hey everybody,
It is obvious that Adobe is very busy trying to deal to improve and fix audio and video bugs on all platforms. Fortunately, the month last Adobe finally made a video H264 with Nellymoser audio stream work on androids! That took some time to make this work. But even if it works, no AIR on androids can still transmit a H264 video. Also AIR on iOS cannot view the videos on-line, but rather the video must be wrapped inside an Apple HLS (HTTP Live Streaming) format that introduced way too much latency for live audio and video streaming. Also AIR cannot transmit Audio AAC and cancellation of echo with Nellymoser just doesn't cut.
Everyone knows that Flash Player can only the video/audio stream smoothly for users 1 to 10. There is just too much for Adobe to do to get the video to work and work for everyone on all devices.
So because WebRTC has much more development effort going in there, and because it is presented as a free source to try to make the world exclusive licenses to rethink H264 / AAC audio, Adobe should maybe just focus their efforts on the implementation of the WebRTC libraries existing and especially functional in Adobe AIR.
Because these libraries are becoming so popular, Adobe may also integrate support for WebRTC the Adobe Media Server for recording, peer-to-peer negotiation and firewall perforation.
See here my native integration feature request WebRTC video/audio on all platforms
https://BugBase.Adobe.com/index.cfm?event=bug & ID = 3728399
If you vote with me for WebRTC in Adobe AIR and Adobe Media Server?
Adobe could essentially disapproves of many existing features requests and bug fixes related to video audio and solve many problems with WebRTC as:
Implement the Opus Codec:
https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3016518
https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3331640
https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3633142
The problems of improved Microphone:
https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3711062
https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3521224
Add support for AAC, HE - AAC v2 audio stream, allowing iOS to be an endpoint that can receive audio and video:
https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3694393
Add support for transmitting video H264 since an Android:
https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3648262
A decrease in video latency and performance on the Androids independently processors from Intel ARM 32-bit/64-bit
https://BugBase.Adobe.com/index.cfm?event=selectBug & CFGRIDKEY = 3648268
Improve the video quality and bandwidth:
HEVC H265, VP9
No there no updated day nor comment from Adobe regarding adding support for WebRTC. According to the roadmap for this year, they are reserved! It seems that we will not see WebRTC in the ActionScript platform this year unfortunately. In March, I made some predictions as to what might be considered a higher priority to Adobe to work on. It seems that this list is still being developed by the team of Adobe AIR/Flash. They have not yet finished iOS support 8, and they have several more months to get finished video hardware acceleration. VideoTexture is still in beta and will likely be in version beta version 19 very air I guess. Then AIR 64-bit runtime ends Q3 as well as improvements of HTML5 for the 4th quarter. It seems that Adobe is fully booked.
-
Is Adobe Media Server Compatible with Windows Server 2012 5 Professional?
Could someone from Adobe please check the following link is up-to-date and AMS 5 Pro does not support Windows Server 2012?
http://www.Adobe.com/products/Adobe-Media-Server-Professional/tech-specs.html
Thank you
I'm sure they have one, but I have no idea what it is. It will probably be with a relapse of the AMS service pack in the future. Adobe has not officially supported Windows Server 2012 in one of the applications of the company I have worked with, so don't feel that AMS is excluded.
-
The Adobe Media Server Installer does not run
I'm trying to install Adobe Media Server 5 on Windows 2008 R2 64 bit on i3 logged on as user administarive RDP.
The installation program just does not--a very short hourglass and then nothing. No newspapers in application Setup System connects.
The Group installation Adobe Media Gateway program works very well.
Tried a reboot of the machine and still no go...
Any ideas gratefully received
Simon
OK, had... come on properties on the file and 'unlock'
It was because I downloaded on another machine and then copied on. Windows 2008 knew that he had not been made locally and quietly blocked the execution.
-
Adobe Media Server Professional 5 licenses
Is the license Adobe Media Server 5 Professional "per server" or "field".
Adobe Media Server license is per server.
-
Adobe Media Encoder not using GPU at all for H.264 encoding
So I have a strange problem, it seems SOUL refuses to use the GPU for transcoding - I have a minute 9 4 k file I need to transcode and it takes more than an hour on a very fast machine. I tried other formats and files of that specific file and nothing does the GPU at all (using GPU - Z to monitor the load). Specifically trying to get DNxHR or DNxHD files in H.264 VBR 2 pass codec
Machine: hex 3960K core i7 core cpu - GPU installed: ti 980 GTX / GTX 1080 - 64 GB RAM Win 10 64 pro
-First pro uses the GPU (actually 1080) for CUDA acceleration video
-J' tried to disable 1080 GTX in Nvidia with SOUL Panel (setting preference CUDA at 980ti, as I know, pascal is perhaps not compatible yet)
-J' original CC, no luck tried versions of SOUL
-J' tried transcoding other types of files in the case where this was a problem of specific file (animation, cineform, etc.) no luck
My gut tells me it's maybe a CUDA or OpenCL / OpenGL / DLL problem.
I had CUDA installed 8.0 for use with Octane render, but uninstalled and it makes no difference
maybe try a CUDA 7.0 installation? that would help? Any other suggestions?
Hello tstopdigital420,
Is the GTX 980ti supported for H.264 encoding in Adobe Media Encoder or not? I thought I had read that it was, but maybe I'm wrong. IF not I'll talk accordingly.
Parenthesis - anyone knows of other software that supports rendering GPU accelerated by CUDA h.264?
I think you're under the false impression that the GPU speeds up encoding H.264 exports. It does not, but is a feature that is often requested.
Encoding is a process that focuses on the CPU in Premiere Pro and Adobe Media Encoder. The GPU accelerates certain elements in the entire export process, but not the encoding itself.
The GPU will accelerate what follows in the export process: scaling, conversion of the image, blending modes, deinterlacing and color space conversion. The GPU will also speed up the processing of GPU based video effects, including the effect of color Lumetri.
Example:
- If you are encoding a file of 4K in a file of HEVC H.265 4 K, the GPU acceleration is not involved in the export process because no scaling has been used.
- If you are encoding a file of 4K in a file, H.264 HD, GPU acceleration is involved in the export process, because the scale was necessary.
If your GPU is disabled or "grayed out" and he has capable specifications, then this is another problem of troubleshooting.
Thank you
Kevin
-
Renderer AE CS4 / Adobe Media Encoder will not create a container for h.264 blu - ray
That is the problem.
First of all, I tried to make a model using the inside the AE render engine using the blu - ray h.264 preset.
It was supposed to create 1 file, but I found myself with 3: track audio, video and a file with the extension .xmpses.
I then decided to make in .mov lossless, which works fine, but 03:40 minutes occupies more than 8 GB, which is obviously unacceptable.
After that, I put the .mov file in Media Encoder to try h.264 blu - ray there.
Absolutely the same *.
I use the Mac in AE CS4 version.
Here is the screenshot of the original .mov file and the result. As you can see, he refuses to make a container. This is absolutely unacceptable
It raises another question: what settings should I encode the layout in 720 p resolution without taking up a lot of space?
Well, it depends on if you need a master of production (something for broadcasting, for example, or to use as a source for the other tasks of coding), or if you want a version for distribution. If this is the first, there is nothing wrong with "plenty of room" - A Quicktime file with a PNG or Animation codec is a good idea, but it will take a lot of space. If it is the latter, H264 is perfect, but there is no built-in preset to take 720 material on the web.
You could do this:
* Choose the generic H264. You will see that it will give an error if you try to make, since the default setting uses a H264/level profile allowing you to use HD resolutions.
* In the H264 video options, set the menu 'Profile' to 'Hand' and 'Level' 4.0. That will keep compatible for Quicktime and Flash player, while allowing larger heights and higher rates.
* If you Webcast addressing the value flow target to 5-8 Mbps and Maximum flow at 9-10 Mbps. It's a little more that Apple uses to 720 p on the Apple TV content, for example.
The screening of origin H264 will tell you in the comment field to expand to 640 x 480 output Module. It is useless, since you are using a profile/level combination that allows higher heights.
-
Where a beginner should go to start learning material on the media server?
I want to learn as much as possible on the multimedia server what are some good recommendations?
Hi William,.
Welcome to the adobe forums.
Thank you to show interest in adobe media server, I recommend starting with the part of the introduction of the server multimedia adobe and you can take the help of this link:https://helpx.adobe.com/adobe-media-server/tech-overview/topics.html
Please do not hesitate to contact us for any kind of queries with media server.
Best regards
Redoutey
-
Adode Media Server price to AWS
Adobe Media Server 5 on Amazon Web Services - pricing
Adobe Media Server 5 scope on the market of the AWS
What is the real price for the AMS? There is difference, see the two link above.
Thanks for your post.
The prices on Amazon FRIEND pages are actual prices that you would pay when using AMS.
Adobe Media Server 5 on Amazon Web Services - pricing
The difference you notice is because we have a request in the queue with the Amazon team to make a few changes to the price. This should be corrected soon.
-
Flash Media Server - easy download tool?
Hello
Currently, my company uses FMS 3.5 and uses fairly regularly for the video stream to clients on the web. I am currently the only user with access to the FTP root to place the video files on the FMS. What we would like to know; Y at - it an easy way for others to download videos on the FMS without giving them direct access. That is to say a download tool that puts a video on the server.
I found a tutorial here:
http://www.Adobe.com/devnet/Adobe-Media-Server/articles/video_sharing _ web_app.html
that seems to solve a problem, but it appears to require Flash Media Encoding Server, which no longer exists and we have not.
For any help or suggestion would be greatly appreciated.
Kind regards
Martin
Hello
The link you mentioned has the snippet of script as well.
Concerning
Karishma
-
Setting up Flash Media Server stream
I have Adobe Media Server 4, and I use Flash Professional CS5.5 to create an application streaming. To test, I use Adobe Page where you can insert stream url and the name of the stream to connect to the source continuously, for an overview of default. This page at the start, where you have two blocks of videos, left a broadcast and a right to see the flow.
Here's the AS3 code inside my application:
var bandwidth:int = 0;
var quality:int = 50;
var camera:Camera = Camera.getCamera();
camera.setQuality(bandwidth, quality);
camera.setMode(430,320,15, true);
var video:Video = new Video();
video.attachCamera(camera);
addChild(video);
video.width = 430;
video.height = 320;
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://***");
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
function netStatusHandler(event:NetStatusEvent):void{
if (event.info.code == "NetConnection.Connect.Success")
{
label10.text = 'Connected';
var ns:NetStream = new NetStream(nc);
ns.attachCamera(camera);
ns.publish("NewStream1", "live");
}
}
When I run this file I get "connected" in label10, this means that it is connected to the server rtmp connection.
When I insert this specific rtmp link and NewStream1 (from ns.publish ("NewStream1", "live") ;) within the Adobe page by default, it does not work... It connects, but it shows only white box black.
And when I use this page by default for stream, the left diffuser, it works very well.
Also, I have made my own watcher and it connect too, but there is no data streaming.
Can someone help me with this, tell me what I am doing wrong?
Or can someone tell me how to test the camera sent to the server data?
Thank you.
Are you sure that when your client is running - camera is not attached to another client?