Share

Yet Another Metadata Injector for FLV

Tracker: Patches

5 A simple patch for building yamdi on Win32 with MinGW - ID: 1718806
Last Update: Settings changed ( ingo_opp )

Hello!

First of all, thanks the author for this great software. yamdi solve the
problem that I know nothing about Ruby, with which the flvtool2 is written.
:P

To be short, yamdi was originally written with Un*x as targetting platform,
and my patch let yamdi be able to be built on Win32 environment with
MinGW.

To port yamdi to MinGW, the primary difficulty involves the lacking of the
mmap() implementation in MinGW. In order to "simulate" mmap(), the Win32
API, CreateFileMapping() and MapViewOfFile() were used. Besides, MinGW
does not define the bzero() either, so I used memset() to do the same
thing. Finally, Windows does not have the /dev/null device, so I use the
pseudo-file "nul" instead.

To apply the patch, just put the patch into the same directory of the
extracted yamdi source, and then execute the "patch -p1 yamdi-MinGW.patch"
command. The compiling command is the same: "gcc -o yamdi -O2 -Wall
yamdi.c". If everything goes right, you will have a working yamdi.exe in
the same directory.

I've tested my MinGW build with the FLV file converted with mencoder from
the official Mplayer Win32 binary. It works normally with the FlowPlayer.

I'm not familiar with the Win32 API, so this patch may be quite stupid for
those Win32 programming experts. However, it took me several hours to
digging the source and the internet, so don't be too serious for my stupid
code. :P

Have fun!


Shang-Feng Yang ( sfyang ) - 2007-05-14 17:26

5

Closed

Accepted

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
yamdi-MinGW.patch A simple patch for building yamdi on Win32 with MinGW Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2008-05-24 16:59 ingo_opp
resolution_id None 2008-05-24 16:59 ingo_opp
close_date - 2008-05-24 16:59 ingo_opp
File Added 229134: yamdi-MinGW.patch 2007-05-14 17:26 sfyang