Project

General

Profile

Actions

Bug #1921

closed

Logmessages when streaming

Added by mase about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Server - HTTP Streaming
Target version:
-
Start date:
10/02/2014
Due date:
% Done:

0%

Estimated time:

Description

Hi!
I get the following non-stopping logmessages when streaming TS or Remux:
ERROR (extern.c,327): write failed: Datenübergabe unterbrochen (broken pipe)
Streaming works, but the log runs full.


Files

externremux.sh (474 Bytes) externremux.sh mase, 10/02/2014 11:40 PM
Actions #1

Updated by schmirl about 10 years ago

Looks like the remux process is aborting. But in this case the log should contain much more than just this line, at least when running with full log output (VDR option -l 3 which is also the default if no -l option is given)

Actions #2

Updated by mase about 10 years ago

When remuxing aborts, I should have no stream.
Maybe my externremux.sh isn't that good.
I attached it.
You have a better one using ffmpeg?

Actions #3

Updated by schmirl about 10 years ago

Maybe add a "2>>/tmp/ffmpeg.log", so you can check for ffmpeg errors in the log.
You could also redirect stderr to the system logs. Just insert this before the ffmpeg call (probably requires bash as shell):

  exec 2> >(logger -t "vdr: [$$] ${0##*/}" 2>&-)

I'm quite sure that ffmpeg is either gone or has at least closed its input channel. Maybe you have several ffmpegs running in parallel? A possible cause could be that your script doesn't handle HTTP HEAD requests. That's why I asked for a verbose VDR log.

Actions #4

Updated by mase about 10 years ago

I have added this to my script and got rid of that messages:

if [ "$SERVER_PROTOCOL" = HTTP ]; then
echo -ne "Content-type: video/mpeg\r\n"
echo -ne '\r\n'
[ "$REQUEST_METHOD" = HEAD ] && exit 0
fi

Actions #5

Updated by schmirl about 10 years ago

  • Category set to Server - HTTP Streaming
  • Status changed from New to Closed

That's good news. Thanks for your feedback

Actions

Also available in: Atom PDF