[FFmpeg-trac] #6496(undetermined:new): FFMPEG is not pushing the HLS chunks to remote server
FFmpeg
trac at avcodec.org
Wed Jun 28 16:15:34 EEST 2017
#6496: FFMPEG is not pushing the HLS chunks to remote server
-------------------------------------+-------------------------------------
Reporter: gstoyanov | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: hls | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
I am trying to create an HLS stream and to upload the HLS chunks and the
manifest files to a remote server running NGINX using the HTTP PUT method.
The script is working properly if I don't set up "-hls_segment_filename
"index%04d.ts"" but when this option is present ffmpeg is not pushing the
TS chunks to the remote server. On my remote server I see only the
manifest files to be pushed, but not the chunks, at the same time I am
seeing the chunks on the ffmpeg log:
[hls @ 0x559bceac83e0] Opening 'index0021.ts' for writing=N/A speed=1.49x
[hls @ 0x559bceac83e0] Opening 'index0022.ts' for writing=N/A speed=1.47x
[hls @ 0x559bceac83e0] Opening 'index0023.ts' for writing=N/A speed=1.47x
[hls @ 0x559bceac83e0] Opening 'index0024.ts' for writing=N/A speed=1.49x
[hls @ 0x559bceac83e0] Opening 'index0025.ts' for writing=N/A speed=1.51x
The /var/www/log/nginx/access.log on the remote machine is:
- - [28/Jun/2017:12:53:49 +0000] "PUT /vod/index.m3u8 HTTP/1.1" 204 0 "-"
"Lavf/57.71.100"
- - [28/Jun/2017:12:53:52 +0000] "PUT /vod/index.m3u8 HTTP/1.1" 204 0 "-"
"Lavf/57.71.100"
- - [28/Jun/2017:12:53:54 +0000] "PUT /vod/index.m3u8 HTTP/1.1" 201 0 "-"
"Lavf/57.71.100"
- - [28/Jun/2017:12:53:54 +0000] "PUT /vod/index.m3u8 HTTP/1.1" 204 0 "-"
"Lavf/57.71.100"
But in the same time the index.m3u8 file looks fine and all the chunks are
defined with their name:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:6,
http://IP.AD.DR.ES/vod/index0000.ts
#EXTINF:6,
http://IP.AD.DR.ES/vod/index0001.ts
#EXTINF:6,
http://IP.AD.DR.ES/vod/index0002.ts
#EXT-X-ENDLIST
How to reproduce:
{{{
% ffmpeg -i input.mp4 \
-c:v libx264 \
-x264opts "keyint=48:min-keyint=48:no-scenecut" \
-profile:v high \
-level 5.2 \
-s 1920x1080 \
-c:a aac \
-strict -2 \
-start_number 0 \
-hls_time 6 \
-hls_list_size 0 \
-hls_segment_filename "index%04d.ts" \
-hls_playlist_type vod \
-hls_flags round_durations \
-hls_base_url http://IP.AD.DR.ES/vod/ \
-f hls \
-method PUT \
http://IP.AD.DR.ES/vod/index.m3u8
ffmpeg version: ffmpeg version 3.3.2-1~16.04.york1 Copyright (c) 2000-2017
the FFmpeg developers
built on Ubuntu 16.04: built with gcc 5.4.0 (Ubuntu
5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version='1~16.04.york1'
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfontconfig --enable-
libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-
libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus
--enable-libpulse --enable-librubberband --enable-libshine --enable-
libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-
libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-
libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-
libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl
--enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint
--enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6496>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list