[FFmpeg-trac] #4971(undetermined:closed): ffmpeg can not slice when i use HLS
FFmpeg
trac at avcodec.org
Thu Oct 29 04:13:39 CET 2015
#4971: ffmpeg can not slice when i use HLS
-------------------------------------+-------------------------------------
Reporter: hiccupzhu | Owner:
Type: defect | Status: closed
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution: invalid
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by hiccupzhu):
Sorry, this is my first commit problem.
This problem reproduce simple, you can download the attachment
"manga.01.ts".
Then run:
{{{
ffmpeg -i ./manga.01.ts -vcodec copy -bsf:v h264_mp4toannexb
-hls_list_size 0 -hls_segment_filename "test_%04d.ts" playlist.m3u8
}}}
You will be found the file can not be sliced. I follow some sourcecode,
found ffmpeg can not set the I-frame infomation(AV_PKT_FLAG_KEY).
Console output:
{{{
ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
configuration: --enable-libfaac --enable-libfdk-aac --enable-libx264
--enable-libx265 --enable-gpl --enable-nonfree --enable-libmp3lame
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mpegts, from '/mnt/hgfs/F/manga.01.ts':
Duration: 00:00:13.40, start: 1.480000, bitrate: 1252 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p, 720x544 [SAR 136:135 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F),
44100 Hz, stereo, fltp, 43 kb/s
Output #0, hls, to 'output/playlist.m3u8':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x544
[SAR 136:135 DAR 4:3], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0:1(und): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz,
stereo, 43 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x3130660] Packet header is not contained in global extradata,
corrupted stream or invalid MP4/AVCC bitstream
frame= 335 fps=0.0 q=-1.0 Lsize=N/A time=00:00:13.32 bitrate=N/A
video:1798kB audio:62kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4971#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list