[FFmpeg-devel] [PATCH] TXD demuxer and decoder
Ivo
ivop
Tue May 8 12:41:25 CEST 2007
On Tuesday 08 May 2007 01:12, Compn wrote:
> On Fri, 04 May 2007 17:32:10 +0200, Ivo scribed:
> >Hi,
> >
> >The following patch implements a demuxer and decoder for .txd files,
> >used by various games that use the Renderware engine, like Grand Theft
> >Auto. See http://wiki.multimedia.cx/index.php?title=TXD for details.
>
> can you upload some txd samples to incoming?
> i'd like to add the txd codec support into mplayer :)
ftp://samples.mplayerhq.hu/MPlayer/incoming/txd
All different formats I encountered are covered by these files (see
readme.txt). Keep in mind that ffmpeg and ffplay do not handle dimension
changes correctly. MPlayer does though (with my .mpg test files) so I guess
if you add TXD support to MPlayer, all output files will have the right
dimensions and content. A fix for ffmpeg is on my TODO list.
> also, do ptx files decode yet? i didnt see a ptx demuxer and they arent
> working in ffmpeg ...
>
> http://samples.mplayerhq.hu/game-formats/vdisc/
>
> [cami:/Volumes/D$/mplayer-testclips] compn% ffmpeg -i _113kw_pic.ptx
> blah.jpg FFmpeg version SVN-r8931, Copyright (c) 2000-2007 Fabrice
> Bellard, et al. configuration: --extra-cflags=-I/usr/local/include/SDL
> --extra-ldflags=-L/usr/local/lib libavutil version: 49.4.0
> libavcodec version: 51.40.4
> libavformat version: 51.12.1
> built on May 7 2007 17:04:40, gcc: 4.0.0 20041026 (Apple Computer,
> Inc. build 4061) [mp3 @ 0x2f05dc]Could not find codec parameters
> (Audio: mp1, 256 kb/s) _113kw_pic.ptx: could not find codec parameters
ffmpeg -f image2 -vcodec ptx foo.ptx -f image2 -vcodec png bar.png
works. I will add ptx to img2.c so it gets detected automatically.
--Ivo
More information about the ffmpeg-devel
mailing list