You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" com.github.manevolent.ffmpeg4j.FFmpegException: unsupported codec type: 3
at com.github.manevolent.ffmpeg4j.stream.source.FFmpegSourceStream.registerSubstream(FFmpegSourceStream.java:212)
at com.github.manevolent.ffmpeg4j.FFmpegInput.registerStream(FFmpegInput.java:136)
at com.github.manevolent.ffmpeg4j.stream.source.FFmpegSourceStream.registerStreams(FFmpegSourceStream.java:80)
at incubator.FFmpeg4jExperiments.openVideo(FFmpeg4jExperiments.java:44)
at tool.FFmpeg4jTree.main(FFmpeg4jTree.java:65)
The text was updated successfully, but these errors were encountered:
I tinkered a little bit with your nice ffmpeg4j and used some home videos as source. With ~10% of the videos I had problems.
The error happens when I call FFmpegSourceStream.registerStreams()
More precisely in FFMpegInput.registerStream(FFmpegSourceStream sourceStream, int stream_index) at this line:
FFmpegError.checkError("avcodec_open2", avcodec.avcodec_open2(ctx, codec, (avutil.AVDictionary) null));
at com.github.manevolent.ffmpeg4j.stream.source.FFmpegSourceStream.registerSubstream(FFmpegSourceStream.java:212)
at com.github.manevolent.ffmpeg4j.FFmpegInput.registerStream(FFmpegInput.java:136)
at com.github.manevolent.ffmpeg4j.stream.source.FFmpegSourceStream.registerStreams(FFmpegSourceStream.java:80)
at incubator.FFmpeg4jExperiments.openVideo(FFmpeg4jExperiments.java:44)
at tool.FFmpeg4jTree.main(FFmpeg4jTree.java:65)
The text was updated successfully, but these errors were encountered: