wheybags / freeablo

[ARCHIVED] Modern reimplementation of the Diablo 1 game engine
GNU General Public License v3.0
2.16k stars 194 forks source link

Video playback #27

Open wheybags opened 10 years ago

wheybags commented 10 years ago

ffmpeg is probably what we want here, but I'm no expert

konopka90 commented 8 years ago

http://dranger.com/ffmpeg/

Tutorial for SDL 1.2

wheybags commented 8 years ago

I think we might actually consider using https://wiki.videolan.org/LibVLC/ instead. As far as I understand, it's a lot higher level, and easier to use. Plus, ffmpeg is an absolute pain to use, with it's two almost-compatible-but-not-quite forks

konopka90 commented 8 years ago

I'm not sure but LibVLC can't open SMK videos. Latest VLC can only play sound but no video :(

konopka90 commented 8 years ago

Can be useful https://github.com/pockethook/player

wheybags commented 8 years ago

Hmm, yeah, vlc is just giving me audio too :s That player crashes for me when I try to open an smk file though :s

[Arts-MacBook-Pro] ~/player [master] >
$ ./player ~/freeablo/build/logo.smk
[swscaler @ 0x7fb07a829600] bad dst image pointers
[swscaler @ 0x7fb07a829600] bad dst image pointers
[swscaler @ 0x7fb07a829600] bad dst image pointers
[swscaler @ 0x7fb07a829600] bad dst image pointers
[swscaler @ 0x7fb07a829600] bad dst image pointers
[swscaler @ 0x7fb07a829600] bad dst image pointers
Dis[swscaler @ 0x7fb07a829600] play error: SDL textbad dst image pointers
ure update

ffmpeg can definitely be made to work anyway, someone did a half baked implementation that got abandoned a while ago (actually, was that you? :p)

konopka90 commented 8 years ago

yup that was me ;p there was audio and video but without synchronization what is core of the problem. I'll try to debug this player, maybe it will work with some changes.

wheybags commented 8 years ago

It worked fine on an mp4 file btw

On Mon, Dec 28, 2015 at 3:09 PM, Patrick notifications@github.com wrote:

yup that was me ;p there was audio and video but without synchronization what is core of the problem. I'll try to debug this player, maybe it will work with some changes.

— Reply to this email directly or view it on GitHub https://github.com/wheybags/freeablo/issues/27#issuecomment-167585700.

konopka90 commented 8 years ago

Sounds good

konopka90 commented 8 years ago

Fail - it is possible to play SMK with small changes but this player doesn't support sound :-1:

tilkinsc commented 6 years ago

https://trac.videolan.org/vlc/ticket/17320 Check out this! It seem like master of VLC fully supports SMK files!

mewmew commented 6 years ago

Check out this! It seem like master of VLC fully supports SMK files!

Wow, that's great! Never thought such an ancient format would be supported upstream :p

wheybags commented 6 years ago

Nice! Iirc libvlc is much easier to use than ffmpeg too

On Dec 22, 2017 10:18 AM, "Robin Eklind" notifications@github.com wrote:

Check out this! It seem like master of VLC fully supports SMK files!

Wow, that's great! Never thought such an ancient format would be supported upstream :p

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wheybags/freeablo/issues/27#issuecomment-353568122, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCumteZ3vS_dMQDfqnRFeSK0sVH93Hsks5tC4HqgaJpZM4BkL__ .

ChefKeeper commented 6 years ago

Tryed yesterday with latest vlc version : 2-2-8, the smk file reads and play with audio and video but there's still a problem with the colors and terminal gets spammed with errors about alpha.

tilkinsc commented 6 years ago

What is the problem with the alpha channel? We can do a patch if we need it. Would be muuuch easier.