Difference between revisions of "Audio Stream In CHOP"

From Derivative
Jump to navigation Jump to search
(TD Editor)
m
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Summary
 
{{Summary
 
|short=The Audio Stream In CHOP can stream audio into TouchDesigner from any [http://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol rtsp] server.
 
|short=The Audio Stream In CHOP can stream audio into TouchDesigner from any [http://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol rtsp] server.
|OPclass=audiostreaminCHOP_Class
+
|opClass=audiostreaminCHOP_Class
|OPfilter=False
+
|opFilter=False
|long=The Audio Stream In CHOP can stream audio into TouchDesigner from any [http://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol rtsp] server.
+
|long=The Audio Stream In CHOP can stream audio into TouchDesigner from any [http://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol rtsp] server.  See [[Video Stream In TOP]].
|OPlicense=Non-Commercial
+
|opLicense=Non-Commercial
|OPfamily=CHOP
+
|opFamily=CHOP
|OPtype=audiostrin
+
|opType=audiostrin
|OPlabel=Audio Stream In
+
|opLabel=Audio Stream In
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
|Pagename=Audio Stream In
+
|pageName=Audio Stream In
|Pagesummary=
+
|pageSummary=
|OPfamily=CHOP
+
|opFamily=CHOP
 
|items=
 
|items=
{{ParString
+
{{Parameter|parSummary=The URL address of the stream. E.g rtsp://localhost:554/tdaudio
|Parsummary=The URL address of the stream. E.g rtsp://localhost:554/tdaudio
+
|opType=audiostrin
|OPtype=audiostrin
+
|parLabel=URL
|Parlabel=URL
+
|parName=url
|Parname=url
+
|opFamily=CHOP
|OPfamily=CHOP
+
|parOrder=0
|Parorder=0
+
|parType=
}}
+
|parReadOnly=
{{ParTopRef
+
|parItems=
|Parsummary=
+
}}
|Parorder=1
+
{{Parameter|parSummary=Point to a [[Video Stream In TOP]] whose stream has audio embedded to extract the audio channels.
|OPtype=audiostrin
+
|parOrder=1
|Parlabel=Video Stream In TOP
+
|opType=audiostrin
|Parname=videostreamintop
+
|parLabel=Video Stream In TOP
|OPfamily=CHOP
+
|parName=videostreamintop
|Paritems=
+
|opFamily=CHOP
}}
+
|parItems=
{{ParFloat
+
|parType=
|Parsummary=Turns the audio streaming on (1) or off (0).
+
|parReadOnly=
|OPtype=audiostrin
+
}}
|Parlabel=Play
+
{{Parameter|parSummary=Turns the audio streaming on (1) or off (0).
|Parname=play
+
|opType=audiostrin
|OPfamily=CHOP
+
|parLabel=Play
|Parorder=2
+
|parName=play
}}
+
|opFamily=CHOP
{{ParFloat
+
|parOrder=2
|Parsummary=The time (in milliseconds) TouchDesigner will wait attempting to open the audio stream.
+
|parType=
|OPtype=audiostrin
+
|parReadOnly=
|Parlabel=Open Timeout
+
|parItems=
|Parname=opentimeout
+
}}
|OPfamily=CHOP
+
{{Parameter|parSummary=The time (in milliseconds) TouchDesigner will wait attempting to open the audio stream.
|Parorder=3
+
|opType=audiostrin
}}
+
|parLabel=Open Timeout
{{ParFloat
+
|parName=opentimeout
|Parsummary=
+
|opFamily=CHOP
|OPtype=audiostrin
+
|parOrder=3
|Parlabel=Volume
+
|parType=
|Parname=volume
+
|parReadOnly=
|OPfamily=CHOP
+
|parItems=
|Parorder=4
+
}}
}}
+
    {{Parameter|parSummary=Offsets the audio playback of the movie. This can be used to get better sync between the audio and images in the stream when there is audio latency in the system (For example, audio latency from the [[Audio Device Out CHOP]] queue). A negative value plays audio that amount of time sooner, to counteract delay introduced by buffering such as in [[Audio Device Out CHOP]].
 +
|opType=audiostrin
 +
|parLabel=Audio Sync Offset
 +
|parName=syncoffset
 +
|opFamily=CHOP
 +
|parOrder=5
 +
|parType=
 +
|parReadOnly=
 +
|parItems=
 +
}}
 +
{{Parameter|parSummary=Specify which units to use for the Audio Sync Offset parameter.
 +
|parOrder=6
 +
|opType=audiostrin
 +
|parLabel=Audio Sync Offset Unit
 +
|parName=syncoffsetunit
 +
|opFamily=CHOP
 +
|parItems=
 +
|parType=
 +
|parReadOnly=
 +
}}
 +
{{Parameter|parSummary=0 = mute, 1 = full volume.
 +
|opType=audiostrin
 +
|parLabel=Volume
 +
|parName=volume
 +
|opFamily=CHOP
 +
|parOrder=4
 +
|parType=
 +
|parReadOnly=
 +
|parItems=
 +
}}
 
 
 
}}
 
}}
Line 62: Line 91:
 
}}
 
}}
 
