Opened 11 years ago

Last modified 11 years ago

#2703 new defect

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

Reported by: Daniele Orlandi 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 by Carl Eugen Hoyos, 11 years ago

Keywords: enospc removed
Summary: when encountering a ENOSPC as a HLS streamer ffmeg hangs without exitingwhen 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 by Daniele Orlandi, 11 years ago

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 by Carl Eugen Hoyos, 11 years ago

Is the issue not reproducible with file output?

Note: See TracTickets for help on using tickets.