bpa;690323 Wrote:
> On my Ubuntu system I got a ALSA config working with Pulseaudio but
> using "arecord" the quality was terrible - I can't figuire out what is
> wrong (e.g.another signal is being mixed in).
>
> So I changed to an all Pulaseaudio solution using "parec" command
> instead of "arecord". There are two steps.
>
> 1. Find the "monitor" source of your PC audio using somehting like
> >
Code:
--------------------
> >
> pacmd list | grep ".monitor"
>
--------------------
> >
>
> 2. Use the relevant monitor source in a "parec" command such as to
> record into a falc file.
> >
Code:
--------------------
> > parec -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
--file-format=flac parec.flc
--------------------
> >
>
> The above can eb used to test recording of the audio. You should
> test this (especially with Gramaphone) before doing more work as
> Flash audio and Pulse Audio have been known not to work well with
> some configs.
>
> If it works OK - then the next steps will depend on your config.
>
> Q. When running LMS and playing the Gramaphone and recording the
> audio stream using "parec" - is the LMS process directly in the same
> process tree (i.e. all started from the same user login) as the
> "pulseaudio --start" process ?
It took many, many hours, but I got vlc to work in the end.
On my debian (wheezy) laptop, obtained the latest vlc version 1.2 and
built it (I tried 2.1 but couldn't get it to build properly). This was
a painful process, requiring many libraries to be added. When some could
not be added, sometimes removing one of the conflicting ones, then
adding it back in (getting a slightly different version) eventually
worked. Some of the missing libraries were said by the vlc ./configure
command not be be critical, but I found out later that they were.
Finally with a vlc that would recognise 'pulse' as an input I got it to
work. My command line is:
cvlc pulse://alsa_output.pci-0000_00_lf.5.analog-stereo.monitor
:sout='#transcode{vcodec=none,acodec=mp3,ab=320,channels=2,samplerate=44100}:http{dst=:8079/st.mp3}'
:no-sout-rtp-sap :no-sout-standard-sap
A few notes:
- cvlc runs vlc silently (I use killall vlc to stop it)
- the alsa_output..... name comes from looking at the information shown
by the same pacmd command you used.
- I tried using acodec=vorb for OGG but overloaded the laptop and got
breakup
- I didn't get flac to work - no doubt some form of codec issue
- I am using my headphone socket adaptor plugged in to stop the audio
via the speakers on the laptop (I couldn't find a way to stop the
audible laptop sound without also stopping the streaming).
- I found pavucontrol (not originally installed) helpful in showing
what was going on.
Two tweaks that may also have helped. vlc has a 'real time' option
under tools, preferences, show 'all'.
Pulse audio has a file under /etc/pulse called daemon.conf. There's a
line containing
; realtime-scheduling=yes
Change this to
realtime-scheduling=yes
And
; default-fragment-size-msec = 25
to
default-fragment-size-msec = 10
Poured myself a beer, or 2.
--
PasTim
Server on Windows 7 Ultimate 64 bit, 2 CPU, 2GHz, 4GB, FLAC files. Touch
on Ethernet (in another room). Analogue out over 'a bit of wire' to
ageing Quad Hi-Fi. An old (wireless) laptop controls the server using
Chrome.
------------------------------------------------------------------------
PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=49584
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins