PDA

View Full Version : re-streaming source - almost give up


Koze
01-17-2016, 04:21 PM
After spending more than week with testing almost give up.
Cannot find proper command for ffmpeg to restream following stream:
http://inea.live.e238-po.insyscd.net/travelchannel.smil/chunklist_b2400000.m3u8

I was using following command to do that but getting errors, missing headers, etc:

ffmpeg -re -headers 'User-Agent: bar'$'\r\n' -i http://inea.live.e238-po.insyscd.net/travelchannel.smil/chunklist_b2400000.m3u8 -acodec aac -strict -2 -vcodec libx264 -r 30 -video_size 1024x578 -b:v 2000k -b:a 128K -preset ultrafast -bufsize 3968k -f flv rtmp://livexxxxxxxx

Can someone point out me what I am doing wrong, or what needs to be changed?

Any help, much appreciate,

Koze

stream_monkey
01-17-2016, 04:51 PM
Stream via livestreamer:

livestreamer "hls://http://inea.live.e238-po.insyscd.net/travelchannel.smil/chunklist_b2400000.m3u8" best

or, to capture using ffmpeg:

ffmpeg -i "http://inea.live.e238-po.insyscd.net/travelchannel.smil/chunklist_b2400000.m3u8" -c copy travel.ts

Koze
01-17-2016, 06:06 PM
Thank you so much for your quick reply.
I forgot to mention that I am using linux (Debian7).

Could you kindly elaborate your suggestions please.

Am I able to re-steam this by using livestreamer?

Thanks again,

K

stream_monkey
01-17-2016, 06:25 PM
Thank you so much for your quick reply.
I forgot to mention that I am using linux (Debian7).

Could you kindly elaborate your suggestions please.

Am I able to re-steam this by using livestreamer?

Yes, you should be able to use livestreamer to stream to vlc in linux. See the following page for all the info you need.

http://stream-recorder.com/forum/livestreamer-t19466.html

stream_monkey
01-17-2016, 08:14 PM
Also, have a look at this for ffmpeg to stream via vlc. You should only need to change a couple of small things (like the m3u8 and the path to the player).

ffmpeg -i "http://server1/ch-01.m3u8" -q:v 0 -bsf h264_mp4toannexb -f mpegts - | "/Applications/VLC.app/Contents/MacOS/VLC" - && exit

Koze
01-18-2016, 02:48 PM
I am trying to stream above link within livestreamer with following command:
root@ghjo:~# livestreamer --yes-run-as-root "hls://http://inea.live.e238-po.insyscd.net/travelchannel.smil/chunklist_b2400000.m3u8" best --player-external-http-port 4819


and plan was to open another terminal later with following command:
ffmpeg -re -i "http://localhost:4819/" -acodec aac -strict -2 -vcodec copy -b:v 2000k -b:a 128K -preset ultrafast -bufsize 3968k -f flv rtmp://xxxxxxxxxxxxxxxx

But looks I am missing something again as getting following error:
[cli][info] Found matching plugin stream for URL hls://http://inea.live.e238-po.insyscd.net/travelchannel.smil/chunklist_b2400000.m3u8
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
error: The default player (VLC) does not seem to be installed. You must specify the path to a player executable with --player.


My idea was to use livestreamer not VLC. Do I need in this case install VLC too?

Thank you so much for your help

k

stream_monkey
01-18-2016, 03:09 PM
Livestreamer is not a player--it streams to your player of choice (or downloads the file if you prefer it write to disc). I assumed vlc was your player of choice, but if not, then put the path to your player of choice in that ffmpeg command above.

If you are trying to download and save, rather than stream, see previous post re: capture using ffmpeg (or the more involved livestreamer equivalent).

I am surprised to hear that you don't have vlc, honestly.

Koze
01-18-2016, 03:50 PM
Livestreamer is not a player--it streams to your player of choice (or downloads the file if you prefer it write to disc). I assumed vlc was your player of choice, but if not, then put the path to your player of choice in that ffmpeg command above.

If you are trying to download and save, rather than stream, see previous post re: capture using ffmpeg (or the more involved livestreamer equivalent).

I am surprised to hear that you don't have vlc, honestly.

Thank you again,
I would like to re-stream rather than download and save. I want to achieve this on my Linux server.

I do have VLC and using every day on my local windows computer. :)

I am still confuse, so do I need to install VLC on my Debian?

Is any way you change my commands example to be working in my case?
Thank you in advance,

K