Record TV over USB

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

sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Record TV over USB

Post by sbav1 » Mon Sep 05, 2011 8:29 am

geo650 wrote:
sbav1 wrote:...
- PIP window can be hidden, by turning Chelsea scaler #1 off. It's possible from TDM. Probably doable from Content Library application level with simple SdVideo_Get()/SdVideo_Set() calls (not tested yet).
I would like to implement PIP hide/unhide function in PVR+ but I have no idea how to call the functions you mentioned.
Resizer app is using those functions (check the sources for details). I think given scaler can be turned off by ((SdVideo_Settings_t *)p)->bVideoOn = 0.
Screen ID for main picture/scaler is 0, and 1 for sub-scaler/sub picture. I believe Samsung is using sub-scaler mostly for PIP (it is probably used for generating SCART CVBS output as well - at least for DTV signals - but that's just a guess).
I was trying to get PIP window size using function SdVideo_GetPCPosition (correct one?)
Not likely; SdVideo_[Get|Set]PCPosition are probably for PC/VGA screen position adjustments.

User avatar
geo650
Official SamyGO Developer
Posts: 301
Joined: Wed Oct 07, 2009 12:03 pm

Re: Record TV over USB

Post by geo650 » Mon Sep 05, 2011 10:44 pm

sbav1 wrote:Resizer app is using those functions (check the sources for details). I think given scaler can be turned off by ((SdVideo_Settings_t *)p)->bVideoOn = 0. [...]
Thanks again, sbav1!
It worked. This procedure did the trick:

Code: Select all

typedef struct {
//...(definition of SdVideo_Settings_t from Resizer app here)... (cut to shorten this post)...
} SdVideo_Settings_t;

typedef int SdVideoID_k;

extern int _Z11SdVideo_Get11SdVideoID_kP18SdVideo_Settings_t(SdVideoID_k, SdVideo_Settings_t *);
extern int _Z11SdVideo_Set11SdVideoID_kP18SdVideo_Settings_t(SdVideoID_k, SdVideo_Settings_t *);

SdVideoID_k sd_i;        // scaler ID (0=main, 1=sub)
SdVideo_Settings_t s;    // settings' structure
SdVideo_Settings_t *p = &s;  // pointer to settings' structure

memset(p, 0, sizeof(SdVideo_Settings_t));
sd_i = 1;
int res = _Z11SdVideo_Get11SdVideoID_kP18SdVideo_Settings_t(sd_i, p);  // get current value(s)
if (!res)   // if no error occured...
{
   p->bVideoOn = 0;   // 0=off, 1=on (but PIP cannot be restored by setting this value to 1 only!)
   res  = _Z11SdVideo_Set11SdVideoID_kP18SdVideo_Settings_t(sd_i, p);  // set new value(s)
}
It will be applied to PVR+ soon. If not for background recording - than at least as standalone function. Thanks.
Further tests - later.


BTW, did you know that you can record TS stream played by MediaPlay? Someone on HDTV.com.pl forum told me and I checked it is true. You can cut out a piece of recording that way. ;) Funny. Not working with other file formats (unfortunately, no transcoding).
One function is also needed for PVR+ : it's pause key to pause and resume recording (I mean no slow STOP/START sequence). I hope it will be possible.

sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Record TV over USB

Post by sbav1 » Tue Sep 06, 2011 3:14 pm

geo650 wrote:One function is also needed for PVR+ : it's pause key to pause and resume recording (I mean no slow STOP/START sequence). I hope it will be possible.
It (most likely) is; I think we only need to flip PVR_EN bits in PID table entries for pause/resume. But transitions between paused-resumed parts of the final recording will not be smooth (unless TS pausing/resuming is done exactly on I-frame/key-frame boundaries).

sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Record TV over USB

Post by sbav1 » Thu Sep 08, 2011 6:15 pm

geo650 wrote: BTW, did you know that you can record TS stream played by MediaPlay? Someone on HDTV.com.pl forum told me and I checked it is true. You can cut out a piece of recording that way. ;) Funny.
Interesting. Looks like TV is using hardware TSD/PVR demultiplexer for .ts playback. But I see only 2 active entries in PID table in this mode (video & audio PID)_. I guess all PSI metadata (PAT/PMT/NIT packets) will be filtered out completely; that probably means result file will not be directly playable with mediaplayer (???). It might be hard to fix even with top-tier TS tools (not tested - my TS Doctor trial expired 2 weeks ago, unfortunately ).
unfortunately, no transcoding).
Transcoding in real-time: no way, IMO (not on the B-Series, anyway). Demultiplexing only.. eventually, we can also encrypt/decrypt our recordings with AES-ECB, if we wish so :).

sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Record TV over USB

Post by sbav1 » Thu Sep 08, 2011 6:33 pm

sbav1 wrote:But I see only 2 active entries in PID table in this mode (video & audio PID).
Also, audio PID chosen by TV seems to be plainly wrong sometimes for programs with multiple audio streams. I guess it is somehow related to common "missing audio while plyaing recordings" problem (correlation? coincidence ?).

bartekm
Posts: 2
Joined: Tue Sep 27, 2011 8:35 pm

Re: Record TV over USB

Post by bartekm » Thu Sep 29, 2011 5:45 pm

Hi
there is a problem with recording.
Recorded files can't by played on computer or edited (i use VirtualDub), but can be played by tv. I think there is a problem with splitting files.
I have recorded by accident 3s 16ms and it can by played but it dont have sound on my computer..
below is spec of working record on tv but not on computer:

Code: Select all

General
ID                               : 3
Complete name                    : F:\R2011-08-08_20-43_Sprawa_sie_rypla_PL__001.ts
Format                           : MPEG-TS
File size                        : 1.98 GiB
Duration                         : 52mn 42s
Overall bit rate                 : 5 382 Kbps
Network name                     : NW 01 Mazowieckie

Video
ID                               : 102 (0x66)
Menu ID                          : 31 (0x1F)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format version                   : Version 2
Format profile                   : Main@L3.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Format settings, GOP             : M=1, N=24
Duration                         : 52mn 42s
Bit rate                         : 4 729 Kbps
Maximum bit rate                 : 4 301 Kbps
Width                            : 720 pixels
Height                           : 576 pixels
Display aspect ratio             : 4:3
Frame rate                       : 25.000 fps
Standard                         : PAL
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Interlaced
Scan order                       : Top Field First
Bits/(Pixel*Frame)               : 0.456
Stream size                      : 1.74 GiB (88%)
Color primaries                  : BT.470-6 System B, BT.470-6 System G, BT.601-6 625, BT.1358 625, BT.1700 625 PAL, BT.1700 625 SECAM
Transfer characteristics         : BT.470-6 System B, BT.470-6 System G
Matrix coefficients              : BT.470-6 System B, BT.470-6 System G, BT.601-6 625, BT.1358 625, BT.1700 625 PAL, BT.1700 625 SECAM, IEC 61966-2-4 601

Audio
ID                               : 103 (0x67)
Menu ID                          : 31 (0x1F)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Duration                         : 52mn 42s
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Maximum bit rate                 : 432 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Video delay                      : -526ms
Stream size                      : 145 MiB (7%)
Language                         : Multiple languages

Text
ID                               : 105 (0x69)
Menu ID                          : 31 (0x1F)
Format                           : Teletext
Maximum bit rate                 : 226 Kbps
Language                         : Polish

Menu
ID                               : 101 (0x65)
Menu ID                          : 31 (0x1F)
Duration                         : 52mn 42s
List                             : 102 (0x66) (AVC) / 103 (0x67) (AC-3, Multiple languages) / 105 (0x69) (Teletext, Polish)
Language                         :  / mu / Ndonga / Polish
Maximum bit rate                 : 102400


bartekm
Posts: 2
Joined: Tue Sep 27, 2011 8:35 pm

Re: Record TV over USB

Post by bartekm » Mon Oct 03, 2011 10:01 am

Hi
I was able to open those files on my computer - it took while to open it, but recorded video is playable. VirtualDub doesn't support mpeg2-ts video streams.

rinaldinicri
Posts: 27
Joined: Tue Oct 04, 2011 12:12 am

Re: Record TV over USB

Post by rinaldinicri » Thu Oct 27, 2011 11:08 pm

I have the following problem:
The recorded .TS file are NOT playable on the TV mediaplayer.
I can play them on PC and on PS3.
Is there some fix to solve the problem?

LE40B650 (CI+) T-CHLCIPDEUC-2006.0

Post Reply

Return to “[B] Support”