Project

General

Profile

Bug #2486

pipe:// not working as expected (scan not working, child processes not killed)

Added by Rafal Kupiec about 9 years ago. Updated about 9 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
IPTV
Target version:
-
Start date:
2014-11-17
Due date:
% Done:

0%

Estimated time:
Found in version:
3.9.2.2101
Affected Versions:

Description

I have tried new pipe:// feature. Unfortunately I cannot get it working. I was trying to get RTMP stream working via avconv, but after adding new MUX, tvheadend marked it as FAILED, even i could find information about encoding video by avconv. What is more, tvheadend stopped scanning newly added MUX, but did not cleaned up running processed. Due to that I had to ssh to server and kill avconv manually. Finally, all output from avoconv were reported as ERROR, what is misleading...

2014-11-17 18:55:29.912 [ ERROR]:spawn: [flv 0xbf83553d1c0] Non-increasing DTS in stream 0: packet 26 with DTS 0, packet 27 with DTS 0
2014-11-17 18:55:29.922 [ ERROR]:spawn: [flv
0xbf83553d1c0] Non-increasing DTS in stream 0: packet 27 with DTS 0, packet 28 with DTS 0
2014-11-17 18:55:29.922 [ ERROR]:spawn: [flv 0xbf83553d1c0] Non-increasing DTS in stream 0: packet 28 with DTS 0, packet 29 with DTS 0
2014-11-17 18:55:29.922 [ ERROR]:spawn: [flv
0xbf83553d1c0] Non-increasing DTS in stream 0: packet 29 with DTS 0, packet 30 with DTS 0
2014-11-17 18:55:29.923 [ ERROR]:spawn: [flv 0xbf83553d1c0] Non-increasing DTS in stream 0: packet 30 with DTS 0, packet 31 with DTS 0
2014-11-17 18:55:29.923 [ ERROR]:spawn: [flv
0xbf83553d1c0] Non-increasing DTS in stream 0: packet 31 with DTS 0, packet 32 with DTS 0
2014-11-17 18:55:29.924 [ ERROR]:spawn: [flv 0xbf83553d1c0] Non-increasing DTS in stream 0: packet 32 with DTS 0, packet 33 with DTS 0
2014-11-17 18:55:29.924 [ ERROR]:spawn: [flv
0xbf83553d1c0] Non-increasing DTS in stream 0: packet 33 with DTS 0, packet 34 with DTS 0
2014-11-17 18:55:29.937 [ ERROR]:spawn: [flv 0xbf83553d1c0] Non-increasing DTS in stream 0: packet 34 with DTS 0, packet 35 with DTS 0
2014-11-17 18:55:34.817 [ ERROR]:spawn: [flv
0xbf83553d1c0] max_analyze_duration reached
2014-11-17 18:55:34.817 [ ERROR]:spawn: [flv 0xbf83553d1c0] Estimating duration from bitrate, this may be inaccurate
2014-11-17 18:55:34.817 [ ERROR]:spawn: Input #0, flv, from 'rtmp://rtmp.address.com/my/stream':
2014-11-17 18:55:34.817 [ ERROR]:spawn: Metadata:
2014-11-17 18:55:34.817 [ ERROR]:spawn: author :
2014-11-17 18:55:34.817 [ ERROR]:spawn: copyright :
2014-11-17 18:55:34.817 [ ERROR]:spawn: description :
2014-11-17 18:55:34.817 [ ERROR]:spawn: keywords :
2014-11-17 18:55:34.817 [ ERROR]:spawn: rating :
2014-11-17 18:55:34.817 [ ERROR]:spawn: title :
2014-11-17 18:55:34.817 [ ERROR]:spawn: presetname : Custom
2014-11-17 18:55:34.817 [ ERROR]:spawn: creationdate : Sun Nov 02 12:52:19 2014
2014-11-17 18:55:34.817 [ ERROR]:spawn: videodevice : Decklink Video Capture
2014-11-17 18:55:34.817 [ ERROR]:spawn: videokeyframe_frequency: 5
2014-11-17 18:55:34.817 [ ERROR]:spawn: audiodevice : Decklink Audio Capture
2014-11-17 18:55:34.817 [ ERROR]:spawn: audiochannels : 1
2014-11-17 18:55:34.817 [ ERROR]:spawn: audioinputvolume: 75
2014-11-17 18:55:34.817 [ ERROR]:spawn: Duration: N/A, start: 0.000000, bitrate: 763 kb/s
2014-11-17 18:55:34.817 [ ERROR]:spawn: Stream #0.0: Video: vp6f, yuv420p, 720x404, 665 kb/s, 25 fps, 1k tbn
2014-11-17 18:55:34.817 [ ERROR]:spawn: Stream #0.1: Audio: mp3, 44100 Hz, mono, s16p, 98 kb/s
2014-11-17 18:55:34.822 [ ERROR]:spawn: [libx264
0xbf835570840] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
2014-11-17 18:55:34.828 [ ERROR]:spawn: [libx264 @ 0xbf835570840] profile High, level 3.0
2014-11-17 18:55:34.828 [ ERROR]:spawn: Output #0, mpegts, to 'pipe:1':
2014-11-17 18:55:34.828 [ ERROR]:spawn: Metadata:
2014-11-17 18:55:34.828 [ ERROR]:spawn: author :
2014-11-17 18:55:34.828 [ ERROR]:spawn: copyright :
2014-11-17 18:55:34.828 [ ERROR]:spawn: description :
2014-11-17 18:55:34.828 [ ERROR]:spawn: keywords :
2014-11-17 18:55:34.828 [ ERROR]:spawn: rating :
2014-11-17 18:55:34.828 [ ERROR]:spawn: title :
2014-11-17 18:55:34.828 [ ERROR]:spawn: presetname : Custom
2014-11-17 18:55:34.828 [ ERROR]:spawn: creationdate : Sun Nov 02 12:52:19 2014
2014-11-17 18:55:34.828 [ ERROR]:spawn: videodevice : Decklink Video Capture
2014-11-17 18:55:34.828 [ ERROR]:spawn: videokeyframe_frequency: 5
2014-11-17 18:55:34.828 [ ERROR]:spawn: audiodevice : Decklink Audio Capture
2014-11-17 18:55:34.828 [ ERROR]:spawn: audiochannels : 1
2014-11-17 18:55:34.828 [ ERROR]:spawn: audioinputvolume: 75
2014-11-17 18:55:34.828 [ ERROR]:spawn: encoder : Lavf55.12.0
2014-11-17 18:55:34.828 [ ERROR]:spawn: Stream #0.0: Video: libx264, yuv420p, 720x404, q=-1--1, 90k tbn, 25 tbc
2014-11-17 18:55:34.828 [ ERROR]:spawn: Stream #0.1: Audio: libmp3lame, 44100 Hz, mono, 98 kb/s
2014-11-17 18:55:34.828 [ ERROR]:spawn: Stream mapping:
2014-11-17 18:55:34.828 [ ERROR]:spawn: Stream #0:0 -> #0:0 (vp6f -> libx264)
2014-11-17 18:55:34.828 [ ERROR]:spawn: Stream #0:1 -> #0:1 (copy)
2014-11-17 18:55:34.828 [ ERROR]:spawn: Press ctrl-c to stop encoding
2014-11-17 18:55:35.334 [ ERROR]:spawn: frame= 13 fps= 0 q=0.0 size= 0kB time=0.50 bitrate= 0.0kbits/s
2014-11-17 18:55:35.838 [ ERROR]:spawn: frame= 25 fps= 25 q=0.0 size= 0kB time=1.02 bitrate= 0.0kbits/s
2014-11-17 18:55:36.341 [ ERROR]:spawn: frame= 37 fps= 24 q=0.0 size= 0kB time=1.52 bitrate= 0.0kbits/s
2014-11-17 18:55:36.849 [ ERROR]:spawn: frame= 50 fps= 25 q=0.0 size= 0kB time=2.04 bitrate= 0.0kbits/s
2014-11-17 18:55:37.350 [ ERROR]:spawn: frame= 63 fps= 25 q=28.0 size= 52kB time=0.20 bitrate=2113.1kbits/s
2014-11-17 18:55:37.856 [ ERROR]:spawn: frame= 75 fps= 25 q=28.0 size= 122kB time=0.68 bitrate=1473.0kbits/s
2014-11-17 18:55:38.360 [ ERROR]:spawn: frame= 88 fps= 25 q=28.0 size= 206kB time=1.20 bitrate=1406.2kbits/s
2014-11-17 18:55:38.860 [ ERROR]:spawn: frame= 101 fps= 25 q=28.0 size= 288kB time=1.72 bitrate=1369.3kbits/s
2014-11-17 18:55:39.291 [ DEBUG]:service: IPTV/IPTV8/XXX: Status changed to [Graceperiod expired] [Data timeout]
2014-11-17 18:55:39.364 [ ERROR]:spawn: frame= 113 fps= 25 q=28.0 size= 360kB time=2.20 bitrate=1339.9kbits/s
2014-11-17 18:55:39.870 [ ERROR]:spawn: frame= 126 fps= 25 q=28.0 size= 439kB time=2.72 bitrate=1322.1kbits/s
2014-11-17 18:55:40.376 [ ERROR]:spawn: frame= 139 fps= 25 q=28.0 size= 522kB time=3.24 bitrate=1319.2kbits/s
2014-11-17 18:55:40.876 [ ERROR]:spawn: frame= 151 fps= 25 q=28.0 size= 595kB time=3.72 bitrate=1310.7kbits/s
2014-11-17 18:55:41.290 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 1000 (4096) [2/0x6c8cc4010e00]
2014-11-17 18:55:41.290 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 1000 (4096) [1/0xc4b50627c40]
2014-11-17 18:55:41.290 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 0100 (256) [1/0xc4b50627c40]
2014-11-17 18:55:41.290 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 0101 (257) [1/0xc4b50627c40]
2014-11-17 18:55:41.290 [ DEBUG]:mpegts: IPTV8 in IPTV - stopping mux
2014-11-17 18:55:41.386 [ ERROR]:spawn: frame= 163 fps= 25 q=28.0 size= 675kB time=4.20 bitrate=1316.7kbits/s
2014-11-17 18:55:41.891 [ ERROR]:spawn: frame= 177 fps= 25 q=28.0 size= 764kB time=4.76 bitrate=1314.7kbits/s
2014-11-17 18:55:42.397 [ ERROR]:spawn: frame= 189 fps= 25 q=28.0 size= 845kB time=5.24 bitrate=1320.3kbits/s
2014-11-17 18:55:42.898 [ ERROR]:spawn: frame= 202 fps= 25 q=28.0 size= 926kB time=5.76 bitrate=1317.6kbits/s
2014-11-17 18:55:43.408 [ ERROR]:spawn: frame= 214 fps= 25 q=28.0 size= 1009kB time=6.24 bitrate=1324.2kbits/s
2014-11-17 18:55:43.497 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 0000 (0) [3/0x6c8cc40464b0]
2014-11-17 18:55:43.497 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 0001 (1) [2/0x6c8cc4047920]
2014-11-17 18:55:43.497 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 0010 (16) [2/0x6c8cc4048d90]
2014-11-17 18:55:43.497 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 0011 (17) [2/0x6c8cc400e520]
2014-11-17 18:55:43.497 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 0011 (17) [3/0x6c8cc404a200]
2014-11-17 18:55:43.497 [ DEBUG]:mpegts: IPTV8 in IPTV - close PID 0012 (18) [3/0x6c8cc400f990]
2014-11-17 18:55:43.497 [ DEBUG]:epggrab: grab done for IPTV8 in IPTV (stolen)
2014-11-17 18:55:43.497 [ DEBUG]:service: XXX si 0x6c8cc4044440 <unknown> weight 0 prio 1 error 402
2014-11-17 18:55:43.498 [ DEBUG]:mpegts: 11278.36V in DVB-S - no free tuner available
2014-11-17 18:55:43.787 [ DEBUG]:service: XXX si 0x6c8cc4044440 <unknown> weight 0 prio 1 error 402
2014-11-17 18:55:43.912 [ ERROR]:spawn: frame= 227 fps= 25 q=28.0 size= 1099kB time=6.76 bitrate=1331.4kbits/s
2014-11-17 18:55:44.415 [ ERROR]:spawn: frame= 239 fps= 25 q=28.0 size= 1171kB time=7.24 bitrate=1324.7kbits/s
2014-11-17 18:55:44.921 [ ERROR]:spawn: frame= 252 fps= 25 q=28.0 size= 1226kB time=7.76 bitrate=1294.1kbits/s
2014-11-17 18:55:45.291 [ DEBUG]:service: XXX si 0x6c8cc4044440 <unknown> weight 0 prio 1 error 402
2014-11-17 18:55:45.291 [ NOTICE]:subscription: 0031: No transponder available for subscription "HTTP" to channel "XXX"
2014-11-17 18:55:45.291 [WARNING]:webui: Couldn't start streaming /stream/channel/9b447194cdd0ecefee041006c9d3277b, No input detected
2014-11-17 18:55:45.292 [ INFO]:subscription: 0031: "HTTP" unsubscribing from "XXX", hostname="AAA.BBB.CCC.DDD", username="NONE", client="NONE"
2014-11-17 18:55:45.427 [ ERROR]:spawn: frame= 265 fps= 25 q=28.0 size= 1283kB time=8.28 bitrate=1269.3kbits/s
2014-11-17 18:55:45.932 [ ERROR]:spawn: frame= 277 fps= 25 q=28.0 size= 1335kB time=8.76 bitrate=1248.4kbits/s
2014-11-17 18:55:46.432 [ ERROR]:spawn: frame= 290 fps= 25 q=28.0 size= 1384kB time=9.28 bitrate=1222.0kbits/s
2014-11-17 18:55:46.941 [ ERROR]:spawn: frame= 303 fps= 25 q=28.0 size= 1438kB time=9.80 bitrate=1202.3kbits/s
2014-11-17 18:55:47.450 [ ERROR]:spawn: frame= 316 fps= 25 q=28.0 size= 1495kB time=10.32 bitrate=1186.9kbits/s
2014-11-17 18:55:47.959 [ ERROR]:spawn: frame= 328 fps= 25 q=28.0 size= 1552kB time=10.80 bitrate=1176.9kbits/s
2014-11-17 18:55:48.460 [ ERROR]:spawn: frame= 341 fps= 25 q=28.0 size= 1617kB time=11.32 bitrate=1169.9kbits/s
2014-11-17 18:55:48.967 [ ERROR]:spawn: frame= 353 fps= 25 q=28.0 size= 1684kB time=11.80 bitrate=1168.8kbits/s
2014-11-17 18:55:49.473 [ ERROR]:spawn: frame= 366 fps= 25 q=28.0 size= 1737kB time=12.32 bitrate=1154.7kbits/s
2014-11-17 18:55:49.981 [ ERROR]:spawn: frame= 378 fps= 25 q=28.0 size= 1788kB time=12.80 bitrate=1144.3kbits/s
2014-11-17 18:55:50.487 [ ERROR]:spawn: frame= 391 fps= 25 q=28.0 size= 1850kB time=13.32 bitrate=1138.0kbits/s
2014-11-17 18:55:50.992 [ ERROR]:spawn: frame= 404 fps= 25 q=28.0 size= 1906kB time=13.84 bitrate=1128.0kbits/s
2014-11-17 18:55:51.501 [ ERROR]:spawn: frame= 417 fps= 25 q=28.0 size= 1970kB time=14.36 bitrate=1123.6kbits/s
2014-11-17 18:55:52.006 [ ERROR]:spawn: frame= 429 fps= 25 q=28.0 size= 2023kB time=14.84 bitrate=1117.0kbits/s
2014-11-17 18:55:52.506 [ ERROR]:spawn: frame= 442 fps= 25 q=28.0 size= 2078kB time=15.36 bitrate=1108.3kbits/s
2014-11-17 18:55:53.008 [ ERROR]:spawn: frame= 455 fps= 25 q=28.0 size= 2143kB time=15.88 bitrate=1105.3kbits/s
2014-11-17 18:55:53.511 [ ERROR]:spawn: frame= 467 fps= 25 q=28.0 size= 2222kB time=16.36 bitrate=1112.6kbits/s
2014-11-17 18:55:54.020 [ ERROR]:spawn: frame= 480 fps= 25 q=28.0 size= 2293kB time=16.88 bitrate=1112.6kbits/s
2014-11-17 18:55:54.523 [ ERROR]:spawn: frame= 493 fps= 25 q=28.0 size= 2343kB time=17.40 bitrate=1103.1kbits/s
2014-11-17 18:55:55.026 [ ERROR]:spawn: frame= 505 fps= 25 q=28.0 size= 2401kB time=17.88 bitrate=1100.0kbits/s
2014-11-17 18:55:55.535 [ ERROR]:spawn: frame= 517 fps= 25 q=28.0 size= 2467kB time=18.36 bitrate=1100.6kbits/s
2014-11-17 18:55:56.036 [ ERROR]:spawn: frame= 530 fps= 25 q=28.0 size= 2531kB time=18.88 bitrate=1098.1kbits/s
2014-11-17 18:55:56.537 [ ERROR]:spawn: frame= 542 fps= 25 q=28.0 size= 2581kB time=19.36 bitrate=1092.0kbits/s
2014-11-17 18:55:57.042 [ ERROR]:spawn: frame= 555 fps= 25 q=28.0 size= 2628kB time=19.88 bitrate=1082.9kbits/s
2014-11-17 18:55:57.550 [ ERROR]:spawn: frame= 568 fps= 25 q=28.0 size= 2702kB time=20.40 bitrate=1085.0kbits/s

History

#1

Updated by Jaroslav Kysela about 9 years ago

  • Status changed from New to Invalid

Not a tvh issue, but avconv.. The pipe is closed on the tvheadend side, so the spawned application receives EPIPE error (and should terminate itself). The log can be suppressed using arguments.

#2

Updated by Rafal Kupiec about 9 years ago

No, it's not invalid.

#3

Updated by Jaroslav Kysela about 9 years ago

The stdin issue was fixed in v3.9-2104-gfc7e0f4 .

#4

Updated by Rafal Kupiec about 9 years ago

Still getting below error in TVH:
2014-11-17 23:39:10.244 mpegts: IPTV8 in IPTV - scan no data, failed

Tried with the following URL:
pipe:///usr/bin/avconv -loglevel fatal -re -i rtmp://XXXX -bsf h264_mp4toannexb -vcodec libx264 -acodec copy -copyinkf -flags +ilme+ildct -fflags +genpts -f mpegts -tune zerolatency pipe:1

Also still needed to kill child process by hand.

Also available in: Atom PDF