All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Marx <acc.for.news@gmail.com>
Cc: linux-media@vger.kernel.org
Subject: Re: pctv452e
Date: Tue, 10 Jul 2012 12:33:44 +0300	[thread overview]
Message-ID: <4FFBF6F8.7010907@iki.fi> (raw)
In-Reply-To: <79vsc9-dte.ln1@wuwek.kopernik.gliwice.pl>

On 07/10/2012 09:39 AM, Marx wrote:
> On 09.07.2012 19:46, Antti Palosaari wrote:
>>>
>>> # tune to channel:
>>> szap -r "CHANNEL NAME"
>> -r option is important here as it routes stream to /dev/dvb/adapter0/dvr0
>
> done
>
>>> # dump channels from tuned multiplex (if you don't have that command
>>> just skip):
>>> scandvb -c
>
> marx@wuwek:~/zmaz$ scan -c
> using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
> 0x0000 0x10d7: pmt_pid 0x0104 TVN -- TVN (running, scrambled)
> 0x0000 0x10d8: pmt_pid 0x0105 TVN -- TVN 24 (running, scrambled)
> 0x0000 0x10d9: pmt_pid 0x0106 TVN -- TVN Siedem (running, scrambled)
> 0x0000 0x10da: pmt_pid 0x0107 TVN -- nSport (running, scrambled)
> 0x0000 0x10dc: pmt_pid 0x0109 TVN -- Mango 24 (running)
> 0x0000 0x10dd: pmt_pid 0x010a ITI -- TTV (running, scrambled)
> 0x0000 0x10de: pmt_pid 0x010b TVN -- TVN Meteo (running, scrambled)
> 0x0000 0x10df: pmt_pid 0x010c TVN -- TVN Turbo (running, scrambled)
> 0x0000 0x10e0: pmt_pid 0x010d TVN -- TVN Style (running, scrambled)
> 0x0000 0x10e1: pmt_pid 0x010e TVN -- Test (running, scrambled)
> 0x0000 0x10e2: pmt_pid 0x010f TVN -- TVN CNBC (running, scrambled)
> 0x0000 0x10ed: pmt_pid 0x0118 TVN -- Test_Radio (running)
> 0x0000 0x3aca: pmt_pid 0x0101 TVN -- Upload (running)
> dumping lists (13 services)
> TVN                      (0x10d7) 01: PCR == V   V 0x0200 A 0x028a (pol)
> TT 0x0240 AC3 0x028b SUB 0x1771
> TVN 24                   (0x10d8) 01: PCR == V   V 0x0201 A 0x0294 (pol)
> 0x0295 (org) SUB 0x177c
> TVN Siedem               (0x10d9) 01: PCR == V   V 0x0202 A 0x029e (pol)
> TT 0x0242 AC3 0x029f SUB 0x1772
> nSport                   (0x10da) 01: PCR == V   V 0x0203 A 0x02a8 (pol)
> Mango 24                 (0x10dc) 01: PCR == V   V 0x0205 A 0x02bc (pol)
> TT 0x0245
> TTV                      (0x10dd) 01: PCR == V   V 0x0206 A 0x02c6 (pol)
> TT 0x0246 AC3 0x02c7
> TVN Meteo                (0x10de) 01: PCR == V   V 0x0207 A 0x02d0 (pol)
> 0x02d1 (org) SUB 0x1782
> TVN Turbo                (0x10df) 01: PCR == V   V 0x0208 A 0x02da (pol)
> TT 0x0247 AC3 0x02db SUB 0x1773
> TVN Style                (0x10e0) 01: PCR == V   V 0x0209 A 0x02e4 (pol)
> TT 0x0248 AC3 0x02e5 SUB 0x1774
> Test                     (0x10e1) 01: PCR == V   V 0x020a A 0x02ee (pol)
> TT 0x0249
> TVN CNBC                 (0x10e2) 01: PCR == V   V 0x020b A 0x02f8 (pol)
> Test_Radio               (0x10ed) 02: PCR == A            A 0x0320 (eng)
> Upload                   (0x3aca) 01: PCR 0x1fff
> Done.
>
>
>
>> Could be named as scan, dvbscan, scandvb....
>>
>>> # save tuned channel to file (lets say 20 second):
>>> cat /dev/dvb/adapter0/dvr0 > test.ts
>
>> actually seems like ffmpeg could read directly dvr0
>> ffmpeg -i /dev/dvb/adapter0/dvr0
>> takes ~20 seconds or so until results are shown
>
> marx@wuwek:~/zmaz$ ffmpeg -i /dev/dvb/adapter0/dvr0
> p11-kit: couldn't load module:
> /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:
> /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open
> shared object file: No such file or directory
> ffmpeg version 0.8.3-6:0.8.3-4, Copyright (c) 2000-2012 the Libav
> developers
>    built on Jun 26 2012 07:23:46 with gcc 4.7.1
> *** THIS PROGRAM IS DEPRECATED ***
> This program is only provided for compatibility and will be removed in a
> future release. Please use avconv instead.
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 5 got 6
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 0 got 1
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 2 got 3
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 5 got 6
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 15 got 0
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 7 got 8
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 11 got 12
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 13 got 14
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 7 got 8
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 15 got 0
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 4 got 5
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 10 got 11
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 2 got 4
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 5 got 3
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 11 got 12
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 14 got 15
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 1 got 2
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 10 got 11
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 1 got 2
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 3 got 1
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 7 got 9
> [mpegts @ 0x8cd5900] Continuity check failed for pid 520 expected 10 got 9
>
>
>>
>>> # check if ffmpeg finds video and audio
>>> ffmpeg -i test.ts
> marx@wuwek:~/zmaz$ ffmpeg -i test.ts
> p11-kit: couldn't load module:
> /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:
> /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open
> shared object file: No such file or directory
> ffmpeg version 0.8.3-6:0.8.3-4, Copyright (c) 2000-2012 the Libav
> developers
>    built on Jun 26 2012 07:23:46 with gcc 4.7.1
> *** THIS PROGRAM IS DEPRECATED ***
> This program is only provided for compatibility and will be removed in a
> future release. Please use avconv instead.
> test.ts: Invalid data found when processing input
>
>
> Should I still attach/upload somewhere this test.ts file?
>
>
> I repeated above procedure for FTA channel:
>
> wuwek:~# szap -n 51 -r
> reading channels from file '/root/.szap/channels.conf'
> zapping to 51 'Mango 24;TVN':
> sat 0, frequency = 11393 MHz V, symbolrate 27500000, vpid = 0x0205, apid
> = 0x02bc sid = 0x0245
> using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
> status 1f | signal 01e5 | snr 0043 | ber 00000000 | unc fffffffe |
> FE_HAS_LOCK
> status 1f | signal 01e5 | snr 0043 | ber 00000000 | unc fffffffe |
> FE_HAS_LOCK
>
> wuwek:~# scan -c
> using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
> 0x0000 0x10d7: pmt_pid 0x0104 TVN -- TVN (running, scrambled)
> 0x0000 0x10d8: pmt_pid 0x0105 TVN -- TVN 24 (running, scrambled)
> 0x0000 0x10d9: pmt_pid 0x0106 TVN -- TVN Siedem (running, scrambled)
> 0x0000 0x10da: pmt_pid 0x0107 TVN -- nSport (running, scrambled)
> 0x0000 0x10dc: pmt_pid 0x0109 TVN -- Mango 24 (running)
> 0x0000 0x10dd: pmt_pid 0x010a ITI -- TTV (running, scrambled)
> 0x0000 0x10de: pmt_pid 0x010b TVN -- TVN Meteo (running, scrambled)
> 0x0000 0x10df: pmt_pid 0x010c TVN -- TVN Turbo (running, scrambled)
> 0x0000 0x10e0: pmt_pid 0x010d TVN -- TVN Style (running, scrambled)
> 0x0000 0x10e1: pmt_pid 0x010e TVN -- Test (running, scrambled)
> 0x0000 0x10e2: pmt_pid 0x010f TVN -- TVN CNBC (running, scrambled)
> 0x0000 0x10ed: pmt_pid 0x0118 TVN -- Test_Radio (running)
> 0x0000 0x3aca: pmt_pid 0x0101 TVN -- Upload (running)
> dumping lists (13 services)
> TVN                      (0x10d7) 01: PCR == V   V 0x0200 A 0x028a (pol)
> TT 0x0240 AC3 0x028b SUB 0x1771
> TVN 24                   (0x10d8) 01: PCR == V   V 0x0201 A 0x0294 (pol)
> 0x0295 (org) SUB 0x177c
> TVN Siedem               (0x10d9) 01: PCR == V   V 0x0202 A 0x029e (pol)
> TT 0x0242 AC3 0x029f SUB 0x1772
> nSport                   (0x10da) 01: PCR == V   V 0x0203 A 0x02a8 (pol)
> Mango 24                 (0x10dc) 01: PCR == V   V 0x0205 A 0x02bc (pol)
> TT 0x0245
> TTV                      (0x10dd) 01: PCR == V   V 0x0206 A 0x02c6 (pol)
> TT 0x0246 AC3 0x02c7
> TVN Meteo                (0x10de) 01: PCR == V   V 0x0207 A 0x02d0 (pol)
> 0x02d1 (org) SUB 0x1782
> TVN Turbo                (0x10df) 01: PCR == V   V 0x0208 A 0x02da (pol)
> TT 0x0247 AC3 0x02db SUB 0x1773
> TVN Style                (0x10e0) 01: PCR == V   V 0x0209 A 0x02e4 (pol)
> TT 0x0248 AC3 0x02e5 SUB 0x1774
> Test                     (0x10e1) 01: PCR == V   V 0x020a A 0x02ee (pol)
> TT 0x0249
> TVN CNBC                 (0x10e2) 01: PCR == V   V 0x020b A 0x02f8 (pol)
> Test_Radio               (0x10ed) 02: PCR == A            A 0x0320 (eng)
> Upload                   (0x3aca) 01: PCR 0x1fff
> Done.
>
> *** THIS PROGRAM IS DEPRECATED ***
> This program is only provided for compatibility and will be removed in a
> future release. Please use avconv instead.
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 15 got 0
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 1 got 2
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 15 got 0
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 2 got 3
> [mpegts @ 0x9376900] Continuity check failed for pid 700 expected 7 got 8
> [mpegts @ 0x9376900] Continuity check failed for pid 700 expected 9 got 10
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 15 got 0
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 14 got 15
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 7 got 2
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 12 got 13
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 4 got 12
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 13 got 5
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 8 got 9
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 9 got 10
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 4 got 5
> [mpegts @ 0x9376900] Continuity check failed for pid 700 expected 1 got 2
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 11 got 12
> [mpegts @ 0x9376900] PES packet size mismatch
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 4 got 5
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 10 got 11
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 1 got 11
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 12 got 2
> [mpegts @ 0x9376900] Continuity check failed for pid 700 expected 7 got 3
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 4 got 5
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 6 got 8
> [mpegts @ 0x9376900] Continuity check failed for pid 700 expected 4 got 7
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 9 got 11
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 12 got 10
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 14 got 15
> [mpegts @ 0x9376900] Continuity check failed for pid 700 expected 9 got 12
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 12 got 7
> [mpegts @ 0x9376900] Continuity check failed for pid 517 expected 8 got 13

