View Single Post
  #7  
Old 01-21-2016, 12:46 PM
Koze Koze is offline
Member
 
Join Date: Sep 2015
Posts: 35
Koze is on a distinguished road
Default

Re: how to stream rtmp to rtmp


Thanks biezom for your great help.

With your help I was able to re-stream the source using livestreamer and ffmpeg.

I was using following command within ffmpeg:
Code:
ffmpeg -re -i "http://127.0.0.1:4824/" -acodec aac -strict -2 -vcodec copy -b:v 2000k -b:a 128K -preset ultrafast -bufsize 3968k -f flv rtmp://xxxxxx
But at the begging of the stream I got following error
Code:
[flv @ 0x2619580] Codec for stream 0 does not use global headers but container format requires global headers
and then after successfully streaming over 2 h stream crashed with following information:

Code:
frame=197473 fps= 25 q=-1.0 size= 2457396kB t                                                  frame=197486 fps= 25 q=-1.0 size= 2457548kB t                                                  frame=197499 fps= 25 q=-1.0 size= 2457711kB t                                                  [flv @ 0x3626580] Failed to update header wit                                                  h correct duration.
[flv @ 0x3626580] Failed to update header wit                                                  h correct filesize.
frame=197500 fps= 25 q=-1.0 Lsize= 2457731kB                                                   time=02:11:40.03 bitrate=2548.6kbits/s
video:2314517kB audio:133208kB subtitle:0kB o                                                  ther streams:0kB global headers:0kB muxing ov                                                  erhead: 0.408774%
Any idea how I can fix the issue?
Should I change something within my ffmpeg command?

I also noticed that after about 1 h livestream terminal became inactive but streaming continued with ffmpeg.

Is that normal?

Thank you,

k

Last edited by Koze : 01-21-2016 at 12:49 PM. Reason: CORRECTION
Reply With Quote