[FFmpeg-trac] #6204(undetermined:open): AAC-only hls stream slowly exceeds file descriptors

FFmpeg trac at avcodec.org
Tue Feb 28 17:16:03 EET 2017


#6204: AAC-only hls stream slowly exceeds file descriptors
-------------------------------------+-------------------------------------
             Reporter:  ncon         |                    Owner:  stevenliu
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  hls          |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ncon):

 Replying to [comment:5 stevenliu]:
 >
 > {{{
 > [hls @ 0x7faf1f812c00] EXT-X-MEDIA-SEQUENCE:1285
 > [hls @ 0x7faf1f812c00] EXT-X-MEDIA-SEQUENCE:1286
 > [hls @ 0x7faf1f812c00] EXT-X-MEDIA-SEQUENCE:1287
 > [hls @ 0x7faf1f812c00] EXT-X-MEDIA-SEQUENCE:1288
 > [hls @ 0x7faf1f812c00] EXT-X-MEDIA-SEQUENCE:1289
 > [hls @ 0x7faf1f812c00] EXT-X-MEDIA-SEQUENCE:1290
 > [hls @ 0x7faf1f812c00] EXT-X-MEDIA-SEQUENCE:1291x
 > size=N/A time=00:43:10.83 bitrate=N/A speed=56.3x
 > video:0kB audio:21915kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: unknown
 > Input file #0 (sine):
 >   Input stream #0:0 (audio): 111578 packets read (228511744 bytes);
 111578 frames decoded (114255872 samples);
 >   Total: 111578 packets (228511744 bytes) demuxed
 > Output file #0 (output_test.m3u8):
 >   Output stream #0:0 (audio): 111578 frames encoded (114255872 samples);
 111579 packets muxed (22440703 bytes);
 >   Total: 111579 packets (22440703 bytes) muxed
 > [aac @ 0x7faf1f002800] Qavg: 316.103
 > MacBook:ffmpeg StevenLiu$
 >
 >
 >
 >
 >
 > look at the lsof
 >
 >
 > MacBook:book StevenLiu$
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$ lsof -p 26380 | grep segment | grep deleted | wc
 -l
 >        0
 > MacBook:book StevenLiu$
 >
 >
 >
 >
 > MacBook:ffmpeg StevenLiu$ ffmpeg -v verbose -f lavfi -i sine -acodec aac
 -f hls output_test.m3u8
 >
 >
 >
 >
 >
 >
 > MacBook:book StevenLiu$ ps -ef|grep ffmpeg
 >   503 26387 15735   0 10:55下午 ttys006    0:00.00 grep ffmpeg
 >   503 26380 15744   0 10:55下午 ttys008    0:18.67 ffmpeg -v verbose -f
 lavfi -i sine -acodec aac -f hls output_test.m3u8
 >
 >
 >
 >
 >
 > }}}
 >

 Well the lsof with the grep does not work in that case, as the segment
 files get named output_test*.ts. If the process terminates, the handles
 get released. For testing, i started the process as a daemon

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6204#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list