aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k
#1
Posted 7 June 2016 - 21:00
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #2
Posted 9 June 2016 - 00:54
I would appreciate if I could get answer to any of these questions. Since likely very few people have experience with all these receivers please answer any question you know the answer to, even if it is just one. The same question applies to enigmalight plugin as well, because it is using aio-grab code for capturing current frame.
Edited by Dean, 9 June 2016 - 00:56.
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #3
Posted 9 June 2016 - 06:45
Hi, I have vusolosev2
1.) Yes, grab utility works
2.) I just did a few tests and there looks to be no problems.
Here are some tests, maybe you have better idea how to test it:
100.sh
#!/bin/bash for i in `seq 1 100` ; do $@ ; done
grabbing SD video only, 100 times as fast as possible:
root@vusolose:~# time ./100.sh grab -v -q real 0m 11.00s user 0m 8.00s sys 0m 1.54s
grabbing HD video only, 100 times as fast as possible:
root@vusolose:~# time ./100.sh grab -v -q real 0m 32.65s user 0m 37.49s sys 0m 5.70s
If you grab only video, resolution of resulting picture is same as video's, so SD video -> SD picture.
Edited by mx3L, 9 June 2016 - 06:45.
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #4
Posted 9 June 2016 - 16:47
The frame grabbing is implemented by a very crude "peeking from memory" method that has been completely reverse-engineered. No official, open, documentation exists on this subject. So, yes, it seems to work, but zero guarantees. For one you will have tearing because there is no synchronisation with the vsync at all. And afaik none of the SoC's are fast enough to read the frame buffer in real time. Maybe the VU+ Solo4k's ARM processor, but rather not count on it.
* 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: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #5
Posted 11 June 2016 - 16:56
Edited by Dean, 11 June 2016 - 16:58.
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #6
Posted 11 June 2016 - 17:09
root@vusolo4k:/var/volatile/tmp# time ./100.sh grab -v -q real 0m 11.81s user 0m 1.53s sys 0m 6.25sFHD
root@vusolo4k:/var/volatile/tmp# time ./100.sh grab -v -q real 0m 11.00s user 0m 0.76s sys 0m 6.79s
Edited by athoik, 11 June 2016 - 17:09.
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #7
Posted 11 June 2016 - 17:27
Wow that was fast! Thanks a lot. 4k is significantly faster there.
To eliminate writing to disk part from the benchmark do you guys mind deleting lines 638 to 768 in grab's main file and then recompiling it? Or alternatively just download the code from this post.
Attached Files
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #8
Posted 11 June 2016 - 18:24
I built a grab library for the amBX plugin a few years ago, based on aio-grab code, which was intended to be called from a plugin or so, and it's much faster because it doesn't need to allocate/deallocate resources on each call. Should still be on sourgeforge.
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #9
Posted 11 June 2016 - 18:29
athoik can you please check the resolution of the grabbed UHD image? Because when I grab here I only have a 1920x1080 image and not a real UHD grab.
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: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #10
Posted 11 June 2016 - 19:49
if (stb_type == BRCM7366ARM) { int fd_video = open("/dev/dvb/adapter0/video0", O_RDONLY); if (fd_video < 0) { fprintf(stderr, "could not open /dev/dvb/adapter0/video0"); return; } ssize_t r = read(fd_video, video, 1920 * 1080 * 3); close(fd_video); *xres = 1920; *yres = 1080; return; }Although grabbing from videoX device seems better way to me.
Attached Files
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #11
Posted 11 June 2016 - 20:49
It writes to RAM anyway... It can also write to stdout by the way, so you can use the resulting image directly.
I built a grab library for the amBX plugin a few years ago, based on aio-grab code, which was intended to be called from a plugin or so, and it's much faster because it doesn't need to allocate/deallocate resources on each call. Should still be on sourgeforge.
You're right. And my goal is to write a plugin as well. Do you recall aprox. how many frames you could grab per second? And on what hardware.
Edited by Dean, 11 June 2016 - 20:49.
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #12
Posted 11 June 2016 - 20:50
I guess it will always be 1920x1080 when grabbing video.
if (stb_type == BRCM7366ARM) { int fd_video = open("/dev/dvb/adapter0/video0", O_RDONLY); if (fd_video < 0) { fprintf(stderr, "could not open /dev/dvb/adapter0/video0"); return; } ssize_t r = read(fd_video, video, 1920 * 1080 * 3); close(fd_video); *xres = 1920; *yres = 1080; return; }Although grabbing from videoX device seems better way to me.
Yeah resolution is hardcoded for Solo 4k unlike for some other receivers.
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #13
Posted 11 June 2016 - 21:10
I am really interested if 4k is grabbing framebuffers faster or perhaps athoik just has a faster hard drive. It seems that accessing the video buffer directly has a potential of being faster despite overall hardware being slower.
Also does anyone know if it would be be possible to grab only part of the frame with Solo 4k? With other VU+ receivers that is easy since you have a pointer. On 4k one would need to use lseek/fseek, assuming stream supports that.
My end goal is to write a plugin that removes static parts of the video to avoid image retention/burn-in on OLED and plasma TVs. I need it for my personal use but I'll of course also share it with everyone else.
Edited by Dean, 11 June 2016 - 21:15.
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #14
Posted 11 June 2016 - 21:52
It writes to RAM anyway... It can also write to stdout by the way, so you can use the resulting image directly.
I built a grab library for the amBX plugin a few years ago, based on aio-grab code, which was intended to be called from a plugin or so, and it's much faster because it doesn't need to allocate/deallocate resources on each call. Should still be on sourgeforge.
By the way allocation and deallocation shouldn't be that much of a bottle neck, malloc is probably reusing the same buffer. Writing to HDD should be a big bottle neck though, HDD and even SSD are many times slower than RAM. athoik do you have SSD by any chance?
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #15
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #16
Posted 11 June 2016 - 22:09
VU+ Solo2, HD and SD
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #17
Posted 11 June 2016 - 22:17
That doesn't really work here:
root@et10000:~# date ; for i in {1..100} ; do grab -v -q -s >/dev/null ; done ; date Sat Jun 11 22:15:30 IST 2016 Sat Jun 11 22:15:30 IST 2016 root@et10000:~# date ; for i in {1..100} ; do grab -v -q -s >/dev/null ; done ; date Sat Jun 11 22:16:17 IST 2016 Sat Jun 11 22:16:17 IST 2016
either that, or it's lightning fast (first SD, second HD)
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #18
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #19
Re: aio-grab code frame rate and reliability for VU+ Solo2/Duo2/SE/SE2/4k #20
Also tagged with one or more of these keywords: VU+, solo, duo, aio-grab
VuSolo2 Flash bricht abStarted by snake.bite, 25 Aug 2024 vu+, solo2, flash, image |
|
|||
Transcoding problems Vu+Duo4k SEStarted by ficaz, 19 Aug 2024 transcoding, streaming, vu+, port and 1 more... |
|
|||
geen beeld op kanalen van ziggo op VU+ ultimo 4k en extrend 10000Started by kostenzer, 16 May 2024 VU+, Xtrernd 10000 and 1 more... |
|
|||
Media Player freezesStarted by John 74, 11 Mar 2024 VU+, Duo, Media Player, freezes |
|
|||
VU+ Zero 4K als Hauptgerät - ZGemma H8.2H als ZweitgerätStarted by Spittek, 9 Nov 2023 VU+, ZGemma, Einrichtung, HD+ |
|
10 user(s) are reading this topic
0 members, 10 guests, 0 anonymous users