VLC is unable to stream consistently in mkv format with HTTP
Posted: 04 Apr 2016 11:09
When we try to stream video in mkv format with HTTP streaming, sometimes detecting proper 'mkv' demux format at client and some times other formats like 'ps', 'mp3' so in this case video is not playing. We tried with both encoders x264 and x265. flv format is fine but we want HTTP stream in mkv format, any ideas?
command: :sout=#transcode{vcodec=h264,vb=1500,venc=x264{preset=ultrafast},scale=Auto,acodec=none}:duplicate{dst=http{mux=mkv,dst=:8080/},dst=display} :sout-all :sout-keep
error message at client:
[00007f549c000ec8] core access debug: using access module "access"
[00007f549c001de8] core stream debug: looking for stream_filter module matching "cache_block": 11 candidates
[00007f549c001de8] cache_block stream debug: Using block method for AStream*
[00007f549c001de8] cache_block stream debug: starting pre-buffering
[0000000001e73838] qt interface debug: IM: Setting an input
[00007f549c001de8] cache_block stream debug: received first data after 5441 ms
[00007f549c001de8] cache_block stream debug: prebuffering done 2048 bytes in 5s - 0 KiB/s
[00007f549c001de8] core stream debug: using stream_filter module "cache_block"
[00007f549c001ba8] core stream debug: looking for stream_filter module matching "any": 11 candidates
[00007f549c001ba8] core stream debug: no stream_filter modules matched
[00007f549c001ba8] core stream debug: looking for stream_filter module matching "record": 11 candidates
[00007f549c001ba8] core stream debug: using stream_filter module "record"
[00007f549c000d58] core input source debug: creating demux: access='http' demux='any' location='192.168.1.4:8080/' file='(null)'
[00007f549c003158] core demux debug: looking for demux module matching "any": 58 candidates
[00007f549c00c7c8] core xml reader debug: looking for xml reader module matching "any": 1 candidates
[00007f549c00c7c8] core xml reader debug: using xml reader module "xml"
[00007f549c003158] avformat demux debug: trying url: http://192.168.1.4:8080/
[00007f549c003158] avformat demux debug: CPU flags: 0x000fd3db
[00007f549c003158] avformat demux debug: couldn't guess format
[00007f549c01be18] core xml debug: looking for xml module matching "any": 1 candidates
[00007f549c01be18] core xml debug: using xml module "xml"
[00007f549c01bf28] core xml reader debug: looking for xml reader module matching "any": 1 candidates
[00007f549c01bf28] core xml reader debug: using xml reader module "xml"
[00007f549c01be18] core xml debug: removing module "xml"
[00007f549c003158] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[00007f549c003158] core demux debug: using demux module "ps"
[00007f549c01c2e8] core demux meta debug: looking for meta reader module matching "any": 0 candidates
[00007f549c01c2e8] core demux meta debug: no meta reader modules
[00007f54980009d8] core input debug: `http://192.168.1.4:8080/' successfully opened
[00007f549c003158] ps demux warning: garbage at input, trying to resync...
[00007f549c003158] ps demux warning: found sync code
[00007f54980009d8] core input debug: selecting program id=0
[00007f549c5aca18] core packetizer debug: looking for packetizer module matching "any": 20 candidates
[00007f549c5aca18] core packetizer debug: using packetizer module "mpeg_audio"
[00007f549c021be8] core decoder debug: looking for decoder module matching "any": 31 candidates
[00007f549c021be8] avcodec decoder debug: CPU flags: 0x000fd3db
[00007f549c021be8] avcodec decoder debug: codec (mp2) started
[00007f549c021be8] core decoder debug: using decoder module "avcodec"
from above message,
core demux debug: using demux module "ps"
ps demux warning: garbage at input, trying to resync...
command: :sout=#transcode{vcodec=h264,vb=1500,venc=x264{preset=ultrafast},scale=Auto,acodec=none}:duplicate{dst=http{mux=mkv,dst=:8080/},dst=display} :sout-all :sout-keep
error message at client:
[00007f549c000ec8] core access debug: using access module "access"
[00007f549c001de8] core stream debug: looking for stream_filter module matching "cache_block": 11 candidates
[00007f549c001de8] cache_block stream debug: Using block method for AStream*
[00007f549c001de8] cache_block stream debug: starting pre-buffering
[0000000001e73838] qt interface debug: IM: Setting an input
[00007f549c001de8] cache_block stream debug: received first data after 5441 ms
[00007f549c001de8] cache_block stream debug: prebuffering done 2048 bytes in 5s - 0 KiB/s
[00007f549c001de8] core stream debug: using stream_filter module "cache_block"
[00007f549c001ba8] core stream debug: looking for stream_filter module matching "any": 11 candidates
[00007f549c001ba8] core stream debug: no stream_filter modules matched
[00007f549c001ba8] core stream debug: looking for stream_filter module matching "record": 11 candidates
[00007f549c001ba8] core stream debug: using stream_filter module "record"
[00007f549c000d58] core input source debug: creating demux: access='http' demux='any' location='192.168.1.4:8080/' file='(null)'
[00007f549c003158] core demux debug: looking for demux module matching "any": 58 candidates
[00007f549c00c7c8] core xml reader debug: looking for xml reader module matching "any": 1 candidates
[00007f549c00c7c8] core xml reader debug: using xml reader module "xml"
[00007f549c003158] avformat demux debug: trying url: http://192.168.1.4:8080/
[00007f549c003158] avformat demux debug: CPU flags: 0x000fd3db
[00007f549c003158] avformat demux debug: couldn't guess format
[00007f549c01be18] core xml debug: looking for xml module matching "any": 1 candidates
[00007f549c01be18] core xml debug: using xml module "xml"
[00007f549c01bf28] core xml reader debug: looking for xml reader module matching "any": 1 candidates
[00007f549c01bf28] core xml reader debug: using xml reader module "xml"
[00007f549c01be18] core xml debug: removing module "xml"
[00007f549c003158] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[00007f549c003158] core demux debug: using demux module "ps"
[00007f549c01c2e8] core demux meta debug: looking for meta reader module matching "any": 0 candidates
[00007f549c01c2e8] core demux meta debug: no meta reader modules
[00007f54980009d8] core input debug: `http://192.168.1.4:8080/' successfully opened
[00007f549c003158] ps demux warning: garbage at input, trying to resync...
[00007f549c003158] ps demux warning: found sync code
[00007f54980009d8] core input debug: selecting program id=0
[00007f549c5aca18] core packetizer debug: looking for packetizer module matching "any": 20 candidates
[00007f549c5aca18] core packetizer debug: using packetizer module "mpeg_audio"
[00007f549c021be8] core decoder debug: looking for decoder module matching "any": 31 candidates
[00007f549c021be8] avcodec decoder debug: CPU flags: 0x000fd3db
[00007f549c021be8] avcodec decoder debug: codec (mp2) started
[00007f549c021be8] core decoder debug: using decoder module "avcodec"
from above message,
core demux debug: using demux module "ps"
ps demux warning: garbage at input, trying to resync...