Getting Started, Documentation, Tips & Tricks

uncomp full NTSC O2 capture problems

in a perfect world, what I'd like is to capture full res NTSC from my 250MHz R12K O2 in rice, or huffyuv, or one of the other favored lossless video compression formats. what I'm trying to do with the constraints I'm working with, is record in either MV using RLE24, or quicktime animation with full resolution NTSC. what I can't even is just plain record full resolution NTSC with no compression at all.

It looks like the comp option for dmrecord is there because they planned to add that feature later, but where it is now, it only accepts jpeg. so I look at avcapture. when I try anything with avcapture I get packing error, and when I specify -d 3 for vid device 3 (s-video) that fails before the packing has time to fail. I'd love to run avcapture -B which is a disk benchmark because whenever I run diskperf -W I get like 2MB on a 36GB 10K drive.

media recorder's nice, but I can't even get it to capture uncompressed without it dropping so many frames that the result video is choppy as heck.

I'd really like to do this without resorting to mjpeg, but can someone remind me what the max bitrate is for ICE compression?

does anyone have any advice on uncompressed vid cap on an O2?
TeeTylerToe wrote: in a perfect world, what I'd like is to capture full res NTSC from my 250MHz R12K O2 in rice, or huffyuv, or one of the other favored lossless video compression formats. what I'm trying to do with the constraints I'm working with, is record in either MV using RLE24, or quicktime animation with full resolution NTSC. what I can't even is just plain record full resolution NTSC with no compression at all.

It looks like the comp option for dmrecord is there because they planned to add that feature later, but where it is now, it only accepts jpeg. so I look at avcapture. when I try anything with avcapture I get packing error, and when I specify -d 3 for vid device 3 (s-video) that fails before the packing has time to fail. I'd love to run avcapture -B which is a disk benchmark because whenever I run diskperf -W I get like 2MB on a 36GB 10K drive.

media recorder's nice, but I can't even get it to capture uncompressed without it dropping so many frames that the result video is choppy as heck.

I'd really like to do this without resorting to mjpeg, but can someone remind me what the max bitrate is for ICE compression?

does anyone have any advice on uncompressed vid cap on an O2?


You must use the "two fields" option, otherwise you will probably get dropped frames and an error during conversion. And I think Ian Mapleson recommends 3Mb constant bit rate, but you must set that option last before starting the record, due to a bug in mediarecorder. And from experience, there are some sources like VHS that the O2 just doesnt like - I have VHS videos I tried to record where the O2 always drops a frame in exactly the same places no matter how many times I try - probably due to a glitch in the original recording.
this isn't a dropped frame here or there, this one step away from a slideshow.

I'm thinking about doing a dd benchmark piped into time to check bandwidth, lemme start up the O2 and see what error I was getting from avcapture.

"cannot set path packing: VL: bad value passed as parameter"
ok, after further investigation, the O2 works pretty fantastically at capturing uncompressed video. it's more then happy to capture full resolution NTSC to your heart's content.

not only that, it'll encode that captured uncompressed video to mjpeg at just about realtime.

what it absolutely refused unconditionally to do, is play back any kind of uncompressed full frame video at any framerate above 5fps... I should probably try mplayer, and vlc, but right now, I'm going to work on figuring out the best way to capture just the active part of a NTSC input in something like RLE, or huffyuv. hopefully 40 minutes or so on a fast 36GB, and a slow 18GB. I guess my best bet is making a JBOD with all of the 36GB, and only half the 9GB. hopefully that'll be enough.
TeeTylerToe wrote: ok, after further investigation, the O2 works pretty fantastically at capturing uncompressed video. it's more then happy to capture full resolution NTSC to your heart's content.

not only that, it'll encode that captured uncompressed video to mjpeg at just about realtime.