{{CHOPNavBox
 
{{CHOPNavBox
|OPfamily=CHOP
+
|opFamily=CHOP
 
}}
 
}}
 
{{#invoke:Category
 
{{#invoke:Category
 
|list|CHOPs}}
 
|list|CHOPs}}

Revision as of 14:00, 19 April 2021

Summary
[edit]

The Audio Stream In CHOP can stream audio into TouchDesigner from any rtsp server. See Video Stream In TOP.

PythonIcon.pngaudiostreaminCHOP_Class


Parameters - Audio Stream In Page

URL url - The URL address of the stream. E.g rtsp://localhost:554/tdaudio

Video Stream In TOP videostreamintop - Point to a Video Stream In TOP whose stream has audio embedded to extract the audio channels.

Play play - Turns the audio streaming on (1) or off (0).

Open Timeout opentimeout - The time (in milliseconds) TouchDesigner will wait attempting to open the audio stream.

Audio Sync Offset syncoffset - Offsets the audio playback of the movie. This can be used to get better sync between the audio and images in the stream when there is audio latency in the system (For example, audio latency from the Audio Device Out CHOP queue). A negative value plays audio that amount of time sooner, to counteract delay introduced by buffering such as in Audio Device Out CHOP.

Audio Sync Offset Unit syncoffsetunit - Specify which units to use for the Audio Sync Offset parameter.

Volume volume - 0 = mute, 1 = full volume.


Parameters - Common Page

Time Slice timeslice - Turning this on forces the channels to be "Time Sliced". A Time Slice is the time between the last cook frame and the current cook frame.

Scope scope - To determine which channels get affected, some CHOPs use a Scope string on the Common page.

Sample Rate Match srselect - - Handle cases where multiple input CHOPs' sample rates are different. When Resampling occurs, the curves are interpolated according to the Interpolation Method Option, or "Linear" if the Interpolate Options are not available.

  • Resample At First Input's Rate first - Use rate of first input to resample others.
  • Resample At Maximum Rate max - Resample to the highest sample rate.
  • Resample At Minimum Rate min - Resample to the lowest sample rate.
  • Error If Rates Differ err - Doesn't accept conflicting sample rates.

Export Method exportmethod - - This will determine how to connect the CHOP channel to the parameter. Refer to the Export article for more information.

  • DAT Table by Index datindex - Uses the docked DAT table and references the channel via the index of the channel in the CHOP.
  • DAT Table by Name datname - Uses the docked DAT table and references the channel via the name of the channel in the CHOP.
  • Channel Name is Path:Parameter autoname - The channel is the full destination of where to export to, such has geo1/transform1:tx.

Export Root autoexportroot - This path points to the root node where all of the paths that exporting by Channel Name is Path:Parameter are relative to.

Export Table exporttable - The DAT used to hold the export information when using the DAT Table Export Methods (See above).

TouchDesigner Build:

CHOPs
Ableton Link • Analyze • Angle • Attribute • Audio Band EQ • Audio Device In • Audio Device Out • Audio Dynamics • Audio File In • Audio File Out • Audio Filter • Audio Movie • Audio NDI • Audio Oscillator • Audio Para EQ • Audio Play • Audio Render • Audio Spectrum • Audio Stream In • Audio Stream Out • Beat • Bind • BlackTrax • Blend • Blob Track • Bullet Solver • Clip Blender • Clip • Clock • Composite • Constant • Copy • Count • CPlusPlus • Cross • Cycle • DAT to • Delay • Delete • DMX In • DMX Out • Envelope • EtherDream • Event • Expression • Extend • Face Track • Fan • Feedback • File In • File Out • Filter • FreeD • Function • Gesture • Handle • Helios DAC • Hog • Hokuyo • Hold • Import Select • In • Info • Interpolate • Introduction To s Vid • Inverse Curve • Inverse Kin • Join • Joystick • Keyboard In • Keyframe • Kinect Azure • Kinect • Lag • Laser • Leap Motion • Leuze ROD4 • LFO • Limit • Logic • Lookup • LTC In • LTC Out • Math • Merge • MIDI In • MIDI In Map • MIDI Out • Mouse In • Mouse Out • NatNet In • Ncam • Noise • Null • Object • Oculus Audio • Oculus Rift • OpenVR • OSC In • OSC Out • Out • Override • Panel • Pangolin • Parameter • Pattern • Perform • Phaser • Pipe In • Pipe Out • PosiStageNet • Pulse • RealSense • Record • Rename • Render Pick • Reorder • Replace • Resample • S Curve • Scan • Script • Select • Sequencer • Serial • Shared Mem In • Shared Mem Out • Shift • Shuffle • Slope • SOP to • Sort • Speed • Splice • Spring • Stretch • Stype • Switch • Sync In • Sync Out • Tablet • Time Slice • Timeline • Timer • TOP to • Touch In • Touch Out • Trail • Transform • Transform XYZ • Trigger • Trim • Warp • Wave • WrnchAI • ZED