[FFmpeg-user] using ffmpeg to re-sample

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jun 30 09:55:25 CEST 2014

Diaz Soho <soho123.2012 <at> gmail.com> writes:

> fmpeg -sn -f video4linux2 -r 30 -s 1280x720 
> -input_format h264 -i /dev/video1 
> -f alsa -ar 22050 -ac 1 -i hw:0 -map 0:0 -map 1:0 
> -vcodec copy -acodec g726 -strict -1 
> http://localhost:8090/feed.ffm
> it can capture audio from usb web cam.
> and endcode to g726 adpcm.
> if I would like to encode to g726 and sample 
> rate is 8000Hz.

You could replace "22050" with "8000"...

If it doesn't work, use the aresample filter.

Carl Eugen

More information about the ffmpeg-user mailing list