google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.74k stars 6.03k forks source link

Udp stream mpeg-l2 audio not play in Exoplayer #6525

Closed MuthuKrishnanO closed 5 years ago

MuthuKrishnanO commented 5 years ago
10-11 00:09:28.487 28166-28166/? E/libprocessgroup: failed to make and chown /acct/uid_10191: Read-only file system
10-11 00:09:28.487 28166-28166/? W/Zygote: createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
10-11 00:09:28.490 28166-28166/? I/art: Late-enabling -Xcheck:jni
10-11 00:09:28.520 28166-28166/? E/Environment: canonicalPath = /storage/sdcard
10-11 00:09:28.638 28166-28188/com.google.android.exoplayer2.demo D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false
10-11 00:09:28.644 28166-28166/com.google.android.exoplayer2.demo D/Atlas: Validating map...
10-11 00:09:28.674 28166-28188/com.google.android.exoplayer2.demo I/OpenGLRenderer: Initialized EGL, version 1.4
10-11 00:09:28.678 28166-28188/com.google.android.exoplayer2.demo D/OpenGLRenderer: Enabling debug mode 0
10-11 00:09:28.684 28166-28188/com.google.android.exoplayer2.demo D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
10-11 00:09:36.707 28166-28166/com.google.android.exoplayer2.demo I/art: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.exoplayer2.video.MediaCodecVideoRenderer$OnFrameRenderedListenerV23>
10-11 00:09:36.707 28166-28166/com.google.android.exoplayer2.demo I/art: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.exoplayer2.video.MediaCodecVideoRenderer$OnFrameRenderedListenerV23>
10-11 00:09:36.715 28166-28166/com.google.android.exoplayer2.demo I/art: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.exoplayer2.video.MediaCodecVideoRenderer$OnFrameRenderedListenerV23>
10-11 00:09:36.718 28166-28166/com.google.android.exoplayer2.demo I/art: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.exoplayer2.video.MediaCodecVideoRenderer$OnFrameRenderedListenerV23>
10-11 00:09:36.718 28166-28166/com.google.android.exoplayer2.demo I/art: Rejecting re-init on previously-failed class java.lang.Class<com.google.android.exoplayer2.video.MediaCodecVideoRenderer$OnFrameRenderedListenerV23>
10-11 00:09:36.731 28166-28166/com.google.android.exoplayer2.demo I/ExoPlayerImpl: Init 25f7f74e [ExoPlayerLib/2.9.3] [Hi3798CV200, Hi3798CV200, Hisilicon, 22]
10-11 00:09:36.750 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: state [0.00, 0.00, window=0, true, BUFFERING]
10-11 00:09:36.793 28166-28188/com.google.android.exoplayer2.demo D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
10-11 00:09:36.830 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: surfaceSizeChanged [0.08, 0.00, window=0, 1920, 1080]
10-11 00:09:36.833 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: timelineChanged [0.09, 0.00, window=0, periodCount=1, windowCount=1, reason=PREPARED
10-11 00:09:36.833 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:   period [?]
10-11 00:09:36.833 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:   window [?, false, false]
10-11 00:09:36.833 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: ]
10-11 00:09:36.928 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: mediaPeriodCreated [0.18, 0.00, window=0, period=0]
10-11 00:09:36.929 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: loading [0.18, 0.00, window=0, period=0, true]
10-11 00:09:37.003 28166-28188/com.google.android.exoplayer2.demo D/OpenGLRenderer: endAllStagingAnimators on 0xb499b300 (ExpandableListView) with handle 0xb4a97f70
10-11 00:09:37.432 28166-28223/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
10-11 00:09:37.456 28166-28223/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized level 0 for video/x-vnd.on2.vp9
10-11 00:09:37.456 28166-28223/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized profile 0 for video/x-vnd.on2.vp9
10-11 00:09:37.461 28166-28223/com.google.android.exoplayer2.demo W/VideoCapabilities: Unsupported mime video/mpeg2
10-11 00:09:37.530 28166-28223/com.google.android.exoplayer2.demo I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
10-11 00:09:37.552 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: decoderEnabled [0.81, 0.00, window=0, period=0, video]
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: tracksChanged [0.81, 0.00, window=0, period=0, 
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:   Renderer:0 [
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:     Group:0, adaptive_supported=N/A [
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:       [X] Track:0, id=19164/3079, mimeType=video/avc, codecs=avc1.640028, res=1440x1080, supported=YES
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:     ]
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:   ]
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:   Renderer:1 [
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:     Group:0, adaptive_supported=N/A [
10-11 00:09:37.554 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:       [ ] Track:0, id=19164/3080, mimeType=audio/mpeg-L2, channels=2, sample_rate=48000, supported=NO_UNSUPPORTED_TYPE
10-11 00:09:37.555 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:     ]
10-11 00:09:37.555 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:   ]
10-11 00:09:37.555 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:   Renderer:2 [
10-11 00:09:37.555 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:     Group:0, adaptive_supported=N/A [
10-11 00:09:37.555 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:       [ ] Track:0, id=19164/11271, mimeType=application/cea-608, supported=YES
10-11 00:09:37.555 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:     ]
10-11 00:09:37.555 28166-28166/com.google.android.exoplayer2.demo D/EventLogger:   ]
10-11 00:09:37.555 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: ]
10-11 00:09:37.559 28166-28228/com.google.android.exoplayer2.demo I/OMXClient: Using client-side OMX mux.
10-11 00:09:37.564 28166-28227/com.google.android.exoplayer2.demo I/MediaCodec: MediaCodec::setState == > mCrypto.clear
10-11 00:09:37.568 28166-28228/com.google.android.exoplayer2.demo E/ACodec: [OMX.hisi.video.decoder.avc] storeMetaDataInBuffers failed w/ err -2147483648
10-11 00:09:37.569 28166-28228/com.google.android.exoplayer2.demo I/ACodec: [OMX.hisi.video.decoder.avc] prepareForAdaptivePlayback(1440x1080)
10-11 00:09:37.580 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: mediaPeriodReadingStarted [0.83, 0.00, window=0, period=0]
10-11 00:09:37.580 28166-28228/com.google.android.exoplayer2.demo I/ACodec: [OMX.hisi.video.decoder.avc] Allocating 4 buffers of size 2097152 on input port
10-11 00:09:37.584 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: downstreamFormatChanged [0.83, 0.00, window=0, period=0, id=19164/3079, mimeType=video/avc, codecs=avc1.640028, res=1440x1080]
10-11 00:09:37.590 28166-28228/com.google.android.exoplayer2.demo I/ACodec: [OMX.hisi.video.decoder.avc] will output to SurfaceView
10-11 00:09:37.590 28166-28228/com.google.android.exoplayer2.demo I/ACodec: Output will queue to overlay.
10-11 00:09:37.591 28166-28228/com.google.android.exoplayer2.demo I/ACodec:  isVideoBypass -- omxBypass = 0, queuesToNativeWindow = 1
10-11 00:09:37.593 28166-28228/com.google.android.exoplayer2.demo I/ACodec: [OMX.hisi.video.decoder.avc] Allocating 7 buffers from a native window of size 2332800 on output port
10-11 00:09:37.726 28166-28188/com.google.android.exoplayer2.demo D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
10-11 00:09:37.797 28166-28188/com.google.android.exoplayer2.demo V/RenderScript: 0xb4823800 Launching thread(s), CPUs 4
10-11 00:09:37.993 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: decoderInitialized [1.25, 0.00, window=0, period=0, video, OMX.hisi.video.decoder.avc]
10-11 00:09:37.994 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: decoderInputFormatChanged [1.25, 0.00, window=0, period=0, video, id=19164/3079, mimeType=video/avc, codecs=avc1.640028, res=1440x1080]
10-11 00:09:38.057 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: videoSizeChanged [1.31, 0.00, window=0, period=0, 1440, 1080]
10-11 00:09:38.067 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: renderedFirstFrame [1.32, 0.00, window=0, period=0, Surface(name=null)/@0x2f603a5a]
10-11 00:09:39.355 28166-28166/com.google.android.exoplayer2.demo D/EventLogger: state [2.61, 0.00, window=0, period=0, true, READY]
christosts commented 5 years ago

