[FFmpeg-user] mp4 streaming error on ffmpeg

Ameeth Vikram ameeth at watchy.in
Mon Oct 1 12:20:21 CEST 2012


Hi
thanks for suggestion sir in future i will follow the same while sending my
output.

./ffmpeg  \
-f alsa -async 1  -ac 2 -i hw:2,0  \
-f video4linux2  -s 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

this is my console output  for the  above command


[alsa @ 0xda5450] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:2,0':
  Duration: N/A, start: 1347628693.631093, bitrate: 1024 kb/s
    Stream #0:0: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
[video4linux2,v4l2 @ 0xd9f970] Estimating duration from bitrate, this may
be inaccurate
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1347628694.836028, bitrate: 122880 kb/s
    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480,
122880 kb/s, 25 tbr, 1000k tbn, 25 tbc
[buffer @ 0xd9d040] w:640 h:480 pixfmt:yuyv422 tb:1/1000000 sar:0/1
sws_param:flags=2
[buffersink @ 0xd9d360] No opaque field provided
[scale @ 0xd9d560] w:640 h:480 fmt:yuyv422 sar:0/1 -> w:640 h:480
fmt:yuv422p sar:0/1 flags:0x4
-async is forwarded to lavfi similarly to -af
aresample=min_comp=0.001:min_hard_comp=0.100000.
[aresample @ 0xd9e610] chl:stereo fmt:s16 r:32000Hz -> chl:stereo fmt:flt
r:32000Hz
[libx264 @ 0xda09a0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0xda09a0] profile High 4:2:2, level 3.0, 4:2:2 8-bit
[libx264 @ 0xda09a0] 264 - core 128 r2 198a7ea - H.264/MPEG-4 AVC codec -
Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1
ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=25.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0xda0220] 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 ?)


More information about the ffmpeg-user mailing list