what it absolutely refused unconditionally to do, is play back any kind of uncompressed full frame video at any framerate above 5fps... I should probably try mplayer, and vlc, but right now, I'm going to work on figuring out the best way to capture just the active part of a NTSC input in something like RLE, or huffyuv. hopefully 40 minutes or so on a fast 36GB, and a slow 18GB. I guess my best bet is making a JBOD with all of the 36GB, and only half the 9GB. hopefully that'll be enough.


I'm not terribly familar with NTSC but uncompressed PAL is usually 20-25Mb a second. The O2's internal SCSI is something like 20Mb/s, and is shared for all internal disks. The O2 was designed for real time recording and playback of compressed video - using specific formats that can be streamed through the ICE for hardware assistance.

In fact, I just had a look in SGI's sales manual, and it specifically says that the O2 can do real time playback of qt/mv/avi at 30fps only if the video is JPEG encoded. For recording, it says uncompressed capture requires a suitable external disk array (but these comments were based on the lowest possible R5k/R10k CPU configurations, and probably older disk technology).
it's about 17.5 megabytes a second. the Ultra wide SCSI-2 that the O2 uses is 16 bit, 20MHz iirc, I'm sure it's 40MB/s.

With no audio, or audio at 22KHz 8 bit mono no frames dropped, 32KHz 8bit stereo I think frames started dropping >.<. looks like 250MHz is a stretch. I can record the audio seperately I guess.
TeeTylerToe wrote: it's about 17.5 megabytes a second. the Ultra wide SCSI-2 that the O2 uses is 16 bit, 20MHz iirc, I'm sure it's 40MB/s.

With no audio, or audio at 22KHz 8 bit mono no frames dropped, 32KHz 8bit stereo I think frames started dropping >.<. looks like 250MHz is a stretch. I can record the audio seperately I guess.


Yes the O2 SCSI is 40MB/sec.

Here is some benchmarks made with my O2 and differnt disks.
30MB/s possible with modern disk on sequential writes.

Code: Select all

o25k 6# diskperf -W -D -t10 -n "ATA-SCSI" -c50m /disk2/testfile
#---------------------------------------------------------
# Disk Performance Test Results Generated By Diskperf V1.2
#
# Test name     : 36GB 15kRPM SCSI CPU=R5k@200MHz
# Test date     : Wed Jan 24 20:50:02 2007
# Test machine  : IRIX o25k 6.5 10070056 IP32
# Test type     : XFS data subvolume
# Test path     : /disk2/testfile
# Request sizes : min=4096 max=4194304
# Parameters    : direct=1 time=10 scale=1.000 delay=0.000
# XFS file size : 54525952 bytes
#---------------------------------------------------------
# req_size  fwd_wt  fwd_rd  bwd_wt  bwd_rd  rnd_wt  rnd_rd
#  (bytes)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)
#---------------------------------------------------------
4096    5.46    5.36    3.53    0.92    2.91    1.06
8192    6.20    6.47    5.74    1.78    5.43    1.91
16384    8.40    9.19    8.72    3.49    8.52    3.43
32768   11.88   12.46   12.34    6.86   12.10    5.96
65536   15.96   15.20   16.03    8.23   15.80    9.16
131072   20.48   17.37   20.32   12.90   20.01   12.68
262144   23.26   19.58   23.04   16.43   23.40   16.55
524288   26.16   26.05   25.91   23.81   26.22   23.34
1048576   29.62   29.36   30.34   27.22   29.80   26.97
2097152   31.51   30.62   31.45   29.87   31.10   29.55
4194304   31.99   31.77   31.89   31.42   31.87   30.91

