Closed attiqfsd closed 7 years ago
If I use a static video file URL instead of the M3U8 link, the out error is same.
Maybe you just try
ffmpeg -i "http://abclive.abcnews.com/i/abc_live4@136330/index_1200_av-b.m3u8?sd=10&b=1200&rebase=on" -c:v copy -c:a aac .......
without the livestreamer?
Can you please tell me complete command? I am completely unknown of the format of the commands.
ffmpeg -re -i "http://abclive.abcnews.com/i/abc_live4@136330/index_1200_av-b.m3u8?sd=10&b=1200&rebase=on" -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 3000k -f flv "rtmp://a.rtmp.youtube.com/live2/<STREAMNAME/KEY>"
Not sure whether it is necessary "-re"
I am no expert on this, so you'd better read this: http://trac.ffmpeg.org/wiki/StreamingGuide and similar.
Thanks, I was able to start the streaming by adding -strict -2 after a couple in the command but the stream is breaking after every couple of seconds.
encoder : Lavc56.1.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
skipping 1 segments ahead, expired from playlists0:00:29.74 bitrate=1272.1kbits/s
skipping 1 segments ahead, expired from playlists0:01:08.59 bitrate=1103.2kbits/s
[flv @ 0x17b15c0] Failed to update header with correct duration.ate= 983.0kbits/s
[flv @ 0x17b15c0] Failed to update header with correct filesize.
frame= 1827 fps= 23 q=-1.0 Lsize= 9479kB time=00:01:18.94 bitrate= 983.7kbits/s
video:8440kB audio:954kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.906219%
Received signal 2: terminating.
Can you please tell me what could be the reason behind it?
Apparently, this is due to the format M3U8. Probably you really need livestreamer or vlc or something similar. Perhaps you'd better ask the same question in a streamlink theme https://github.com/streamlink/streamlink/issues because https://github.com/chrippa/livestreamer/issues/1550
Found this: https://www.reddit.com/r/NHLStreams/comments/3o5x3j/quick_tutorial_on_using_ffmpeg_to_restream/
so restream of m3u8-playlist with only ffmpeg is possible.
BTW I can not open your playlist:
http://hlslive-l3c.med2.med.nhl.com/ls04/nhl/2016/04/16/NHL_GAME_VIDEO_NYRPIT_M2_NATIONAL_20160416/master_wired60.m3u8
in vlc-player. It is working for you?
Yes that playlist is not working. But that ABC news link is working and I tried to restream that.
Can I restream to fb live?
This is livestreamer issue tracker. You might want go check ffmpeg documentation.
If you only use ffmpeg without livestreamer you can ask questions in this forum: http://ffmpeg.gusari.org/index.php
Thanks 👍
@attiqfsd any solution?
I want to do the exactly same thing. Basically stream from a m3u8 to YouTube... And facebook if possible.
I am looking for a solution to stream m3u8 stream to youtube live stream. I found a reddit link where a user mentioned a command that can accomplish that.
Here is the command,
livestreamer -O "hlsvariant://http://hlslive-l3c.med2.med.nhl.com/ls04/nhl/2016/04/16/NHL_GAME_VIDEO_NYRPIT_M2_NATIONAL_20160416/master_wired60.m3u8 name_key=bitrate" best --http-no-ssl-verify | ffmpeg -re -i - -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 3000k -f flv "rtmp://a.rtmp.youtube.com/live2/<STREAMNAME/KEY>"
I have ffmpeg and livestreamer installed on my machine and when I am using this command with my m3u link and stream key, it is showing this error.
Could you please tell me what wrong I am doing?