[MPlayer-dev-eng] [PATCH]SPDIF pass through decoder

Naoya OYAMA naoya.oyama at gmail.com
Thu Nov 3 14:53:18 CET 2011


Hi.

Thank you for your test resport.

ad_spdif.c has two problems.
The patch coping with a problem is attached.

[problem 1]
If demuxer specify -demuxer lavf,
MPlayer will judge that ad_spdif.c:init() went wrong.

Because bps and srate value were 0.
Native demuxers are automatically choosen,
bps and srate value were not 0.

[problem 2]
If demuxer specify -demuxer mpegps,
bellow line will failed.

lavf_ctx->oformat = av_guess_format(FILENAME_SPDIFENC, NULL, NULL);

Because av_register_all() was not executed.

Thank you.

2011/10/15, Carl Eugen Hoyos <cehoyos at ag.or.at>:
> Hi!
>
> Naoya OYAMA <naoya.oyama <at> gmail.com> writes:
>
>> Patch update.
>
> Thank you for your efforts!
>
> I tested current MPlayer svn with -ac spdifac3, and for me it *only* works
> if
> ac3 audio is inside a transport stream (DVB, MPEG TS) or a program stream
> (DVD,
> MPEG PS) and -demuxer lavf is not used.
> It only works if the native demuxers are automatically chosen, if I specify
> -demuxer mpegts (or -demuxer mpegps), it also does not work.
> The following combinations (all files contain ac3 audio) do not work for me:
> mplayer -ac spdifac3 ac3.ts -demuxer lavf
> mplayer -ac spdifac3 ac3.mpg -demuxer lavf
> mplayer -ac spdifac3 ac3.mkv (both -demuxer mkv and -demuxer lavf)
> mplayer -ac spdifac3 ac3.avi (both -demuxer avi and -demuxer lavf)
> mplayer -ac spdifac3 ac3.ac3 (both -demuxer rawaudio -rawaudio format=0x2000
> and
> -demuxer lavf)
>
> Can you reproduce this or do all / some combinations work fine for you?
>
> EAC3 works fine for me, TrueHD and DTS have problems (only work with
> -novideo
> here), but that may be my hardware, I see the same problems with software
> decoding and -channels 8 -srate 192000.
>
> Thanks again, Carl Eugen
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_ad_spdif_fix_demuxer_option_problem.diff
Type: text/x-patch
Size: 1534 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20111103/504c1453/attachment.bin>


More information about the MPlayer-dev-eng mailing list