Project

General

Profile

Problem livestreamer and ustream

Added by Markus Wölfer about 9 years ago

Hi,

I tried to integrate NASA HD Live stream (by ustream) into tvheadend. It's working well for few seconds, but then the stream stops with errors (see below).

My script for launching livestreamer:

#!/bin/bash
trap 'kill -9 $PID 2>/dev/null' EXIT

/usr/local/bin/livestreamer --yes-run-as-root -O "ustream.tv/$1" best | avconv -re -v error -fflags +genpts -i pipe:0 -bsf h264_mp4toannexb -c copy -f mpegts pipe:1 &

PID=$!
wait $PID

This is the error I get:

2015-09-01 14:26:28.831 spawn: Executing "/usr/bin/ustream.sh" 
2015-09-01 14:26:29.667 spawn: [cli][info] Found matching plugin ustreamtv for URL ustream.tv/NASAHDTV
2015-09-01 14:26:35.060 spawn: [cli][info] Available streams: 240p, 240p_alt_akamai, 720p+ (best), 720p+_alt_akamai, mobile_240p (worst)
2015-09-01 14:26:35.060 spawn: [cli][info] Opening stream: 720p+ (uhs)
2015-09-01 14:26:38.806 TS: IPTV/NASATV/Service01: MPEG2VIDEO @ #256 Continuity counter error (total 3)
2015-09-01 14:26:38.891 subscription: 0341: "HTTP" unsubscribing from "NASATV", hostname="192.168.1.24", username="xbmc", client="VLC/2.2.1 LibVLC/2.2.1" 
2015-09-01 14:27:23.631 spawn: [mpegts @ 0x189f480] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 2138130 >= 2138130
2015-09-01 14:27:23.631 spawn: av_interleaved_write_frame(): Invalid argument
2015-09-01 14:27:23.636 spawn: [cli][error] Error when writing to output: [Errno 32] Broken pipe
2015-09-01 14:27:26.054 spawn: [cli][info] Stream ended

Can anyone help my?

Thank you.

Kind regards