microsoft / FFmpegInterop

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

MPEG2 TS Live Stream Problem #61

Open nograx opened 8 years ago

nograx commented 8 years ago

Hi there,

I'm trying to use FFmpegInterop in an application to stream MPEG2 TS Video from a set top box. With master branch I was unable to get video to work (audio was fine). (Note: I can see that the live-stream start time is very high (sometimes about 15 hours...).

After using the fix branch-mediaStartTimeFix from reego-fr the Stream plays well, but sometimes when there is a "hang" in the Stream audio will break. Video will continue to play, but audio is not available. If i pause and resume the playback, audio is there, but will break again after 1-2secs.

reego-fr commented 8 years ago

Hi, the current code can be improved to better handle some situations in ts streams but probably can't do anything to fix decoding issues that may come from the Media Foundation decoder. The best is to get these issues show up in a stream dump and see what's wrong. How often will your streams fail ? If it only fails during live streaming then the issue must come from the network buffering.