DMX-control + Audioplay + AV-capture in pd

  • von

DMX-control PHASE 1 + 2 + 3:

=== macmini Xubuntu 14.04 ===

qlc+ by massimo callegari v.4.10.1 (download linux x64.deb from website: http://www.qlcplus.org/downloads.html)

Universe 1: fixtures erstellen (zb scheinwerfer), funktionen erstellen (zb szenen), virtuelle konsole erstellen (zb buttons in neuem einzelrahmen [elemente darin schließen sich gegenseitig aus – immer nur eines aktiv]), eingänge/ausgänge festlegen (zb Enttec DMX Ausgang, OSC localhost Eingang+Feedback)

safe as patch with I/O settings below

prgm-call (noGUI=raspPi only) aus PD bzw shell (rest über osc):

qlcplus –open /home/marco/Schreibtisch/marco-Xubuntu_share/12fixtures-basic-setup+osc.qxw –operate –nogui

killall -s INT qlcplus

=====================================

testsetup:

aOSC-send-to 192.168.0.13:7701 (PD)

PD: receive 7701 (aOSC), send-to 127.0.0.1:7700 (qlc+), receive 9000 (qlc+_fb)

qlc+: receive 127.0.0.1:7700 (PD), feedback 127.0.0.1:9000 (PD)

=== am macBook IX (10.5.8) ===

GEHT: ENTTEC dmx usb pro mit lxconsole über osc (QLC/QLC+ geht nicht)

=== auf MBP+MACMINI+… (> 10.7) ===

GEHT: ENTTEC dmx usb pro mit QLC+ über osc

============================================

==========================================
AV-CAPTURE test PHASE 3:
==========================================

problem – wenn pd startet nimmt guvcviewer kein audio mehr auf – evtl portaudio konflict? video-und-audio zuweisung funktioniert auch zT nicht (video0 wird zu video1 etc…)

lösung:

ls -l /dev/video*

inxi -F (hardware anzeigen)

nicht notwendig: http://askubuntu.com/questions/426648/how-to-reinstall-pulseaudio-ubuntu-12-04

JA: programm pulseaudio-lautstärkenregler öffnen und USB_Camera Analog Stero und als haupt-aufnahmegerät setzen (internes audiogerät stumm schalten und USB_camera als ausweichoption setzen)

pulseaudio dokumentation mit userbefehlen aufrufen:

man pulse-cli-syntax

aufrufen und eingabe der befehle:

pacmd

list-cards (verfügbare hardware anzeigen)

stat (gibt default devices und memory allocation aus)

–> weiters kann man mit pacmd das standardinterface festlegen etc.

============================================

============================================
dann startskript schreiben:

#!/bin/bash

# echo starting jack…

# qjackctl –start &

sleep 30

echo starting pd…

PD=pd-extended

PD_PATCH=“/home/marco/ownCloud/marco-Xubuntu_share/CAPTURE_xubuntu_v04_incl-QLCplus.pd“
PD_AUDIO=“-noaudio“
PD_MIDI=“-nomidi“
# PD_PATH=“-path /usr/lib/pd/extra“ #:/home/eapaudio/PD-LIBRARIES_actually_needed“

${PD} ${PD_AUDIO} ${PD_MIDI} ${PD_PATH} ${PD_PATCH} &

# sleep 20

# echo connecting pd to madiFX ports

# jack_snapshot restore /home/eapaudio/Desktop/eapaudio_v08/qjackctl_connect-PD-madiFX.jack

# echo done…

============================================
dieses dann mit chmod +x start_CARAVAN.sh executable machen

systemeinstellungen –> sitzungen und startverhalten –> start_CARAVAN.sh hinzufügen

systemeinstellungen –> benutzer und gruppen –> passwort NICHT abfragen

sudo reboot
============================================

==========================================
AV-CAPTURE test PHASE 1 + 2:
==========================================

==== os X 10.8.3 macmini (verworfen) ====

debut software kostet 35 Euro

pd – ev’s + writesf läuft nicht in sync – option = verlangsamung in fcpx (PROBLEM: PD braucht viel Leistung)

debut videocapt. – option1 = zeitsteuerung – option2 = pd shell + fakekeyboard xdotool (über ports – muss installiert sein + xcode + xcode commandline tools) (PROBLEM: unsicher und aufwändige installation)

pd + debut > shell direkter aufruf von debut möglich!!! (ERSCHEINT SINNVOLL und wenig fehleranfällig)

==== xubuntu 14.04 macmini (YES!) ====

software guvcview von PD aus aufrufen und über osc steuern….

guvcview 2.0.2 (mit version aus ubuntu softwarecenter gehts nicht)

sudo add-apt-repository ppa:pj-assis/ppa (Assis ist der Entwickler selbst!!)

sudo apt-get update

sudo apt-get install guvcview

In order to run guvcview capture from command line you need to send a SIGUSR1 signal to the running application. First start it:

guvcview –no_display -n capture_file.avi

Then from a second shell window type the following:

killall -s USR1 guvcview

This will start a video capture and save the file in the current directory. You need to combine these 2 lines into a shell script if you want to run it automatically. Information from guvcview output:

GUVCVIEW Signals:
SIGUSR1: Video stop/start capture
SIGUSR2: Image capture
SIGINT (ctrl+c): Exit

================================================================

list available video devices:

v4l2-ctl –list-devices

if not installed then do: sudo apt-get install v4l-utils

======== guvcview SETTINGS w/genius f100 + sound ==========

in FCPX Audio um 1sec nach hinten schieben, ansonsten OK (siehe Handbrake)

ok::VIDEO::usb_camera, 30fps, 640×480, mjpg ::AUDIO:: pulseaudio, usb_camera analog stereo, 48000, 2-stereo, latency 0,100

ok::VIDEO::usb_camera, 30fps, 800×600, mjpg ::AUDIO:: pulseaudio, usb_camera analog stereo, 48000, 2-stereo, latency 0,100

BEST::VIDEO::usb_camera, 30fps, 1280×720, mjpg ::AUDIO:: pulseaudio, usb_camera analog stereo, 48000, 2-stereo, latency 0,100

Problem(hängt)::VIDEO::usb_camera, 30fps, 1920×1080, mjpg ::AUDIO:: pulseaudio, usb_camera analog stereo, 48000, 2-stereo, latency 0,100

===============================================================

==================== PD =======================================

shell 1:

ohne GUI, render-Fenster, render-API:

guvcview –device=/dev/video1 –resolution=1280×720 –format=MJPG –render_window=none –gui=none –audio=pulse –audio_device=1 –audio_codec=pcm –video_codec=mpeg –render=none dummycommand

mit GUI und render-Fenster:

guvcview –device=/dev/video1 –resolution=1280×720 –format=MJPG –render_window=max –audio=pulse –audio_device=1 –audio_codec=pcm –video_codec=mpeg dummycommand

oder ohne render-Fenster:

guvcview –device=/dev/video1 –resolution=1280×720 –format=MJPG –render_window=none –audio=pulse –audio_device=1 –audio_codec=pcm –video_codec=mpeg dummycommand

oder ohne render-Fenster und ohne GUI:

guvcview –device=/dev/video1 –resolution=1280×720 –format=MJPG –render_window=none –gui=none –audio=pulse –audio_device=1 –audio_codec=pcm –video_codec=mpeg dummycommand

shell 2:

killall -s USR1 guvcview (für START/STOP)
killall -s INT guvcview (als EXIT)

================================================================

RECORDED FILETYPE (.AVI/.MKV/.MP4) HÄNGT VON DER CAMERA AB!!!

====== microsoft vx-500 cam ======
–> macht nur .mkv files (diese kann man mit handbrake konvertieren!!)

HANDBRAKE konversion mkv to mp4 –> output settings: mp4-file, video codec: mpeg-4, constant quality: qp 1 bzw 2, constant framerate (25 PAL)

====== kye genius f100 ======

teste audio (unterstützt 44k1/16bit/stereo!):

audiodevices anzeigen:

arecord -L

aus liste ablesen und direkt ansprechen (10sec, 16bit, stereo)

arecord -D hw:CARD=USBCamera,DEV=0 -d 10 -f S16_LE -c 2 -r 44100 test-rec.wav

aplay test-rec.wav

–> audiodevice lässt sich nur in stereo ansprechen!!

==============================