mkvserver_mk2
mkvserver_mk2 copied to clipboard
Playback on VLC won't work for some sources.
I have tried with a local mkv and it work great. I have tried with a remote mkv (http://****.mkv) and it work great.
I have an online video stream that seems to start ok but playback never starts in VLC (it also never seems to time out).
Here is the start up of it:
Here is the FFMPEG output:
Duration: N/A, start: 20541.882667, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 66 kb/s
Any ideas how to fix this or why it won't work?
Hey, sorry for the late reply. Judging from the information you provided I think the stream may not be demuxed correctly. You could try to work around that with using named pipes and ffmpeg to remux the stream to matroska, write it to the named pipe and read that with mkvserver. I would also encourage you to try https://github.com/klaxa/ffserver . Maybe it handles this particular stream better (although I don't think I changed the input reading code). Maybe it also needs a named pipe workaround.
Further on that, simply create a named pipe with mkfifo stream.mkv
then run ffmpeg -i <input> -f matroska pipe:1 > stream.mkv
and run mkvserver or ffserver with stream.mkv as an input file.