Opened 4 months ago

Closed 3 months ago

#6496 closed defect (wontfix)

FFMPEG is not pushing the HLS chunks to remote server

Reported by: gstoyanov Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Attachments (1)

debug.log (1.0 MB) - added by gstoyanov 4 months ago.
debbug log file from ffmpeg

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 months ago by gstoyanov

I can provide some logs if needed.

comment:2 Changed 4 months ago by stevenliu

with -v debug and upload the log please!

Changed 4 months ago by gstoyanov

debbug log file from ffmpeg

comment:3 Changed 4 months ago by gstoyanov

I have added the debug.log file from ffmpeg. I have also noticed that the chunks are not sent to the remote machine, but rather saved on the local machine.

comment:4 Changed 3 months ago by stevenliu

  • Resolution set to wontfix
  • Status changed from new to closed

-hls_segment_filename http://IP.AD.DR.ES/vod/index%04d.ts will ok

Note: See TracTickets for help on using tickets.