Trouble using AviPlayer & XVID4
Karl Ridgeway <[email protected]> Tue, 31 May 2005 16:07:25 -0400
| Newsgroups | gmane.comp.multimedia.avifile.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_4540_32454873.1117570045303 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hey guys, I've been writing an avi player using OpenGL/GLUT and the avifile-0.7librar= y. I looked for a way to specify a Draw callback, but that doesn't seem to=20 exist nowadays. So I wrote my own video renderer class (implements=20 IVideoRenderer) and added an instance of that to the AviPlayer's list of=20 video renderers. All of this works fine, but not when using the XVID4 codec. The player=20 starts up, but segfaults before displaying any frames. I ran GDB, and found= =20 it segfaulted in the process running the yv12_to_yv12_xmm function: Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1301468240 (LWP 5748)] > 0x00c1d8aa in yv12_to_yv12_xmm () from /usr/lib/libxvidcore.so.4 >=20 It's quite frustrating, because the aviplay example works fine using the=20 same XVID4-encoded videos that make my program segfault :) Of course, the= =20 aviplay example uses IAviPlayer2, which does video rendering for you. Any help would be _greatly_ appreciated Regards Karl --=20 Karl Ridgeway 540-383-0499 [email protected] [email protected] ------=_Part_4540_32454873.1117570045303 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hey guys,<br> <br> I've been writing an avi player using OpenGL/GLUT and the avifile-0.7 libra= ry.<br> I looked for a way to specify a Draw callback, but that doesn't seem to exist nowadays. So I wrote my own video renderer class (implements IVideoRenderer) and added an instance of that to the AviPlayer's list of video renderers.<br> <br> All of this works fine, but not when using the XVID4 codec. The player starts up, but segfaults before displaying any frames. I ran GDB, and found it segfaulted in the process running the yv12_to_yv12_xmm function:<br> <br> <blockquote style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt= 0pt 0pt 0.8ex; padding-left: 1ex;" class=3D"gmail_quote">Program received = signal SIGSEGV, Segmentation fault.<br> [Switching to Thread -1301468240 (LWP 5748)]<br> 0x00c1d8aa in yv12_to_yv12_xmm () from /usr/lib/libxvidcore.so.4<br> </blockquote> <br> It's quite frustrating, because the aviplay example works fine using the same XVID4-encoded videos that make my program segfault :) Of course, the aviplay example uses IAviPlayer2, which does video rendering for you.<br> <br> Any help would be _greatly_ appreciated<br> <br> Regards<br> Karl<br><br>-- <br>Karl Ridgeway<br>540-383-0499<br><a href=3D"mailto:ridge= [email protected]">[email protected]</a><br><a href=3D"mailto:karl.ridgeway@gmail.= com">[email protected]</a> ------=_Part_4540_32454873.1117570045303--