SGI: Video

What are the differences between the XT-HD vs. DG5/TVO? - Page 1

Hi all,
I've put together an uncompressed YUV 4:2:2 capture app intended for use on O2 hardware with older/slower drives. I am currently able to obtain a real-time 640x480 YUV 4:2:2 uncompressed stream with a single disk. This tool outputs raw video in a format that can easily be transcoded with a compression farm using mencoder/ffmpeg. My goals include adding OpenDML AVI support for both uncompressed and ICE (MJPEG) compressed video with audio support, and will eventually support Octane Personal Video/Octane Compression when I can find them available on Ebay. I use the latest capture techniques such as Direct I/O, VL buffer advising and high priority process scheduling (thank you Chris Pirazzi!).

The very first version can be downloaded here: http://philj.us/pjcap.tar.gz
It will be made available via GPL as soon as I have some additional support implemented.

Please let me know what you think. Thanks!

BTW: you can easily deinterlace and transcode to MPEG-4 using mencoder with:
mencoder -demuxer rawvideo -rawvideo format=uyvy:w=640:h=480:fps=29.97 -lavcopts vbitrate=2000000:vhq:v4mv -vf pp=md -o test.avi -ovc lavc testfile.yuv
You can play the video with:
mplayer -demuxer rawvideo -rawvideo format=uyvy:w=640:h=480:fps=29.97 testfile.yuv
I will test it as soon as I can get to camera witch means tuesday.
Nice to see that somebody is programing on old O2/ ICE.
:O2: R7000/600 576MB Ram CDRW 18+9Gb HDD
http://www.tomosgi.co.cc
kshcsuf wrote: Hi all,
I've put together an uncompressed YUV 4:2:2 capture app

Thanks very much !
Many thanks! (but I have to find a camera first...)
Hi guys,
Just a brief update. The latest version has camera/CCIR601 capture support (and is available at the above URL). I don't have an O2 camera; would you guys mind giving it a whirl and letting me know if you can capture successfully?

Thanks!
What about 720x480 or 720x486 video?
kshcsuf wrote: Hi guys,
I don't have an O2 camera; would you guys mind giving it a whirl and letting me know if you can capture successfully?


Hello and sorry for the delay.

Many thanks for the app.

I tried it with my O2cam (with the -o switch) and it captures something (I used the yuv file). But Mplayer refuses to play the saved file. Is it a normal behaviour?
:O2: :Indy: :Indy:
Hi on my machine everything works fine.

I'v captured video sequence trough

Code: Select all

smetiacik 3# ./pjcap -o -f /tmp/pokus2.yuv
PJCap
Copyright (c) 2010 by Phil Jensen ([email protected])
All rights reserved.

Capturing 500 frames.
Capturing from camera port.
Enabled a high process priority for video capture.
Capturing NTSC square pixels (640x480).
Capturing uncompressed YUV 4:2:2 (16-bit) video.
Optimizations enabled.
Capturing to /tmp/pokus2.yuv using Direct I/O.
Opening AVI file.
Beginning capture: ............................F.F.F.F..F.F..F..F..F.F..FF.F.F..F..F.F.F..F.F..FF..F.F..F..F.F..F.F..F.F.F.F..F.F..F..F.F..F.FF..F.F..F.F..F.F..F..F.FF..F..F.F..F.F..F..FF.FF.F.F.F.F.F.F.F.F.F.F.F.F.FF.F.F.F.F.F.F.F.F.FF.F.F.F.FF.F.F.F.F.FF.F.F.F.F.F.F.FFF.F.F.F.F.F.F.F.F.F.F.F.F.FFF.F.F.F.F.F.FFF.F.F.F.F.F.FFFFFFFF.F..F.F.F.F.F.F.F.F.FFF.F.F.F.F.F..F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.FFF.F.F.F.F..F.F.F.F.F.F.F.FFF.F.F.FF.F.F.FF.F.F.F.FF.F.FFF.F.F.F.FF.F.F.F.FFFF.F.F.F.FF.F.F.F.F.FF.F.F.F.FF.F.
500 frames captured in 25.43 seconds. (19.67 fps)

And played it trough

Code: Select all

mplayer -demuxer rawvideo -rawvideo format=uyvy:w=640:h=480:fps=29.79 /tmp/pokus2.yuv
:O2: R7000/600 576MB Ram CDRW 18+9Gb HDD
http://www.tomosgi.co.cc
Thanks tomo!
I've been grinding away on getting AVI support added--I've got AVI1 support now with traditional indexes. I'm firming up multiple colorspace support (RGB32 and UYVY), and want to get OpenDML indexes successfully written this week. I've got an Octane Personal Video board on the way this week and would like to get Octane support added as well.

(I'll push the new build up to my webserver this morning.) I had to turn off Direct I/O support to write out AVIs, and am looking at ways to re-enable the functionality.
Nice - keep on coding :)
:O2: R7000/600 576MB Ram CDRW 18+9Gb HDD
http://www.tomosgi.co.cc
Hello,
now I can confirm that it works great on my O2 (it's R10k/250).
Output is the same as Tomo's but without these ...F.F.Fs (only with .....).

Many thanks and best regards.
What do the F's mean? And the dots?
Douglas V. Mashek mailto:[email protected]
Mashek Systems www: http://www.mashek.com
:320: :540: :1600SW: :O2: :O2+: :Indigo: :Octane: :Octane2: :Tezro: :Indigo2: :Indigo2IMP: :Indy: :Fuel: :PI: :O200: :Onyx: :ChallengeXL: :OnyxR: :O2000: :Onyx2: :O2000R: :O2000E: :O2000E: :O2000E: :metarouter: :O2000E: :O2000E: :O2000E: :O2000E: :Onyx2RE: :Onyx2RE: :Onyx2R: :Onyx2RE: :O3000: :O3000: :O3200: :0300: :0300: :0300: :0300: ...
kshcsuf wrote: ... I've got an Octane Personal Video board on the way this week and would like to get Octane support added as well. ...


If it works with Octane, will it also work with IMPACT Compression and IMPACT Video in Indigo2?

What would be especially cool is if it supported Cosmo1 and related video I/O.

Thanks for all the efforts!! Great to see O2 being properly exploited.

Ian.
[email protected]
+44 (0)131 476 0796
Pardon the naiveté but what hardware is required for capturing with this app? I personally have a R10000 250 MHz O2 with an A/V module. Can it be used with stuff like a SDI dongle? At this stage I cannot test it at all as I had to throw out its hard drive (silicon heaven).

Simon
Hi. I recently purchased a used SGI O2 and would love to try pjcap with it to capture high quality video. The link appears broken. Is there an active URL where I could download a copy?

Thanks,
Andrew Hazelden
Andrew Hazelden, VFX Artist
Personal Blog: www.AndrewHazelden.com

:O2: SGI O2, 195 MHz R10K, 320 MB ram, AV1 Video i/o card, 36GB HD
I've attached the version I archived; not sure if it is the most recent.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.
Thanks! I really appreciate getting a copy of pjcap.

Regards,
Andrew Hazelden
Andrew Hazelden, VFX Artist
Personal Blog: www.AndrewHazelden.com

:O2: SGI O2, 195 MHz R10K, 320 MB ram, AV1 Video i/o card, 36GB HD
Is it possible to capture raw video and sound simultaneously?
vetal wrote: Is it possible to capture raw video and sound simultaneously?


Looking over the command line options for pjcap it looks like the current version only records video. You will have to record and sync up the audio separately from the video.

Code: Select all

Copyright (c) 2010 by Phil Jensen ([email protected])
All rights reserved.

Usage: pjcap [args]

-f      filename
-s      capture via S-video
-c      capture via composite
-n x    frames to capture
-y      YUV 4:2:2 video (16-bit, default, VL_PACKING_YVYU_422_8)
-r      RGB video (32-bit, very I/O intensive, VL_PACKING_ABGR_8)
-S      square pixels (640x480, default, VL_TIMING_525_SQ_PIX)
-N      non-square pixels (720x486, VL_TIMING_525_CCIR601)
-d      debugging mode
-O      disable optimizations

Example:

./pjcap -f ./testfile.yuv -s -y -n 500
This will capture to /testfile.yuv using the S-video port
in a YUV 4:2:2 colorspace for 500 frames.

$

Andrew Hazelden, VFX Artist
Personal Blog: www.AndrewHazelden.com

:O2: SGI O2, 195 MHz R10K, 320 MB ram, AV1 Video i/o card, 36GB HD
Hey Guys,

So I was trying to make a 30 second short animation, and it turned out to be a huge project. I had 30 stills in JPEG and SGI IMAGE format that I created in photoshop with a Wacom. I wanted to arrange them, set how long they are displayed, add some audio, and export. Perfect tool you would say is IRIX's built in MovieMaker. It worked great until it got up to about 25 images with audio and would crash, every time. Ok, fine, so I tried Adobe Premiere, FAIL, it crashed loading a single image, and then I figured I would try ShotMaker (supposedly a re-written MovieMaker), it would seem they removed still image support for some reason. So needless to say, that wasn't an option. What I ended up doing was arranging the images in MovieMaker, then exporting them as QuickTime, importing them into Premiere adding music, titles, and exporting them. But what a pain!!! I'm wondering I guess if there is a better way to arrange images for us as video. I am planning to do a much higher quality and larger project, this one was just messing around on a Thursday night as a proof of concept. I am using an :O2: at the moment, I was going to try the :Octane2: , but the drive took a crap the other night and I have to get IRIX on the new one still (don't have enough beer in the house to start the IRIX install..the first package dependency!). :lol:

Here is the end result just for lol's http://www.youtube.com/watch?v=tjHXS89ri3Y

Thank you!

_________________
Nate

:Octane2: Octane2, Dual 300, V8, 2GB RAM, 2 x 73GB HD
:O2: :1600SW: o2, 200MHz, 448MB RAM A/V, 1600sw, 300 GB HD