vcrtool¶
Control a JLIP device such as a VCR.
Commands¶
jlip¶
Run JLIP commands.
Usage
jlip [OPTIONS] SERIAL_DEVICE [ARGS]...
Options
- -d, --debug¶
Enable debug logging.
Arguments
- SERIAL_DEVICE¶
Required argument
- ARGS¶
Optional argument(s)
The output is always JSON formatted.
Valid JLIP commands¶
All arguments to the commands are integers. Refer to JLIP documentation for valid values.
Most of these commands are specific to VCRs but many apply to other devices such as DVD players.
eject-wait: Eject the video and block until the video is ejected.eject: Eject the video.fast-forward: Fast forward the video.fast-play-backward: Fast rewind the video and play.fast-play-forward: Fast forward the video and play.frame-step-back: Step the video one frame backward.frame-step: Step the video one frame forward.get-baud-rate-supported: Get the baud rate supported by the device.get-device-code: Get the device code.get-device-name: Get the device name.get-input: Get the input.get-machine-code: Get the machine code.get-play-speed: Get the play speed.get-power-state: Get the power state.get-tuner-mode: Get the tuner mode.get-vtr: Get the VTR.nop: No operation.pause-recording: Pause the recording.pause: Pause the video.play: Play the video.presence-check: Check if the device is connected.preset-channel-down: Navigate one channel down in preset channels.preset-channel-up: Navigate one channel up in preset channels.real-channel-down: Navigate one channel down.real-channel-up: Navigate one channel up.record: Record to the media.rewind: Rewind the video.select-band BAND: Select the band.select-preset-channel CHAN: Select the preset channel.select-real-channel CHAN: Select the channel.send-command CMD ARG ...: Send a custom command to the device.set-channel CHAN: Set the channel.set-input N NN: Set the input.set-jlip-id ID: Set the JLIP ID.set-record-mode MODE: Set the record mode.set-record-speed SPEED: Set the record speed.slow-play-backward: Slow rewind the video.slow-play-forward: Slow forward the video.stop: Stop the video.turn-off: Turn off the device.turn-on: Turn on the device.
Example usage¶
# Check if device is connected.
jlip /dev/ttyUSB0 presence-check
# Eject the video but do not block.
jlip /dev/ttyUSB0 eject
# Eject the video and block until the video is ejected.
jlip /dev/ttyUSB0 eject-wait
# Fast forward the video.
jlip /dev/ttyUSB0 fast-forward
# Rewind the video.
jlip /dev/ttyUSB0 rewind
# No operation.
jlip /dev/ttyUSB0 nop
capture-stereo¶
Capture video, stereo audio, and VBI data from a JLIP VCR.
This command is highly-opinionated in capturing video. The most important functionality is to capture VBI data. Audio is captured in FLAC format and video in H.265 format.
Usage
capture-stereo [OPTIONS] OUTPUT
Options
- -a, --audio-device <audio_device>¶
Required ALSA device name.
- -b, --vbi-device <vbi_device>¶
VBI device path.
- -i, --input-index <input_index>¶
Input index for v4l2-ctl.
- -s, --serial <serial>¶
Required Serial device path for JLIP.
- -t, --timespan <timespan>¶
Timespan to record.
- -v, --video-device <video_device>¶
Required Video capture device path.
Arguments
- OUTPUT¶
Required argument
Contents:
- Library
- vcrtool.jlip.BandInfo
- vcrtool.jlip.CommandResponse
- vcrtool.jlip.CommandResponseTuple
- vcrtool.jlip.CommandStatus
- vcrtool.jlip.DeviceNameResponse
- vcrtool.jlip.JLIPTransport
- vcrtool.jlip.PowerStateResponse
- vcrtool.jlip.VTRMode
- vcrtool.jlip.VTRModeResponse
- vcrtool.sansio.CARRIER_FREQUENCY_HZ
- vcrtool.sansio.CommandStatus
- vcrtool.sansio.FRAME_DURATION_US
- vcrtool.sansio.JLIPCodec
- vcrtool.sansio.ONE_MARK_US
- vcrtool.sansio.Pulse
- vcrtool.sansio.SIRCSCodec
- vcrtool.sansio.SIRCSCommand
- vcrtool.sansio.SIRCSVariant
- vcrtool.sansio.SPACE_US
- vcrtool.sansio.START_MARK_US
- vcrtool.sansio.UNIT_US
- vcrtool.sansio.ZERO_MARK_US
- vcrtool.sansio.checksum
- vcrtool.sircs.PicoSIRCSTransport
- vcrtool.utils.adebug_create_subprocess_exec
- vcrtool.utils.adebug_sleep
- vcrtool.utils.audio_device_is_available
- vcrtool.utils.debug_sleep
- vcrtool.utils.debug_sp_run
- vcrtool.utils.get_pipewire_audio_device_node_id
- vcrtool.utils.pad_right
- SIRCS (Sony infrared remote control)
- Other notes