No audio from Easycap device on Raspberry PI

*nix specific usage questions
patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

No audio from Easycap device on Raspberry PI

Postby patracy » 24 May 2022 21:10

Hoping someone can help with the trouble I'm having. I have a freshly loaded Raspberry Pi 4. Running the 64 bit OS. I'm trying to watch the video and audio from the Easycap device through VLC. I'm selecting the /dev/video0 for the video. At first I was having some latency issues, so I clicked the show more options and eliminated cache. (I'm not recording anything, just really trying to use this to stream video and audio from another device into the pi desktop) The video is working just fine. But for the life of me, I can't get VLC to listen in on the audio from the soundcard of the easycap. (hw:1,0) I've tried adding the device to the audio device name block. And I've tried clicking on the play other media option and I've tried alsa://, alsa://hw:1,0, pulse://, and alsa: and pulse: alone. I don't recall which one it was, but one of those options resulted in simply crashing VLC and it closing itself up.

I know the device works because I also loaded OBS studio and told it to play the audio source and it works there. I can have VLC handling the audio and OBS playing the audio, but I'd rather it all simply be in the same application.

I have also plugged in a USB sound card and patched audio into it (hw:4,0). I can hear the audio from OBS and record from it. But VLC just simply won't play any audio sources for some reason?

jill_vlabs
Developer
Developer
Posts: 13
Joined: 29 Apr 2022 11:14
Operating System: Linux

Re: No audio from Easycap device on Raspberry PI

Postby jill_vlabs » 25 May 2022 10:06

are you using vlc through the commandline?
if not in the capture device tab you should have listed the available audio input in the "Audio device name" field here from what you're saying "hw:0,1" should be the right value.

I can do some testing in the evening I have a similar card at home

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 25 May 2022 12:37

No, through the gui. And yes, using hw:1,0 in the audio device name field. Is there a specific string I should use via CL and forgo the VLC GUI? I'd be fine with not launching VLC directly. I could make a script file if it's a CLI command.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No audio from Easycap device on Raspberry PI

Postby Rémi Denis-Courmont » 25 May 2022 18:37

Check the verbose logs...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 25 May 2022 21:14

So this is the log file.
-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main: playlist is empty
filesystem error: cannot open file /home/patracy/hw:1,0 (No such file or directory)
gl: Initialized libplacebo v2.72.0 (API v72)
main error: buffer deadlock prevented
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 728269943: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 728429968: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 728986030: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 729226070: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 730506242: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 730666269: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 731306370: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 735303005: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 736419214: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 736579243: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 739619753: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms)
main error: Timestamp conversion failed for 746852915: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 2 ms)
main error: Timestamp conversion failed for 747569012: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 3 ms)
main error: Timestamp conversion failed for 773109114: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 3 ms)
main error: Timestamp conversion failed for 773545258: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 3 ms)
main error: Timestamp conversion failed for 823221108: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 3 ms)
main error: Timestamp conversion failed for 829214279: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 4 ms)
main error: Timestamp conversion failed for 835131110: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 4 ms)
main error: Timestamp conversion failed for 835971257: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 4 ms)
main error: Timestamp conversion failed for 853353956: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 5 ms)
main error: Timestamp conversion failed for 860026947: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 5 ms)
main error: Timestamp conversion failed for 901149507: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 5 ms)
main error: Timestamp conversion failed for 902029687: no reference clock
main error: Could not convert timestamp 0 for rawvideo
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 5 ms)
main error: Timestamp conversion failed for 903426085: no reference clock
main error: Could not convert timestamp 0 for rawvideo

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 25 May 2022 21:16

And audiocard is there.
patracy@raspberrypi:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 534d:0021 MacroSilicon MS210x Video Grabber [EasierCAP]
Bus 001 Device 003: ID 0e8f:00a8 GreenAsia Inc. 2.4G RX
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
patracy@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: USB20 [AV TO USB2.0], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
patracy@raspberrypi:~ $


Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No audio from Easycap device on Raspberry PI

Postby Rémi Denis-Courmont » 26 May 2022 09:30

Code: Select all

filesystem error: cannot open file /home/patracy/hw:1,0 (No such file or directory)
Well...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 26 May 2022 13:07

