Eureka... How to play a movie inside a stack on Lubuntu

Deploying to Linux? Get penguinated here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2570
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Eureka... How to play a movie inside a stack on Lubuntu

Post by mwieder » Tue Sep 20, 2016 4:33 am

OMG. I guess I never tried this on 7.x because of course it doesn't work.
So what changed from 7.x to 8.x that caused it to crash?
In LC8 it crashes LC immediately upon selecting a filename.

MaxV
Posts: 1342
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Eureka... How to play a movie inside a stack on Lubuntu

Post by MaxV » Tue Sep 20, 2016 9:38 am

It works on linux with livecode 7.x, it works on Linux with livecode 8.x.
Install one of these packages: http://www.maxvessi.net/livecode/linux/
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2570
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Eureka... How to play a movie inside a stack on Lubuntu

Post by mwieder » Tue Sep 20, 2016 3:19 pm

Here it works on Mint 17 with LiveCode 7, but crashes immediately on selecting a filename with LiveCode 8.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5393
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Eureka... How to play a movie inside a stack on Lubuntu

Post by FourthWorld » Tue Sep 20, 2016 5:31 pm

mwieder wrote:OMG. I guess I never tried this on 7.x because of course it doesn't work.
So what changed from 7.x to 8.x that caused it to crash?
In LC8 it crashes LC immediately upon selecting a filename.
I think the changes are far older than v7. I reported this hang against v6.7.1:
http://quality.livecode.com/show_bug.cgi?id=14427

IIRC I haven't been able to play video reliably on Linux for some error or another (sometimes crashes, sometimes rendering artifacts) since MetaCard 2.4.1.

I've discussed this with Peter, and being a Linux fan he's quite keen to address it as the last stage of the slated multimedia revisions now that OS X and Windows are done.

The trick at the moment seems to be getting Apple to adopt anything close to what the rest of the industry does with backward compatibility, as their frequent changes in iOS eat up a lot of development time. Now that v8.1.1 seems to address Apple's latest round of changes, hopefully we'll see more core dev time available soon for everything else, this included.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2570
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Eureka... How to play a movie inside a stack on Lubuntu

Post by mwieder » Tue Sep 20, 2016 6:03 pm

Richard-

No, I was commenting on the fact that it *does* work with LC7!

I was able to play .avi, .mp4, .divx, .flv videos on Mint 17.

Digging into the code, I think the problem is that LC8 moved to a gdk implementation, and that probably broke the player in some meaningful ways.
May be worth bringing to Fraser's attention, since it looks like he did the code migration.

capellan
Posts: 381
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: Eureka... How to play a movie inside a stack on Lubuntu

Post by capellan » Fri Sep 23, 2016 3:36 am

Mark,

Could you ask Fraser to make the player to pause automatically
when the user open Player Properties?

Using LC 7.1.4, I could change on the fly (while still playing)
the playrate and the volume, but could not set a start time,
end time or play media in a loop.

By the way, mplayer allows to set the playrate to
fractional numbers like 1.75 or 0.5 so maybe
the Player could have this feature too:
mplayer -af scaletempo -speed 0.5 mymovie.mp4

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1895
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Eureka... How to play a movie inside a stack on Lubuntu

Post by richmond62 » Sat Oct 01, 2016 6:13 pm

I thought the whole point about shedding the dependency on Quicktime was NOT to
introduce platform-dependent dependencies on other external media players, but
to introduce an internal media player.

The problem has always been that one can have no way of knowing what if any
media players an end-user has installed in her/his machine.

The fact that one can play media fairly reliably on Linux has to be a big plus,
but is it what was talked about a few years ago?

capellan
Posts: 381
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: Eureka... How to play a movie inside a stack on Lubuntu

Post by capellan » Sun Oct 02, 2016 9:16 pm

LiveCode should allows developers to use the best features of each platform, including the media player capabilities.

If Windows Media Player and Apple AV Media Player could not:
1) play media at 0.5 (50% slower) or 1.75 (175% faster)
2) play media in a loop
3) start, play, pause or stop from any frame (or time) in the media file
then
Livecode should not refrain from supporting
these feature in Linux, using mplayer.
end if :D

Post Reply

Return to “Linux”