Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

Problem with m3u8 to rtmp

(http://stream-recorder.com/forum/showthread.php?t=20673)

godlesowned 01-28-2016 12:19 PM

Problem with m3u8 to rtmp


 
Hello, i found a m3u8 720p live stream i tried convert it and restream to my rtmp server.
1st i tried to simply use ffmpeg to restream it.
i tried commands:
Code:

ffmpeg -i http://m3u8 -vcodec copy -acodec dopy -f flv rtmp://xxxx/xxx/xx
ffmpeg shows:
output file #0 does not contain any stream ffmpeg
same with: -vcodec libx264 and -acodec aac, also with -map 0:0 -map 0:1, or -map 1:1 -map 1:2.
So i think im use livestreamer, command:
Code:

screen -S asd livestreamer --yes-run-as-root "hls://http://m3u8" best --player-external-http  --player-external-http-port "4824"
I tried do restream it so i tried again ffmpeg:
Code:

ffmpeg -i http://localhost:port -vcodec copy -acodec aac -f flv rtmp://xxxx/xx/x
it work for 3 second and it turning off... also i have a errors like
Code:

[mpegts @ 0xc5d320] Continuity check failed for pid 0 expected 1 got 0
[h264 @ 0x173c500] no frame!
[h264 @ 0x173c500] non-existing PPS referenced
[h264 @ 0x173c500] non-existing PPS 0 referenced
[h264 @ 0x173c500] decode_slice_header error
[h264 @ 0x173c500] no frame!

this shows many times.
When i add -vcodec libx264 it works but it is little laggy.
Question is how to download and stream with no lags, or with -vcodec copy to RTMP.
If someone need http://m3u8 i can pm it.


All times are GMT -6. The time now is 10:58 AM.