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

Rtmp live stream displays the first frame and freezes #51

Open
PanCrucian opened this issue Oct 26, 2017 · 7 comments
Open

Rtmp live stream displays the first frame and freezes #51

PanCrucian opened this issue Oct 26, 2017 · 7 comments

Comments

@PanCrucian
Copy link

PanCrucian commented Oct 26, 2017

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 PanCrucian changed the title The stream displays the first frame and freezes Rtmp live stream displays the first frame and freezes Oct 26, 2017
@PanCrucian
Copy link
Author

PanCrucian commented Oct 26, 2017

Please try it yourself @mekya

@PanCrucian
Copy link
Author

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?

@mekya
Copy link
Contributor

mekya commented Oct 28, 2017

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

@PanCrucian
Copy link
Author

PanCrucian commented Oct 28, 2017

@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

@mekya
Copy link
Contributor

mekya commented Oct 28, 2017

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.

@PanCrucian
Copy link
Author

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

@amankumarjain
Copy link

@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

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

3 participants