[MPlayer-dev-eng] [PATCH] Fix playback of 06.rm

Roberto Togni rxt at rtogni.it
Mon Jan 6 01:16:26 CET 2014


On Fri, 3 Jan 2014 17:46:53 +0100
Roberto Togni <rxt at rtogni.it> wrote:

> Hi,
>  this patch fixes playback of
>  http://www.maknoon.com/download/audios/khudheir/06.rm reported on
> -users a long time ago. The same file is also in FFmpeg trac #2152.
> Realplayer8 plays the file correctly.
> 
> The patch skips over the MLTI chunk that is found in audio block before
> the .ra chunk.
> 
> Since I have only this sample, and it contains only one audio stream, I
> can't implement any use for that data.
> MLTI chunks are used in realtrsp streaming, probably it's just a
> leftover of some program used to dump the stream.
> 
[...]

Attached a new patch that allows playback of all the files from this
thread and, as far as I could test, does not break anything else.


The patch has these limitations:
 - no multirate files with MLTI chunks
 - no mixed files (eg. MLTI for audio but not for video)
 - no MLTI for video together with non-ra audio (eg. ralf)
 - only DATA v0 (no v1, versions greater than 1 should not exist)
Behaviour in these cases is undefined, for some of them a warning is
printed. If such perverted files really exist in the wild I will
implement some workaround.

Also video MLTI files with only one stream are supported but untested
(I used the same behaviour as audio in 06.rm), if you have samples
please post them.


In all my samples there is only one audio and one video stream, even if
the header announces many of them.
If you let Mplayer autoselect the streams it will do the right thing;
if you force -aid or -vid by hand you may end up with a non-existing
stream (nothing is played).


Ciao,
 Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demux_real.c.diff
Type: text/x-patch
Size: 19599 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20140106/9428a068/attachment.bin>


More information about the MPlayer-dev-eng mailing list