i4tv / gstreamill

encoder with hls output based on gstreamer.
GNU General Public License v3.0
245 stars 85 forks source link

play m3u8 with vlc would break off frequently #22

Closed zhangping closed 8 years ago

zhangping commented 10 years ago

image

image

zhangping commented 9 years ago

vlc log: EOF???

access_http debug: http: server='192.168.7.40' port=20119 file='/live/CCTV-7/encoder/1/5373929812440.ts'
main debug: net: connecting to 192.168.7.40 port 20119
main debug: connection succeeded (socket = 2472)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: gstreamill-0.5.3
access_http debug: Content-Type: video/mpeg
access_http debug: this frame size=160564
access_http debug: Connection: Close
main debug: using access module "access_http"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: removing module "access_http"
httplive debug: downloaded segment 1706 from stream 0
main debug: creating access 'http' location='192.168.7.40:20119/live/CCTV-7/encoder/1/5376929814294.ts', path='\\192.168.7.40:20119\live\CCTV-7\encoder\1\5376929814294.ts'
main debug: looking for access module matching "http": 20 candidates
access_http debug: querying proxy for http://192.168.7.40:20119/live/CCTV-7/encoder/1/5376929814294.ts
access_http debug: no proxy
access_http debug: http: server='192.168.7.40' port=20119 file='/live/CCTV-7/encoder/1/5376929814294.ts'
main debug: net: connecting to 192.168.7.40 port 20119
main debug: connection succeeded (socket = 2480)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: gstreamill-0.5.3
access_http debug: Content-Type: video/mpeg
access_http debug: this frame size=275244
access_http debug: Connection: Close
main debug: using access module "access_http"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: removing module "access_http"
httplive debug: downloaded segment 1707 from stream 0
main debug: creating access 'http' location='192.168.7.40:20119/live/CCTV-7/encoder/1/5379929804410.ts', path='\\192.168.7.40:20119\live\CCTV-7\encoder\1\5379929804410.ts'
main debug: looking for access module matching "http": 20 candidates
access_http debug: querying proxy for http://192.168.7.40:20119/live/CCTV-7/encoder/1/5379929804410.ts
access_http debug: no proxy
access_http debug: http: server='192.168.7.40' port=20119 file='/live/CCTV-7/encoder/1/5379929804410.ts'
main debug: net: connecting to 192.168.7.40 port 20119
main debug: connection succeeded (socket = 1204)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: gstreamill-0.5.3
access_http debug: Content-Type: video/mpeg
access_http debug: this frame size=392368
access_http debug: Connection: Close
main debug: using access module "access_http"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: removing module "access_http"
httplive debug: downloaded segment 1708 from stream 0
httplive debug: playing segment 1706 from stream 0
ts warning: lost synchro
ts debug: skipping 12 bytes of garbage
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=10 pid_pcr=65
ts debug: * descriptor : registration HDMV
ts debug: * descriptor : unknown (0x88)
ts debug: * es pid=65 type=27 dr->i_tag=0x5
ts debug: * es pid=65 type=27 fcc=h264
ts error: MPEG-4 descriptor not found
ts debug: * es pid=66 type=15 fcc=mp4a
ts debug: PATCallBack called
httplive debug: playing segment 1707 from stream 0
ts warning: lost synchro
ts debug: skipping 12 bytes of garbage
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=11 pid_pcr=65
ts debug: * descriptor : registration HDMV
ts debug: * descriptor : unknown (0x88)
ts debug: * es pid=65 type=27 dr->i_tag=0x5
ts debug: * es pid=65 type=27 fcc=h264
ts error: MPEG-4 descriptor not found
ts debug: * es pid=66 type=15 fcc=mp4a
ts debug: PATCallBack called
httplive warning: playback in danger of stalling
httplive debug: playing segment 1708 from stream 0
ts warning: lost synchro
ts debug: skipping 12 bytes of garbage
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=12 pid_pcr=65
ts debug: * descriptor : registration HDMV
ts debug: * descriptor : unknown (0x88)
ts debug: * es pid=65 type=27 dr->i_tag=0x5
ts debug: * es pid=65 type=27 fcc=h264
ts error: MPEG-4 descriptor not found
ts debug: * es pid=66 type=15 fcc=mp4a
ts debug: PATCallBack called
httplive debug: Reloading HLS live meta playlist
main debug: creating access 'http' location='192.168.7.40:20119/live/CCTV-7/encoder/1/playlist.m3u8', path='\\192.168.7.40:20119\live\CCTV-7\encoder\1\playlist.m3u8'
main debug: looking for access module matching "http": 20 candidates
access_http debug: querying proxy for http://192.168.7.40:20119/live/CCTV-7/encoder/1/playlist.m3u8
access_http debug: no proxy
access_http debug: http: server='192.168.7.40' port=20119 file='/live/CCTV-7/encoder/1/playlist.m3u8'
main debug: net: connecting to 192.168.7.40 port 20119
main debug: connection succeeded (socket = 2472)
httplive warning: playback in danger of stalling
ts warning: lost synchro
httplive error: segment 89 should have been available (stream 0)
ts debug: eof ?
main debug: EOF reached
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: gstreamill-0.5.3
access_http debug: Content-Type: application/vnd.apple.mpegurl
access_http debug: this frame size=409
access_http debug: Connection: Close
main debug: using access module "access_http"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 409 bytes in 0s - 399414 KiB/s
main debug: removing module "access_http"
httplive debug: parse_M3U8 #EXTM3U #EXT-X-VERSION:3 #EXT-X-ALLOW-CACHE:NO #EXT-X-MEDIA-SEQUENCE:1703 #EXT-X-TARGETDURATION:3 #EXTINF:3.00, 5364929855596.ts #EXTINF:3.00, 5367929839558.ts #EXTINF:3.00, 5370929830216.ts #EXTINF:3.00, 5373929812440.ts #EXTINF:3.00, 5376929814294.ts #EXTINF:3.00, 5379929804410.ts #EXTINF:3.00, 5382929802691.ts #EXTINF:3.00, 5385929794975.ts #EXTINF:3.00, 5388929780001.ts #EXTINF:3.00, 5391929778488.ts 
httplive debug: Live Playlist HLS protocol version: 3
httplive debug: updating hls stream (program-id=0, bandwidth=1028266) has 0 segments
httplive debug: updating hls stream (program-id=0, bandwidth=0) has 10 segments
httplive debug: - segment 1709 appended
httplive debug: - segment 1710 appended
httplive debug: - segment 1711 appended
httplive debug: - segment 1712 appended
main debug: creating access 'http' location='192.168.7.40:20119/live/CCTV-7/encoder/1/5382929802691.ts', path='\\192.168.7.40:20119\live\CCTV-7\encoder\1\5382929802691.ts'
main debug: looking for access module matching "http": 20 candidates
access_http debug: querying proxy for http://192.168.7.40:20119/live/CCTV-7/encoder/1/5382929802691.ts
access_http debug: no proxy
access_http debug: http: server='192.168.7.40' port=20119 file='/live/CCTV-7/encoder/1/5382929802691.ts'
main debug: net: connecting to 192.168.7.40 port 20119
main debug: connection succeeded (socket = 2480)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: gstreamill-0.5.3
access_http debug: Content-Type: video/mpeg
access_http debug: this frame size=233696
access_http debug: Connection: Close
main debug: using access module "access_http"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: removing module "access_http"
httplive debug: downloaded segment 1709 from stream 0
main debug: creating access 'http' location='192.168.7.40:20119/live/CCTV-7/encoder/1/5385929794975.ts', path='\\192.168.7.40:20119\live\CCTV-7\encoder\1\5385929794975.ts'
main debug: looking for access module matching "http": 20 candidates
access_http debug: querying proxy for http://192.168.7.40:20119/live/CCTV-7/encoder/1/5385929794975.ts
access_http debug: no proxy
access_http debug: http: server='192.168.7.40' port=20119 file='/live/CCTV-7/encoder/1/5385929794975.ts'
main debug: net: connecting to 192.168.7.40 port 20119
main debug: connection succeeded (socket = 1204)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: gstreamill-0.5.3
access_http debug: Content-Type: video/mpeg
access_http debug: this frame size=248736
access_http debug: Connection: Close
main debug: using access module "access_http"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: removing module "access_http"
httplive debug: downloaded segment 1710 from stream 0
main debug: creating access 'http' location='192.168.7.40:20119/live/CCTV-7/encoder/1/5388929780001.ts', path='\\192.168.7.40:20119\live\CCTV-7\encoder\1\5388929780001.ts'
main debug: looking for access module matching "http": 20 candidates
access_http debug: querying proxy for http://192.168.7.40:20119/live/CCTV-7/encoder/1/5388929780001.ts
access_http debug: no proxy
access_http debug: http: server='192.168.7.40' port=20119 file='/live/CCTV-7/encoder/1/5388929780001.ts'
main debug: net: connecting to 192.168.7.40 port 20119
main debug: connection succeeded (socket = 2472)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: gstreamill-0.5.3
access_http debug: Content-Type: video/mpeg
access_http debug: this frame size=339164
access_http debug: Connection: Close
main debug: using access module "access_http"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: removing module "access_http"
httplive debug: downloaded segment 1711 from stream 0
main debug: creating access 'http' location='192.168.7.40:20119/live/CCTV-7/encoder/1/5391929778488.ts', path='\\192.168.7.40:20119\live\CCTV-7\encoder\1\5391929778488.ts'
main debug: looking for access module matching "http": 20 candidates
access_http debug: querying proxy for http://192.168.7.40:20119/live/CCTV-7/encoder/1/5391929778488.ts
access_http debug: no proxy
access_http debug: http: server='192.168.7.40' port=20119 file='/live/CCTV-7/encoder/1/5391929778488.ts'
main debug: net: connecting to 192.168.7.40 port 20119
main debug: connection succeeded (socket = 2480)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: gstreamill-0.5.3
access_http debug: Content-Type: video/mpeg
access_http debug: this frame size=280508
access_http debug: Connection: Close
main debug: using access module "access_http"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: waiting decoder fifos to empty
main debug: removing module "access_http"
httplive debug: downloaded segment 1712 from stream 0
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: finished input
main debug: object waitpipe triggered
main debug: removing module "avcodec"
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped
main debug: killing decoder fourcc `h264', 0 PES in FIFO
main debug: saving a free vout
main debug: reusing provided vout
main debug: removing module "packetizer_h264"
main debug: removing module "faad"
main debug: killing decoder fourcc `mp4a', 0 PES in FIFO
main debug: removing module "samplerate"
main debug: removing module "scaletempo"
directsound debug: closing audio device
main debug: removing module "float_mixer"
main debug: keeping audio output
main debug: removing module "packetizer_mpeg4audio"
main debug: removing module "ts"
ts debug: pid list:
ts debug: - pid[0] seen
ts debug: - pid[32] seen
ts debug: - pid[65] seen
main debug: Program doesn't contain anymore ES
ts debug: - pid[66] seen
ts debug: - pid[8191] seen
main debug: removing module "record"
main debug: removing module "httplive"
main error: Failed to resize display
main debug: removing module "access_http"
main debug: dead input
main debug: changing item without a request (current 0/1)
main debug: nothing to play
main debug: destroying useless vout
main debug: removing module "blend"
main debug: removing module "directdraw"
qt4 debug: IM: Deleting the input
directdraw debug: DirectXEventThread terminating
directdraw debug: DirectXCloseWindow
directdraw debug: WinProc WM_DESTROY
qt4 debug: releasing video...
qt4 debug: Video is not needed anymore
main debug: removing module "freetype"
main debug: removing module "yuvp"
main debug: removing module "swscale"
zhangping commented 9 years ago
-rw-r--r-- 1 root root       372816 Nov 26 18:04 1416996255085952_155971_3000000000.ts
-rw-r--r-- 1 root root       313784 Nov 26 18:04 1416996258080682_155972_3000000000.ts
-rw-r--r-- 1 root root       334276 Nov 26 18:04 1416996261138653_155973_3000000000.ts
-rw-r--r-- 1 root root       378456 Nov 26 18:04 1416996264090242_155974_3000000000.ts
-rw-r--r-- 1 root root       406092 Nov 26 18:04 1416996267256466_155975_3000000000.ts
-rw-r--r-- 1 root root       418688 Nov 26 18:04 1416996270396280_155976_3000000000.ts
-rw-r--r-- 1 root root       506860 Nov 26 18:04 1416996273428049_155977_3000000000.ts
-rw-r--r-- 1 root root       469824 Nov 26 18:04 1416996276780426_155978_3000000000.ts
-rw-r--r-- 1 root root       525660 Nov 26 18:04 1416996279705502_155979_3000000000.ts
-rw-r--r-- 1 root root       309460 Nov 26 18:04 1416996282126359_155980_3000000000.ts
-rw-r--r-- 1 root root       337472 Nov 26 18:04 1416996285113952_155981_3000000000.ts
-rw-r--r-- 1 root root       304572 Nov 26 18:04 1416996288102665_155982_3000000000.ts
-rw-r--r-- 1 root root       346308 Nov 26 18:04 1416996291056018_155983_3000000000.ts
-rw-r--r-- 1 root root       338224 Nov 26 18:04 1416996294095548_155984_3000000000.ts
-rw-r--r-- 1 root root       328260 Nov 26 18:04 1416996297117113_155985_3000000000.ts
-rw-r--r-- 1 root root       334088 Nov 26 18:05 1416996300046973_155986_3000000000.ts
-rw-r--r-- 1 root root       344992 Nov 26 18:05 1416996303190742_155987_3000000000.ts
-rw-r--r-- 1 root root       395000 Nov 26 18:05 1416996306127040_155988_3000000000.ts
-rw-r--r-- 1 root root       486744 Nov 26 18:05 1416996309206115_155989_3000000000.ts
-rw-r--r-- 1 root root       420944 Nov 26 18:05 1416996312243832_155990_3000000000.ts
-rw-r--r-- 1 root root       495016 Nov 26 18:05 1416996315222482_155991_3000000000.ts
-rw-r--r-- 1 root root       495768 Nov 26 18:05 1416996318441423_155992_3000000000.ts
-rw-r--r-- 1 root root       380712 Nov 26 18:05 1416996321626118_155993_3000000000.ts
-rw-r--r-- 1 root root       367928 Nov 26 18:05 1416996324406498_155994_3000000000.ts
-rw-r--r-- 1 root root       340668 Nov 26 18:05 1416996327109224_155995_3000000000.ts
-rw-r--r-- 1 root root       383532 Nov 26 18:05 1416996330217724_155996_3000000000.ts
-rw-r--r-- 1 root root       491820 Nov 26 18:05 1416996333249999_155997_3000000000.ts
-rw-r--r-- 1 root root       439556 Nov 26 18:05 1416996336603706_155998_3000000000.ts
-rw-r--r-- 1 root root       523404 Nov 26 18:05 1416996339534913_155999_3000000000.ts
-rw-r--r-- 1 root root       521524 Nov 26 18:05 1416996342662477_156000_3000000000.ts
-rw-r--r-- 1 root root       513440 Nov 26 18:05 1416996345929291_156001_3000000000.ts
-rw-r--r-- 1 root root       515132 Nov 26 18:05 1416996349354967_156002_3000000000.ts
-rw-r--r-- 1 root root       543708 Nov 26 18:05 1416996352424931_156003_3000000000.ts
-rw-r--r-- 1 root root       519080 Nov 26 18:05 1416996355972229_156004_3000000000.ts
-rw-r--r-- 1 root root       524908 Nov 26 18:05 1416996359509731_156005_3000000000.ts
-rw-r--r-- 1 root root       521148 Nov 26 18:06 1416996363403028_156006_3000000000.ts
-rw-r--r-- 1 root root       515884 Nov 26 18:06 1416996367045317_156007_3000000000.ts
-rw-r--r-- 1 root root       526976 Nov 26 18:06 1416996370897185_156008_3000000000.ts
-rw-r--r-- 1 root root       514944 Nov 26 18:06 1416996374853181_156009_3000000000.ts
-rw-r--r-- 1 root root       491444 Nov 26 18:06 1416996378049050_156010_3000000000.ts
-rw-r--r-- 1 root root       502348 Nov 26 18:06 1416996381122205_156011_3000000000.ts
-rw-r--r-- 1 root root       517764 Nov 26 18:06 1416996384396322_156012_3000000000.ts
-rw-r--r-- 1 root root       372252 Nov 26 18:06 1416996387545014_156013_3000000000.ts
-rw-r--r-- 1 root root       429028 Nov 26 18:06 1416996389135217_156014_3000000000.ts
-rw-r--r-- 1 root root       306452 Nov 26 18:06 1416996391911463_156015_3000000000.ts
-rw-r--r-- 1 root root       409100 Nov 26 18:06 1416996394345110_156016_3000000000.ts
-rw-r--r-- 1 root root       438240 Nov 26 18:06 1416996396608516_156017_3000000000.ts
-rw-r--r-- 1 root root       465124 Nov 26 18:06 1416996399307444_156018_3000000000.ts
-rw-r--r-- 1 root root       420944 Nov 26 18:06 1416996402148916_156019_3000000000.ts
-rw-r--r-- 1 root root       504980 Nov 26 18:06 1416996404776165_156020_3000000000.ts
-rw-r--r-- 1 root root       518516 Nov 26 18:06 1416996407846688_156021_3000000000.ts
-rw-r--r-- 1 root root       533368 Nov 26 18:06 1416996410766323_156022_3000000000.ts
-rw-r--r-- 1 root root       360408 Nov 26 18:06 1416996413527664_156023_3000000000.ts
-rw-r--r-- 1 root root       427336 Nov 26 18:06 1416996416697929_156024_3000000000.ts
-rw-r--r-- 1 root root       461364 Nov 26 18:06 1416996419408609_156025_3000000000.ts
-rw-r--r-- 1 root root       464560 Nov 26 18:07 1416996422311759_156026_3000000000.ts
-rw-r--r-- 1 root root       440308 Nov 26 18:07 1416996425103530_156027_3000000000.ts
-rw-r--r-- 1 root root       520396 Nov 26 18:07 1416996428051146_156028_3000000000.ts
-rw-r--r-- 1 root root       479976 Nov 26 18:07 1416996430685713_156029_3000000000.ts
-rw-r--r-- 1 root root       468696 Nov 26 18:07 1416996432313554_156030_3000000000.ts
-rw-r--r-- 1 root root       522276 Nov 26 18:07 1416996435285472_156031_3000000000.ts
-rw-r--r-- 1 root root       372440 Nov 26 18:07 1416996438157833_156032_3000000000.ts
-rw-r--r-- 1 root root       448016 Nov 26 18:07 1416996441200876_156033_3000000000.ts
-rw-r--r-- 1 root root       421320 Nov 26 18:07 1416996444167082_156034_3000000000.ts
-rw-r--r-- 1 root root       378832 Nov 26 18:07 1416996447123147_156035_3000000000.ts
zhangping commented 9 years ago

Jitter cause playlist refreshing is not smoothly, VLC get same playlist continue and estimate it's EOF.