o25k 1# diskperf -W -D -t10 -n "SCSI 15kRPM Seagate Cheetah model ST336754LC CPU 300MHz" -c50m /downloads/testfile
#---------------------------------------------------------
# Disk Performance Test Results Generated By Diskperf V1.2
#
# Test name     : 36GB 15kRPM Seagate Cheetah model ST336754LC CPU=R5k@300MHz
# Test date     : Fri Jan 26 18:29:29 2007
# Test machine  : IRIX o25k 6.5 10070056 IP32
# Test type     : XFS data subvolume
# Test path     : /downloads/testfile
# Request sizes : min=4096 max=4194304
# Parameters    : direct=1 time=10 scale=1.000 delay=0.000
# XFS file size : 54525952 bytes
#---------------------------------------------------------
# req_size  fwd_wt  fwd_rd  bwd_wt  bwd_rd  rnd_wt  rnd_rd
#  (bytes)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)
#---------------------------------------------------------
4096    4.46    5.74    3.40    0.82    2.43    0.85
8192    6.13    6.90    7.15    1.55    4.92    1.84
16384    3.96   10.14    3.89    2.57    8.40    3.34
32768    7.49    7.59   10.24    4.39   14.23    6.25
65536   18.52   20.10   20.21    9.19   19.78   10.45
131072   22.82   22.68   23.33   17.74   23.08   15.50
262144   26.12   25.92   25.97   20.13   25.95   19.69
524288   28.13   26.19   29.42   23.83   28.88   22.63
1048576   31.16   30.12   31.29   27.56   30.99   28.59
2097152   33.14   32.55   33.02   30.99   32.86   31.08
4194304   33.73   33.29   33.48   32.44   33.55   32.67

o25k 7# diskperf -W -D -t10 -n "Orginal 8GB SCSI" -c50m /downloads/testfile
#---------------------------------------------------------
# Disk Performance Test Results Generated By Diskperf V1.2
#
# Test name     : Orginal 8GB SCSI (ST39173LC) CPU=R5k@200MHz
# Test date     : Wed Jan 24 21:00:08 2007
# Test machine  : IRIX o25k 6.5 10070056 IP32
# Test type     : XFS data subvolume
# Test path     : /downloads/testfile
# Request sizes : min=4096 max=4194304
# Parameters    : direct=1 time=10 scale=1.000 delay=0.000
# XFS file size : 54525952 bytes
#---------------------------------------------------------
# req_size  fwd_wt  fwd_rd  bwd_wt  bwd_rd  rnd_wt  rnd_rd
#  (bytes)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)
#---------------------------------------------------------
4096    3.98    4.11    1.74    0.49    0.66    0.45
8192    5.74    5.63    3.26    0.97    1.22    0.85
16384    6.58    6.02    4.79    2.03    2.12    1.56
32768    6.89    6.46    6.27    3.91    3.60    2.61
65536    7.56    7.88    5.13    4.89    4.31    4.28
131072    7.89    7.79    6.96    6.76    6.53    5.90
262144    8.03    8.19    8.97    8.05    8.40    7.57
524288    7.99    8.63   10.92    9.95    9.91    9.54
1048576    8.04    8.58   10.42   12.09   10.43   11.48
2097152    8.72    9.04   11.71   13.16   11.61   13.05
4194304    8.61    8.99   12.65   14.65   12.66   13.80


o25k 1# diskperf -W -D -t10 -n "IBM Ultrastar 10k RPM Model DDYS-TI8350" -c50m /disk2/testfile
#---------------------------------------------------------
# Disk Performance Test Results Generated By Diskperf V1.2
# Command queing and write cache disabled
# Test name     : IBM Ultrastar 10k RPM Model DDYS-TI8350
# Test date     : Mon Mar  5 10:47:27 2007
# Test machine  : IRIX o25k 6.5 10070056 IP32
# Test type     : XFS data subvolume
# Test path     : /disk2/testfile
# Request sizes : min=4096 max=4194304
# Parameters    : direct=1 time=10 scale=1.000 delay=0.000
# XFS file size : 54525952 bytes
#---------------------------------------------------------
# req_size  fwd_wt  fwd_rd  bwd_wt  bwd_rd  rnd_wt  rnd_rd
#  (bytes)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)
#---------------------------------------------------------
4096    0.67    6.30    0.68    0.69    0.77    0.80
8192    1.29    8.52    1.37    1.40    1.45    1.56
16384    2.49   12.45    2.81    2.86    2.73    2.88
32768    4.49   15.88    5.82    6.07    4.77    5.10
65536    7.41   16.34    8.86    8.76    7.47    7.89
131072   11.32   18.54   13.21   12.48   11.06   12.83
262144   16.54   25.70   16.93   15.16   15.41   17.09
524288   20.88   25.95   19.35   22.25   19.03   21.08
1048576   23.34   29.93   23.57   26.07   22.22   27.43
2097152   25.19   31.93   24.01   30.27   24.50   30.40
4194304   25.24   32.82   24.81   31.52   25.66   32.17


