-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Flac in mp4 using DASH does not seem to work #6397
Comments
We were previously provided with some FLAC in DASH content in #4883, and I'm pretty sure we had it working at the time. Unfortunately it appears the samples are no longer available. |
@ronak2121 - Do you have any DASH/FLAC test streams that are still available? As a general point, you're making life really hard for yourself by using FLAC. Do you really need to use it? Doing what nearly everyone else does (i.e. AAC) is definitely the path of least resistance, unless that's a non-started from a product perspective. |
Here is an example of a FLAC in mp4/DASH. |
Tested this in the ExoPlayer Sample app, and when I build the flac extension and set
which tells me that
I tried to set correct
but that gives me the following error:
Hopefully you can test the provided url and see if you can get some more info on what is happening here. |
I've figured out what's going on here. It's related to
I was able to get all cases working by changing this code block to add the FLAC stream marker:
I'd like to double check that the approach above is the right thing to do before submitting a fix (and, obviously, this should be for |
Hey sorry I’m not in the office and can’t get my test streams back up. I had previously generated the above FLAC streams using FFmpeg. I’ll be in the office on Monday and can help then. How are you generating them? @kgrevehagen |
Thanks for responding. I think we've figured it out now as described above, so no worries! |
The fLaC prefix is included in the initialization data output from the MKV extractor, so this is highly likely ot be the right thing to do. Issue: #6397 PiperOrigin-RevId: 268244365
This should be fixed by the commit above. Please give it a try. |
The fLaC prefix is included in the initialization data output from the MKV extractor, so this is highly likely ot be the right thing to do. Issue: #6397 PiperOrigin-RevId: 268244365
[REQUIRED] Content description
FLAC in mp4 using DASH does not seem to work.
The same track in regular flac container works as it should.
I'm of course using the Mp4Extractor, and playing AAC in the same setup works flawlessly. I have tested with various configuration in regards to renderer, explained in the bug report section below.
[REQUIRED] Link to test content
I can probably provide if needed. Do you have any test content that should work? I tried our .mpd file in VLC on my computer, and that played as it should.
[REQUIRED] Version of ExoPlayer being used
2.10.4 forked with this change included.
[REQUIRED] Device(s) and version(s) of Android being used
Pixel 3 Android 9 and 10.
[REQUIRED] A full bug report captured from the device
Full bug report can be provided if needed.
Here are some logs from my different tries:
Using LibflacAudioRenderer: It is not fetching the dash segments, but plays without sound(time is passing, can pause, play etc) and gives me no error message.
Using default MediaCodecAudioRenderer(afaik understood from #6392 this should work because of platform decoder on Android 8.1 and above) it is fetching dash segments, but does not play like above, and I'm getting the following error:
The text was updated successfully, but these errors were encountered: