[FFmpeg-trac] #5427(undetermined:new): ffmpeg hangs when using libx265 to encode a low-bitrate HLS output

FFmpeg trac at avcodec.org
Tue Apr 12 03:16:44 CEST 2016


#5427: ffmpeg hangs when using libx265 to encode a low-bitrate HLS output
-------------------------------------+-------------------------------------
             Reporter:  otiteb       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  HLS libx265  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 I'm using ffmpeg to produce HLS ABR profiles of a 360 degree video (a
 sample video from Samsung/Oculus). First tried with h.264 and all worked
 fine, but when switching to h.265, the ffmpeg process in charge of
 generating the lowest bitrate goes to zero CPU usage within seconds and
 never finishes

 How to reproduce:

 Input file: the one from Oculus Mobile SDK samples "[Samsung] 360 video
 demo.mp4" (i can try to  upload if needed)


 {{{
 % ffmpeg -i
 /home/victor/Documents/usr/YBVR/Videos/Oculus360/Samsung360Mono.mp4 -y
 -vcodec libx265 -acodec libfdk_aac -threads 0 -map 0 -flags -global_header
 -f segment -segment_list
 /home/victor/Documents/usr/YBVR/Videos/Oculus360/HLSOutputHEVC/Samsung360Mono.mp4_100.m3u8
 -segment_time 10 -segment_format mpeg_ts -b:v 100k
 /home/victor/Documents/usr/YBVR/Videos/Oculus360/Samsung360Mono.mp4_100_%05d.ts

 ffmpeg version N-79222-gc9ad357 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
   configuration: --prefix=/home/victor/ffmpeg_build --pkg-config-
 flags=--static --extra-cflags=-I/home/victor/ffmpeg_build/include --extra-
 ldflags=-L/home/victor/ffmpeg_build/lib --bindir=/home/
 }}}


 Note: i've tried now with several different profiles, here's a summary:
 100k - stops at frame 60
 200k - stops at frame 2691
 500k onwards - completes HLS encode


 I'll add the logs from the 100k and 200k processes, where the only
 difference with the above syntax was that i added debug logging.

 Let me know if there is more info needed

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5427>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list