Jump to content


Photo

Streaming - every 2-3 sec video and audio freezes

et8000

  • Please log in to reply
5 replies to this topic

#1 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 18 July 2014 - 14:03

Hi,

 

I have a problem with streaming (over wired LAN) a specific HD channel (bitrate 7-8 Mb). Every 2-3 sec video and audio freezes. Enigma2 says

 

eFilePushThreadRecorder] Warning: All write buffers busy
[eDVBRecordFileThread] cancelling
[eDVBRecordStreamThread] failed to cancel, killing all waiting IO
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] Waiting for I/O to complete
[eFilePushThreadRecorder] Warning: All write buffers busy
[eDVBRecordFileThread] cancelling
[eDVBRecordStreamThread] failed to cancel, killing all waiting IO
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] Waiting for I/O to complete
[eFilePushThreadRecorder] Warning: All write buffers busy
[eDVBRecordFileThread] cancelling
[eDVBRecordStreamThread] failed to cancel, killing all waiting IO
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] poll: aio_return returned failure: Interrupted system call
[eDVBRecordFileThread] Waiting for I/O to complete

I do experience buffer-underrun on other HD channels as well, but not as often.

 

What can I do to get streaming to work?



Re: Streaming - every 2-3 sec video and audio freezes #2 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 18 July 2014 - 14:23

There is no stuttering, when the box records the same HD channel and I simultaneously stream recorded material via OpenWebIF.



Re: Streaming - every 2-3 sec video and audio freezes #3 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 18 July 2014 - 16:49

Probably related to

http://openpli.org/f...-720p-channels/

 

Same behaviour on et9200:

 

Streaming SD channel (OK):

root@et9x00:~# cat /proc/buddyinfo
Node 0, zone   Normal      3      8      3      5      3      1      2      1      2      2     45

Streaming HD channel (stutter):

root@et9x00:~# cat /proc/buddyinfo
Node 0, zone   Normal      1      4      3      2      3      2      2      1      2      2     45
​root@et9x00:~# cat /proc/buddyinfo
Node 0, zone   Normal      0      3      4      1      2      2      2      1      2      2     45
root@et9x00:~# cat /proc/buddyinfo
Node 0, zone   Normal      7      3      8      1      2      2      2      1      2      2     45

 

Log from VLC:

ts warning: discontinuity received 0x2 instead of 0xb (pid=532)
ts warning: discontinuity received 0x4 instead of 0xa (pid=591)
ts warning: discontinuity received 0x5 instead of 0xe (pid=820)
ts warning: discontinuity received 0xe instead of 0xa (pid=821)
ts debug: PMTCallBack called
ts debug: PATCallBack called
main debug: inserting 21696 zeroes
ts warning: discontinuity received 0xf instead of 0xe (pid=6101)
ts warning: discontinuity received 0x3 instead of 0xb (pid=532)
ts warning: discontinuity received 0xa instead of 0x5 (pid=821)
ts warning: discontinuity received 0x0 instead of 0xa (pid=820)
ts warning: discontinuity received 0x4 instead of 0xd (pid=591)
ts debug: PATCallBack called
ts warning: discontinuity received 0x1 instead of 0x0 (pid=6101)
ts debug: PMTCallBack called
main debug: inserting 23040 zeroes
ts warning: discontinuity received 0x1 instead of 0xb (pid=532)
ts warning: discontinuity received 0x2 instead of 0xb (pid=591)
ts warning: discontinuity received 0xa instead of 0x5 (pid=820)
ts warning: discontinuity received 0x6 instead of 0x1 (pid=821)
ts debug: PMTCallBack called
ts debug: PATCallBack called
ts warning: discontinuity received 0x6 instead of 0x3 (pid=6101)
main debug: inserting 28656 zeroes
ts warning: discontinuity received 0x0 instead of 0x9 (pid=532)
ts warning: discontinuity received 0x2 instead of 0x9 (pid=591)
ts warning: discontinuity received 0x1 instead of 0xd (pid=821)
ts warning: discontinuity received 0x5 instead of 0xf (pid=820)
ts debug: PATCallBack called
ts warning: discontinuity received 0xb instead of 0x9 (pid=6101)
ts debug: PMTCallBack called
main debug: inserting 21888 zeroes
ts warning: discontinuity received 0x2 instead of 0xa (pid=532)
ts warning: discontinuity received 0xd instead of 0x8 (pid=821)
ts warning: discontinuity received 0xd instead of 0x7 (pid=591)
ts warning: discontinuity received 0x0 instead of 0x9 (pid=820)
ts debug: PMTCallBack called
ts debug: PATCallBack called
ts warning: discontinuity received 0x1 instead of 0xf (pid=6101)
main debug: inserting 23088 zeroes

 

Log from Enigma2:

[eFilePushThreadRecorder] Warning: All write buffers busy
[eDVBRecordFileThread] cancelling
[eDVBRecordStreamThread] failed to cancel, killing all waiting IO
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] Waiting for I/O to complete
[eFilePushThreadRecorder] Warning: All write buffers busy
[eDVBRecordFileThread] cancelling
[eDVBRecordStreamThread] failed to cancel, killing all waiting IO
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] Waiting for I/O to complete
[eFilePushThreadRecorder] Warning: All write buffers busy
[eDVBRecordFileThread] cancelling
[eDVBRecordStreamThread] failed to cancel, killing all waiting IO
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] poll: aio_return returned failure: Success
[eDVBRecordFileThread] Waiting for I/O to complete

 


Edited by atilaks, 18 July 2014 - 16:52.


Re: Streaming - every 2-3 sec video and audio freezes #4 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 18 July 2014 - 19:46

looks like the problem was in network cable



Re: Streaming - every 2-3 sec video and audio freezes #5 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 19 July 2014 - 14:37

You can increase the buffer size on your client side...


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Streaming - every 2-3 sec video and audio freezes #6 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 24 July 2014 - 10:08

Question to @MiLo

 

I am playing with demux.cpp and I am actually getting better experience when enigma2 uses eDVBRecordFileThread for streaming instead of eDVBRecordStreamThread. 

 

eDVBRecordStreamThread has quite small bufferCount = 4 (comparing to 20 in eDVBRecordFileThread for 512MB boxes) and cancels aio before returning (causes corrupted packets).

 

In the era of current boxes having more than 512MB RAM do we still need to differentiate streaming and recording behaviour in demux.cpp?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users