You are not logged in.

#1 2009-03-30 09:56:39

jai134
Member
Registered: 2008-11-26
Posts: 234

convert raw file recorded with parec[SOLVED]

Hello. I record a stream from my browser with this script:
#!/bin/bash
parec -d alsa_output.pci_8086_27d8_sound_card_0.monitor > alsa.raw

Then I try to convert it with sox with this:
sox -w -s -L -r 44100 -c 2 alsa.raw alsa.wav

I get this answer:
sox: invalid option -- w
sox: SoX v14.2.0

If I don't use -w I get this:
sox formats: no handler for detected file type `application/octet-stream; charset=binary'

What's my problem besides that I'm to stupid to understand the sox-tutorials?

Last edited by jai134 (2009-03-30 14:33:45)

Offline

#2 2009-03-30 14:33:00

jai134
Member
Registered: 2008-11-26
Posts: 234

Re: convert raw file recorded with parec[SOLVED]

I did find another tutorial and now it is running fine. The command is:
sox -c 2 -r 44100 -s -2 -t raw file.raw -t wav file.wav

Offline

#3 2012-11-02 08:06:14

yee ling
Member
Registered: 2012-11-02
Posts: 1

Re: convert raw file recorded with parec[SOLVED]

change -w to 2. it should be working

Offline

Board footer

Powered by FluxBB