o25k 1# diskperf -W -D -t10 -n "IBM Ultrastar 10k RPM Model DDYS-TI8350" -c50m /downloads/testfile
#---------------------------------------------------------
# Disk Performance Test Results Generated By Diskperf V1.2
# Command queing and write cache enabled
# Test name     : IBM Ultrastar 10k RPM Model DDYS-TI8350
# Test date     : Mon Mar  5 18:30:23 2007
# Test machine  : IRIX o25k 6.5 10070056 IP32
# Test type     : XFS data subvolume
# Test path     : /downloads/testfile
# Request sizes : min=4096 max=4194304
# Parameters    : direct=1 time=10 scale=1.000 delay=0.000
# XFS file size : 54525952 bytes
#---------------------------------------------------------
# req_size  fwd_wt  fwd_rd  bwd_wt  bwd_rd  rnd_wt  rnd_rd
#  (bytes)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)  (MB/s)
#---------------------------------------------------------
4096    3.08    7.20    1.03    0.62    1.32    0.82
8192    7.94   11.43    1.69    1.42    2.43    1.55
16384   11.64   15.57    6.78    2.91    4.29    2.94
32768   15.86   19.57   12.26    6.31    7.31    5.09
65536   20.32   22.82   14.85   10.48   10.65    8.55
131072   22.67   24.82   17.63   14.73   15.08   12.85
262144   23.29   25.30   22.82   15.26   18.76   15.97
524288   24.22   25.83   18.81   19.74   18.88   21.43
1048576   25.45   30.60   22.31   25.89   21.90   26.78
2097152   25.58   31.89   22.38   29.63   22.51   29.57
4194304   25.35   32.03   23.66   30.38   23.86   31.33

Mein Führer, I can walk!
ok, I've got 50+ GB of hdd space, hopefully more friday. I'll look into working with avcapture. I was getting minimal framedropping with no audio, and xvm (with abort on framedrop it ran for almost a minute).

what advice doe people have on recording uncompressed? 720x486? the default is 640x480. should I use quicktime, or .mv? interlaced? 422 rather then apple24, or what not?

also, I haven't figured out how to do two things. record directly to the file, and how to pause without invoking the processing, which takes too long for a commercial break, which is why I'm looking at avcapture again.

right now, I'm looking at quicktime container, hoping it'll be more cross platform, 422 because it's 2bpp rather then anything that's 24 bit or more, 640x480 because it's the default full res ntsc for mediaplayer.

has anyone used mplayer or vlc to record from an O2?

Thanks. I'll try and write up something with some tips and with the helpful info people have posted.

I've got a 36GB 10K drive off the external, and a narrow 18GB where the CD drive would normally be. I made a slice at the end of the 36 that's exactly the size of the 18GB, I striped that with the 18GB then concatted that with what was left of the 36 getting about 10000000 blocks or something.

I tried to record about 20 minutes of house last night unattended, got an error.
TeeTylerToe wrote: what advice doe people have on recording uncompressed? 720x486? the default is 640x480. should I use quicktime, or .mv? interlaced? 422 rather then apple24, or what not?

If I recall, you should record NTSC at 640x480 or PAL at 720x512. There may be a spec you see that shows more "lines" for NTSC, etc, but that's to accommodate overscan in the signal, you don't need to digitize it. If someone wants to pipe in otherwise, they may actually have experience - I'm just going from reading. Note that NTSC and PAL have aprox. the same bandwidth, the higher res in PAL is offset by a lower field rate.