我是iOS开发人员,我试图在终端中使用HLS剪切MP4文件以生成M3u8,但切割是失败的结果。
AppledeMacBook-Pro:stream apple$ mediafilesegmenter -t 100 -f hls3/ 2.mp4
Oct 16 2014 20:39:53.027: Using floating point is not backward compatible to iOS 4.1 or earlier devices
Oct 16 2014 20:39:53.029: Processing file /Library/WebServer/Documents/stream/2.mp4
Oct 16 2014 20:39:53.234: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence0.ts
Oct 16 2014 20:39:53.234: segment bitrate 410.82 kbits/sec is new max
Oct 16 2014 20:39:53.362: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence1.ts
Oct 16 2014 20:39:53.362: segment bitrate 464.69 kbits/sec is new max
Oct 16 2014 20:39:53.492: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence2.ts
Oct 16 2014 20:39:53.621: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence3.ts
Oct 16 2014 20:39:53.741: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence4.ts
Oct 16 2014 20:39:53.880: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence5.ts
Oct 16 2014 20:39:54.016: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence6.ts
Oct 16 2014 20:39:54.075: Error with H.264 frame - offset 4 + nal length 2147642384 greater than frame size 105
Oct 16 2014 20:39:54.075: couldn't transform frame
Oct 16 2014 20:39:54.079: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence7.ts
Oct 16 2014 20:39:54.079: average bit rate is 393.16 kbits/sec - max file bit rate is 464.69 kbits/sec
查看
中的提示问题Oct 16 2014 20:39:54.075: Error with H.264 frame - offset 4 + nal length 2147642384 greater than frame size 105
Oct 16 2014 20:39:54.075: couldn't transform frame
Oct 16 2014 20:39:54.079: Finalized /Library/WebServer/Documents/stream/hls3/fileSequence7.ts
Oct 16 2014 20:39:54.079: average bit rate is 393.16 kbits/sec - max file bit rate is 464.69 kbits/sec
为什么会出现这样的情况,如何解决呢?谢谢!