[FFmpeg-trac] #7341(undetermined:new): hls mpegts segmentation is not consistent all the way through
FFmpeg
trac at avcodec.org
Wed Aug 1 18:07:31 EEST 2018
#7341: hls mpegts segmentation is not consistent all the way through
-------------------------------------+-------------------------------------
Reporter: ronak2121 | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Try to generate an HLS stream using an mpegts container using the
following command:
~/bin/ffmpeg -i test.mp4 -codec copy -hls_time 0.975238095238095
-hls_segment_type mpegts -hls_flags single_file -hls_playlist_type vod
test.m3u8
or
~/bin/ffmpeg -i test.mp4 -codec copy -hls_time 0.975238095238095
-hls_segment_type mpegts -hls_playlist_type vod test.m3u8
Open the m3u8 file, and see that the segmentation is all over the place,
sometimes 1 AAC frame less, or a few AAC frames larger than
0.975238095238095 (21 AAC frames at 22050kHz or 42 frames at 44100kHz).
How to reproduce:
{{{
-bash-4.1$ ~/bin/ffmpeg -i test.mp4 -codec copy -hls_time
0.975238095238095 -hls_segment_type mpegts -hls_flags
single_file+append_list -hls_playlist_type vod test.m3u8
ffmpeg version N-91512-ga5c17cf Copyright (c) 2000-2018 the FFmpeg
developers
built with gcc 4.4.6 (GCC) 20110731 (Red Hat 4.4.6-3)
configuration: --prefix=/home/ronakp/ffmpeg_build --pkg-config-
flags=--static --extra-cflags=-I/home/ronakp/ffmpeg_build/include --extra-
ldflags=-L/home/ronakp/ffmpeg_build/lib --extra-libs=-lpthread --extra-
libs=-lm --bindir=/home/ronakp/bin --enable-gpl --enable-libfdk_aac
--enable-libmp3lame --enable-libopus --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 21.106 / 58. 21.106
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2013-12-08T19:51:00.000000Z
Duration: 00:11:24.11, start: 0.000000, bitrate: 31 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono,
fltp, 30 kb/s (default)
Metadata:
creation_time : 2013-12-08T19:51:00.000000Z
handler_name : GPAC ISO Audio Handler
[hls @ 0x22f4200] Opening 'test.ts' for writing
[mpegts @ 0x22e4f00] frame size not set
Output #0, hls, to 'test.m3u8':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
encoder : Lavf58.17.101
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono,
fltp, 30 kb/s (default)
Metadata:
creation_time : 2013-12-08T19:51:00.000000Z
handler_name : GPAC ISO Audio Handler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=N/A time=00:11:24.05 bitrate=N/A speed=1.06e+04x
video:0kB audio:2572kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7341>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list