Please provide complete information as requested in the issue template. The issue template can be found here.

ojw28 commented 5 years ago

@OLIMUTH - There are lots of existing issues about audio/mpeg-L2. As described in some of them, Android devices are not required to support this sample format. See our supported formats page for more detail.

If you require support for this sample format across all devices then you can try using the FFmpeg decoder, as suggested in this issue.

MuthuKrishnanO commented 5 years ago

[REQUIRED] Searched documentation and issues

I Googled "ExoPlayer FFMPEG" . [REQUIRED] Question and issues

I extension the FFMPEG decoder but it show the

remote: Enumerating objects: 37, done. remote: Counting objects: 100% (37/37), done. remote: Compressing objects: 100% (7/7), done. remote: Total 28 (delta 21), reused 28 (delta 21), pack-reused 0 Unpacking objects: 100% (28/28), done. From https://github.com/FFmpeg/FFmpeg 0700e72..9f02301 master -> origin/master Already up-to-date. Already on 'release/4.0' Your branch is up-to-date with 'origin/release/4.0'. home/user/Android/Sdk/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed.

If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.

ojw28 commented 5 years ago

That looks like an issue compiling FFmpeg. This is most likely unrelated to ExoPlayer, and is probably a problem in your environment's setup or dependencies. I would suggest you read the FFmpeg compilation guide. If you're unable to resolve this issue, you should seek help as suggested in the failure message:

Report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.

MuthuKrishnanO commented 5 years ago

now add the FFmpeg command in terminal .it did not show this pervious message .but it shows the warning message.that is any problem for Exoplayer extension. ffmpeg extension.txt