[FFmpeg-devel] [PATCH] add RV10 fourcc to libavformat/riff.c

Michael Niedermayer michaelni
Mon May 14 00:12:00 CEST 2007


Hi

On Sun, May 13, 2007 at 03:05:26PM -0700, Corey Hickey wrote:
> Corey Hickey wrote:
> > Michael Niedermayer wrote:
> >>> RV10 is missing. Is this the right place to put it?
> >> hmm, may i ask why that should be there?
> > 
> > I don't know at all. That's why I asked. :) It was just as easy to send
> > a patch as well.
> > 
> >> iam not against adding it if there are some rv10 in avi around
> >> iam also not against adding it if stream copy of rv10 into avi
> >> would then produce a playable avi file
> > 
> > Apparently rv10 in avi works, but it does so with or without my patch.
> 
> ...actually, when I investigated further, I found some problems the
> patch reveals.
> 
> ------------- without patching riff.c --------------
> Works:
> $ ffmpeg -i a.mpg -an -vcodec rv10 rv10.rm
> (plays fine in ffplay and mplayer)
> 
> 
> Does not work:
> $ ffmpeg -i a.mpg -an -vcodec rv10 rv10.avi
> (encodes happily, but output avi has no fourcc)
> $ ffmpeg -i rv10.rm -vcodec copy rv10.avi
> (same as above)
> 
> -------------- patched riff.c ------------------
> Still works:
> $ ffmpeg -i a.mpg -an -vcodec rv10 rv10.rm
> (still plays fine in ffplay and mplayer)
> 
> 
> Sort of works:
> $ ffmpeg -i a.mpg -an -vcodec rv10 rv10.avi
> (plays fine in mplayer; ffplay doesn't like it; see 1. below)
> $ ffmpeg -i rv10.rm -vcodec copy rv10.avi
> (plays fine in ffplay; mplayer doesn't like it; see 2. below)
> 
> ------------------------------------------------
> 
> 1. Using ffmpeg to directly encode rv10 to an avi makes a file that
> mplayer plays fine (patched or unpatched, using either native or lavf
> demuxer); however, ffplay segfaults.

ff* segfault -> me wants gdb output _always_


> 
> 2. Using ffmpeg to copy rv10 from an rm file to an avi makes a file that
> ffplay plays file (when patched); however, mplayer doesn't play it. With
> the native demuxer, it shows lots of errors:
> [rv10 @ 0xf6f880]warning: first frame is no keyframe
> [rv10 @ 0xf6f880]ERROR at MB 0 0
> [rv10 @ 0xf6f880]marker missing
> [rv10 @ 0xf6f880]concealing 330 DC, 330 AC, 330 MV errors
> [rv10 @ 0xf6f880]ERROR at MB 0 0
> [rv10 @ 0xf6f880]marker missing
> [rv10 @ 0xf6f880]concealing 330 DC, 330 AC, 330 MV errors
> ...etc...
> With -demuxer lavf, mplayer segfaults.
> 
> 3. Using mencoder to copy rv10 from an rm file to an avi makes a file
> that mplayer plays fine (patched and unpatched, using either demuxer);
> however, ffplay shows lots of errors:
> [rv10 @ 0xa31ee0]marker missing
> [rv10 @ 0xa31ee0]error, qscale:0
> [rv10 @ 0xa31ee0]HEADER ERROR
> [rv10 @ 0xa31ee0]marker missing
> [rv10 @ 0xa31ee0]error, qscale:0
> [rv10 @ 0xa31ee0]HEADER ERROR
> 
> 
> 
> I know none of these are a good bugreport; I'll try to investigate them
> later. It seems I've opened a can or worms I wasn't expecting. Patching
> riff.c doesn't seem to break anything, though, so if that's your
> preference then I can go ahead and do so.
> 
> It's your call.

more investigation should be done, rv10 in avi would be funny :)

[...]

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070514/3b3c26cc/attachment.pgp>



More information about the ffmpeg-devel mailing list