MonaSolutions / MonaServer2

Temporary project planned to replace MonaServer
GNU General Public License v3.0
267 stars 36 forks source link

ClientExample - VideoPublisher fails to dump ts due to absolutePath nil #69

Open Jasenvm opened 11 months ago

Jasenvm commented 11 months ago

Hey

I've been wanting to start working with MonaServer since Red5 Pro came out...

Finally have the chance to start playing with the examples, but having some teething issues....

Why would this absolutePath fail:

MonaServer.cpp[278] www/VideoPublisher/main.lua:16: attempt to call method 'absolutePath' (a nil value)
ServerAPI.cpp[110] www/VideoPublisher/main.lua:16: attempt to call method 'absolutePath' (a nil value)

I have tried on both Windows and Linux (ubuntu20) with same error. so I compiled from the source for Linux test server, and used the 64bit version on my Windows 11 laptop, same error....I suspect any mona: context is failing?

thanks for any help, hope its something easy:)

thomasjammet commented 11 months ago

Hello Jasen!

The samples you found are supported by the first MonaServer version : https://github.com/MonaSolutions/MonaServer. MonaServer2 lua support is not stable and unfortunately there is no plan to work on it anymore but let us know if we can help.

Regards

Jasenvm commented 11 months ago

Thanks @thomasjammet

Much appreciate the work to get mona this far...

As you suggested, I compiled monaserver and dumps h.264 video just fine from OBS, however, I think there are some encoding issues with lastest harman AIR still, because getting this error message when try to record from AIR 50.x.x on Windows 11...:

sources/MediaContainer.cpp[285] H264 NALU Stream first byte not expected : 129 sources/MediaContainer.cpp[350] VIDEO Frame is not well formated

I suppose I have a Harman AIR encoding issue, I probably need to speak to them :)