Is it possible to stream video to Flash Media Server through access to the NetStream byte?

So, I’m working with a video source that I upload to my Adobe AIR application through some work of my own with the extension, with the goal of ultimately getting it on Flash Media Server. The video is H.264 encoded and multiplexed into a FLV container that aligns me with the supported Flash Media Server codecs and NetStream requirements (appendBytes). I can get the data in AIR just fine.

The mine I started today is that the documentation for NetStream.appendBytes claims that I should call NetStream.play (null) :

Call this method on NetStream in "data generation mode". To put NetStream into data generation mode, call NetStream.play (null) on the NetStream created in the NetConnection associated with null. Calling appendBytes () on a NetStream that is not in data generation mode is an error and throws an exception.

NetStream.play (), called with a null parameter, gives local FLV playback. I cannot publish a stream to FMS in this mode. But my research in Flash seems to indicate that accessing NetStream bytes is my only real hope here when working with non-camera or non-web video content.

Q: Can I click on the video playback buffer for publication in FMS? Can I create some kind of NetStreams or NetConnections pipeline to achieve this? Or is there an alternative approach for transmitting H.264 / FLV data to FMS? (The source of my video cannot directly contact FMS.)

+4
source share
1 answer

The answer to your question is quite simple. This is apparently implemented as a security feature, which is probably less security related and related to the sales problem. Adobe loves to block certain features intentionally in order to create the opportunity or need another product, as well as greater revenue.

I tried to study this for you to see if there is some kind of dirty hack where you can attach a camera or something else and override the binary data sent to the stream as you can with Audio, but unfortunately as far as I know, such hacking is possible. More nfo here: NetStream.appendBytes

Update

Perhaps you can do something hacky using ManyCam, which is a virtual webcam driver (from what I understand). This will provide a valid camera that you can select from the flash, and you can also select the video file as the source file for ManyCam. See http://manycam.com/user_guide/#HowtoSelectaVideofileasthePictureSourceforManyCam

Update # 2

If you are looking for something open that will do the same as multi-camera, check the following:

http://code.google.com/p/webcamstudio/wiki/VideoSourceMovie (GPL)

+2
source

Source: https://habr.com/ru/post/1400691/


All Articles