[FFmpeg-user] Problem with FFMPEG Live Stream Pushing

s00b4u 4u s00b4u at gmail.com
Wed Jul 22 10:19:20 CEST 2015


Hi,

I have an MP4 file which I want to push to my Wowza as Flash Live Stream.

I am using following command for that:
*ffmpeg -i "~/Videos/myvideo.mp4"  -codec:v libx264  -vb 400000 -g 60
-codec:a aac -ab 100000 -ar 48000 -ac 2 -bsf:v h264_mp4toannexb -strict
experimental -f flv rtmp://localhost:1935/live/stream_500k*

But when I start pushing the streams, the streams is well received on Wowza
but I also get a series of errors.

*[libx264 @ 0x2c509e0] Packet header is not contained in global extradata,
corrupted stream or invalid MP4/AVCC bitstreamFailed to open bitstream
filter h264_mp4toannexb for stream 0 with codec libx264: Invalid argument*

My FFMPEG configuration looks like this:
ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul  1 2014 12:08:44 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/home/shubhmoy/ffmpeg_build
--extra-cflags=-I/home/shubhmoy/ffmpeg_build/include
--extra-ldflags=-L/home/shubhmoy/ffmpeg_build/lib
--bindir=/home/shubhmoy/bin --extra-libs=-ldl --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-nonfree --enable-x11grab
  libavutil      52. 90.101 / 52. 90.101
  libavcodec     55. 68.100 / 55. 68.100
  libavformat    55. 44.100 / 55. 44.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  9.100 /  4.  9.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100


If you like, I can send FFPROBE results of my MP4 file.

Thanks.


More information about the ffmpeg-user mailing list