Closed Noloxs closed 3 years ago
I attempted reproducing this on several versions. The results were as follows:
main (ba8f098)
Cannot reproduce in demo appv0.10.3
Can reproduce in demo appv0.10.2
Can reproduce in demo appv0.10.1
Can reproduce in demo appv0.10.0
Can reproduce in demo appv0.9.1
Cannot reproduce in demo appI'm not sure what changed to fix this but it seems to be resolved on main
. That said, it still might be a good idea to catch exceptions thrown by mMetadata.extractMetadata(METADATA_KEY_LOCATION)
as suggested by @daviduzan in https://github.com/natario1/Transcoder/issues/147
I would be happy to create that PR if you would like.
Do you have any guesstimates regarding the next official release?
As it isn't a blocking issue, we able to wait for it.
I can confirm that this appears to be fixed in main
.
Edit: The MediaMetadataRetriever
was released prematurely here:
at com.otaliastudios.transcoder.source.DefaultDataSource.deinitialize(DefaultDataSource.java:101)
at com.otaliastudios.transcoder.source.DataSourceWrapper.deinitialize(DataSourceWrapper.java:102)
at com.otaliastudios.transcoder.source.TrimDataSource.deinitialize(TrimDataSource.java:44)
at com.otaliastudios.transcoder.internal.DataSources.deinit(DataSources.kt:23)
at com.otaliastudios.transcoder.internal.DataSources.deinit(DataSources.kt:25)
at com.otaliastudios.transcoder.internal.DataSources.<init>(DataSources.kt:44)
at com.otaliastudios.transcoder.internal.DataSources.<init>(DataSources.kt:17)
at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine$Companion.transcode(TranscodeEngine.kt:33)
at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine.transcode(Unknown Source:2)
at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:102)
at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:99)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
ba8f098c9461a12da1c11d26c9f32feb1e69b4d5 fixes this.
Could you @natario1 release main
as 0.10.4
The try catch proposed in #147 should not be necessary.
Done!
Hi. I encountered a issue related to the MediaMetadataRetriever on a particular video When I attempt to transcode the video, it throws an exception that seems to originate from the MediaMetadataRetriever while attempting to get the videos location metadata.
NB.: The video is not a natural recorded video but made by saving a power point as a video.
Transcoder version: 0.10.3 Device type: Samsung Galaxy S21 Ultra Android API level: Android 11 (30)
Exact steps to reproduce the issue Attempt to transcode the attached video using the configuration show below.
Expected behavior The video is transcoded, possibly with some missing metadata
Imprementation:
Exception: