Page 1 of 2

ANNOUNCE: pjcap for O2

Posted: Sat Jan 16, 2010 10:35 pm
by kshcsuf
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

Re: ANNOUNCE: pjcap for O2

Posted: Sun Jan 17, 2010 12:46 am
by tomo
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.

Re: ANNOUNCE: pjcap for O2

Posted: Sun Jan 17, 2010 5:58 am
by hamei
kshcsuf wrote:Hi all,
I've put together an uncompressed YUV 4:2:2 capture app

Thanks very much !

Re: ANNOUNCE: pjcap for O2

Posted: Sun Jan 17, 2010 12:53 pm
by jirka
Many thanks! (but I have to find a camera first...)

Re: ANNOUNCE: pjcap for O2

Posted: Sat Jan 23, 2010 1:48 pm
by kshcsuf
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!

Re: ANNOUNCE: pjcap for O2

Posted: Mon Jan 25, 2010 1:35 pm
by jdboyd
What about 720x480 or 720x486 video?

Re: ANNOUNCE: pjcap for O2

Posted: Tue Jan 26, 2010 12:35 am
by jirka
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?

Re: ANNOUNCE: pjcap for O2

Posted: Tue Jan 26, 2010 3:30 am
by tomo
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 (kshcsuf@gmail.com)
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

Re: ANNOUNCE: pjcap for O2

Posted: Tue Jan 26, 2010 9:54 am
by kshcsuf
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.

Re: ANNOUNCE: pjcap for O2

Posted: Tue Jan 26, 2010 10:54 am
by tomo
Nice - keep on coding :)

Re: ANNOUNCE: pjcap for O2

Posted: Tue Jan 26, 2010 10:59 am
by jirka
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.

Re: ANNOUNCE: pjcap for O2

Posted: Tue Feb 09, 2010 9:58 am
by mashek
What do the F's mean? And the dots?

Re: ANNOUNCE: pjcap for O2

Posted: Mon Feb 15, 2010 3:44 am
by mapesdhs
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.

Re: ANNOUNCE: pjcap for O2

Posted: Sun Mar 14, 2010 11:03 pm
by Sacrifist
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

Re: ANNOUNCE: pjcap for O2

Posted: Thu Jul 22, 2010 7:51 pm
by hazelden
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