Record TV over USB

Here for general support for B series TVs, request and problem solve area.

doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

Re: Record TV over USB

Post by doodlecz »

I encountered similar problems when trying to extend the code inside pvr_injection(), so I decided to use a little bit different approach, ie: move the actual code to external functions completely.
Yes, I also ended up with such solution.. was just curious about the reason..
It is interesting about the undocumented keys, I will try it. Anyway I hoped in some kind of flag in the info window etc. And after some research, it seems, the PreRecord/PostRecord functions do not have such possibility. I can call the function, probably with proper params, but with no visible effect. Maybe it was not implemented..
sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Record TV over USB

Post by sbav1 »

doodlecz wrote:Yes, I also ended up with such solution.. was just curious about the reason..
Some cases I encountered previously, while investigating no-longer-working .so specimens in disassembler:
1) Additional code in pvr_injection() -> gcc uses more registers locally -> more registers are put in "STMFD SP!, {...}" init code, but not accounted on exit -> SP corruption on 1st return
2) Too many or too long local variables inside -> gcc stack allocation goes complicated (in not easilly predictable way, especially with -O2 flag) -> stack corruption, sooner or later.
doodlecz wrote:And after some research, it seems, the PreRecord/PostRecord functions do not have such possibility. I can call the function, probably with proper params, but with no visible effect. Maybe it was not implemented..
AFAIRC many high level pvr functions are more-or-less incomplete (or just missing in some cases) in different firmware branches.. probably not quite to be relied upon.
Maybe you can use some kind of eg. small red square/circle, drawn in overlay screen, as an indicator.. it's easy to draw/hide, but code management may become a little complicated, as framebuffer addresses probably tend to differ on various TV models.
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: Record TV over USB

Post by geo650 »

Hi! I was testing your app on LE40B650T2W with 2.5" USB HDD. It works quite well. All files are visible and can be played by MediaPlay. All DVB-C recordings were played in PC (not using VLC, just Media Player Classic + Haali Media Spliter + ffdshow filters; some files should be fixed by TS Doctor or similar application). There were no lost frames.
There was only one problem when I occasionally hit REC button twice -> then the screen freezed and I was forced to reboot my TV.

Thank you! Now I can disconnect SERVICE cable + palmtop from my TV :P
doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

Re: Record TV over USB

Post by doodlecz »

Let's hope, it is because of slow transfer bitrate.. if not, i feel, we have a big problem to solve ahead.. I can't wait to make some tests today (finally at home!! :)).
nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

Re: Record TV over USB

Post by nbd »

Hello, are you using the usb port that is labeled (HDD) in the TV? At least my TV has 2 USB ports, and the other has (HDD) in it, maybe for better transfer rates.
doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

Re: Record TV over USB

Post by doodlecz »

What if I grab the PVR in TV internal memory, where does it record the file?
Destination directory is now fixed to /dtv/usb/sda1/..
So it can be USB or eventually network share - if mounted before USB is plugged in..

Post Reply

Return to “[B] Support”