Page 10 of 30
Re: Record TV over USB
Posted: Sun Mar 28, 2010 8:39 pm
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..
Re: Record TV over USB
Posted: Sun Mar 28, 2010 10:38 pm
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.
Re: Record TV over USB
Posted: Tue Mar 30, 2010 1:42 am
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 
Re: Record TV over USB
Posted: Tue Mar 30, 2010 9:56 am
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!!

).
Re: Record TV over USB
Posted: Tue Mar 30, 2010 1:16 pm
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.
Re: Record TV over USB
Posted: Tue Mar 30, 2010 3:22 pm
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..