So previously when one wanted to import a video that was shot on a current cell phone into a discreet logic program (effect, spark, flint, flame, inferno, smoke, fire), one had to use a x86 computer with a recent version of ffmpeg to make a series of still images from the video, and then transfer those to the sgi and finally load them into a discreet product.
With Onre's recent ffmpeg port its now possible to do the entire process on the sgi!
here is the info regarding grabbing the new port:
to get info regarding the video:
to resize the video (please not the
to create the rgb images (with .sgi extention!) that are easily read by the discreet logic software:
here is what the output looks like
With Onre's recent ffmpeg port its now possible to do the entire process on the sgi!
here is the info regarding grabbing the new port:
https://esp.iki.fi/ffmpeg-irix.tgz
once you get the ffmpeg 4.1.4 installed and get a video you want to play with transferred over, here are some useful commands:it may require you to set LD_LIBRARYN32_PATH as I once again didn't put in rpaths
unpack at root
it'll create /opt/local/ffmpeg
to get info regarding the video:
ffmpeg -i blue_belt.mp4
to resize the video (please not the
-qscale 0
perserves the quality of the source video and does not try to compress the output video - this is a key flag):ffmpeg -i blue_belt.mp4 -s 720x480 -aspect 16:9 -qscale 0 blue_belt_ntsc.mp4
to create the rgb images (with .sgi extention!) that are easily read by the discreet logic software:
mkdir rgb
ffmpeg -i blue_belt_ntsc.mp4 -an -r 30 -pix_fmt rgb24 -vcodec sgi rgb/%06d.sgi
here is what the output looks like
-bash-5.0$ ls -lh blue_belt.mp4
-rw-r--r-- 1 user user 183M Jul 11 20:16 blue_belt.mp4
-bash-5.0$ ffmpeg -i blue_belt.mp4
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.0 (GCC)
configuration: --prefix=/opt/local/ffmpeg --extra-cflags='-D_XOPEN_SOURCE=2019' --disable-static --enable-shared --disable-mipsdsp --disable-mipsdspr2 --cpu=mips3
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'blue_belt.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2014-11-04T22:04:33.000000Z
Duration: 00:01:29.96, start: 0.000000, bitrate: 17083 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 16995 kb/s, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2014-11-04T22:04:33.000000Z
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2014-11-04T22:04:33.000000Z
handler_name : SoundHandle
At least one output file must be specified
-bash-5.0$ ffmpeg -i blue_belt.mp4 -s 720x480 -aspect 16:9 -qscale 0 blue_belt_ntsc.mp4
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.0 (GCC)
configuration: --prefix=/opt/local/ffmpeg --extra-cflags='-D_XOPEN_SOURCE=2019' --disable-static --enable-shared --disable-mipsdsp --disable-mipsdspr2 --cpu=mips3
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'blue_belt.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2014-11-04T22:04:33.000000Z
Duration: 00:01:29.96, start: 0.000000, bitrate: 17083 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 16995 kb/s, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2014-11-04T22:04:33.000000Z
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2014-11-04T22:04:33.000000Z
handler_name : SoundHandle
Please use -q:a or -q:v, -qscale is ambiguous
File 'blue_belt_ntsc.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, mp4, to 'blue_belt_ntsc.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
encoder : Lavf58.20.100
Stream #0:0(eng): Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
creation_time : 2014-11-04T22:04:33.000000Z
handler_name : VideoHandle
encoder : Lavc58.35.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2014-11-04T22:04:33.000000Z
handler_name : SoundHandle
encoder : Lavc58.35.100 aac
frame= 2692 fps=0.9 q=0.0 Lsize= 145422kB time=00:01:30.11 bitrate=13219.8kbits/s speed=0.0296x
video:143936kB audio:1408kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.053562%
[aac @ 1015c100] Qavg: 396.287
-bash-5.0$
Last edited: