[FFmpeg-trac] #9780(undetermined:new): hls uses wrong path separator in DELETE method

FFmpeg trac at avcodec.org
Thu May 12 05:17:51 EEST 2022


#9780: hls uses wrong path separator in DELETE method
-------------------------------------+-------------------------------------
             Reporter:  Peter        |                     Type:  defect
  Holliday                           |
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 When uploading hls segmented video to a web server, the PUT/POST commands
 are correct but the DELETE method uses a backslash '\' character instead
 of a forward slash '/' character before the filename.

 ffmpeg Command (Win x64):

 .\ffmpeg.exe -re -i "Test.mp4" -c:v libx264 -f hls -force_key_frames
 "expr:gte(t,n_forced*1)" -hls_time 2 -hls_list_size 3
 -hls_delete_threshold 2 -hls_allow_cache 1 -hls_segment_type mpegts
 -hls_flags independent_segments+delete_segments -method PUT
 http://localhost:5251/hls/out.m3u8

 Log from RHEL server (Apache 2.4):
 tail -f /var/log/httpd/access.log
 192.168.117.1 - - [12/May/2022:10:40:44 +1000] "PUT /hls/out.m3u8
 HTTP/1.1"
 192.168.117.1 - - [12/May/2022:10:40:54 +1000] "PUT /hls/out5.ts HTTP/1.1"
 192.168.117.1 - - [12/May/2022:10:40:54 +1000] "DELETE
 '''/hls%5Cout0.ts''' HTTP/1.1"
 192.168.117.1 - - [12/May/2022:10:40:54 +1000] "PUT /hls/out.m3u8
 HTTP/1.1"


 Log from Windows Kestrel server:

 Information: Request is PUT /hls/out5.ts
 Information: Request is DELETE /hls\out0.ts
 Information: Request is PUT /hls/out.m3u8

 I have not tried Linux ffmpeg executable, but it appears the Win version
 is using a windows file separator instead of the conventional forward
 slash for http.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9780>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list