- -- - - - - - - - - - - - - - - - - - TrB.jpg Margaret.png Jkb.jpg JoeD.jpg Edbatchelor.jpg JimB.png DAD-TINT.JPG C03515.jpg

Difference between revisions of "Ffmpeg"

From Batchelor-s
Jump to navigationJump to search
 
Line 2: Line 2:
  
 
avconv [[-f alsa]] [[-ac 1]] [[-i hw:1,0]] [[-acodec pcm_s16le]] -ar 22050 [[-f rtp]] rtp://192.168.1.108:1234
 
avconv [[-f alsa]] [[-ac 1]] [[-i hw:1,0]] [[-acodec pcm_s16le]] -ar 22050 [[-f rtp]] rtp://192.168.1.108:1234
 
 
-f alsa — This tells avconv what type of input audio device we are using.
 
 
Since the microphone is a hardware device, it is handled by ALSA.
 
 
If a streaming a file, put the format of the file here.
 
 
Look at other audio formats by running
 
  
  
Line 16: Line 7:
  
  
-ac 1 — Number of audio channels in the input stream.
 
 
-i hw:1,0 — input audio device is at the hardware address hw:1,0, where 1 is the card number and 0 is the device number on that card.
 
 
-acodec pcm_s16le — output format for the stream. The s16le part indicates each audio sample is 16 bits in Little Endian format.
 
  
 
[[avconv -codecs]]
 
[[avconv -codecs]]
 
-f rtp —  output the audio as an RTP stream.
 
 
rtp rtp://192.168.1.108:1234 — the destination for the stream and the port number at that destination.
 
 
change IP to whatever is your machine.
 
 
Port 1234 was chosen arbitrarily.
 
  
  
 
--
 
--

Latest revision as of 17:45, 11 July 2015

avconv

avconv -f alsa -ac 1 -i hw:1,0 -acodec pcm_s16le -ar 22050 -f rtp rtp://192.168.1.108:1234


avconv -formats


avconv -codecs


--