MPlayer and Discreet

Video, software tools and techniques on SGI systems.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
BKM
Posts: 4
Joined: Fri Oct 21, 2005 7:41 am

MPlayer and Discreet

Unread postby BKM » Fri Oct 21, 2005 7:49 am

Hello, I am a fairly new Smoke user on Oct2 (2 years) and am almost a complete noob at IRIX and SGI.

I was courious about this MPLayer that has been developed.

It appears that I can use it to convert video to file seq. New(er)video codec seem to be available for import that aren't currently availabel through SGI/Discreet. Mainly the newer QT and mpeg2 codecs.

Does anyone use this software for such purposes? I assume it is all commandline driven on IRIX and no GUI.

I would look at the documentation but it is unavailable on the Mplayer site.

I am courious that if this program installs codecs to SGI then I wonder if Discreet could write it in to read those codecs as well if they are available.

Any info would be helpful. Thanks.

BKM

Barkas
Posts: 121
Joined: Thu Sep 08, 2005 3:16 pm

Unread postby Barkas » Fri Oct 21, 2005 8:02 am

As far as I know the mplayer codecs are compiled in and it uses ffmpeg as decoder, so all mpeg formats should be supported including AVC (I hope).

You can get all the commandline options by mplayer --help, the file sequence output is an output plugin (-vo tga?).

User avatar
lewis
Posts: 547
Joined: Thu Nov 27, 2003 1:30 pm
Location: london
Contact:

Unread postby lewis » Fri Oct 21, 2005 8:36 am

Yep, mplayer is real handy for this but it's completely seperate to Irix's quicktime support.

I wrote a little script because I do this so often:

Code: Select all

#!/usr/bin/tcsh

mkdir "$1 targas"
cd "$1 targas"
mplayer -vo tga -vf format=bgr24 "../`basename $1`"
cd ..


Not the cleanest script in the world but it works. You can either use it from a shell (targify blah.mov) or you can drag'n'drop video files onto it if you have the Irix desktop turned on which probably you don't if you're running Smoke. For a file "input.mov" it would make a folder "input.mov targas" filled with 00001.tga, 00002.tga, etc, which you can import as an image sequence.

There's better ways to do this... it would go faster if mplayer could output to .sgi files since Flame/Smoke can read them much faster than .tga's. It might also be possible to use the libio tools to move the frames onto the Stone as they're decoded... I shall investigate...

BKM
Posts: 4
Joined: Fri Oct 21, 2005 7:41 am

Unread postby BKM » Fri Oct 21, 2005 9:31 am

Interesting... I'll have to experiment with this. I still wonder how the codecs live on the system and if Discreet could access if they wrote for it...

thanks for the help... any other tidbits will still be usefull.

BKM

GIJoe
Posts: 794
Joined: Sat Mar 29, 2003 12:44 pm
Location: Germany -> UK -> Germany...

Unread postby GIJoe » Fri Oct 21, 2005 9:51 am

yep, sgi-fileout would be handy. shake as well dislikes tga's and wants to be fed with sgi/rgb or iff instead. i guess is this a general issue and not solely related to ffi.

btw. mplayer rocks, now if only it could output to video directly. die crappy "only jpeg-movies are supported"-dmplay. die die die! :)

jdboyd
Posts: 561
Joined: Thu Aug 21, 2003 11:47 am
Location: Southern PA

Re: MPlayer and Discreet

Unread postby jdboyd » Fri Oct 21, 2005 10:42 am

BKM wrote:Hello, I am a fairly new Smoke user on Oct2 (2 years) and am almost a complete noob at IRIX and SGI.

I was courious about this MPLayer that has been developed.

It appears that I can use it to convert video to file seq. New(er)video codec seem to be available for import that aren't currently availabel through SGI/Discreet. Mainly the newer QT and mpeg2 codecs.

Does anyone use this software for such purposes? I assume it is all commandline driven on IRIX and no GUI.

I would look at the documentation but it is unavailable on the Mplayer site.

I am courious that if this program installs codecs to SGI then I wonder if Discreet could write it in to read those codecs as well if they are available.

Any info would be helpful. Thanks.

BKM


Lewis provides a starting script.

http://www.fxguide.com/fxtips-257.html has an article on doing this, but they too use tgas for output. Of course, if you want to take the time, you could always have a seperate script that converts TGA files to some other format.

It looks like writing a basic mplayer vo plugin should be easy, but it also looks like it gets complicated fast with alpha features, OSD features, and drawing slices rather than full frames. I think you could at least ignore the Alpha and OSD for fileout plugins, but you might want to keep them for videoout.

User avatar
lewis
Posts: 547
Joined: Thu Nov 27, 2003 1:30 pm
Location: london
Contact:

Unread postby lewis » Tue Oct 25, 2005 3:10 pm

I've just discovered that mplayer makes a total pig's ear of decoding PAL DV. It seems to be interlacing the chroma when it shouldn't be. You get two-pixel high field-like artifacts even after deinterlacing, or even when viewing one field. Anyone else seeing this? No clue how to fix... bit of a bummer... it might well do it for other 4:2:0 formats too, don't have anything to hand to check with. The output is very different to what I see on Windows or with Quicktime. Darn!

jdboyd
Posts: 561
Joined: Thu Aug 21, 2003 11:47 am
Location: Southern PA

Unread postby jdboyd » Wed Oct 26, 2005 7:17 am

lewis wrote:I've just discovered that mplayer makes a total pig's ear of decoding PAL DV. It seems to be interlacing the chroma when it shouldn't be. You get two-pixel high field-like artifacts even after deinterlacing, or even when viewing one field. Anyone else seeing this? No clue how to fix... bit of a bummer... it might well do it for other 4:2:0 formats too, don't have anything to hand to check with. The output is very different to what I see on Windows or with Quicktime. Darn!


Bummer. Err, doesn't Irix handle DV in dmconvert?

User avatar
lewis
Posts: 547
Joined: Thu Nov 27, 2003 1:30 pm
Location: london
Contact:

Unread postby lewis » Wed Oct 26, 2005 5:00 pm

Yeah, but only as raw DV, aka .dif, aka dvstream files. Not AVIs or Quicktimes AFAIK.

mrj
Posts: 19
Joined: Wed Aug 24, 2005 3:52 am

Unread postby mrj » Fri Dec 02, 2005 9:34 am

We wrote something similar inhouse to dump QT's and so on directly to the discreet stone FS. Not difficult to implement, but handy, very handy...

Anyone know which version of the libav codec the IRIX mplayer has? Can we update this to support H264? I should probably start a new thread for this... Just curious if we can grab the latest libavcodec from CVS and use that...

J

User avatar
lewis
Posts: 547
Joined: Thu Nov 27, 2003 1:30 pm
Location: london
Contact:

Unread postby lewis » Fri Dec 02, 2005 10:54 am

Did your inhouse thing work with DV? What codec/library did you use, ffmpeg?


Return to “SGI: Video”

Who is online

Users browsing this forum: No registered users and 0 guests