Request: Howto display vbi captions from the CLI

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
GScharf
New Cone
New Cone
Posts: 5
Joined: 02 Dec 2008 15:25

Request: Howto display vbi captions from the CLI

Postby GScharf » 03 Dec 2008 23:52

Greets, folks!

Here's the scenario.

I'm in North America, playing back QAM-256 modulated ATSC content coming in from my cable provider.

I'm reasonably certain it contains line21 encoded ClosedCaptions, probably 608 captions transmited via the 708 mechanism.

I'm unable to discover how to activate the captions from either the UI or the CLI....how do I do this? I've experimented with the various --vbi-text parameters, to no avail. Is there some other filter I need to activate to for display purposes?

Thanks in advance


Platform: gentoo linux, kernel 2.6.23
VLC version: 0.9.6
Streams are mpeg-2, using avcodec

CLI: (all script vars have valid values)

cvlc dvb:// --dvb-frequency=$FREQUENCY --dvb-modulation=$MODULATION --program=$PROGRAM \
--sub-filter=marq@test --marq-position="4" --marq-timeout="5000" --marq-marquee="Channel $ID $NAME " \
--no-osd \
--codec="zvbi" --vbi-page="100" --vbi-opaque --vbi-position="0" --vbi-text \
--video-filter "adjust{gamma=$VIDEO_GAMMA, brightness=$VIDEO_BRIGHTNESS, contrast=$VIDEO_CONTRAST, hue=$VIDEO_HUE, saturation=$VIDEO_SATURATION }" 2>/home/user/vlc.err.txt

Config:

Code: Select all

VLC media player 0.9.6 Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.6 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--host =i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/sha re' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--enable-a52' '--disable-aa' '--enable-fa ad' '--enable-alsa' '--disable-altivec' '--disable-arts' '--disable-asademux' '--disable-atmo ' '--disable-bonjour' '--enable-fribidi' '--enable-cdda' '--enable-cddax' '--disable-libcddb' '--enable-libcdio' '--disable-csri' '--disable-dbus' '--disable-dbus-control' '--disable-dir ac' '--disable-directfb' '--disable-dc1394' '--disable-debug' '--enable-dca' '--disable-dv' ' --enable-dvb' '--enable-dvdread' '--enable-dvdnav' '--disable-esd' '--disable-fb' '--enable-a vcodec' '--enable-avformat' '--disable-swscale' '--enable-imgresample' '--enable-postproc' '- -enable-flac' '--disable-fluidsynth' '--disable-fontconfig' '--disable-ggi' '--disable-gnomev fs' '--enable-gnutls' '--disable-hal' '--enable-httpd' '--disable-id3tag' '--disable-jack' '- -disable-kate' '--disable-libass' '--disable-caca' '--disable-notify' '--disable-libproxy' '- -disable-libtar' '--enable-libv4l2' '--disable-lirc' '--enable-live555' '--disable-lua' '--en able-mkv' '--enable-mmx' '--disable-mod' '--enable-mad' '--disable-libmpeg2' '--disable-mpc' '--enable-ncurses' '--disable-mozilla' '--with-mozilla-pkg=' '--enable-ogg' '--enable-glx' '- -enable-opengl' '--enable-galaktos' '--disable-optimize-memory' '--disable-oss' '--enable-png ' '--disable-portaudio' '--disable-pulse' '--disable-pvr' '--enable-realrtsp' '--disable-smb' '--disable-schroedinger' '--disable-sdl' '--disable-sdl-image' '--disable-shout' '--disable- speex' '--enable-sse' '--disable-svg' '--enable-svgalib' '--disable-taglib' '--enable-theora' '--enable-freetype' '--disable-twolame' '--disable-upnp' '--enable-v4l' '--enable-v4l2' '--e nable-vcd' '--disable-vcdinfo' '--disable-vcdx' '--enable-vorbis' '--enable-loader' '--enable -x11' '--enable-screen' '--enable-x264' '--enable-xinerama' '--disable-libxml2' '--disable-xo sd' '--enable-xvideo' '--disable-xvmc' '--enable-zvbi' '--disable-snapshot' '--disable-growl' '--disable-optimizations' '--enable-fast-install' '--enable-vlm' '--enable-sout' '--enable-s kins2' '--enable-qt4' '--enable-remoteosd' '--enable-libgcrypt' '--build=i686-pc-linux-gnu' ' build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=pentium4 -O2 -pi pe -fomit-frame-pointer' 'LDFLAGS=-Wl,-O1' 'CPPFLAGS=' 'CXXFLAGS=-march=pentium4 -O2 -pipe -f omit-frame-pointer' 'PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig' [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main libvlc debug: looking for memcpy module: 3 candidates [00000001] main libvlc debug: using memcpy module "memcpymmxext" [00000333] main interaction debug: thread started [00000333] main interaction debug: thread 935598992 (Interaction control) created at priority 0 (interface/interaction.c:382) [00000335] main input debug: Creating an input for 'Media Library' [00000335] main input debug: Input is a meta file: disabling unneeded options [00000335] main input debug: `file/xspf-open:///home/user/.local/share/vlc/ml.xspf' gives acce ss `file' demux `xspf-open' path `/home/user/.local/share/vlc/ml.xspf' [00000335] main input debug: creating access 'file' path='/home/user/.local/share/vlc/ml.xspf' [00000336] main access debug: looking for access module: 3 candidates [00000336] access_file access debug: opening file `/home/user/.local/share/vlc/ml.xspf' [00000336] main access debug: using access module "access_file" [00000336] main access debug: TIMER module_Need() : 1.215 ms - Total 1.215 ms / 1 intvls (Avg 1.215 ms) [00000341] main stream debug: Using AStream*Stream [00000341] main stream debug: pre-buffering... [00000341] main stream debug: received first data for our buffer [00000335] main input debug: creating demux: access='file' demux='xspf-open' path='/home/user/ .local/share/vlc/ml.xspf' [00000342] main demux debug: looking for demux module: 1 candidate [00000342] playlist demux debug: using XSPF playlist reader [00000342] main demux debug: using demux module "playlist" [00000342] main demux debug: TIMER module_Need() : 0.579 ms - Total 0.579 ms / 1 intvls (Avg 0.579 ms) [00000335] main input debug: `file/xspf-open:///home/user/.local/share/vlc/ml.xspf' successfully opened [00000357] main xml debug: looking for xml module: 1 candidate [00000357] main xml debug: using xml module "xtag" [00000357] main xml debug: TIMER module_Need() : 0.377 ms - Total 0.377 ms / 1 intvls (Avg 0.377 ms) [00000342] playlist demux warning: invalid <playlist> attribute:"xmlns:vlc" [00000342] playlist demux debug: parsed 0 tracks successfully [00000357] main xml debug: removing module "xtag" [00000335] main input debug: EOF reached [00000335] main input debug: control type=1 [00000342] main demux debug: removing module "playlist" [00000336] main access debug: removing module "access_file" [00000335] main input debug: TIMER input launching for 'Media Library' : 6.501 ms - Total 6.501 ms / 1 intvls (Avg 6.501 ms) [00000359] main preparser debug: thread started [00000359] main preparser debug: waiting for thread initialization [00000359] main preparser debug: thread 927206288 (preparser) created at priority 0 (playlist/thread.c:79) [00000360] main fetcher debug: thread started [00000360] main fetcher debug: waiting for thread initialization [00000360] main fetcher debug: thread 914545552 (fetcher) created at priority 0 (playlist/thread.c:108) [00000334] main playlist debug: thread started ... [00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00000367] main interface debug: looking for interface module: 4 candidates [00000367] main interface debug: using interface module "qt4" [00000367] main interface debug: TIMER module_Need() : 15.220 ms - Total 15.220 ms / 1 intvls (Avg 15.220 ms) [00000367] main interface debug: thread started [00000367] main interface debug: thread 853654416 (interface) created at priority 0 (interface/interface.c:168) [00000334] main playlist debug: rebuilding array of current - root Playlist [00000334] main playlist debug: rebuild done - 1 items, index -1 [00000334] main playlist debug: starting new item [00000334] main playlist debug: processing request item null node Playlist skip 0 [00000334] main playlist debug: creating new input thread [00000370] main input debug: Creating an input for 'dvb://' [00000370] main input debug: waiting for thread initialization [00000370] main input debug: thread started [00000370] main input debug: thread 845151120 (input) created at priority 10 (input/input.c:370) [00000370] main input debug: `dvb://' gives access `dvb' demux `' path `' [00000370] main input debug: creating demux: access='dvb' demux='' path='' [00000371] main demux debug: looking for access_demux module: 0 candidates [00000371] main demux warning: no access_demux module matched "dvb" [00000371] main demux debug: TIMER module_Need() : 0.251 ms - Total 0.251 ms / 1 intvls (Avg 0.251 ms) [00000370] main input debug: creating access 'dvb' path='' [00000372] main access debug: looking for access module: 1 candidate [00000372] dvb access debug: Opening device /dev/dvb/adapter0/frontend0 [00000372] dvb access debug: Frontend Info: [00000372] dvb access debug: name = LG Electronics LGDT3303 VSB/QAM Frontend [00000372] dvb access debug: type = ATSC (USA) [00000372] dvb access debug: frequency_min = 54000000 (kHz) [00000372] dvb access debug: frequency_max = 858000000 (kHz) [00000372] dvb access debug: frequency_stepsize = 62500 [00000372] dvb access debug: frequency_tolerance = 0 [00000372] dvb access debug: symbol_rate_min = 5056941 (kHz) [00000372] dvb access debug: symbol_rate_max = 10762000 (kHz) [00000372] dvb access debug: symbol_rate_tolerance (ppm) = 0 [00000372] dvb access debug: notifier_delay (ms) = 0 [00000372] dvb access debug: Frontend Info capability list: [00000372] dvb access debug: inversion auto [00000372] dvb access debug: card can do QAM 64 [00000372] dvb access debug: card can do QAM 256 [00000372] dvb access debug: card can do 8vsb [00000372] dvb access debug: End of capability list [00000372] dvb access debug: trying to tune the frontend... [00000372] dvb access debug: Opening device /dev/dvb/adapter0/dvr0 [00000372] dvb access debug: setting filter on PAT [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 0 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/ca0 [00000372] dvb access warning: CAMInit: opening CAM device failed (No such file or directory) [00000372] main access debug: using access module "dvb" [00000372] main access debug: TIMER module_Need() : 7.535 ms - Total 7.535 ms / 1 intvls (Avg 7.535 ms) [00000374] main stream debug: Using AStream*Block [00000374] main stream debug: pre buffering [00000367] qt4 interface debug: Error while initializing qt-specific localization [00000367] qt4 interface debug: Updating the stream status: 3 [00000374] main stream debug: received first data for our buffer [00000374] main stream debug: prebuffering done 376 bytes in 0s - 0 kbytes/s [00000370] main input debug: creating demux: access='dvb' demux='' path='' [00000375] main demux debug: looking for demux module: 46 candidates [00000372] dvb access debug: frontend has acquired signal [00000372] dvb access debug: frontend has acquired carrier [00000372] dvb access debug: frontend has acquired stable FEC [00000372] dvb access debug: frontend has acquired sync [00000372] dvb access debug: frontend has acquired lock [00000372] dvb access debug: - Bit error rate: 0 [00000372] dvb access debug: - Signal strength: 58181 [00000372] dvb access debug: - SNR: 7914 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 17 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 18 [00000375] main demux debug: using demux module "ts" [00000375] main demux debug: TIMER module_Need() : 1003.583 ms - Total 1003.583 ms / 1 intvls (Avg 1003.583 ms) [00000375] ts demux debug: DEMUX_SET_GROUP 2 (nil) [00000372] dvb access warning: unimplemented query in control [00000370] main input debug: `dvb://' successfully opened libdvbpsi error (PSI decoder): TS discontinuity (received 3, expected 0) for PID 0 [00000375] ts demux debug: PATCallBack called [00000375] ts demux debug: new PAT ts_id=33235 version=30 current_next=1 [00000375] ts demux debug: * number=10 pid=48 [00000375] ts demux debug: * number=1 pid=51 [00000375] ts demux debug: * number=5 pid=52 [00000375] ts demux debug: * number=7 pid=54 [00000375] ts demux debug: * number=4 pid=55 [00000375] ts demux debug: * number=6 pid=56 [00000375] ts demux debug: * number=2 pid=59 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 59 [00000375] ts demux debug: * number=3 pid=53 [00000375] ts demux debug: * number=12 pid=58 [00000375] ts demux debug: * number=8 pid=57 [00000375] ts demux debug: * number=9 pid=49 [00000375] ts demux debug: * number=11 pid=50 [00000367] qt4 interface debug: New Event: type 1103 [00000367] qt4 interface debug: Updating the stream status: 3 libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected 0) for PID 59 libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000375] ts demux debug: PMTCallBack called [00000375] ts demux debug: new PMT program number=2 version=16 pid_pcr=2688 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 2688 [00000375] ts demux debug: * descriptor : unknown (0x5) [00000375] ts demux debug: * es pid=2688 type=128 fcc=mpgv [00000370] main input debug: selecting program id=2 [00000400] main decoder debug: looking for decoder module: 29 candidates [00000400] avcodec decoder debug: libavcodec initialized (interface 3355904 ) [00000400] avcodec decoder debug: using direct rendering [00000400] avcodec decoder debug: ffmpeg codec (MPEG-2 Video) started [00000400] main decoder debug: using decoder module "avcodec" [00000400] main decoder debug: TIMER module_Need() : 10.354 ms - Total 10.354 ms / 1 intvls (Avg 10.354 ms) [00000428] main packetizer debug: looking for packetizer module: 17 candidates [00000428] main packetizer debug: using packetizer module "packetizer_mpegvideo" [00000428] main packetizer debug: TIMER module_Need() : 1.722 ms - Total 1.722 ms / 1 intvls (Avg 1.722 ms) [00000400] main decoder debug: thread started [00000400] main decoder debug: thread 824187792 (decoder) created at priority 0 (input/decoder.c:217) [00000375] ts demux debug: * es pid=2689 type=129 fcc=a52 [00000435] main decoder debug: looking for decoder module: 29 candidates [00000435] main decoder debug: using decoder module "a52" [00000435] main decoder debug: TIMER module_Need() : 0.333 ms - Total 0.333 ms / 1 intvls (Avg 0.333 ms) [00000435] main decoder debug: thread started [00000435] main decoder debug: thread 815795088 (decoder) created at priority 5 (input/decoder.c:217) [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 2689 [00000375] ts demux debug: * es pid=2690 type=134 *unknown* libdvbpsi error (PMT decoder): invalid section (table_id == 0xc1) [00000375] ts demux warning: first packet for pid=2688 cc=0xb [00000367] qt4 interface debug: New Event: type 1108 [00000370] main input debug: control type=1 libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000435] a52 decoder: A/52 channels:2 samplerate:48000 bitrate:192000 [00000435] main decoder debug: no aout present, spawning one [00000436] main audio output debug: looking for audio output module: 2 candidates ALSA lib setup.c:555:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory [00000436] alsa audio output debug: opening ALSA device `default' [00000436] main audio output debug: thread started [00000436] main audio output debug: thread 806984592 (aout) created at priority 15 (alsa.c:687) [00000436] main audio output debug: using audio output module "alsa" [00000436] main audio output debug: TIMER module_Need() : 15.399 ms - Total 15.399 ms / 1 intvls (Avg 15.399 ms) [00000436] main audio output debug: output 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes [00000436] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes [00000436] main audio output debug: no need for any filter [00000436] main audio output debug: looking for audio mixer module: 3 candidates [00000436] main audio output debug: using audio mixer module "float32_mixer" [00000436] main audio output debug: TIMER module_Need() : 0.507 ms - Total 0.507 ms / 1 intvls (Avg 0.507 ms) [00000436] main audio output debug: input 'a52 ' 48000 Hz Stereo frame=1536 samples/768 bytes [00000436] main audio output debug: filter(s) 'a52 '->'fl32' 48000 Hz->48000 Hz Stereo->Stereo [00000438] main audio output debug: looking for audio filter module: 24 candidates No accelerated IMDCT transform found [00000438] main audio output debug: using audio filter module "a52tofloat32" [00000438] main audio output debug: TIMER module_Need() : 1.412 ms - Total 1.412 ms / 1 intvls (Avg 1.412 ms) [00000436] main audio output debug: found a filter for the whole conversion [00000436] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo [00000441] main audio output debug: looking for audio filter module: 24 candidates libdvbpsi error (PMT decoder): invalid section (table_id == 0xc1) [00000441] main audio output debug: using audio filter module "bandlimited_resampler" [00000441] main audio output debug: TIMER module_Need() : 1.969 ms - Total 1.969 ms / 1 intvls (Avg 1.969 ms) [00000436] main audio output debug: found a filter for the whole conversion [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: size 704x480 fps=29.970 [00000400] main decoder debug: no usable vout present, spawning one [00000450] main filter debug: looking for sub filter module: 1 candidate [00000450] main filter debug: using sub filter module "marq" [00000450] main filter debug: TIMER module_Need() : 4.148 ms - Total 4.148 ms / 1 intvls (Avg 4.148 ms) [00000449] main subpicture debug: Filter 'marq@test' (0x82c8f24) appended to chain [00000448] main video output debug: window size: 704x528 [00000448] main video output debug: looking for video output module: 7 candidates [00000448] xvideo video output debug: adaptor 0, port 57, format 0x32315659 (YV12) planar [00000453] main window debug: looking for vout window module: 1 candidate [00000453] main window debug: TIMER module_Need() : 2.720 ms - Total 2.720 ms / 1 intvls (Avg 2.720 ms) [00000453] main window debug: no window provider available [00000448] xvideo video output debug: XShm video extension v1.1 (with pixmaps, opcode: 144) [00000448] xvideo video output debug: Window manager supports NetWM [00000448] xvideo video output debug: Window manager supports _NET_WM_STATE_FULLSCREEN [00000448] xvideo video output debug: Window manager supports _NET_WM_STATE_ABOVE [00000448] xvideo video output debug: Window manager supports _NET_WM_STATE_BELOW [00000448] main video output debug: using video output module "xvideo" [00000448] main video output debug: TIMER module_Need() : 13.454 ms - Total 13.454 ms / 1 intvls (Avg 13.454 ms) [00000448] main video output debug: thread started [00000448] main video output debug: got 8 direct buffer(s) [00000448] main video output debug: picture in 704x480 (0,0,704x480), chroma I420, ar 4:3, sar 10:11 [00000448] main video output debug: picture user 704x480 (0,0,704x480), chroma I420, ar 4:3, sar 10:11 [00000448] main video output debug: picture out 704x480 (0,0,704x480), chroma I420, ar 4:3, sar 10:11 [00000448] main video output debug: direct render, mapping render pictures 0-6 to system pictures 1-7 [00000448] main video output debug: waiting for thread initialization [00000448] main video output debug: thread 797023120 (video output) created at priority 15 (video_output/video_output.c:502) [00000367] qt4 interface debug: New Event: type 1109 [00000457] main filter debug: looking for video filter2 module: 1 candidate libdvbpsi error (PMT decoder): invalid section (table_id == 0xc1) [00000457] main filter debug: set config option: gamma to 1.8 [00000457] main filter debug: set config option: brightness to 1 [00000457] main filter debug: set config option: contrast to 1 [00000457] main filter debug: set config option: hue to 0 [00000457] main filter debug: set config option: saturation to 1 [00000457] main filter debug: using video filter2 module "adjust" [00000457] main filter debug: TIMER module_Need() : 4.968 ms - Total 4.968 ms / 1 intvls (Avg 4.968 ms) [00000448] main video output debug: Filter 'adjust' (0x82bc20c) appended to chain libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) libdvbpsi error (PMT decoder): invalid section (table_id == 0xc1) libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000460] message spu text warning: message queue overflowed [00000460] main spu text debug: looking for text renderer module: 2 candidates [00000460] freetype spu text debug: using fontsize: 30 [00000460] main spu text debug: using text renderer module "freetype" [00000460] main spu text debug: TIMER module_Need() : 2.456 ms - Total 2.456 ms / 1 intvls (Avg 2.456 ms) [00000460] freetype spu text debug: using fontsize: 30 [00000459] main blend debug: looking for video blending module: 1 candidate [00000459] blend blend debug: chroma: YUVA -> I420 [00000459] main blend debug: using video blending module "blend" [00000459] main blend debug: TIMER module_Need() : 0.614 ms - Total 0.614 ms / 1 intvls (Avg 0.614 ms)







(Sidebar, I had to tweak DecodeModulationATSC to allow VLC to display qam-256 modulated content...the ATSC spec allows for QAM modulation, and it' the one most commonly used by North American cable companies)

Code: Select all

static fe_modulation_t DecodeModulationATSC( access_t *p_access ) { switch( var_GetInteger( p_access, "dvb-modulation" ) ) { case 8: return VSB_8; case 16: return VSB_16; case 32: return QAM_32; case 64: return QAM_64; case 128: return QAM_128; case 256: return QAM_256; default: msg_Dbg( p_access, "ATSC modulation not set, using VSB 8"); return VSB_8; } }

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Request: Howto display vbi captions from the CLI

Postby Jean-Baptiste Kempf » 04 Dec 2008 01:23

static fe_modulation_t DecodeModulationATSC( access_t *p_access )
{
switch( var_GetInteger( p_access, "dvb-modulation" ) )
{
case 8: return VSB_8;
case 16: return VSB_16;
case 32: return QAM_32;
case 64: return QAM_64;
case 128: return QAM_128;
case 256: return QAM_256;

default:
msg_Dbg( p_access, "ATSC modulation not set, using VSB 8");
return VSB_8;
}
}

[/code]
This was added for 1.0
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Request: Howto display vbi captions from the CLI

Postby Jean-Baptiste Kempf » 04 Dec 2008 01:23

Greets, folks!

Here's the scenario.

I'm in North America, playing back QAM-256 modulated ATSC content coming in from my cable provider.

I'm reasonably certain it contains line21 encoded ClosedCaptions, probably 608 captions transmited via the 708 mechanism.

I'm unable to discover how to activate the captions from either the UI or the CLI....how do I do this? I've experimented with the various --vbi-text parameters, to no avail. Is there some other filter I need to activate to for display purposes?

Thanks in advance


Platform: gentoo linux, kernel 2.6.23
VLC version: 0.9.6
Streams are mpeg-2, using avcodec

CLI: (all script vars have valid values)

cvlc dvb:// --dvb-frequency=$FREQUENCY --dvb-modulation=$MODULATION --program=$PROGRAM \
--sub-filter=marq@test --marq-position="4" --marq-timeout="5000" --marq-marquee="Channel $ID $NAME " \
--no-osd \
--codec="zvbi" --vbi-page="100" --vbi-opaque --vbi-position="0" --vbi-text \
--video-filter "adjust{gamma=$VIDEO_GAMMA, brightness=$VIDEO_BRIGHTNESS, contrast=$VIDEO_CONTRAST, hue=$VIDEO_HUE, saturation=$VIDEO_SATURATION }" 2>/home/user/vlc.err.txt

Config:

Code: Select all

VLC media player 0.9.6 Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.6 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--host =i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/sha re' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--enable-a52' '--disable-aa' '--enable-fa ad' '--enable-alsa' '--disable-altivec' '--disable-arts' '--disable-asademux' '--disable-atmo ' '--disable-bonjour' '--enable-fribidi' '--enable-cdda' '--enable-cddax' '--disable-libcddb' '--enable-libcdio' '--disable-csri' '--disable-dbus' '--disable-dbus-control' '--disable-dir ac' '--disable-directfb' '--disable-dc1394' '--disable-debug' '--enable-dca' '--disable-dv' ' --enable-dvb' '--enable-dvdread' '--enable-dvdnav' '--disable-esd' '--disable-fb' '--enable-a vcodec' '--enable-avformat' '--disable-swscale' '--enable-imgresample' '--enable-postproc' '- -enable-flac' '--disable-fluidsynth' '--disable-fontconfig' '--disable-ggi' '--disable-gnomev fs' '--enable-gnutls' '--disable-hal' '--enable-httpd' '--disable-id3tag' '--disable-jack' '- -disable-kate' '--disable-libass' '--disable-caca' '--disable-notify' '--disable-libproxy' '- -disable-libtar' '--enable-libv4l2' '--disable-lirc' '--enable-live555' '--disable-lua' '--en able-mkv' '--enable-mmx' '--disable-mod' '--enable-mad' '--disable-libmpeg2' '--disable-mpc' '--enable-ncurses' '--disable-mozilla' '--with-mozilla-pkg=' '--enable-ogg' '--enable-glx' '- -enable-opengl' '--enable-galaktos' '--disable-optimize-memory' '--disable-oss' '--enable-png ' '--disable-portaudio' '--disable-pulse' '--disable-pvr' '--enable-realrtsp' '--disable-smb' '--disable-schroedinger' '--disable-sdl' '--disable-sdl-image' '--disable-shout' '--disable- speex' '--enable-sse' '--disable-svg' '--enable-svgalib' '--disable-taglib' '--enable-theora' '--enable-freetype' '--disable-twolame' '--disable-upnp' '--enable-v4l' '--enable-v4l2' '--e nable-vcd' '--disable-vcdinfo' '--disable-vcdx' '--enable-vorbis' '--enable-loader' '--enable -x11' '--enable-screen' '--enable-x264' '--enable-xinerama' '--disable-libxml2' '--disable-xo sd' '--enable-xvideo' '--disable-xvmc' '--enable-zvbi' '--disable-snapshot' '--disable-growl' '--disable-optimizations' '--enable-fast-install' '--enable-vlm' '--enable-sout' '--enable-s kins2' '--enable-qt4' '--enable-remoteosd' '--enable-libgcrypt' '--build=i686-pc-linux-gnu' ' build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=pentium4 -O2 -pi pe -fomit-frame-pointer' 'LDFLAGS=-Wl,-O1' 'CPPFLAGS=' 'CXXFLAGS=-march=pentium4 -O2 -pipe -f omit-frame-pointer' 'PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig' [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main libvlc debug: looking for memcpy module: 3 candidates [00000001] main libvlc debug: using memcpy module "memcpymmxext" [00000333] main interaction debug: thread started [00000333] main interaction debug: thread 935598992 (Interaction control) created at priority 0 (interface/interaction.c:382) [00000335] main input debug: Creating an input for 'Media Library' [00000335] main input debug: Input is a meta file: disabling unneeded options [00000335] main input debug: `file/xspf-open:///home/user/.local/share/vlc/ml.xspf' gives acce ss `file' demux `xspf-open' path `/home/user/.local/share/vlc/ml.xspf' [00000335] main input debug: creating access 'file' path='/home/user/.local/share/vlc/ml.xspf' [00000336] main access debug: looking for access module: 3 candidates [00000336] access_file access debug: opening file `/home/user/.local/share/vlc/ml.xspf' [00000336] main access debug: using access module "access_file" [00000336] main access debug: TIMER module_Need() : 1.215 ms - Total 1.215 ms / 1 intvls (Avg 1.215 ms) [00000341] main stream debug: Using AStream*Stream [00000341] main stream debug: pre-buffering... [00000341] main stream debug: received first data for our buffer [00000335] main input debug: creating demux: access='file' demux='xspf-open' path='/home/user/ .local/share/vlc/ml.xspf' [00000342] main demux debug: looking for demux module: 1 candidate [00000342] playlist demux debug: using XSPF playlist reader [00000342] main demux debug: using demux module "playlist" [00000342] main demux debug: TIMER module_Need() : 0.579 ms - Total 0.579 ms / 1 intvls (Avg 0.579 ms) [00000335] main input debug: `file/xspf-open:///home/user/.local/share/vlc/ml.xspf' successfully opened [00000357] main xml debug: looking for xml module: 1 candidate [00000357] main xml debug: using xml module "xtag" [00000357] main xml debug: TIMER module_Need() : 0.377 ms - Total 0.377 ms / 1 intvls (Avg 0.377 ms) [00000342] playlist demux warning: invalid <playlist> attribute:"xmlns:vlc" [00000342] playlist demux debug: parsed 0 tracks successfully [00000357] main xml debug: removing module "xtag" [00000335] main input debug: EOF reached [00000335] main input debug: control type=1 [00000342] main demux debug: removing module "playlist" [00000336] main access debug: removing module "access_file" [00000335] main input debug: TIMER input launching for 'Media Library' : 6.501 ms - Total 6.501 ms / 1 intvls (Avg 6.501 ms) [00000359] main preparser debug: thread started [00000359] main preparser debug: waiting for thread initialization [00000359] main preparser debug: thread 927206288 (preparser) created at priority 0 (playlist/thread.c:79) [00000360] main fetcher debug: thread started [00000360] main fetcher debug: waiting for thread initialization [00000360] main fetcher debug: thread 914545552 (fetcher) created at priority 0 (playlist/thread.c:108) [00000334] main playlist debug: thread started ... [00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00000367] main interface debug: looking for interface module: 4 candidates [00000367] main interface debug: using interface module "qt4" [00000367] main interface debug: TIMER module_Need() : 15.220 ms - Total 15.220 ms / 1 intvls (Avg 15.220 ms) [00000367] main interface debug: thread started [00000367] main interface debug: thread 853654416 (interface) created at priority 0 (interface/interface.c:168) [00000334] main playlist debug: rebuilding array of current - root Playlist [00000334] main playlist debug: rebuild done - 1 items, index -1 [00000334] main playlist debug: starting new item [00000334] main playlist debug: processing request item null node Playlist skip 0 [00000334] main playlist debug: creating new input thread [00000370] main input debug: Creating an input for 'dvb://' [00000370] main input debug: waiting for thread initialization [00000370] main input debug: thread started [00000370] main input debug: thread 845151120 (input) created at priority 10 (input/input.c:370) [00000370] main input debug: `dvb://' gives access `dvb' demux `' path `' [00000370] main input debug: creating demux: access='dvb' demux='' path='' [00000371] main demux debug: looking for access_demux module: 0 candidates [00000371] main demux warning: no access_demux module matched "dvb" [00000371] main demux debug: TIMER module_Need() : 0.251 ms - Total 0.251 ms / 1 intvls (Avg 0.251 ms) [00000370] main input debug: creating access 'dvb' path='' [00000372] main access debug: looking for access module: 1 candidate [00000372] dvb access debug: Opening device /dev/dvb/adapter0/frontend0 [00000372] dvb access debug: Frontend Info: [00000372] dvb access debug: name = LG Electronics LGDT3303 VSB/QAM Frontend [00000372] dvb access debug: type = ATSC (USA) [00000372] dvb access debug: frequency_min = 54000000 (kHz) [00000372] dvb access debug: frequency_max = 858000000 (kHz) [00000372] dvb access debug: frequency_stepsize = 62500 [00000372] dvb access debug: frequency_tolerance = 0 [00000372] dvb access debug: symbol_rate_min = 5056941 (kHz) [00000372] dvb access debug: symbol_rate_max = 10762000 (kHz) [00000372] dvb access debug: symbol_rate_tolerance (ppm) = 0 [00000372] dvb access debug: notifier_delay (ms) = 0 [00000372] dvb access debug: Frontend Info capability list: [00000372] dvb access debug: inversion auto [00000372] dvb access debug: card can do QAM 64 [00000372] dvb access debug: card can do QAM 256 [00000372] dvb access debug: card can do 8vsb [00000372] dvb access debug: End of capability list [00000372] dvb access debug: trying to tune the frontend... [00000372] dvb access debug: Opening device /dev/dvb/adapter0/dvr0 [00000372] dvb access debug: setting filter on PAT [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 0 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/ca0 [00000372] dvb access warning: CAMInit: opening CAM device failed (No such file or directory) [00000372] main access debug: using access module "dvb" [00000372] main access debug: TIMER module_Need() : 7.535 ms - Total 7.535 ms / 1 intvls (Avg 7.535 ms) [00000374] main stream debug: Using AStream*Block [00000374] main stream debug: pre buffering [00000367] qt4 interface debug: Error while initializing qt-specific localization [00000367] qt4 interface debug: Updating the stream status: 3 [00000374] main stream debug: received first data for our buffer [00000374] main stream debug: prebuffering done 376 bytes in 0s - 0 kbytes/s [00000370] main input debug: creating demux: access='dvb' demux='' path='' [00000375] main demux debug: looking for demux module: 46 candidates [00000372] dvb access debug: frontend has acquired signal [00000372] dvb access debug: frontend has acquired carrier [00000372] dvb access debug: frontend has acquired stable FEC [00000372] dvb access debug: frontend has acquired sync [00000372] dvb access debug: frontend has acquired lock [00000372] dvb access debug: - Bit error rate: 0 [00000372] dvb access debug: - Signal strength: 58181 [00000372] dvb access debug: - SNR: 7914 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 17 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 18 [00000375] main demux debug: using demux module "ts" [00000375] main demux debug: TIMER module_Need() : 1003.583 ms - Total 1003.583 ms / 1 intvls (Avg 1003.583 ms) [00000375] ts demux debug: DEMUX_SET_GROUP 2 (nil) [00000372] dvb access warning: unimplemented query in control [00000370] main input debug: `dvb://' successfully opened libdvbpsi error (PSI decoder): TS discontinuity (received 3, expected 0) for PID 0 [00000375] ts demux debug: PATCallBack called [00000375] ts demux debug: new PAT ts_id=33235 version=30 current_next=1 [00000375] ts demux debug: * number=10 pid=48 [00000375] ts demux debug: * number=1 pid=51 [00000375] ts demux debug: * number=5 pid=52 [00000375] ts demux debug: * number=7 pid=54 [00000375] ts demux debug: * number=4 pid=55 [00000375] ts demux debug: * number=6 pid=56 [00000375] ts demux debug: * number=2 pid=59 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 59 [00000375] ts demux debug: * number=3 pid=53 [00000375] ts demux debug: * number=12 pid=58 [00000375] ts demux debug: * number=8 pid=57 [00000375] ts demux debug: * number=9 pid=49 [00000375] ts demux debug: * number=11 pid=50 [00000367] qt4 interface debug: New Event: type 1103 [00000367] qt4 interface debug: Updating the stream status: 3 libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected 0) for PID 59 libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000375] ts demux debug: PMTCallBack called [00000375] ts demux debug: new PMT program number=2 version=16 pid_pcr=2688 [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 2688 [00000375] ts demux debug: * descriptor : unknown (0x5) [00000375] ts demux debug: * es pid=2688 type=128 fcc=mpgv [00000370] main input debug: selecting program id=2 [00000400] main decoder debug: looking for decoder module: 29 candidates [00000400] avcodec decoder debug: libavcodec initialized (interface 3355904 ) [00000400] avcodec decoder debug: using direct rendering [00000400] avcodec decoder debug: ffmpeg codec (MPEG-2 Video) started [00000400] main decoder debug: using decoder module "avcodec" [00000400] main decoder debug: TIMER module_Need() : 10.354 ms - Total 10.354 ms / 1 intvls (Avg 10.354 ms) [00000428] main packetizer debug: looking for packetizer module: 17 candidates [00000428] main packetizer debug: using packetizer module "packetizer_mpegvideo" [00000428] main packetizer debug: TIMER module_Need() : 1.722 ms - Total 1.722 ms / 1 intvls (Avg 1.722 ms) [00000400] main decoder debug: thread started [00000400] main decoder debug: thread 824187792 (decoder) created at priority 0 (input/decoder.c:217) [00000375] ts demux debug: * es pid=2689 type=129 fcc=a52 [00000435] main decoder debug: looking for decoder module: 29 candidates [00000435] main decoder debug: using decoder module "a52" [00000435] main decoder debug: TIMER module_Need() : 0.333 ms - Total 0.333 ms / 1 intvls (Avg 0.333 ms) [00000435] main decoder debug: thread started [00000435] main decoder debug: thread 815795088 (decoder) created at priority 5 (input/decoder.c:217) [00000372] dvb access debug: Opening device /dev/dvb/adapter0/demux0 [00000372] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 2689 [00000375] ts demux debug: * es pid=2690 type=134 *unknown* libdvbpsi error (PMT decoder): invalid section (table_id == 0xc1) [00000375] ts demux warning: first packet for pid=2688 cc=0xb [00000367] qt4 interface debug: New Event: type 1108 [00000370] main input debug: control type=1 libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000435] a52 decoder: A/52 channels:2 samplerate:48000 bitrate:192000 [00000435] main decoder debug: no aout present, spawning one [00000436] main audio output debug: looking for audio output module: 2 candidates ALSA lib setup.c:555:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory [00000436] alsa audio output debug: opening ALSA device `default' [00000436] main audio output debug: thread started [00000436] main audio output debug: thread 806984592 (aout) created at priority 15 (alsa.c:687) [00000436] main audio output debug: using audio output module "alsa" [00000436] main audio output debug: TIMER module_Need() : 15.399 ms - Total 15.399 ms / 1 intvls (Avg 15.399 ms) [00000436] main audio output debug: output 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes [00000436] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes [00000436] main audio output debug: no need for any filter [00000436] main audio output debug: looking for audio mixer module: 3 candidates [00000436] main audio output debug: using audio mixer module "float32_mixer" [00000436] main audio output debug: TIMER module_Need() : 0.507 ms - Total 0.507 ms / 1 intvls (Avg 0.507 ms) [00000436] main audio output debug: input 'a52 ' 48000 Hz Stereo frame=1536 samples/768 bytes [00000436] main audio output debug: filter(s) 'a52 '->'fl32' 48000 Hz->48000 Hz Stereo->Stereo [00000438] main audio output debug: looking for audio filter module: 24 candidates No accelerated IMDCT transform found [00000438] main audio output debug: using audio filter module "a52tofloat32" [00000438] main audio output debug: TIMER module_Need() : 1.412 ms - Total 1.412 ms / 1 intvls (Avg 1.412 ms) [00000436] main audio output debug: found a filter for the whole conversion [00000436] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo [00000441] main audio output debug: looking for audio filter module: 24 candidates libdvbpsi error (PMT decoder): invalid section (table_id == 0xc1) [00000441] main audio output debug: using audio filter module "bandlimited_resampler" [00000441] main audio output debug: TIMER module_Need() : 1.969 ms - Total 1.969 ms / 1 intvls (Avg 1.969 ms) [00000436] main audio output debug: found a filter for the whole conversion [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000428] packetizer_mpegvideo packetizer debug: waiting for sequence start [00000428] packetizer_mpegvideo packetizer debug: size 704x480 fps=29.970 [00000400] main decoder debug: no usable vout present, spawning one [00000450] main filter debug: looking for sub filter module: 1 candidate [00000450] main filter debug: using sub filter module "marq" [00000450] main filter debug: TIMER module_Need() : 4.148 ms - Total 4.148 ms / 1 intvls (Avg 4.148 ms) [00000449] main subpicture debug: Filter 'marq@test' (0x82c8f24) appended to chain [00000448] main video output debug: window size: 704x528 [00000448] main video output debug: looking for video output module: 7 candidates [00000448] xvideo video output debug: adaptor 0, port 57, format 0x32315659 (YV12) planar [00000453] main window debug: looking for vout window module: 1 candidate [00000453] main window debug: TIMER module_Need() : 2.720 ms - Total 2.720 ms / 1 intvls (Avg 2.720 ms) [00000453] main window debug: no window provider available [00000448] xvideo video output debug: XShm video extension v1.1 (with pixmaps, opcode: 144) [00000448] xvideo video output debug: Window manager supports NetWM [00000448] xvideo video output debug: Window manager supports _NET_WM_STATE_FULLSCREEN [00000448] xvideo video output debug: Window manager supports _NET_WM_STATE_ABOVE [00000448] xvideo video output debug: Window manager supports _NET_WM_STATE_BELOW [00000448] main video output debug: using video output module "xvideo" [00000448] main video output debug: TIMER module_Need() : 13.454 ms - Total 13.454 ms / 1 intvls (Avg 13.454 ms) [00000448] main video output debug: thread started [00000448] main video output debug: got 8 direct buffer(s) [00000448] main video output debug: picture in 704x480 (0,0,704x480), chroma I420, ar 4:3, sar 10:11 [00000448] main video output debug: picture user 704x480 (0,0,704x480), chroma I420, ar 4:3, sar 10:11 [00000448] main video output debug: picture out 704x480 (0,0,704x480), chroma I420, ar 4:3, sar 10:11 [00000448] main video output debug: direct render, mapping render pictures 0-6 to system pictures 1-7 [00000448] main video output debug: waiting for thread initialization [00000448] main video output debug: thread 797023120 (video output) created at priority 15 (video_output/video_output.c:502) [00000367] qt4 interface debug: New Event: type 1109 [00000457] main filter debug: looking for video filter2 module: 1 candidate libdvbpsi error (PMT decoder): invalid section (table_id == 0xc1) [00000457] main filter debug: set config option: gamma to 1.8 [00000457] main filter debug: set config option: brightness to 1 [00000457] main filter debug: set config option: contrast to 1 [00000457] main filter debug: set config option: hue to 0 [00000457] main filter debug: set config option: saturation to 1 [00000457] main filter debug: using video filter2 module "adjust" [00000457] main filter debug: TIMER module_Need() : 4.968 ms - Total 4.968 ms / 1 intvls (Avg 4.968 ms) [00000448] main video output debug: Filter 'adjust' (0x82bc20c) appended to chain libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) libdvbpsi error (PMT decoder): invalid section (table_id == 0xc1) libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) libdvbpsi error (PMT decoder): invalid section (table_id == 0xc0) [00000460] message spu text warning: message queue overflowed [00000460] main spu text debug: looking for text renderer module: 2 candidates [00000460] freetype spu text debug: using fontsize: 30 [00000460] main spu text debug: using text renderer module "freetype" [00000460] main spu text debug: TIMER module_Need() : 2.456 ms - Total 2.456 ms / 1 intvls (Avg 2.456 ms) [00000460] freetype spu text debug: using fontsize: 30 [00000459] main blend debug: looking for video blending module: 1 candidate [00000459] blend blend debug: chroma: YUVA -> I420 [00000459] main blend debug: using video blending module "blend" [00000459] main blend debug: TIMER module_Need() : 0.614 ms - Total 0.614 ms / 1 intvls (Avg 0.614 ms)







(Sidebar, I had to tweak DecodeModulationATSC to allow VLC to display qam-256 modulated content...the ATSC spec allows for QAM modulation, and it' the one most commonly used by North American cable companies)

Code: Select all

static fe_modulation_t DecodeModulationATSC( access_t *p_access ) { switch( var_GetInteger( p_access, "dvb-modulation" ) ) { case 8: return VSB_8; case 16: return VSB_16; case 32: return QAM_32; case 64: return QAM_64; case 128: return QAM_128; case 256: return QAM_256; default: msg_Dbg( p_access, "ATSC modulation not set, using VSB 8"); return VSB_8; } }
If VLC correctly loading zbvi ?
vlc --list |grep vbi ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

GScharf
New Cone
New Cone
Posts: 5
Joined: 02 Dec 2008 15:25

Re: Request: Howto display vbi captions from the CLI

Postby GScharf » 04 Dec 2008 03:05

Yes, zvbi appears to be loaded:

Code: Select all

vlc --list | grep zvbi VLC media player 0.9.6 Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.6 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--enable-a52' '--disable-aa' '--enable-faad' '--enable-alsa' '--disable-altivec' '--disable-arts' '--disable-asademux' '--disable-atmo' '--disable-bonjour' '--enable-fribidi' '--enable-cdda' '--enable-cddax' '--disable-libcddb' '--enable-libcdio' '--disable-csri' '--disable-dbus' '--disable-dbus-control' '--disable-dirac' '--disable-directfb' '--disable-dc1394' '--disable-debug' '--enable-dca' '--disable-dv' '--enable-dvb' '--enable-dvdread' '--enable-dvdnav' '--disable-esd' '--disable-fb' '--enable-avcodec' '--enable-avformat' '--disable-swscale' '--enable-imgresample' '--enable-postproc' '--enable-flac' '--disable-fluidsynth' '--disable-fontconfig' '--disable-ggi' '--disable-gnomevfs' '--enable-gnutls' '--disable-hal' '--enable-httpd' '--disable-id3tag' '--disable-jack' '--disable-kate' '--disable-libass' '--disable-caca' '--disable-notify' '--disable-libproxy' '--disable-libtar' '--enable-libv4l2' '--disable-lirc' '--enable-live555' '--disable-lua' '--enable-mkv' '--enable-mmx' '--disable-mod' '--enable-mad' '--disable-libmpeg2' '--disable-mpc' '--enable-ncurses' '--disable-mozilla' '--with-mozilla-pkg=' '--enable-ogg' '--enable-glx' '--enable-opengl' '--enable-galaktos' '--disable-optimize-memory' '--disable-oss' '--enable-png' '--disable-portaudio' '--disable-pulse' '--disable-pvr' '--enable-realrtsp' '--disable-smb' '--disable-schroedinger' '--disable-sdl' '--disable-sdl-image' '--disable-shout' '--disable-speex' '--enable-sse' '--disable-svg' '--enable-svgalib' '--disable-taglib' '--enable-theora' '--enable-freetype' '--disable-twolame' '--disable-upnp' '--enable-v4l' '--enable-v4l2' '--enable-vcd' '--disable-vcdinfo' '--disable-vcdx' '--enable-vorbis' '--enable-loader' '--enable-x11' '--enable-screen' '--enable-x264' '--enable-xinerama' '--disable-libxml2' '--disable-xosd' '--enable-xvideo' '--disable-xvmc' '--enable-zvbi' '--disable-snapshot' '--disable-growl' '--disable-optimizations' '--enable-fast-install' '--enable-vlm' '--enable-sout' '--enable-skins2' '--enable-qt4' '--enable-remoteosd' '--enable-libgcrypt' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=pentium4 -O2 -pipe -fomit-frame-pointer' 'LDFLAGS=-Wl,-O1' 'CPPFLAGS=' 'CXXFLAGS=-march=pentium4 -O2 -pipe -fomit-frame-pointer' 'PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig' [00000001] main libvlc debug: translation test: code is "C" zvbi VBI and Teletext decoder


Does the decode module also handle displaying the caption text? Or does it hand it off to some other teletext or subtitle rendering module?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Request: Howto display vbi captions from the CLI

Postby Jean-Baptiste Kempf » 04 Dec 2008 12:20

I was just asking because it doesn't seem to be loaded in your messages... Do you have telx around too?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

GScharf
New Cone
New Cone
Posts: 5
Joined: 02 Dec 2008 15:25

Re: Request: Howto display vbi captions from the CLI

Postby GScharf » 04 Dec 2008 14:55

Aye; Telx be loaded.

Code: Select all

vlc --list | grep telx VLC media player 0.9.6 Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.6 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--enable-a52' '--disable-aa' '--enable-faad' '--enable-alsa' '--disable-altivec' '--disable-arts' '--disable-asademux' '--disable-atmo' '--disable-bonjour' '--enable-fribidi' '--enable-cdda' '--enable-cddax' '--disable-libcddb' '--enable-libcdio' '--disable-csri' '--disable-dbus' '--disable-dbus-control' '--disable-dirac' '--disable-directfb' '--disable-dc1394' '--disable-debug' '--enable-dca' '--disable-dv' '--enable-dvb' '--enable-dvdread' '--enable-dvdnav' '--disable-esd' '--disable-fb' '--enable-avcodec' '--enable-avformat' '--disable-swscale' '--enable-imgresample' '--enable-postproc' '--enable-flac' '--disable-fluidsynth' '--disable-fontconfig' '--disable-ggi' '--disable-gnomevfs' '--enable-gnutls' '--disable-hal' '--enable-httpd' '--disable-id3tag' '--disable-jack' '--disable-kate' '--disable-libass' '--disable-caca' '--disable-notify' '--disable-libproxy' '--disable-libtar' '--enable-libv4l2' '--disable-lirc' '--enable-live555' '--disable-lua' '--enable-mkv' '--enable-mmx' '--disable-mod' '--enable-mad' '--disable-libmpeg2' '--disable-mpc' '--enable-ncurses' '--disable-mozilla' '--with-mozilla-pkg=' '--enable-ogg' '--enable-glx' '--enable-opengl' '--enable-galaktos' '--disable-optimize-memory' '--disable-oss' '--enable-png' '--disable-portaudio' '--disable-pulse' '--disable-pvr' '--enable-realrtsp' '--disable-smb' '--disable-schroedinger' '--disable-sdl' '--disable-sdl-image' '--disable-shout' '--disable-speex' '--enable-sse' '--disable-svg' '--enable-svgalib' '--disable-taglib' '--enable-theora' '--enable-freetype' '--disable-twolame' '--disable-upnp' '--enable-v4l' '--enable-v4l2' '--enable-vcd' '--disable-vcdinfo' '--disable-vcdx' '--enable-vorbis' '--enable-loader' '--enable-x11' '--enable-screen' '--enable-x264' '--enable-xinerama' '--disable-libxml2' '--disable-xosd' '--enable-xvideo' '--disable-xvmc' '--enable-zvbi' '--disable-snapshot' '--disable-growl' '--disable-optimizations' '--enable-fast-install' '--enable-vlm' '--enable-sout' '--enable-skins2' '--enable-qt4' '--enable-remoteosd' '--enable-libgcrypt' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=pentium4 -O2 -pipe -fomit-frame-pointer' 'LDFLAGS=-Wl,-O1' 'CPPFLAGS=' 'CXXFLAGS=-march=pentium4 -O2 -pipe -fomit-frame-pointer' 'PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig' [00000001] main libvlc debug: translation test: code is "C" telx Teletext subtitles decoder

kevsprout
New Cone
New Cone
Posts: 2
Joined: 04 Mar 2009 01:57

Re: Request: Howto display vbi captions from the CLI

Postby kevsprout » 09 Mar 2009 22:15

How do I confirm decoding of 708. From what I understand VLC is really decoding the 608 that is also attached to the file.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Request: Howto display vbi captions from the CLI

Postby Jean-Baptiste Kempf » 10 Mar 2009 08:20

How do I confirm decoding of 708. From what I understand VLC is really decoding the 608 that is also attached to the file.
I don't understand the question...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kevsprout
New Cone
New Cone
Posts: 2
Joined: 04 Mar 2009 01:57

Re: Request: Howto display vbi captions from the CLI

Postby kevsprout » 10 Mar 2009 17:10

If I have a MPEG2 file that has both 608 and 708 captions. How do I select to decode the 708 specifically.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Request: Howto display vbi captions from the CLI

Postby Jean-Baptiste Kempf » 10 Mar 2009 17:27

If I have a MPEG2 file that has both 608 and 708 captions. How do I select to decode the 708 specifically.
Is it detected in the emssages?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 67 guests