Hello,
I am trying to stream pre-recorded video (MP4, x264) to Wowza, but it behaves strangely.
If I try RTSP method:
ffmpeg -re -i sample.mp4 -vcodec libx264 -vb 500000 -g 60 -vprofile main -acodec aac -ab 128000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f mpegts udp://127.0.0.1:10000?pkt_size=1316
It seems working because it shows bitrate, and so on. But if I try FLV:
# ffmpeg -re -i sample.mp4 -vcodec libx264 -vb 500000 -g 60 -vprofile main -acodec aac -ab 128000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f flv rtmp://127.0.0.1/live/myStream
ffmpeg version 0.8.9-6:0.8.9-1, Copyright (c) 2000-2013 the Libav developers
built on Nov 3 2013 00:54:50 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample.mp4':
Metadata:
major_brand : qt
minor_version : 512
compatible_brands: qt
creation_time : 1970-01-01 00:00:00
encoder : Lavf52.73.0
Duration: 00:09:56.45, start: 0.000000, bitrate: 524 kb/s
Stream #0.0(eng): Video: h264 (Constrained Baseline), yuv420p, 424x240, 420 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 99 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
It hangs. I can see packets flowing but players don’t find myStream. Log on stream creation shows:
2014-01-04 13:21:58 CET connect-pending session INFO 100 127.0.0.1 - _defaultVHost_ live _definst_ 0.001 [any]1935 rtmp://127.0.0.1/live 127.0.0.1 rtmp - unknown 1819880169 3170 3073 - - - - - - - -- - - - - rtmp://127.0.0.1/live -
2014-01-04 13:21:58 CET connect session INFO 200 127.0.0.1 - _defaultVHost_ live _definst_ 0.002 [any] 1935rtmp://127.0.0.1/live 127.0.0.1 rtmp - unknown 1819880169 3170 3073 - - - - - - - - -- - - - rtmp://127.0.0.1/live -
2014-01-04 13:21:58 CET create stream INFO 200 - - _defaultVHost_ live _definst_ 0.001 [any] 1935 rtmp://127.0.0.1/live 127.0.0.1 rtmp - unknown 1819880169 3289 3413 1 0 0 0 - - - - -- rtmp://127.0.0.1/live rtmp://127.0.0.1/live - rtmp://127.0.0.1/live -
To be honest I don’t care about method of streaming, altough I thought FLV would be best because we are
using flowplayer to watch it via RTMP. Am I right?\
Maybe I should click “receive stream” in Stream Manager and then stream? To be honest my only experience with
streaming is Adobe Media Encoder.
Thanks!