Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #195803 > unrolled thread
| Started by | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| First post | 2018-05-16 19:20 +0200 |
| Last post | 2018-05-17 11:10 +0200 |
| Articles | 7 — 5 participants |
Back to article view | Back to linux.debian.user
running arecord via ssh Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2018-05-16 19:20 +0200
Re: running arecord via ssh David Margerison <deltam@electrosonics.com.au> - 2018-05-17 01:20 +0200
Re: running arecord via ssh Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2018-05-17 12:00 +0200
Re: running arecord via ssh <tomas@tuxteam.de> - 2018-05-17 12:40 +0200
Re: running arecord via ssh Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2018-05-17 13:00 +0200
Re: running arecord via ssh mick crane <mick.crane@gmail.com> - 2018-05-17 09:30 +0200
Re: running arecord via ssh Curt <curty@free.fr> - 2018-05-17 11:10 +0200
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2018-05-16 19:20 +0200 |
| Subject | running arecord via ssh |
| Message-ID | <vQ8fM-3UX-5@gated-at.bofh.it> |
hi,
I try to record some old vinyls with arecord, the output being
sent to my desktop via a radio transmitter/receiver couple.
On the desktop xterm window, its works perfectly, but if I run arecord via
a ssh connection:
1/ from an other computer:
ssh mydesktop arecord_command
2/ in a ssh xterm window:
ssh mydesktop
arecord_command
I get an empty file
Is really arecord incompatible with ssh?
best regards,
--
Pierre Frenkiel
[toc] | [next] | [standalone]
| From | David Margerison <deltam@electrosonics.com.au> |
|---|---|
| Date | 2018-05-17 01:20 +0200 |
| Message-ID | <vQdS9-7db-1@gated-at.bofh.it> |
| In reply to | #195803 |
On 17 May 2018 at 03:10, Pierre Frenkiel <pierre.frenkiel@gmail.com> wrote: > hi, > I try to record some old vinyls with arecord, the output being > sent to my desktop via a radio transmitter/receiver couple. > > On the desktop xterm window, its works perfectly, but if I run arecord via > a ssh connection: > > 1/ from an other computer: > ssh mydesktop arecord_command > 2/ in a ssh xterm window: > ssh mydesktop > arecord_command > > I get an empty file > > Is really arecord incompatible with ssh? It might be related to this: http://mywiki.wooledge.org/BashFAQ/096 But no-one can know, because you wrote "arecord_command" instead of showing what you are actually doing. "I'm running a command that fails, but I'm not going to tell you what it is." .... is not the best way to generate helpful replies. Details matter. Do not ever deliberately omit details. unless you *know* they are not relevant.
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2018-05-17 12:00 +0200 |
| Message-ID | <vQnRv-4sR-1@gated-at.bofh.it> |
| In reply to | #195823 |
On Thu, 17 May 2018, David Margerison wrote:
> Details matter. Do not ever deliberately omit details.
> unless you *know* they are not relevant.
>
I thought that the details were not so useful, but here they are, if
you think they may help to find the answer:
1/ setting the line input of the sound card as input:
amixer -c 1 set Master,0 playback unmute 75%,75%
amixer -c 1 set Line,0 75%,75% mute cap
amixer -c 1 set Capture,0 75%,75% unmute cap
this works in all cases, i.e. I actually hear the sound coming from
the line input
2/ running arecord
arecord -d 10 -f cd -t wav tst.wav
this gives an empty file when run in a ssh window
NB: I also tried "xterm -e ssh mydesktop" instead of "ssh mydesktop"
with the same result (empty file)
best regards,
--
Pierre Frenkiel
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-05-17 12:40 +0200 |
| Message-ID | <vQoue-4Ux-5@gated-at.bofh.it> |
| In reply to | #195831 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, May 17, 2018 at 11:56:51AM +0200, Pierre Frenkiel wrote: [...] > 2/ running arecord > > arecord -d 10 -f cd -t wav tst.wav > > this gives an empty file when run in a ssh window Perhaps you might want to run arecord under strace (in both situations) and compare results. Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlr9WnEACgkQBcgs9XrR2ka2wACeN3k4o/8DGgOgP7FQLAzviVBc SekAn2FBfmX8Wf45IQlJz36SpmNkUjiO =CfmH -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Pierre Frenkiel <pierre.frenkiel@gmail.com> |
|---|---|
| Date | 2018-05-17 13:00 +0200 |
| Message-ID | <vQoNz-51H-1@gated-at.bofh.it> |
| In reply to | #195833 |
On Thu, 17 May 2018, tomas@tuxteam.de wrote:
> Perhaps you might want to run arecord under strace (in both situations)
> and compare results.
good idea. I'll try that, but I found a way to make arecord
to work in all cases(God knows why): adding the "-D copy" option, i.e.
arecord -d 10 -f cd -D copy -t wav tst.wav
this works after adding
pcm.copy {
type plug
slave {
pcm hw
}
route_policy copy
}
to .asoundrc.asoundconf
best regards,
--
Pierre Frenkiel
[toc] | [prev] | [next] | [standalone]
| From | mick crane <mick.crane@gmail.com> |
|---|---|
| Date | 2018-05-17 09:30 +0200 |
| Message-ID | <vQlwl-3er-1@gated-at.bofh.it> |
| In reply to | #195803 |
On 2018-05-16 18:10, Pierre Frenkiel wrote: > hi, > I try to record some old vinyls with arecord, the output being > sent to my desktop via a radio transmitter/receiver couple. > > On the desktop xterm window, its works perfectly, but if I run arecord > via > a ssh connection: > > 1/ from an other computer: > ssh mydesktop arecord_command > 2/ in a ssh xterm window: > ssh mydesktop > arecord_command > > I get an empty file > > Is really arecord incompatible with ssh? > > best regards, possibly it wants X for some reason and it is not on the ssh client. try, if windows, Xming, see if it works. mick -- Key ID 4BFEBB31
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2018-05-17 11:10 +0200 |
| Message-ID | <vQn57-4cV-9@gated-at.bofh.it> |
| In reply to | #195827 |
On 2018-05-17, mick crane <mick.crane@gmail.com> wrote: >> >> Is really arecord incompatible with ssh? >> >> best regards, > > possibly it wants X for some reason and it is not on the ssh client. > try, if windows, Xming, see if it works. At any rate the answer to his question is no. So it must be something else. As another poster has pointed out, we are in the dark to know what that something else may be as the OP has not revealed crucial specifics à la 'cut and paste'. > mick > > > > --
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web