[vlc-devel] Re: BDA Connection

xxcv xxcv07 at gmail.com
Sat Apr 21 13:11:55 CEST 2007


> --- bdagraph.cpp~       2007-04-20 02:39:40.000000000 +1000
> +++ bdagraph.cpp        2007-04-21 20:21:36.000000000 +1000
> @@ -406,11 +406,11 @@
>      CHECK_RESULT( hr,
>          "Build: Cannot load tuner device and connect network provider" )
>
> -    long l_capture_used = -1;
> +//    long l_capture_used = -1;
>  /* Add a Capture device and connect to the Network Tuner */
> -    hr = FindFilter( KSCATEGORY_BDA_RECEIVER_COMPONENT, &l_capture_used,
> -        p_tuner_device, &p_capture_device );
> -    CHECK_RESULT( hr, "Build: Cannot load Capture device and connect 
> to tuner" )
> +//    hr = FindFilter( KSCATEGORY_BDA_RECEIVER_COMPONENT, 
> &l_capture_used,
> +//        p_tuner_device, &p_capture_device );
> +//    CHECK_RESULT( hr, "Build: Cannot load Capture device and 
> connect to tuner" )
>
>  /* Create the Sample Grabber and connect to the Capture Device. */
>      hr = ::CoCreateInstance( CLSID_SampleGrabber, NULL, 
> CLSCTX_INPROC_SERVER,
> @@ -431,7 +431,7 @@
>      grabber_media_type.subtype == MEDIASUBTYPE_MPEG2_TRANSPORT;
>      hr = p_grabber->SetMediaType( &grabber_media_type );
>      CHECK_RESULT( hr, "Build: Cannot set media type on grabber filter!" )
> -    hr = Connect( p_capture_device, p_sample_grabber );
> +    hr = Connect( p_tuner_device, p_sample_grabber );
>      CHECK_RESULT( hr, "Build: Cannot connect Sample Grabber to 
> Capture device" )
>
>  /* Create the MPEG2 Demultiplexer and connect it to the Sample Grabber */
After changing the code like this, I was able to get vlc to playback DTV 
with Winfast usb dongle
> bda debug: BDA_Open - Access: bda
> bda debug: BDA_Open - Path:
> bda debug: BDA_Open - Demux:
> bda debug: SubmitDVBTTuneRequest: Set DVB-T Frequency and Bandwidth: 
> 219500 7
> bda debug: FindFilter: Connected WinFast DTV Dongle BDA Driver
> bda debug: FindFilter: Connected BDA MPEG2 Transport Information Filter
> bda debug: Build: BDA Filter Graph built
> main debug: using access2 module "bda"
> main debug: pre buffering
> bda debug: BDA ReadBuffer: Sample Discontinuity. 0
> main debug: received first data for our buffer
> main debug: prebuffering done 118440 bytes in 0s - 2284 kbytes/s
> main debug: creating demux: access='bda' demux='' path=''
> main debug: looking for demux2 module: 45 candidates
> main debug: using demux2 module "ts"
However mainly it is kind of unwatchable because of a nasty problem vlc 
win32 build has got.
> ts debug:   * service id=1576 eit schedule=0 present=1 running=4 free_ca=0
> ts debug:     - type=1 provider=Ten Sydney name=TEN HD
> main debug: EsOutProgramMeta: number=1576
> main debug:   - Name = TEN HD
> main debug:   - Provider = Ten Sydney
> main debug:   - Type = Digital television service
> main debug:   - Status = Running
> ts debug:   * service id=1577 eit schedule=0 present=1 running=4 free_ca=0
> ts debug:     - type=1 provider=Ten Sydney name=TEN Guide
> main debug: EsOutProgramMeta: number=1577
> main debug:   - Name = TEN Guide
> main debug:   - Provider = Ten Sydney
> main debug:   - Type = Digital television service
> main debug:   - Status = Running
> main warning: PTS is out of range (150752), dropping buffer
> main warning: PTS is out of range (126827), dropping buffer
> main warning: PTS is out of range (102875), dropping buffer
> main warning: PTS is out of range (78922), dropping buffer
> main warning: PTS is out of range (54968), dropping buffer
> main warning: PTS is out of range (31014), dropping buffer
> main warning: PTS is out of range (7060), dropping buffer
> main warning: PTS is out of range (-16895), dropping buffer
> main warning: late picture skipped (214735)
> main warning: late picture skipped (195358)
> main warning: late picture skipped (75465)
> main warning: PTS is out of range (113739), dropping buffer
> main warning: PTS is out of range (89803), dropping buffer
> main warning: PTS is out of range (65851), dropping buffer
> main warning: PTS is out of range (41898), dropping buffer
> main warning: PTS is out of range (17944), dropping buffer
> main warning: PTS is out of range (-6010), dropping buffer
> main warning: PTS is out of range (-29963), dropping buffer
> main warning: PTS is out of range (132968), dropping buffer
> main warning: PTS is out of range (109038), dropping buffer
> main warning: PTS is out of range (85088), dropping buffer
> main warning: PTS is out of range (61438), dropping buffer
> main warning: PTS is out of range (37500), dropping buffer
> main warning: PTS is out of range (13547), dropping buffer
> main warning: PTS is out of range (-10406), dropping buffer
> main warning: PTS is out of range (-34361), dropping buffer
> main warning: PTS is out of range (129884), dropping buffer
> main warning: PTS is out of range (105952), dropping buffer
> main warning: PTS is out of range (82008), dropping buffer
> main warning: PTS is out of range (58074), dropping buffer
> main warning: PTS is out of range (34124), dropping buffer
> main warning: PTS is out of range (10174), dropping buffer
> main warning: PTS is out of range (-13778), dropping buffer
> main warning: PTS is out of range (-37729), dropping buffer
> main warning: late picture skipped (312875)
> main warning: late picture skipped (272924)
> main warning: late picture skipped (152943)
Here you see lots of dropping buffer and late pictures and the video 
audio barely get played so i'm getting 2-3 FPS of playback with vlc. 
However if I re-stream the input stream or save input stream as file it 
is then perfectly watchable.
Except when stream it with only "play locally" situation improves from 
2-3 fps to something like 4-5 FPS. "Play locally" used to work with VCD 
which is choppy on vlc-win32 (I guess its because vcd resolution is 
really small compared to DTV).
Here's a link to the choppy VCD ticket on trac that nobody can fix it, 
http://trac.videolan.org/vlc/ticket/767#comment:1
I'm wondering choppy vcd playback problem is linked with this problem or 
is the same exact problem that VLC-win32 have.
The only problem with re-stream the input stream is that it lost DVB 
mpeg2-ts navigation in vlc mux for example Sydney channel Ten have more 
than one program in stream, one HD program one in 720x576 and a tv guide 
program.
http://i138.photobucket.com/albums/q266/xxcv/BDAstreaminfo.png


-- 
Best Regards,
xxcv

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list