mplayer에서는 -ao alsa:device=hw:0.0 식으로 음악을 바로 재생을 할 수 있는데..
ffmpeg은 입력을 받아서 저장은 되도.. 플레이는 안되나.. 보다 싶긴하다.
ffmpeg은 입력을 받아서 저장은 되도.. 플레이는 안되나.. 보다 싶긴하다.
$ man ffmpeg Video and Audio grabbing
If you specify the input format and device then ffmpeg can grab video and audio directly.
ffmpeg -f oss -i /dev/dsp -f video4linux2 -i /dev/video0 /tmp/out.mpg
Or with an ALSA audio source (mono input, card id 1) instead of OSS:
ffmpeg -f alsa -ac 1 -i hw:1 -f video4linux2 -i /dev/video0 /tmp/out.mpg
Note that you must activate the right video source and channel before launching ffmpeg with any TV viewer
such as <http://linux.bytesex.org/xawtv/> by Gerd Knorr. You also have to set the audio recording levels
correctly with a standard mixer. |
$ mam mplayer AUDIO OUTPUT DRIVERS (MPLAYER ONLY)
Audio output drivers are interfaces to different audio output facilities. The syntax is:
-ao <driver1[:suboption1[=value]:...],driver2,...[,]>
Specify a priority list of audio output drivers to be used.
If the list has a trailing ',' MPlayer will fall back on drivers not contained in the list. Suboptions
are optional and can mostly be omitted.
NOTE: See -ao help for a list of compiled-in audio output drivers.
EXAMPLE:
-ao alsa,oss,
Try the ALSA driver, then the OSS driver, then others.
-ao alsa:noblock:device=hw=0.3
Sets noblock-mode and the device-name as first card, fourth device. |
'프로그램 사용 > ffmpeg & ffserver' 카테고리의 다른 글
MPlayer 1.1 크로스컴파일 (0) | 2014.10.08 |
---|---|
live555 관련링크 (0) | 2014.10.07 |
ffmpeg armv5te performance (0) | 2014.09.26 |
ffmpeg armv5te 옵션 (0) | 2014.09.25 |
lame을 이용한 mp3 포맷변경 (0) | 2014.09.24 |