[Ffmpeg-devel] [PATCH] DVR-MS probe audio format - was DVR-MS bug (MP2 decoding)

John Donaghy johnfdonaghy
Mon Mar 26 23:48:35 CEST 2007


> remove line, and send a bugreport if it doesnt work (if ffmpeg/ffplay
> works
> and mplayer doesnt the bug is likely in mplayer)


I'm having trouble even getting this to work in ffmpeg. The issue seems to
be that av_read_stream_info isnt able to properly parse the audio frames
because it is attempting to parse them when it still doesnt know what the
audio codec is.

For a dvr_ms sample I have where the audio is mp2, if I *dont* set the audio
codec to CODEC_ID_NONE in the asf demuxer I get this from
av_read_frame_internal stream:

[asf @ 006F8438]av_read_frame_internal stream=1, pts=0, dts=0, size=33348
[asf @ 006F8438]av_read_frame_internal stream=0, pts=765208, dts=765208,
size=768
[asf @ 006F8438]av_read_frame_internal stream=0, pts=765232, dts=765232,
size=768
[asf @ 006F8438]av_read_frame_internal stream=0, pts=765256, dts=765256,
size=768

which looks ok, but if I set the audio codec to CODEC_ID_NONE I get this:

[asf @ 006F8438]av_read_frame_internal stream=1, pts=0, dts=0, size=33348
[asf @ 006F8438]av_read_frame_internal stream=0, pts=765208, dts=765208,
size=6144
[asf @ 006F8438]av_read_frame_internal stream=1, pts=765516, dts=765516,
size=15442

I think the problem is in av_read_frame_internal because "st->need_parsing"
is 'true' but no parser can be found for CODEC_ID_NONE. Because no parser
can be initialized  by av_parser_init for CODEC_ID_NONE, st->need_parsing
gets set to '0'.

Is there a way to make this work? I cant see one at the minute.

Thanks,

John

[...]
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> No human being will ever know the Truth, for even if they happen to say it
> by chance, they would not even known they had done so. -- Xenophanes
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
>




More information about the ffmpeg-devel mailing list