[hatari-devel] Troubles compiling latest Hatari with new avi support

npomarede at corp.free.fr npomarede at corp.free.fr
Sun Oct 11 12:19:37 CEST 2009


On Sun, 11 Oct 2009, Eero Tamminen wrote:

> Hi,
>
> On Sunday 11 October 2009, Jerome Vernet wrote:
>> Jerome Vernet a écrit :
>>> npomarede at corp.free.fr a écrit :
>>>> This is strange, as many other parts of Hatari are using #if instead
>>>> of #ifdef and this doesn't seem to be a problem on osx.
>>>
>>> Don't know why, but i came back to #if and it's working now.... I may
>>> have made something wrong.
>>>
>>> Anyway, AVI recording doesn't seem to work on MacOsX, at least on my
>>> build. It seems that Hatari hang here:
>>>     png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL,
>>> NULL, NULL);
>>
>> With the latest update on the mercurial, AVI screen capture work a
>> little bit better but still hang when screen goes black right after
>> booting.
>>
>> I need to know what I have to call to add AVI recording in the MacOsX
>> GUI (for th emoment, still using BMP recording).
>
> It hangs only if called from that?  Not if you use the internal Hatari GUI?
>
> The internal GUI does only this:
> --------------
>                        if (Avi_AreWeRecording())
>                        {
>                                screendlg[DLGSCRN_RECANIM].txt = "Record
> AVI";
>                                AviStopRecording();
>                        }
>                        else
>                        {
>                                screendlg[DLGSCRN_RECANIM].txt = "Stop
> recording
> ";
>                                ConfigureParams.Screen.bCaptureChange =
> (screend
> lg[DLGSCRN_ONCHANGE].state & SG_SELECTED);
>                                AviStartRecording ( AviRecordFile ,
> AviRecordDefaultCrop , nScreenRefreshRate , AviRecordDefaultVcodec );
>                        }
>                        break;
> ------------
>

Yes, to start a recording, just call :

AviStartRecording ( AviRecordFile , AviRecordDefaultCrop , 
nScreenRefreshRate , AviRecordDefaultVcodec );

eg AviStartRecording ( "/tmp/hatari.avi" , true , 50 , AVI_RECORD_VIDEO_CODEC_PNG);

And to end the recording : AviStopRecording();

How else could it be easier :)

Nicolas


More information about the hatari-devel mailing list