flv 格式有什么要求么
推送了一个flv 文件 然后报了一堆错 错误信息如下:
2018/10/12 16:01:43 source.go:141: no support video codec 2018/10/12 16:01:43 source.go:141: no support audio codec 2018/10/12 16:01:43 stream.go:207: [<key: live/sample, URL: rtmp://localhost:1935/live/sample, UID: 3Ktpgw51Tc6vyR0Z, Inter: false>] publisher closed 2018/10/12 16:01:43 source.go:170: hls source closed: <key: live/sample, URL: rtmp://localhost:1935/live/sample, UID: 3Ktpgw51Tc6vyR0Z, Inter: true> 2018/10/12 16:01:43 stream.go:216: [<key: live/sample, URL: rtmp://localhost:1935/live/sample, UID: 3Ktpgw51Tc6vyR0Z, Inter: true>] player closed and remove 2018/10/12 16:01:43 source.go:112: [<key: live/sample, URL: rtmp://localhost:1935/live/sample, UID: 3Ktpgw51Tc6vyR0Z, Inter: true>] hls sender stop 2018/10/12 16:01:43 source.go:59: send packet error: closed
推送的flv 信息如下:
Output #0, flv, to 'rtmp://localhost:1935/live/sample':
Metadata:
hasKeyframes : true
hasVideo : true
canSeekToEnd : true
datasize : 2903756
lasttimestamp : 25
audiosize : 416240
hasAudio : true
audiodelay : 0
videosize : 2485656
metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2
lastkeyframetimestamp: 25
hasMetadata : true
hasCuePoints : false
encoder : Lavf56.40.101
Stream #0:0: Video: vp6f ([4][0][0][0] / 0x0004), yuv420p, 500x300, q=2-31, 804 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, 131 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[flv @ 0x1354580] Failed to update header with correct duration.ate= 920.1kbits/s
[flv @ 0x1354580] Failed to update header with correct filesize.
frame= 631 fps= 25 q=-1.0 Lsize= 2841kB time=00:00:25.28 bitrate= 920.3kbits/s
video:2419kB audio:395kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.927317%
Source: gwuhaolin/livego