[FFmpeg-user] hls: hls_list_size breaks program_date_time
Steven Liu
lingjiujianke at gmail.com
Fri Nov 11 04:18:44 EET 2016
2016-11-11 4:56 GMT+08:00 Robert Nagy <ronag89 at gmail.com>:
> If hls_list_size is enabled then the X-DATETIME tags will be wrong when
> segments are started to be removed.
>
> On Thu, Nov 10, 2016 at 4:10 PM, Steven Liu <lingjiujianke at gmail.com>
> wrote:
>
> > 2016-11-10 18:53 GMT+08:00 Robert Nagy <ronag89 at gmail.com>:
> >
> > > If using hls_list_size together with program_date_time the
> > > EXT-X-PROGRAM-DATE-TIME
> > > tags start to become wrong when segments are removed.
> > > initial_prog_date_time should probably be incremented by the duration
> of
> > > the segments removed.
> > >
> >
> > I can not sure if i misunderstand you,
> > Do you mean if use -hls_flags program_date_time, then should not use
> > hls_list_size with value big than 0?
> >
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > > To unsubscribe, visit link above, or email
> > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
localhost:m3u8test liuqi$ ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -c
copy -hls_list_size 4 -hls_flags program_date_time output.m3u8
ffmpeg version N-82274-g34aeb5d Copyright (c) 2000-2016 the FFmpeg
developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --enable-fontconfig --enable-gpl --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libspeex --enable-libx264 --enable-libx265 --enable-version3
--cc='ccache gcc'
libavutil 55. 35.100 / 55. 35.100
libavcodec 57. 66.101 / 57. 66.101
libavformat 57. 57.100 / 57. 57.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 66.100 / 6. 66.100
libswscale 4. 3.100 / 4. 3.100
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/liuqi/Movies/objectC/facebook.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2015-02-02T18:19:19.000000Z
Duration: 00:45:02.06, start: 0.000000, bitrate: 2708 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x714 [SAR 1:1 DAR 640:357], 2576 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
(default)
Metadata:
creation_time : 2015-02-02T18:19:19.000000Z
handler_name : GPAC ISO Video Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 2015-02-02T18:19:23.000000Z
handler_name : GPAC ISO Audio Handler
Output #0, hls, to 'output.m3u8':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
encoder : Lavf57.57.100
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1280x714 [SAR 1:1 DAR 640:357], q=2-31, 2576 kb/s, 25 fps, 25 tbr, 90k tbn,
25 tbc (default)
Metadata:
creation_time : 2015-02-02T18:19:19.000000Z
handler_name : GPAC ISO Video Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, 127 kb/s (default)
Metadata:
creation_time : 2015-02-02T18:19:23.000000Z
handler_name : GPAC ISO Audio Handler
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 457 fps= 24 q=-1.0 Lsize=N/A time=00:00:18.64 bitrate=N/A
speed=0.999x
video:5867kB audio:282kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
localhost:m3u8test liuqi$
localhost:m3u8test liuqi$ vim output.m3u8
No mapping found
No mapping found
Press ENTER or type command to continue
localhost:m3u8test liuqi$
localhost:m3u8test liuqi$
localhost:m3u8test liuqi$
localhost:m3u8test liuqi$
localhost:m3u8test liuqi$ cat output.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:4
#EXTINF:2.920000,
#EXT-X-PROGRAM-DATE-TIME:2016-11-11T10:15:54.000+0800
output4.ts
#EXTINF:1.720000,
#EXT-X-PROGRAM-DATE-TIME:2016-11-11T10:15:56.920+0800
output5.ts
#EXTINF:0.960000,
#EXT-X-PROGRAM-DATE-TIME:2016-11-11T10:15:58.640+0800
output6.ts
#EXTINF:4.120000,
#EXT-X-PROGRAM-DATE-TIME:2016-11-11T10:15:59.600+0800
output7.ts
#EXT-X-ENDLIST
localhost:m3u8test liuqi$ ll *.ts
-rw-r--r-- 1 liuqi staff 1373152 11 11 10:15 output0.ts
-rw-r--r-- 1 liuqi staff 449884 11 11 10:16 output1.ts
-rw-r--r-- 1 liuqi staff 389160 11 11 10:16 output2.ts
-rw-r--r-- 1 liuqi staff 250416 11 11 10:16 output3.ts
-rw-r--r-- 1 liuqi staff 928908 11 11 10:16 output4.ts
-rw-r--r-- 1 liuqi staff 472820 11 11 10:16 output5.ts
-rw-r--r-- 1 liuqi staff 530348 11 11 10:16 output6.ts
-rw-r--r-- 1 liuqi staff 2118572 11 11 10:16 output7.ts
localhost:m3u8test liuqi$ ffmpeg -i output4.ts
ffmpeg version N-82274-g34aeb5d Copyright (c) 2000-2016 the FFmpeg
developers
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
configuration: --enable-fontconfig --enable-gpl --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libspeex --enable-libx264 --enable-libx265 --enable-version3
--cc='ccache gcc'
libavutil 55. 35.100 / 55. 35.100
libavcodec 57. 66.101 / 57. 66.101
libavformat 57. 57.100 / 57. 57.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 66.100 / 6. 66.100
libswscale 4. 3.100 / 4. 3.100
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Input #0, mpegts, from 'output4.ts':
Duration: 00:00:02.99, start: 9.848000, bitrate: 2483 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 1280x714 [SAR 1:1 DAR 640:357], 25 fps, 25 tbr, 90k
tbn, 50 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 132 kb/s
At least one output file must be specified
localhost:m3u8test liuqi$
Can you paste your test message?
More information about the ffmpeg-user
mailing list