[FFmpeg-user] Issue with HLS muxer (segments skipped)
Massimo Battistel
battistel at gmail.com
Tue Feb 24 12:11:10 CET 2015
Hello,
I'm converting an udp transport stream to http live streaming (hls).
Input stream has no error and web server is properly configured.
My OS is W7 64bit, Zeranoe builds.
When I try to open the http stream with ffplay (there is a similar issue
with vlc):
ffplay http://192.168.0.155/live/index.m3u8
I experience frequent stream freeze and the following message appears:
"skipping 1 segments ahead, expired from playlists"
Using VLC to generate hls fixes the problem, I can see it correctly with
ffplay.
FFMpeg (and vlc) command line follows:
ffmpeg -probesize 20M -i udp://127.0.0.1:1500 ^
-vcodec libx264 -profile:v baseline -b:v 500k -minrate 500k -maxrate
500k -bufsize 500k -vf scale=640:360:1,fps=fps=25 ^
-acodec libvo_aacenc -b:a 128k -ac 2 -ar 44100 ^
-f hls -hls_time 5 ^
-hls_list_size 3 ^
-hls_base_url "http://192.168.0.155/live/" ^
-hls_allow_cache 0 ^
-hls_flags delete_segments ^
c:\wamp\www\live\index.m3u8
ffmpeg version N-69498-g7620d48 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.9.2 (GCC)
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-lzma --enable-decklink --enable-zlib
libavutil 54. 18.100 / 54. 18.100
libavcodec 56. 21.102 / 56. 21.102
libavformat 56. 19.100 / 56. 19.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 9.103 / 5. 9.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[h264 @ 00631720] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 00631720] decode_slice_header error
[h264 @ 00631720] no frame!
Input #0, mpegts, from 'udp://127.0.0.1:1500':
Duration: N/A, start: 387.174667, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 140 kb/s
[libx264 @ 006d2c80] using SAR=1/1
[libx264 @ 006d2c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 006d2c80] profile Constrained Baseline, level 3.0
Output #0, hls, to 'c:\wamp\www\live\index.m3u8':
Metadata:
encoder : Lavf56.19.100
Stream #0:0: Video: h264 (libx264), yuv420p, 640x360 [SAR 1:1 DAR
16:9], q=-1--1, 500 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.21.102 libx264
Stream #0:1: Audio: aac (libvo_aacenc), 44100 Hz, stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.21.102 libvo_aacenc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
frame= 102 fps=0.0 q=29.0 size=N/A time=00:00:04.35 bitrate=N/A dup=8
drop=0
frame= 149 fps=147 q=28.0 size=N/A time=00:00:06.18 bitrate=N/A dup=8
drop=0
frame= 163 fps=106 q=28.0 size=N/A time=00:00:06.69 bitrate=N/A dup=8
drop=0
frame= 175 fps= 85 q=29.0 size=N/A time=00:00:07.25 bitrate=N/A dup=8
drop=0
frame= 189 fps= 73 q=28.0 size=N/A time=00:00:07.74 bitrate=N/A dup=8
drop=0
frame= 202 fps= 65 q=29.0 size=N/A time=00:00:08.27 bitrate=N/A dup=8
drop=0
frame= 214 fps= 59 q=30.0 size=N/A time=00:00:08.81 bitrate=N/A dup=8
drop=0
frame= 227 fps= 55 q=30.0 size=N/A time=00:00:09.29 bitrate=N/A dup=8
drop=0
frame= 242 fps= 52 q=30.0 size=N/A time=00:00:09.92 bitrate=N/A dup=8
drop=0
VLC command line follows:
vlc -I dummy udp://@:1500 --sout-avcodec-strict=-2
--sout=#transcode{width=640,height=360,fps=25,vcodec=h264,vb=512,venc=x264
{aud,profile=baseline,level=30,keyint=25,ref=1},acodec=mp4a,ab=64}:std{access=livehttp{seglen=5,delsegs=true,numsegs=3,index=C:\wamp\www\live
\index.m3u8,index-url=http://192.168.0.155/live/index-########.ts
},mux=ts{use-key-frames},dst=C:\wamp\www\live\index-########.ts}
Thanks,
MB
More information about the ffmpeg-user
mailing list