media icon indicating copy to clipboard operation
media copied to clipboard

Blackscreen at AIDA demo video

Open ghost opened this issue 1 year ago • 4 comments

Please delete issue

ghost avatar Oct 01 '24 14:10 ghost

Play "AIDA VIDEO (MP4)" from the demo app

I can't see a video with this name in our demo app sample list.

From the symptoms you describe I suspect the device you're using doesn't support the video codec of this file - you can confirm this by looking in logcat for output tagged with EventLogger containing the string tracks, which should enumerate all the tracks in the file, and annotate the level of support the device advertises for each one.

icbaker avatar Oct 07 '24 11:10 icbaker

I'm not able to reproduce the reported behaviour. I played the provided AidaVideoTest.mp4 in the demo app built from the tip of the main branch and I see the video track reported in logcat (it is missing in your screenshot) and the video is also shown on the screen:

tracks [eventTime=0.14, mediaPos=0.00, window=0, period=0
  group [
    [X] Track:0, id=1, mimeType=video/avc, codecs=avc1.4D0029, res=1824x776, color=NA/NA/NA/8/8, fps=30.11496, supported=YES
  ]
  group [
    [X] Track:0, id=2, mimeType=audio/mp4a-latm, bitrate=128000, codecs=mp4a.40.2, channels=2, sample_rate=48000, language=und, supported=YES
  ]
  Metadata [
    TPE1: description=null: values=[Microsoft Game DVR]
    TIT2: description=null: values=[MMI]
    Mp4Timestamp: creation time=3809941832, modification time=3809941832, timescale=30000
  ]
]

icbaker avatar Oct 08 '24 08:10 icbaker

I see the same working behaviour in the demo app built at 1.3.1 as well. This is testing on a Pixel 7a, but the device shouldn't affect which tracks are reported in logcat (it may affect whether they are marked as 'supported' or not, but in your screenshot the video track is completely missing).

icbaker avatar Oct 08 '24 08:10 icbaker

I downloaded the .7z file, extracted it, copied the AidaVideoTest.mp4 file to my device with adb push and then played it using an intent:

$ adb push AidaVideoTest.mp4 /sdcard/Android/data/androidx.media3.demo.main/files/
$ adb shell am start -a androidx.media3.demo.main.action.VIEW \
    -d  "file:///sdcard/Android/data/androidx.media3.demo.main/files/AidaVideoTest.mp4"

I didn't inspect the code in the .7z file.

icbaker avatar Oct 08 '24 08:10 icbaker

Closing due to inactivity.

icbaker avatar Nov 06 '24 10:11 icbaker