soywiz-archive / haxe-openfl-ffmpeg

28 stars 8 forks source link

Simple usage and setup tips #1

Open Tiago-Ling opened 9 years ago

Tiago-Ling commented 9 years ago

Hi,

While looking for ways to play video in desktop and mobile targets i came across this library, which seems to be the only one available for this task in Haxe.

I was wondering if you could post a readme.md containing a description of the typical usage and maybe some tips on what to avoid and/or how to setup the lib.

I'm currently trying the following without success (using OpenFL with windows target):

        var mpeg:FFMPEG = new FFMPEG();
        mpeg.openAndPlay('assets/video_test.mpeg', onVideoComplete, onVideoFrame);

Trying to run openAndPlay crashes the application, giving this output (i'm using an empty openfl application with just the code above):

[mpegvideo @ 038A3420] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegvideo, from 'assets/video_test.mpeg':
  Duration: 00:00:00.05, bitrate: 104856 kb/s
    Stream #0:0: Video: mpeg1video, yuv420p(tv), 320x200 [SAR 1:1 DAR 8:5], 1048
57 kb/s, 23.98 fps, 23.98 tbr, 1200k tbn, 23.98 tbc

Thanks a lot!

ianharrigan commented 9 years ago

I would also be interested in the status of this lib. It seems pretty interesting.

Cheers, Ian

Tiago-Ling commented 8 years ago

@soywiz Could you please help me with this? I'm in dire need of video playback - any information to make it run will be extremely valuable. Thanks!

soywiz commented 8 years ago

Hello. I don't update this library for a while. Indeed I don't have the build environment required for building this again. I don't remember the status of this project, but probably was on early steps.

If you can use any video format I think I put some more work on this one: https://github.com/soywiz/haxe-openfl-webm

But again, I don't have the build environment for that, and I don't have too much time for setting it up again and testing. But you can try if it still works.

Since I'm not going to update it anymore, maybe openfl could absorb this and/or the other project so the community or the openfl team could update it. @jgranick What do you think about this? Also, it is possible to transfer a project ownership with haxelib?

Tiago-Ling commented 8 years ago

@soywiz Thanks for the reply!

I'm also trying your webm extension - this one seems to almost work, i get to see the first video frame but it crashes. I created an issue with details there: https://github.com/soywiz/haxe-openfl-webm/issues/7

Celsyum commented 5 years ago

I wish this project be still alive in 2019. Is it possible to have this renewed for latest lime and openfl version ?