[FFmpeg-user] For HLS, playlist.m3u8 file skips last segment entry
Moritz Barsnick
barsnick at gmx.net
Wed Oct 8 11:04:35 CEST 2014
On Wed, Oct 08, 2014 at 13:08:56 +0800, ajay parashar wrote:
> I want to know why this segment out005.ts is not adding to playlist file ?
> Is it known issue ? or i need to provide some other options to command line.
>
> below is the command that currently i am using
> ffmpeg -i 'udp://226.0.0.1:1234?fifo_size=50000&overrun_nonfatal=1'
> -map 0:v:1 -map 0:a:0 -vcodec libx264 -acodec copy -f ssegment
> -hls_list_size 10 -segment_list playlist.m3u8 -segment_list_flags +live
> -segment_time 10 out%03d.ts
I tried to reproduce this with testsrc, otherwise using the similar
(video!) properties and arguments as you, and I don't see any issues.
Perhaps you can try with testsrc as well?
Moritz
barsnick at sunshine:~/tmp/ffmpeg_segment_test > ffmpeg -f lavfi -i 'testsrc=size=704x480:duration=00\\:01\\:02.76' -vcodec libx264 -f ssegment -hls_list_size 10 -segment_list playlist.m3u8 -segment_time 10 -segment_list_flags +live out%03d.ts
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
built on Sep 26 2014 08:47:09 with icc (ICC) 14.0.3 20140422
configuration: --prefix=/usr/new/tools/video/install/ffmpeg/20140925 --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-x11grab --enable-gnutls --enable-libcdio --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libass --enable-libv4l2 --enable-libvidstab --enable-libfdk-aac --enable-libsmbclient --cc=icc --cxx=icpc --extra-ldflags='-L/usr/new/tools/video/install/x264/current/lib -L/usr/new/tools/video/install/fdk-aac/current/lib' --extra-cflags='-I/usr/new/tools/video/install/x264/current/include -I/usr/new/tools/video/install/fdk-aac/current/include'
libavutil 54. 7.101 / 54. 7.101
libavcodec 56. 1.101 / 56. 1.101
libavformat 56. 5.100 / 56. 5.100
libavdevice 56. 1.100 / 56. 1.100
libavfilter 5. 1.102 / 5. 1.102
libswscale 3. 1.100 / 3. 1.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 1.100 / 53. 1.100
Input #0, lavfi, from 'testsrc=size=704x480:duration=00\\:01\\:02.76':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 704x480 [SAR 1:1 DAR 22:15], 25 tbr, 25 tbn, 25 tbc
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0xb562260] using SAR=1/1
[libx264 @ 0xb562260] using cpu capabilities: MMX2 SSE2 Cache64
[libx264 @ 0xb562260] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
[mpegts @ 0xba2b8a0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Output #0, stream_segment,ssegment, to 'out%03d.ts':
Metadata:
encoder : Lavf56.5.100
Stream #0:0: Video: h264 (libx264), yuv444p, 704x480 [SAR 1:1 DAR 22:15], q=-1--1, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc56.1.101 libx264
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[swscaler @ 0xb552560] Warning: data is not aligned! This can lead to a speedloss
[mpegts @ 0xba2b8a0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[mpegts @ 0xbb2f900] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
frame= 1569 fps= 17 q=-1.0 Lsize=N/A time=00:01:02.68 bitrate=N/A
video:523kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0xb562260] frame I:7 Avg QP:15.55 size: 5746
[libx264 @ 0xb562260] frame P:1562 Avg QP:14.99 size: 317
[libx264 @ 0xb562260] mb I I16..4: 49.3% 39.9% 10.8%
[libx264 @ 0xb562260] mb P I16..4: 1.9% 0.8% 0.0% P16..4: 5.0% 1.7% 0.1% 0.0% 0.0% skip:90.4%
[libx264 @ 0xb562260] 8x8 transform intra:31.0% inter:86.7%
[libx264 @ 0xb562260] coded y,u,v intra: 1.4% 1.1% 1.1% inter: 0.2% 0.3% 0.2%
[libx264 @ 0xb562260] i16 v,h,dc,p: 77% 10% 0% 13%
[libx264 @ 0xb562260] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 57% 11% 31% 0% 0% 0% 0% 0% 0%
[libx264 @ 0xb562260] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 41% 17% 1% 1% 1% 0% 1% 0%
[libx264 @ 0xb562260] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0xb562260] ref P L0: 69.1% 2.2% 21.3% 7.3%
[libx264 @ 0xb562260] kb/s:68.29
barsnick at sunshine:~/tmp/ffmpeg_segment_test > ll
total 740
-rw-rw-r-- 1 barsnick barsnick 115244 2014-10-08 10:52 out000.ts
-rw-rw-r-- 1 barsnick barsnick 114680 2014-10-08 10:52 out001.ts
-rw-rw-r-- 1 barsnick barsnick 112988 2014-10-08 10:52 out002.ts
-rw-rw-r-- 1 barsnick barsnick 113364 2014-10-08 10:53 out003.ts
-rw-rw-r-- 1 barsnick barsnick 113928 2014-10-08 10:53 out004.ts
-rw-rw-r-- 1 barsnick barsnick 112988 2014-10-08 10:53 out005.ts
-rw-rw-r-- 1 barsnick barsnick 35532 2014-10-08 10:53 out006.ts
-rw-rw-r-- 1 barsnick barsnick 314 2014-10-08 10:53 playlist.m3u8
barsnick at sunshine:~/tmp/ffmpeg_segment_test > cat playlist.m3u8 #EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:11
#EXTINF:10.080000,
out000.ts
#EXTINF:10.000000,
out001.ts
#EXTINF:10.000000,
out002.ts
#EXTINF:10.000000,
out003.ts
#EXTINF:10.000000,
out004.ts
#EXTINF:10.000000,
out005.ts
#EXTINF:2.760000,
out006.ts
#EXT-X-ENDLIST
More information about the ffmpeg-user
mailing list