LibRtmp-Client-for-Android icon indicating copy to clipboard operation
LibRtmp-Client-for-Android copied to clipboard

Rtmp live stream displays the first frame and freezes

Open PanCrucian opened this issue 8 years ago • 7 comments

I use your library together with ExoPlayer v2.5.4, and when i try to play this stream rtmp://188.130.252.20:1935/live/test live=1 the stream displays the first frame and freezes(last incoming state STATE_BUFFERING) For MediaSource used com.google.android.exoplayer2.source.ExtractorMediaSource

partial code:

RtmpDataSourceFactory dataSourceFactory = new RtmpDataSource.RtmpDataSourceFactory();
MediaSource mediaSource = new ExtractorMediaSource(Uri.parse("rtmp://188.130.252.20:1935/live/test live=1"), dataSourceFactory, new DefaultExtractorsFactory(), null, null);

log:

I/OMXClient: Using client-side OMX mux.
I/MediaCodec: [OMX.qcom.video.decoder.avc] setting surface generation to 18942978
I/ExtendedACodec: setupVideoDecoder()
I/ExtendedACodec: vpp-enable search is 0 and value is 0
I/ExtendedACodec: Decoder will be in frame by frame mode
W/ExtendedACodec: Failed to set frame packing format on component
W/ExtendedACodec: Failed to get Profile and Level from Component
W/ExtendedACodec: Failed to get Entropy from Component

rtmp vod streams working fine Device used for testing Le X527, API 23

PanCrucian avatar Oct 26 '17 16:10 PanCrucian

Please try it yourself @mekya

PanCrucian avatar Oct 26 '17 16:10 PanCrucian

It seems that the media server does not respond some meta data which should be in the RTMP stream. Can u @mekya please check and approve this?

PanCrucian avatar Oct 27 '17 08:10 PanCrucian

Yeah I have checked and you are right. It seems that it is a codec issue in ExoPlayer.

mekya avatar Oct 28 '17 06:10 mekya

@mekya can you please help me find the issue? i'm not well on this technology... or can tell me where to look in ExoPlayer

PanCrucian avatar Oct 28 '17 06:10 PanCrucian

I think we may request help from one of the developer of Exoplayer

Is it possible to take a look at this issue @ojw28?

If ojw28 is busy to take a look at this issue, I can dig into this and try to help you.

mekya avatar Oct 28 '17 08:10 mekya

yeah @ojw28 can u please? I opened new ticket in ExoPlayer project

PanCrucian avatar Oct 28 '17 08:10 PanCrucian

@PanCrucian hi can you please share your code, how you have implemented rtmp live stream video suing this, i can't find doc for this

amankumarjain avatar Mar 01 '18 21:03 amankumarjain