Re: [Zapping-misc] teletext - particular page...
Status: Alpha
Brought to you by:
mschimek
From: Karol Z. <kza...@cr...> - 2006-09-24 16:46:36
|
Thanx a lot - I tried: ./capture --sliced | ./ttxfilter 777 | ./decode -a and I got following: Teletext line=323 7/ 0 >/.//...P..777.01/01.TG1.ndz.24.09.18:42:16< Teletext line= 7 7/27 >j6.s^j/j...j/j.jjjjj^jjjjj^jjjjj^jjjjj^j.O< Teletext line= 8 7/26 >/6.f...yA...AIOB...IOt..t..t..t..t..t..t..< Teletext line= 9 7/ 1 >j. .....STRONA 777... < Teletext line= 10 7/21 >j......n.,,, .NAPISY DLA NIES]YSZACYCH... < Teletext line= 11 7/22 >/......j.zw. . ... < Teletext line= 12 7/23 >j......(,,,/.WYKAZ PROGRAMOW - STR.335... < Teletext line= 13 7/24 >/!...WYKAZ PROGRAMOW ... PROGRAM TVP . < Teletext line= 14 1/ 0 >...8....d.160.01/01.TG1.ndz.24.09.18:42:16< Hamming error in pmag Hamming error in pmag Hamming error in pmag Hamming error in pmag Hamming error in pmag Whats are these errors? In the mean time I'm using 2 scripts: and I get output like : [2006-09-24 18:23:57] Swoje zbiory zanosz@ do gniazda [2006-09-24 18:24:23] i tam magazynuj@ je... It is possible that because of loop, I'll miss some subtitles? here come these simple scripts : <export_subtitles.sh (bash)> #!/bin/bash COUNTER=0 while [ $COUNTER -lt 1 ]; do ./capture --sliced | ./export "text;charset=UTF8" 777 | ./space_strip done </export_subtitles> <space_strip (freepascal)> uses strutils,strutils; var ch1,ch2:char; st:string; const st1='<unwanted strings>'; procedure parse_string(var s:string); begin s:=AnsiReplaceStr(s,st1,''); s:='['+formatdatetime('YYYY-MM-DD hh:nn:ss',Now)+']'; end; begin repeat read(ch1); read(ch2); if (((ch1=' ') or (ch1=chr(10))) and ((ch2=' ') or (ch2=chr(10)))) then begin repeat read(ch2); until ((ch2<>' ') and (ch2<>chr(10))); end; if (ch1=chr(26)) then begin parse_string(st);writeln(st);exit;end else if (ch2=chr(26)) then begin parse_string(st);writeln(st);exit;end else st:=st+ch1+ch2; until (true=false); end. </space_strip> Thank you for your help Regards Karol Zapolski On Sun, 2006-09-24 at 07:30 +0200, Michael Schimek wrote: > Hi Karol, > > > How can I capture particular page ie. 777 (it's subtitle page)... > > I've tried : > > capture --sliced | decode --a > > ./capture --sliced | ./ttxfilter 777 | ./decode -a > > If you need plain text > ./capture --sliced | ./export text 777 > would work too, but currently ./export quits after saving one page. > > Michael > |