Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 01-17-2016, 05:21 PM
Koze Koze is offline
Member
 
Join Date: Sep 2015
Posts: 35
Koze is on a distinguished road
Default

re-streaming source - almost give up


After spending more than week with testing almost give up.
Cannot find proper command for ffmpeg to restream following stream:
Code:
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:

Code:
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
Reply With Quote
  #2  
Old 01-17-2016, 05:51 PM
stream_monkey stream_monkey is offline
Member
 
Join Date: Dec 2015
Posts: 72
stream_monkey is on a distinguished road
Default

Re: re-streaming source - almost give up


Stream via livestreamer:

Code:
livestreamer "hls://http://inea.live.e238-po.insyscd.net/travelchannel.smil/chunklist_b2400000.m3u8" best
or, to capture using ffmpeg:

Code:
ffmpeg -i  "http://inea.live.e238-po.insyscd.net/travelchannel.smil/chunklist_b2400000.m3u8" -c copy travel.ts
Reply With Quote
  #3  
Old 01-17-2016, 07:06 PM
Koze Koze is offline
Member
 
Join Date: Sep 2015
Posts: 35
Koze is on a distinguished road
Default

Re: re-streaming source - almost give up


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
Reply With Quote
  #4  
Old 01-17-2016, 07:25 PM
stream_monkey stream_monkey is offline
Member
 
Join Date: Dec 2015
Posts: 72
stream_monkey is on a distinguished road
Default

Re: re-streaming source - almost give up


Quote:
Originally Posted by Koze View Post
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/liv...er-t19466.html
Reply With Quote
  #5  
Old 01-17-2016, 09:14 PM
stream_monkey stream_monkey is offline
Member
 
Join Date: Dec 2015
Posts: 72
stream_monkey is on a distinguished road
Default

Re: re-streaming source - almost give up


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).

Code:
ffmpeg -i "http://server1/ch-01.m3u8" -q:v 0 -bsf h264_mp4toannexb -f mpegts - | "/Applications/VLC.app/Contents/MacOS/VLC" - && exit
Reply With Quote
  #6  
Old 01-18-2016, 03:48 PM
Koze Koze is offline
Member
 
Join Date: Sep 2015
Posts: 35
Koze is on a distinguished road
Default

Re: re-streaming source - almost give up


I am trying to stream above link within livestreamer with following command:
Code:
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:
Code:
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:
Quote:
[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
Reply With Quote
  #7  
Old 01-18-2016, 04:09 PM
stream_monkey stream_monkey is offline
Member
 
Join Date: Dec 2015
Posts: 72
stream_monkey is on a distinguished road
Default

Re: re-streaming source - almost give up


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.
Reply With Quote
  #8  
Old 01-18-2016, 04:50 PM
Koze Koze is offline
Member
 
Join Date: Sep 2015
Posts: 35
Koze is on a distinguished road
Default

Re: re-streaming source - almost give up


Quote:
Originally Posted by stream_monkey View Post
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
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:49 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons