microsoft / FFmpegInterop

This is a code sample to make it easier to use FFmpeg in Windows applications.
Apache License 2.0
1.31k stars 314 forks source link

Stream from Enigma2 #59

Open PeterHarm opened 8 years ago

PeterHarm commented 8 years ago

Hi all,

I would like to play a http stream from Enigma2 box. I put stream url "http://192.168.2.214:8001/1:0:1:13B4:C95:3:EB0000:0:0:0:" into player, but I cannot play it with sample provided with tffmpeginterop package. I can play it with ffplay.exe and also store into file with ffmpeg.exe. What options shall I set to play these streams with FFMpegInterop?

Thanks, Peter

timotiusmargo commented 8 years ago

Hi Peter. What kind of video stream are you trying to play? Is it using RTSP protocol? Below is the configuration I used to enable an RTSP video stream in the past.

options->Insert("rtsp_flags", "prefer_tcp");

Snippet can be seen in the file below: https://github.com/Microsoft/FFmpegInterop/blob/master/Samples/SamplesWin10/MediaPlayerCPP/MainPage.xaml.cpp

Other possible options can be found on in https://www.ffmpeg.org/ffmpeg-protocols.html

Can you please give it a try?

PeterHarm commented 8 years ago

Hi Timotius,

thanks, for your replay. To be honest I'm not sure that this is rtsp stream.The schema in uri is http, and I'm not sure what kind of protocol is encapsulated there an i also cannot find any detailed description, whether streaming method is HLS, DASH, or something else. What I know is, that the video codec is h.264, or mpeg2video (depends on selected channel from Enigma2 satelite receiver).

I expected, that if ffmpeg, ffplay and ffprobe can read, than I'll be able to simply use also FFMpegInterop library.

Now. I'm trying to find an analyzer of stream to identify the source.

With best regards, Peter

On Mon, Feb 8, 2016 at 9:52 PM, Timotius Margo notifications@github.com wrote:

Hi Peter. What kind of video stream are you trying to play? Is it using RTSP protocol? Below is the configuration I used to enable an RTSP video stream in the past.

options->Insert("rtsp_flags", "prefer_tcp");

Snippet can be seen in the file below:

https://github.com/Microsoft/FFmpegInterop/blob/master/Samples/SamplesWin10/MediaPlayerCPP/MainPage.xaml.cpp

Other possible options can be found on in https://www.ffmpeg.org/ffmpeg-protocols.html

Can you please give it a try?

— Reply to this email directly or view it on GitHub https://github.com/Microsoft/FFmpegInterop/issues/59#issuecomment-181532046 .