Closed timcreatedit closed 1 week ago
Did you add a valid video track along with the blank audio?
Hey, thanks for your super quick response!
We are basically doing this:
val datasource = UriDataSource(context, sourcePathUri)
datasource.initialize()
val transcoder = Transcoder.into(destPath)
.addDataSource(TrackType.VIDEO, datasource)
.addDataSource(TrackType.AUDIO, BlankAudioDataSource(datasource.durationUs))
Without adding the BlankAudioDatasource, this code works fine. Once we add it, it is stuck infinitely as mentioned above.
Our main goal is the problem you had originally as well, where we can't concat videos with audio tracks together with videos without audio tracks, although we might be missing something of course
It's been a while since I worked on this, so I'm not sure I can help with the code! Looking at the PR, I have the impression that adding the blankAudio is handled internally by the transcoder. You could try concatenating the two videos (with/without audio tracks) and see if that works :crossed_fingers:
If we try to concatenate video with audio with video without audio, we run into the same problem as you did in #51 It seems like the audioTracks getter doesn’t do it’s job (anymore), or we're potentially missing something
thanks again for your help, it is really appreciated
This looks like it should fill missing audio tracks with BlankAudioDataSources automatically
@timcreatedit Hi. Any updates about this issue?
Experiencing the same thing over here. Hoping for some updates.
I can't reproduce this anymore, it should be fixed in latest version.
When adding a
BlankAudioDataSource
with any duration to a Transcoder, the transcoding process gets stuck forever with the following log:and so on...
I tried to modify the
readTrack
function inBlankAudioDataSource
but to no avail. Not sure if @natario1 is still maintaining this repo, but maybe @mudar can help out as the original author of #64Thank you so much!