Re: running arecord via ssh

2018-05-17 Thread Pierre Frenkiel

On Thu, 17 May 2018, to...@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



Re: running arecord via ssh

2018-05-17 Thread tomas
-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-



Re: running arecord via ssh

2018-05-17 Thread Pierre Frenkiel

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



Re: running arecord via ssh

2018-05-17 Thread Curt
On 2018-05-17, mick crane  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
>
>
>
>


-- 




Re: running arecord via ssh

2018-05-17 Thread mick crane

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 ID4BFEBB31



Re: running arecord via ssh

2018-05-16 Thread David Margerison
On 17 May 2018 at 03: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?

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.