-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload RTMP to YT - closing after a couple of buffers (NAL units) #103
Comments
No, it seems, this missing order is not the problem. What I can tell is, that the writeVideo routine is somehow sending garbage. I have now replaced the YT endpoint by a local RTMP server, provided by The
On the other hand, at my source side, everything looks fine after NAL unit splitting. I'm using The packet contents shortly before providing it to
EDIT: The value after the So, I'm pretty convinced, that the NAL unit splitter does work correctly, the lib is fed with perfect NAL units. But it doesn't work somehow. The H.264 source is a DJI and seems to be OK, since I can decode it perfectly to YUV and display on a surfaceview. What is wrong here? |
To continue the discussion here: I have patched the I'm not having any video on the remote side yet, but at least I have no errors anymore... |
Good. Found the problem:
Works with node-media-server and VLC as client. Unfortunately not yet with Youtube :( |
@neilyoung Which version are you using? |
Don’t remember. Found another solution. Thanks |
@neilyoung I also have the same problem as publish stream to the platform like YouTube with the new release version 3.2.0. But it's okay on the others (e.g. srs). Do you remember what one did you use? The connection doesn't drop by the server If I downgrade to the old one 3.1.0. The 3.2.0 release have renamed the package name from |
I’m sorry. I think I was using something else finally. And the problem with YT was: YT requires audio, even if muted. |
This is probably not related to some malfunction of the lib. I'm just asking for similar experiences. I'm wondering, if some RTMP servers (namely Youtube) would need to have some special packets before the real video can flow. Especially I'm thinking about SPS and PPS units.
Look at this sequence: I'm getting NAL units from another source and forwarding it to the lib. Even though I'm sending video, the connection is torn down after a couple of ms (because of missing meta data?). You see that I'm just sending type 0x21 and 0x09 (the latter is ignored):
I can see that my provided packet length is increased by 20 (dec) on return of the
RTMPMuxer.writeVideo()
routine until it is returning "-20" and reporting the disconnection.Any pointer welcome.
The text was updated successfully, but these errors were encountered: