[FFmpeg-user] Want to segment usb mic recording and rewrite the same file with next segment.
satya gowtham kudupudi
satyagowtham.k at gmail.com
Thu Sep 12 10:29:26 CEST 2013
I tried
$ ffmpeg -f alsa -i "plughw:CARD=U0x46d0x825,DEV=0" -acodec libmp3lame -map
0 -f segment -reset_timestamps 1 -segment_time 10 -updatefirst 1
www/ferryplayer/Sounds/livevoice.mp3
ffmpeg version git-2013-07-04-4a4c93c Copyright (c) 2000-2013 the FFmpeg
developers
built on Jul 4 2013 23:01:40 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
configuration: --prefix=/usr/local/ffmpeg_build
--extra-cflags=-I/usr/local/ffmpeg_build/include
--extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
--mandir=/usr/local/share/man
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.100 / 55. 18.100
libavformat 55. 11.100 / 55. 11.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 78.100 / 3. 78.100
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'plughw:CARD=U0x46d0x825,DEV=0':
Duration: N/A, start: 1378974351.867143, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[mp3 @ 0xa7be740] Invalid segment filename template
'www/ferryplayer/Sounds/livevoice.mp3'
Output #0, segment, to 'www/ferryplayer/Sounds/livevoice.mp3':
Metadata:
encoder : Lavf55.11.100
Stream #0:0: Audio: mp3 (libmp3lame), 48000 Hz, stereo, s16p
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le -> libmp3lame)
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
How can I do this?
--
*Gowtham*
More information about the ffmpeg-user
mailing list