Well?

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 26 May 2022 14:59

What exactly should /home/patracy/hw:1,0 be? A file or directory? If it's a file, what should the file have in it? Or just a blank file?

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 31 May 2022 23:49

So I added a folder to that path and there's no errors now about that. But still no sound from the easycap?

Code: Select all

-- logger module started -- main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. main: playlist is empty dvdnav error: Couldn't find device name. dvdnav error: DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed dvdnav error: vm: vm: failed to read VIDEO_TS.IFO main error: slave[0] doesn't like DEMUX_GET_TIME -> EOF gl: Initialized libplacebo v2.72.0 (API v72) main error: buffer deadlock prevented main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 748785574: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 749105630: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 749265665: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 749425687: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 749585714: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 749825799: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 750065841: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 750661902: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 750861928: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main error: Timestamp conversion failed for 751021950: no reference clock main error: Could not convert timestamp 0 for rawvideo main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1 ms) main error: Timestamp conversion failed for 751181993: no reference clock main error: Could not convert timestamp 0 for rawvideo

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No audio from Easycap device on Raspberry PI

Postby Rémi Denis-Courmont » 01 Jun 2022 09:22

Well if you create an empty file VLC will play an empty file, meaning it won't play anything, hence the EOF error. I don't really get where you're going.

As for the GUI, I don't know if/how that works on rPI since Raspbian has some unofficial changes to their VLC package.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jill_vlabs
Developer
Developer
Posts: 13
Joined: 29 Apr 2022 11:14
Operating System: Linux

Re: No audio from Easycap device on Raspberry PI

Postby jill_vlabs » 01 Jun 2022 11:37

it's weird that it attempts to open a file instead of alsa://hw:0,1
could you tell us what version of vlc are you running `vlc -V`?
there was an issue with vlc 3.0.16 and alsa as a slave input which is what the capture device tab do

as a workaround you can start vlc that way in the commandline : `vlc v4l2:///dev/video0:width=1920:height=1080 --input-slave alsa://hw:1,0` (tested with my own easycap)

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 01 Jun 2022 17:50

I created a folder when I didn't know what else to do?

I'm just trying to get the audio to stream from the EasyCAP device to the HDMI output of the pi. That's the entire goal I have. Not recording anything or trying to play back a different audio file or anything. I'll find out what version VLC is on the raspberry in a bit. (And try the CL)

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 01 Jun 2022 18:13

Yes. This is 3.0.16. I'll update it now.

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 01 Jun 2022 18:25

Oh well 3.0.16 is the newest. So I ran the CL argument. Screen launched. I adjusted the volume on the screen. But no audio at all.

Code: Select all

+ -- logger module started -- main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. main error: Invalid url passed to the "input-slave" option gl: Initialized libplacebo v2.72.0 (API v72)

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: No audio from Easycap device on Raspberry PI

Postby Rémi Denis-Courmont » 01 Jun 2022 21:36

That bug was already fixed in VLC 3.0.17 and there are no workarounds.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jill_vlabs
Developer
Developer
Posts: 13
Joined: 29 Apr 2022 11:14
Operating System: Linux

Re: No audio from Easycap device on Raspberry PI

Postby jill_vlabs » 02 Jun 2022 11:15

oops my workaround was to make the video the input slave sorry :

Code: Select all

vlc alsa://hw:1,0 --input-slave v4l2:///dev/video0:width=1920:height=1080

jill_vlabs
Developer
Developer
Posts: 13
Joined: 29 Apr 2022 11:14
Operating System: Linux

Re: No audio from Easycap device on Raspberry PI

Postby jill_vlabs » 02 Jun 2022 11:15

the bug is that alsa can't be a slave but the other way arround works

patracy
Blank Cone
Blank Cone
Posts: 11
Joined: 24 May 2022 20:49

Re: No audio from Easycap device on Raspberry PI

Postby patracy » 02 Jun 2022 19:05

That does seem to do something as I hear a pop sound when starting it. But still no audio from the EasyCAP. No errors in the log this time:

Code: Select all

-- logger module started -- main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. gl: Initialized libplacebo v2.72.0 (API v72) -- logger module stopped --
I also checked that the AV to USB2.0 soundcard input was maxed in alsamixer as well.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests