Opened 3 years ago

Last modified 3 years ago

#2703 new defect

when encountering a ENOSPC as a HLS streamer ffmpeg hangs without exiting

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

Description

Hello,

I'm using ffmpeg as a HLS streamer, sometimes (for reasons I'm still investingating) it receivers and logs a ENOSPC:

av_interleaved_write_frame(): No space left on device

However from that moment the stream is not written anymore and ffmpeg appears as hung without exiting.

I think it would be more appropriate if it exited so that the monitoring process could recognize something is going wrong.

Change History (3)

comment:1 Changed 3 years ago by cehoyos

  • Keywords enospc removed
  • Summary changed from when encountering a ENOSPC as a HLS streamer ffmeg hangs without exiting to when encountering a ENOSPC as a HLS streamer ffmpeg hangs without exiting

Is this only reproducible with hls output or also for file output?

Please provide the failing command line (the command that hangs after "No space left on device") together with the console output (at least the first 50 lines including "Stream mapping" and the following lines and the last 50 lines).

comment:2 Changed 3 years ago by vihai

Hello, the failing command line is the following:

/opt/acaocam/bin/ffmpeg -nostdin -nostats -rtsp_transport tcp
  -i "rtsp://192.168.0.55/axis-media/media.amp?streamprofile=streaming_450&camera=1"
  -vcodec copy -acodec copy -vbsf dump_extra -y -metadata title="ACAO Live Camera"
  -f segment -segment_list /srv/www/htdocs/hls/cam_450.m3u8 -map 0 -segment_list_flags +live
  -segment_time 10 -segment_list_size 20 cam/450_%06d.ts

I'm waiting for the issue to happen again to provide the log and further info.

comment:3 Changed 3 years ago by cehoyos

Is the issue not reproducible with file output?

Note: See TracTickets for help on using tickets.