Open gustawdaniel opened 3 months ago
and it can be potentially connected with issue https://github.com/pdeljanov/Symphonia/issues/8
if i understand this issue correctly, it is a duplicate of #8.
thread 'main' panicked at src/bin/convert.rs:46:10:
let _decoder = symphonia::default::get_codecs().make(&track.codec_params, &dec_opts)
.expect("unsupported codec");
if the error comes from the same code as provided, this is the line it panics on, which is expected as you are trying to make a decoder for opus in symphonia, which is a codec which is not yet implemented and explicitly expect
it.
but on the orher hand I see in both cases 0x0 for video stream but
symphonia currently does not handle any video stream, only audio.
so it is issue of opus or vp8 and vp9?
TL;DR: the issue is opus
and you trying to make a decoder for it
Steps to reproduce:
1 Lets download files:
Lets inspect them by ffmpeg -i
Working file
Not working file
Most important probably are lines:
working:
not working
My code:
for working file it will print result
but for not working
I found that in working examle we using vorbis
pub const CODEC_TYPE_VORBIS: CodecType = CodecType(0x1000);
but for not working opus
pub const CODEC_TYPE_OPUS: CodecType = CodecType(0x1005);
and it can be potentially connected with issue https://github.com/pdeljanov/Symphonia/issues/8
but on the orher hand I see in both cases 0x0 for video stream but
vorbis and opus are audio streams recognized by ffmpeg
so it is issue of opus or vp8 and vp9?