Skip to content
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

Cannot get an image on nginx-rtmp (or any streaming services) #10

Closed
bremart1 opened this issue Oct 2, 2020 · 1 comment
Closed

Cannot get an image on nginx-rtmp (or any streaming services) #10

bremart1 opened this issue Oct 2, 2020 · 1 comment

Comments

@bremart1
Copy link

bremart1 commented Oct 2, 2020

Hello, I cannot seem to obtain a visual using your projet and nginx-rtmp-server or twitch or youtube.

The program connects to the server, I can even get twitch for example to signal a live feed, but I get network errors or simply no video output.

Here is the output on nginx's playback web page:

Audio parameters changed (codec : speex, rate : 16, mode : fullDuplex, echoPath : 128)
NetConnection event : NetConnection.Connect.Success
NetStream event : NetStream.Play.Start
NetConnection event : NetConnection.Connect.Closed
NetConnection event : NetConnection.Connect.Success
NetStream event : NetStream.Play.Start
onMetaData: 
 - audiodatarate: 0
 - fps: 0
 - audiocodecid: 0
 - displayWidth: 1280
 - height: 720
 - videodatarate: 488
 - profile: 
 - duration: 0
 - level: 
 - displayHeight: 720
 - Server: NGINX RTMP (github.com/arut/nginx-rtmp-module)
 - width: 1280
 - videocodecid: 7
 - framerate: 0
Aspect_num:1.7777777777777777 
_vid.width:360  _vid.height:202

The program output is as followed. I added some prints for debugging purposes:

Success opening video stream.V4L2
[0;39m[rtmp @ 0x70b600] [0m[0;32mNo default whitelist set
[0m[0;39m[tcp @ 0x709bc0] [0m[0;32mNo default whitelist set
[0m[0;39m[tcp @ 0x709bc0] [0m[0;32mOriginal list of addresses:
[0m[0;39m[tcp @ 0x709bc0] [0m[0;32mAddress 172.17.93.5 port 1935
[0m[0;39m[tcp @ 0x709bc0] [0m[0;32mInterleaved list of addresses:
[0m[0;39m[tcp @ 0x709bc0] [0m[0;32mAddress 172.17.93.5 port 1935
[0m[0;39m[tcp @ 0x709bc0] [0m[0;32mStarting connection attempt to 172.17.93.5 port 1935
[0m[0;39m[tcp @ 0x709bc0] [0m[0;32mSuccessfully connected to 172.17.93.5 port 1935
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mHandshaking...
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mType answer 3
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mServer version 13.14.10.13
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mProto = rtmp, path = /live/a, app = live, fname = a
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mWindow acknowledgement size = 5000000
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mMax sent, unacked = 5000000
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mNew incoming chunk size = 4096
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mReleasing stream...
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mFCPublish stream...
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mCreating stream...
[0m[0;39m[rtmp @ 0x70b600] [0m[0;32mSending publish command for 'a'
[0m[1;36m[h264_omx @ 0x711540] [0mUsing OMX.broadcom.video_encode
[1;36m[h264_omx @ 0x711540] [0m[0;32mOMX state changed to 2
[0m[1;36m[h264_omx @ 0x711540] [0m[0;32mOMX state changed to 3
[0m[1;36m[h264_omx @ 0x711540] [0m[0;32mOMX port 201 settings changed
[0mOutput #0, flv, to 'rtmp:// 172.17.93.5/live/a':
    Stream #0:0[0;32m, 0, 1/30[0m: Video: h264 (h264_omx), 1 reference frame, yuv420p, 1280x720 (0x0), 0/1, q=2-31, 500 kb/s, 30 tbn
stream time base = 1 / 1000 
before av_init_packet
before avcodec_send_frame
before avcodec_receive_packet
before av_interleaved_write_frame
before av_packet_unref
end of encode_and_write_frame
STREAMING ON
before av_init_packet
before avcodec_send_frame
before avcodec_receive_packet
before av_interleaved_write_frame
before av_packet_unref
end of encode_and_write_frame
STREAMING ON
before av_init_packet
before avcodec_send_frame
before avcodec_receive_packet
before av_interleaved_write_frame
before av_packet_unref
end of encode_and_write_frame
STREAMING ON
before av_init_packet
before avcodec_send_frame
before avcodec_receive_packet
before av_interleaved_write_frame
before av_packet_unref
end of encode_and_write_frame

As you can see, the program loops to send packets, but aside from the 1st image, I do not get echo outputs from the h264_omx encoder in the console. Is this normal behavior? Do you have any idea what could be the issue in my case?
Thanks.

@bremart1 bremart1 closed this as completed Dec 8, 2020
@bremart1
Copy link
Author

bremart1 commented Dec 8, 2020

Fixed. Wrong ffmpeg libraries most probably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant