Jump to content


Photo

Edit audio/video buffer size?


  • Please log in to reply
29 replies to this topic

#1 kurben

  • Senior Member
  • 41 posts

+3
Neutral

Posted 29 November 2015 - 15:00

Is there some way to change the audio and video buffer size in Enigma2 ?
It is the dvb live tv buffers that I would like to edit not the Gstreamer buffers.
Is it even possible? Or is it completly hardware/driver based?

The reason I would like to edit this is because I think this could perhaps solve my audio dropouts on channels with aac-he audio.

Re: Edit audio/video buffer size? #2 littlesat

  • PLi® Core member
  • 57,204 posts

+700
Excellent

Posted 29 November 2015 - 15:24

You can initiate an additional buffer with the last digit in the service reference... This by changing the last digit usual 0 into 1 (RAM only) or 3 (also via HDD).


Edited by littlesat, 29 November 2015 - 15:25.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Edit audio/video buffer size? #3 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 29 November 2015 - 16:57

You can initiate an additional buffer with the last digit in the service reference... This by changing the last digit usual 0 into 1 (RAM only) or 3 (also via HDD).

That is gstreamer. TS requests DVB.

 

Yes it is possible. No it won't fix your problems. The buffers are already huge, multiple megabytes. The decoder only starts running when enough data has been received to play smoothly. If you get hiccups, the stream is already broken (timestamps, vbv, etc) or the driver is buggy. What receiver?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Edit audio/video buffer size? #4 kurben

  • Senior Member
  • 41 posts

+3
Neutral

Posted 30 November 2015 - 10:38

Vu+ SoloSE v2 with DVB-T2 tuner.

 

The problem is only on channels with AAC-HE audio. If the channel has dual audio with AC3 and AAC-HE, the AC3 stream is perfect. 

I have reported this to VU+ but nothing happens. 

 

Same problem as this guy haves: http://www.world-of-...strial-T2-tuner

 

When streaming from the VU+ to Kodi the audio is better but not perfect as the AC3 stream is.

 

I have tried every downmix setting possible but to no avail.

 

Same problem on all images, Vu+ original, OpenPli, Openvix, Black Hole, open black hole etc...

 

I think it is related to either Vu+ drivers or Enigma2 code base?

 

The audio is perfect if I use the inbuilt tuner in my Panasonic TV so it is not related to reception, I have 98% on both signal and quality.



Re: Edit audio/video buffer size? #5 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 30 November 2015 - 11:55

What is the SOURCE of the data? (DVB? File? Network?)
Real musicians never die - they just decompose

Re: Edit audio/video buffer size? #6 kurben

  • Senior Member
  • 41 posts

+3
Neutral

Posted 30 November 2015 - 11:58

DVB-T2 channel Live tv, Video HD 720p h.264 Audio AAC-HE.



Re: Edit audio/video buffer size? #7 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 30 November 2015 - 11:59

Live TV does not pass through any buffers. It's all hardware routing, no buffering involved.

(If you shoot down E2 using kill -9 or so, TV will just keep on playing)

Edited by MiLo, 30 November 2015 - 12:00.

Real musicians never die - they just decompose

Re: Edit audio/video buffer size? #8 kurben

  • Senior Member
  • 41 posts

+3
Neutral

Posted 30 November 2015 - 12:51

I have also tried with a USB DVB-T2 tuner (Hauppauge PCTV NanoStick T2 HD 290e) and the same audio problem occurs on that one. But only on the Vu+ box. Not if I use the usb tuner on my Openelec mediapc or Windows laptop.



Re: Edit audio/video buffer size? #9 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 30 November 2015 - 15:43

Live TV does not pass through any buffers. It's all hardware routing, no buffering involved.

(If you shoot down E2 using kill -9 or so, TV will just keep on playing)

You'd probably have to STOP enigma instead, because otherwise the fd's get closed and the hardware stops ;)


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Edit audio/video buffer size? #10 kurben

  • Senior Member
  • 41 posts

+3
Neutral

Posted 4 December 2015 - 09:57

I tried some other things this week.

 

If I record a channel with AAC-HE and play back the file on my PC or mediacenter, the sound is at the right level and without audio dropouts.

 

If I play back the recorded file using Mediaplayer 1 or 2 on the Vu+ SoloSE using G-streamer the audio is STILL to low and with audio dropouts!

 

So where lies the problem? Is it related to Enigma2 or Vu+ hardware?



Re: Edit audio/video buffer size? #11 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 4 December 2015 - 13:55

Or... drivers.

 

Try it with the driver update from yesterday (just updating should be enough).


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Edit audio/video buffer size? #12 kurben

  • Senior Member
  • 41 posts

+3
Neutral

Posted 7 December 2015 - 12:50

I tried it yesterday and no difference when updating.

 

I discovered another strange thing instead. I found a channel on another mux with video h.264 but with SD (720x576i) and with AAC-HE audio. On that channel the audio is perfect and with correct level??? 

 

When I found this out I discovered that the Audio problem regarding AAC-HE is only related to HD channels! I tried several other channels and for the time it seems like the only option?

 

And also, why the hell does the problem still exist when watching recorded programs? Isn't it supposed to use G-streamer when playing back recordings?



Re: Edit audio/video buffer size? #13 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 7 December 2015 - 14:39

I've seen it too using vtuner. It's better/worse depending on the channel, there is no real systematic.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Edit audio/video buffer size? #14 kurben

  • Senior Member
  • 41 posts

+3
Neutral

Posted 7 December 2015 - 14:52

Then it is not the drivers for the Vu+ tuner. Since I get the same audio problem even if using a USB DVB-T2 tuner on the VU+ box.

 

What is vtuner? and who is writing that part? Vu+ or other?



Re: Edit audio/video buffer size? #15 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 7 December 2015 - 15:20

VTuner = virtual tuner. And yes, exactly an USB tuner makes use of that...


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Edit audio/video buffer size? #16 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 7 December 2015 - 17:50

Playback of normal recordings don't use gstreamer. Gstreamer is used for mkv, avi, MP3, flac and so on. So not for a DVB recordings (if they have a .ts extension).
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Edit audio/video buffer size? #17 kurben

  • Senior Member
  • 41 posts

+3
Neutral

Posted 8 December 2015 - 11:21

OK. I tried and recorded a channel with audio problems on AAC-HE and converted the file to a mp4 file without transcoding. Left the audio untuched.
When playing back the mp4 file the audio was perfect. Playing back the untouched ts file showed the same audio problem as usual.

So the bug is only related to ts and dvb playback.

Can some one give me any hint on how I can trace where the bug is?

Re: Edit audio/video buffer size? #18 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 8 December 2015 - 13:02

From this experiment it is very clear where the cause can be found...


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Edit audio/video buffer size? #19 Dambedei

  • Member
  • 11 posts

+1
Neutral

Posted 8 December 2015 - 13:22

Would it be possible to add a tiny buffer for (network)-TS-Streams?

My box doesn't have a tuner connected so i need Fallbacktuner/remotechannelconverter.

I have tested streaming with dreambox8000/800SE and Maxdigital XP1000.

Dreambox 8000 and XP1000 suffer from audio drops after switching channels till it finally normalizes and playback is perfectly fine.

Dreambox 800se never has audio drops but stops playback for about 1 second and then plays smoothly.

 

So basically it looks like the client/server needs to "catch up" and then it works flawless, would a buffer help here?


Edited by Dambedei, 8 December 2015 - 13:22.


Re: Edit audio/video buffer size? #20 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 8 December 2015 - 20:20

The problem probably exactly that is what happening. The DVB hardware wants to fill a buffer, but it only gets the stream at "play" rate, at a little delay from earlier buffering. The solution should be sought somewhere else, the stream should be "corked" for a little while before the decoder starts playing. But I am not sure if that's possible.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users