[FFmpeg-user] Analyze HLS stream with ffprobe
Hanno Klamke
Hanno.Klamke at streamlab.net
Tue Sep 16 13:14:12 CEST 2014
Hi,
I would like to monitor a HLS stream continuousely with ffprobe.
In the example below I only used -show_stream but later I would like to use -show_frames as well and output it via XML.
The HLS stream was created successfully with ffmpeg before, I could play it and everything seemed working.
But when I try to access it via ffprobe I get an error
" Failed to open segment of playlist 0"
" Error when loading first segment 'segment-1800k00044.ts'"
What is strange for me: ffprobe can open the .m3u8 and find out what is the first .ts segment. The name of the first segment will change as the live stream goes on and the entries in the playlist get updated (set max amount of 10 segment listings).
If I would tell ffprobe to open this segment and not the .m3u8 it will print the information without problems.
"...\index_1800.m3u8: No such file or directory" this error occurs even though ffprobe can check what segment to open... that seems strange.
>ffprobe -print_format xml -show_streams ...\index_1800.m3u8
ffprobe version N-64711-gfa6716c Copyright (c) 2007-2014 the FFmpeg developers
built on Jul 16 2014 22:09:27 with gcc 4.8.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.101 / 55. 48.101
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
<?xml version="1.0" encoding="UTF-8"?>
<ffprobe>
[hls,applehttp @ 0000000000354320] Failed to open segment of playlist 0
[hls,applehttp @ 0000000000354320] Error when loading first segment 'segment-180
0k00044.ts'
...\index_1800.m3u8: No such file or directory
More information about the ffmpeg-user
mailing list