rtmp stream not working

%3CLINGO-SUB%20id%3D%22lingo-sub-1232827%22%20slang%3D%22en-US%22%3Ertmp%20stream%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1232827%22%20slang%3D%22en-US%22%3E%3CP%3EI'd%20like%20to%20use%20MS%20Teams%20to%20live%20broadcast%20our%20school%20lessons%20using%20RTMP.%20Unfortunately%20I'm%20not%20able%20to%20push%20RTMP%20video%20to%20your%20servers.%20I%20have%20correct%20encoder%20settings.%20See%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fstream%2Flive-encoder-configuration%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fstream%2Flive-encoder-configuration%20%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20both%20ffmpeg%20and%20OBS%20encoders.%20None%20of%20them%20are%20not%20able%20to%20push%20the%20video.%20Ffmpeg%20is%20able%20to%20connect%2C%20but%20it%20fails%20with%20error%20%22RTMP_ReadPacket%2C%20failed%20to%20read%20RTMP%20packet%20header%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20ffmpeg%20command%3A%3C%2FP%3E%3CP%3Effmpeg%20-f%20lavfi%20-i%20anullsrc%3Dsample_rate%3D48000%20-strict%20-2%20-y%20-loglevel%20trace%20-f%20x11grab%20-s%201280x720%20-framerate%2030%20-i%20%3A0.0%20-threads%202%20-vcodec%20libx264%20-pix_fmt%20yuv420p%20-preset%20fast%20-acodec%20aac%20-strict%20-2%20-f%20flv%20rtmp%3A%2F%2Fxxxxxx.channel.media.azure.net%3A1935%2Flive%2Fxxxxxxxxxx%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20user%20interface%20on%20microsoftstreams.com%20is%20saying%3A%3C%2FP%3E%3CP%3E%22Ready%20to%20connect%3C%2FP%3E%3CDIV%20class%3D%22ng-scope%22%3E%3CDIV%20class%3D%22content%20ng-binding%22%3EConnect%20your%20encoder%20now%20to%20start%20sending%20data%22%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20please%20help%20me%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1232827%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Elive%20rtmp%20video%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

I'd like to use MS Teams to live broadcast our school lessons using RTMP. Unfortunately I'm not able to push RTMP video to your servers. I have correct encoder settings. See https://docs.microsoft.com/en-us/stream/live-encoder-configuration

 

I'm using both ffmpeg and OBS encoders. None of them are not able to push the video. Ffmpeg is able to connect, but it fails with error "RTMP_ReadPacket, failed to read RTMP packet header"

 

My ffmpeg command:

ffmpeg -f lavfi -i anullsrc=sample_rate=48000 -strict -2 -y -loglevel trace -f x11grab -s 1280x720 -framerate 30 -i :0.0 -threads 2 -vcodec libx264 -pix_fmt yuv420p -preset fast -acodec aac -strict -2 -f flv rtmp://xxxxxx.channel.media.azure.net:1935/live/xxxxxxxxxx

 

The user interface on microsoftstreams.com is saying:

"Ready to connect

Connect your encoder now to start sending data"

 

Could you please help me?

 

Jan

2 Replies
Highlighted
I have exactly same problem, did you manage to solve it?
Highlighted