Seems like stream is broken. It should look like that:

Input #0, mpegts, from '/dev/dvb/adapter0/dvr0':
   Duration: N/A, start: 19013.637311, bitrate: 15224 kb/s
     Stream #0:0[0x231]: Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
     Stream #0:1[0x131]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 
64:45 DAR 16:9], 15000 kb/s, 26.89 fps, 25 tbr, 90k tbn, 50 tbc


You have said it works some times. Could you try to using tzap + ffmpeg 
cases when it works and when it does not. Use FTA channels to analyze as 
I think ffmpeg could not say much about encrypted streams.

regards
Antti

-- 
http://palosaari.fi/



  reply	other threads:[~2012-07-10  9:33 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-04 16:04 pctv452e Steve Hill
2012-07-04 16:22 ` pctv452e Antti Palosaari
2012-07-04 18:46   ` pctv452e Marx
2012-07-04 18:53   ` pctv452e André Weidemann
2012-07-04 19:01     ` pctv452e Antti Palosaari
2012-07-05 13:14       ` pctv452e Marx
2012-07-05 14:23         ` pctv452e Antti Palosaari
2012-07-06  6:13           ` pctv452e Marx
2012-07-06  9:34             ` pctv452e Antti Palosaari
2012-07-06 11:04               ` pctv452e Marx
2012-07-06 18:24                 ` pctv452e Antti Palosaari
2012-07-06 22:23                 ` pctv452e Marx
2012-07-07  0:00                   ` pctv452e Antti Palosaari
2012-07-07 23:07                     ` pctv452e Marx
2012-07-08 12:32                       ` pctv452e Antti Palosaari
2012-07-09  6:24                         ` pctv452e Marx
2012-07-09  8:42                           ` pctv452e Antti Palosaari
2012-07-09 16:44                             ` pctv452e Marx
2012-07-09 17:38                               ` pctv452e Antti Palosaari
2012-07-09 17:46                                 ` pctv452e Antti Palosaari
2012-07-10  6:39                                   ` pctv452e Marx
2012-07-10  9:33                                     ` Antti Palosaari [this message]
2012-07-10 21:08                                       ` pctv452e Marx
2012-07-10 23:13                                         ` pctv452e Antti Palosaari
2012-07-11  6:25                                           ` pctv452e Marx
2012-07-11 10:00                                             ` pctv452e Antti Palosaari
2012-07-09 18:21                               ` pctv452e poma
2012-07-10  6:43                                 ` pctv452e Marx
2012-07-10 15:51                                   ` pctv452e poma
2012-07-10 15:58                                     ` pctv452e Devin Heitmueller
2012-07-10 22:54                                       ` pctv452e poma
2012-08-03 16:56   ` pctv452e Steve Hill
  -- strict thread matches above, loose matches on Subject: below --
2012-07-02 16:33 pctv452e Steve Hill
2012-07-03  7:46 ` pctv452e Marx
2012-07-03 23:04   ` pctv452e Antti Palosaari
2012-07-04  7:51     ` pctv452e Marx
2013-07-06 13:29 ` pctv452e Antti Palosaari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FFBF6F8.7010907@iki.fi \
    --to=crope@iki.fi \
    --cc=acc.for.news@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.