Skip to content

I want to listen to the sound coming in on HDMI IN. #199

Answered by Joshua-Riek
ironiris asked this question in Q&A
Discussion options

You must be logged in to vote

The new kernel has been uploaded. Please update your system with apt and then reboot once finished.

I used the below script to test the video and audio capture of HDMI input.

#!/bin/bash

trap 'onCtrlC' INT
function onCtrlC () {
	echo 'Ctrl+C is captured'
	killall gst-launch-1.0
	exit 0
}

device_id=$(v4l2-ctl --list-devices | grep -A1 hdmirx | grep -v hdmirx | awk -F ' ' '{print $NF}')
v4l2-ctl -d $device_id --set-dv-bt-timings query 2>&1 > /dev/null
width=$(v4l2-ctl -d $device_id --get-dv-timings | grep "Active width" |awk -F ' ' '{print $NF}')
heigh=$(v4l2-ctl -d $device_id --get-dv-timings | grep "Active heigh" |awk -F ' ' '{print $NF}')

es8388_card=$(aplay -l | grep "es8388" | cut -d '

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Joshua-Riek
Comment options

Comment options

You must be logged in to vote
2 replies
@ironiris
Comment options

@Joshua-Riek
Comment options

Comment options

You must be logged in to vote
2 replies
@Joshua-Riek
Comment options

Answer selected by ironiris
@ironiris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants