- -- - - - - - - - - - - - - - - - - - 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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
avconv
 
avconv
  
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.
+
[[avconv -codecs]]
  
-acodec pcm_s16le — output format for the stream. The s16le part indicates each audio sample is 16 bits in Little Endian format.
 
  
[[avconv -codecs]]
+
--

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


--