androidx / androidx/media

Udp url stream with mimetype video/avc are not playing

Open
#278 3 comments 0 reactions 1 assignee View on GitHub

@microkatz is already working on this.

Since Mar 23, 2023.

bug
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Media3 Version

Media3 1.0.0-rc02

Devices that reproduce the issue

tv box MXQPRO android 11.1
H96 MAx tv box
Q96 MAx tv box
X96 mini tv box

Decoder used: OMX.amlogic.avc.decoder.awesome

Devices that do not reproduce the issue

X98 H android 11.1
Decoder OMX.amlogic.avc.decoder.awesome

Reproducible in the demo app?

Yes

Reproduction steps

clone exoplayer demo application (media3) on android studio

replace media.exolist.json file and add udp://@233.1.1.48:1234 as url in all section to try all configurations

run application on tv box device

play each one , no exception or toast shown , video is not playing

Expected result

video udp stream must be played like other videos

Actual result

video is not playing and no exception found

Media

the specifications shown in EventLogger of url video that is not playing :

** tracks [eventTime=48.42, mediaPos=0.00, window=114, period=114
D group [
D [X] Track:0, id=1/68, mimeType=video/avc, codecs=avc1.4D002A, res=1920x1080, supported=YES
D ]
D group [
D [X] Track:0, id=1/69, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=48000, language=, supported=YES
D ]
D downstreamFormat [eventTime=48.42, mediaPos=0.00, window=114, period=114, id=1/68, mimeType=video/avc, codecs=avc1.4D002A, res=1920x1080]
D videoInputFormat [eventTime=48.42, mediaPos=0.00, window=114, period=114, id=1/68, mimeType=video/avc, codecs=avc1.4D002A, res=1920x1080]
D downstreamFormat [eventTime=48.42, mediaPos=0.00, window=114, period=114, id=1/69, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=48000, language=]
D audioDecoderInitialized [eventTime=48.42, mediaPos=0.00, window=114, period=114, ffmpegLavc58.54.100-aac]
D audioInputFormat [eventTime=48.42, mediaPos=0.00, window=114, period=114, id=1/69, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=48000, language=]**

Note that the eventLogger stuck there and didnt show anything else until i change the channel

the specifications of url udp video that play well

tracks [eventTime=236.51, mediaPos=0.00, window=116, period=116
D group [
D [X] Track:0, id=2101/2101, mimeType=video/mpeg2, res=720x576, supported=YES
D ]
D group [
D [X] Track:0, id=2101/2102, mimeType=audio/mpeg-L2, channels=2, sample_rate=48000, supported=YES
D ]
D ]
D downstreamFormat [eventTime=236.51, mediaPos=0.00, window=116, period=116, id=2101/2101, mimeType=video/mpeg2, res=720x576]
D videoDecoderReleased [eventTime=236.58, mediaPos=0.00, window=116, period=116, OMX.amlogic.avc.decoder.awesome]
D videoDecoderInitialized [eventTime=236.66, mediaPos=0.00, window=116, period=116, OMX.amlogic.mpeg2.decoder.awesome]
D videoInputFormat [eventTime=236.66, mediaPos=0.00, window=116, period=116, id=2101/2101, mimeType=video/mpeg2, res=720x576]
D downstreamFormat [eventTime=236.66, mediaPos=0.00, window=116, period=116, id=2101/2102, mimeType=audio/mpeg-L2, channels=2, sample_rate=48000]
D audioDecoderInitialized [eventTime=236.66, mediaPos=0.00, window=116, period=116, ffmpegLavc58.54.100-mp3]
D audioInputFormat [eventTime=236.66, mediaPos=0.00, window=116, period=116, id=2101/2102, mimeType=audio/mpeg-L2, channels=2, sample_rate=48000]
D videoSize [eventTime=236.86, mediaPos=0.00, window=116, period=116, 720, 576]
D renderedFirstFrame [eventTime=236.86, mediaPos=0.00, window=116, period=116, Surface(name=null)/@0x47f4ac6]
D state [eventTime=241.69, mediaPos=-0.19, window=116, period=116, READY]
D isPlaying [eventTime=241.70, mediaPos=-0.19, window=116, period=116, true]

Bug Report
  • You will email the zip file produced by adb bugreport to dev.exoplayer@gmail.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.