[FFmpeg-user] mp4 streaming error on ffmpeg

Ameeth Vikram ameeth at watchy.in
Mon Oct 1 11:47:19 CEST 2012


Hi,

I want to stream an raw video from dev/video0 device on to an rtmp server
using ffmpeg  here are the details and all the information and the command.

Pandaboard ES REV B2
Linux linaro-developer 3.4.0-1-linaro-lt-omap #1~120625232503-Ubuntu  armv7l
armv7l armv7l GNU/Linux
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

I am using ffmpeg 0.11.1 version , --pkgversion=5 and i have compiled
libx264  --pkgversion=3
with neon optimization and configured with ./configure --enable-shared  , i
am using the following command to stream on to the rtmp server ,

./ffmpeg  \
-f alsa -async 1  -ac 2 -i hw:2,0  \
-f video4linux2  -s:v  vga -i /dev/video0   \
-acodec aac -b:a 40k \
-r 25 -s vga  -vcodec libx264 -strict -2  -crf  25 -preset fast  -b:v 320K
-pass 1 \
 -f  mp4  rtmp://192.168.2.105/live/testing

with the above command  i am getting the following error,

[mp4 @ 0x1266220] muxer does not support non seekable output
Output #0, mp4, to 'rtmp://192.168.2.105/live/testing':
  Metadata:
    encoder         : Lavf54.6.100
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv422p, 640x480,
q=-1--1, pass 1, 320 kb/s, 90k tbn, 25 tbc
    Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 32000 Hz, stereo, flt,
40 kb/s
Stream mapping:
Stream #1:0 -> #0:0 (rawvideo -> libx264)
Stream #0:0 -> #0:1 (pcm_s16le -> aac)
Could not write header for output file #0 (incorrect codec parameters ?)

Help me to solve this problem
-- 
Thanks in advance,
Ameeth.


More information about the ffmpeg-user mailing list