http://www.cs.usyd.edu.au/~efax/DVPiper.html
il suffisait de faire une boucle de 21 a 60 (Canal x 8 ) + 306 +0.167 = Fréquence (MHz)
Ici une version en autoit facilement transposable en n'importe quel langage, certainement même en DOS batch.
Code : Tout sélectionner
RechercheMultiplex()
Func RechercheMultiplex()
Local $sDVPiper = 'C:\player\DVPiper\DVPiper.exe'
Local $sdevice = '-devicenum 2' ; ou -devicename "AF9015 BDA Filter"
Local $scmd, $i, $ifreq, $sxml
For $i = 21 To 60
;http://www.tvnt.net/forum/tableau-de-conversion-des-canaux-uhf-en-frequences-t23059.html
;( Canal x 8 ) + 306 +0.167 = Fréquence (MHz)
$ifreq = ((($i * 8) + 306) + 0.167) * 1000
$sxml = $ifreq & '.xml'
$scmd = $sDVPiper & ' ' & $sdevice & _
' -type dvb-t -frequency ' & _
$ifreq & ' -bandwidth 8 -command scan(filedec(' & _
Cote($sxml) & ')) -emptyexit'
;DVPiper.exe -devicenum 1 -type DVB-T -frequency 522167 -bandwidth 8 -command scan(filedec('522167.xml'))
RunWait($scmd, "", @SW_HIDE)
If FileGetSize($sxml) < 10 Then FileDelete($sxml) ; un fichier normal fait plus de 4000
Next
EndFunc ;==>RechercheMultiplex
Func Cote($value, $delim = '"')
Return $delim & $value & $delim
EndFunc ;==>Cote
Code : Tout sélectionner
DVPiper.exe -devicename "DVB-T Dongle" -type dvb-t -frequency 474167 -bandwidth 8
scan(filedec('474167.xml'))
.
.
fqbw(754167)
scan(filedec('754167.xml'))
Code : Tout sélectionner
>DVPiper.exe -listdevice >dvb_device.txt
DVPiper version 2.07 (C) 2007-2016 RS (pirayen at gmail)
Input/output code page: 850/850
Parameters: DVPiper.exe -listdevice
Device 1 (DVB-T): AF9015 BDA Filter
Display name: @device:pnp:\\?\usb#vid_07ca&pid_850a#302704900534000#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{9b365890-165f-11d0-a195-0020afd156e4}
Device 2 (DVB-T): Hauppauge SMS1000 DVB-T Tuner
Display name: @device:pnp:\\?\usb#vid_2040&pid_c000#4033533266#{71985f48-1ca1-11d3-9cc8-00c04f7971e0}\{76594675-42d1-46df-8478-001aa08de1f2}
Code : Tout sélectionner
>DVPiper.exe -devicenum 2 -type dvb-t -frequency 522167 -bandwidth 8 -command signal >signal.txt
DVPiper version 2.07 (C) 2007-2016 RS (pirayen at gmail)
Input/output code page: 850/850
Parameters: DVPiper.exe -devicenum 2 -type dvb-t -frequency 522167 -bandwidth 8 -command signal
Set type: DVB-T
Set carrier frequency: 522ÿ167kHz
Set DVB-T bandwidth: 8MHz
Using Device 2: Hauppauge SMS1000 DVB-T Tuner
Check graph:
TS_OPEN
Show signal status of device command: signal
Strength:55 Quality:100 Locked:1
Error reading input: 0, 16
Up-time: 00:00:33.540
Total read:104ÿ321ÿ200 bytes, Average rate:3ÿ110ÿ351,82 bytes/second
Total packet error:0, Total other error:0, Total clean data:1,00000
TS_CLOSE
Exiting
Code : Tout sélectionner
>DVPiper -devicenum 2 -type dvb-t -frequency 522167 -bandwidth 8 -epg "epg.xml"
.
.
.
<programme channel="8442_1_257" start="20161116095500 +0000" stop="20161116103000 +0000">
<category lang="en">Show/Game Show</category>
<category lang="en">Game Show/Quiz/Contest</category>
<title lang="fr">Motus</title>
<desc lang="fr">Jeu présenté par Thierry Beccaro.
Deux équipes s'affrontent pour déchiffrer des mots de sept à dix lettres.</desc>
</programme>
<programme channel="8442_1_257" start="20161116103000 +0000" stop="20161116110000 +0000">
<category lang="en">Show/Game Show</category>
<category lang="en">Game Show/Quiz/Contest</category>
<title lang="fr">Les Z'amours</title>
<desc lang="fr">Jeu présenté par Tex.
Trois couples de candidats répondent à des questions censées évaluer la connaissance qu'ils ont de leurs partenaires respectifs.</desc>
.
.
Code : Tout sélectionner
>DVPiper.exe -devicenum 2 -type dvb-t -frequency 522167 -bandwidth 8 -command scan -emptyexit >scan.txt
DVPiper version 2.07 (C) 2007-2016 RS (pirayen at gmail)
Input/output code page: 850/850
Parameters: DVPiper.exe -devicenum 2 -type dvb-t -frequency 522167 -bandwidth 8 -command scan -emptyexit
Set type: DVB-T
Set carrier frequency: 522ÿ167kHz
Set DVB-T bandwidth: 8MHz
Using Device 2: Hauppauge SMS1000 DVB-T Tuner
Check graph:
TS_OPEN
Channel scan command: scan
Waiting 10 seconds for scan
Increased channel scan maximum time to 63s due to demodulator change
TS_START:ChannelScan
<programs date="20161116102157 +0000" generator-info-name="DVPiper" networkType="DVB-T" frequency="522167" bandwidth="8">
<program id="1025" name="M6" provider="Multi4" access="FTA" originalNetworkId="8442" transportStreamId="4">
<packet pid="100" type="PMT"/>
<packet pid="120" type="PCR"/>
<packet pid="120" type="Video H264" streamType="27"/>
<packet pid="130" type="Unknown" streamType="6" language="fra"/>
<packet pid="131" type="Unknown" streamType="6" language="qad"/>
<packet pid="132" type="Unknown" streamType="6" language="qaa"/>
<packet pid="140" type="Subtitle" streamType="6">
<subtitle type="36" cpage="1" apage="1" language="fra"/>
</packet>
<packet pid="141" type="Subtitle" streamType="6">
<subtitle type="20" cpage="1" apage="1" language="fra"/>
</packet>
<packet pid="170" type="Unknown" streamType="5"/>
<packet pid="171" type="Unknown" streamType="11"/>
</program>
<program id="1026" name="W9" provider="Multi4" access="FTA" originalNetworkId="8442" transportStreamId="4">
<packet pid="200" type="PMT"/>
<packet pid="220" type="PCR"/>
<packet pid="220" type="Video H264" streamType="27"/>
<packet pid="230" type="Unknown" streamType="6" language="fra"/>
<packet pid="231" type="Unknown" streamType="6" language="qad"/>
<packet pid="232" type="Unknown" streamType="6" language="qaa"/>
<packet pid="240" type="Subtitle" streamType="6">
<subtitle type="36" cpage="1" apage="1" language="fra"/>
</packet>
<packet pid="241" type="Subtitle" streamType="6">
<subtitle type="20" cpage="1" apage="1" language="fra"/>
</packet>
</program>
<program id="1031" name="Arte" provider="Multi4" access="FTA" originalNetworkId="8442" transportStreamId="4">
<packet pid="300" type="PMT"/>
<packet pid="320" type="PCR"/>
<packet pid="320" type="Video H264" streamType="27"/>
<packet pid="330" type="Unknown" streamType="6" language="fra"/>
<packet pid="331" type="Unknown" streamType="6" language="qad"/>
<packet pid="332" type="Unknown" streamType="6" language="qaa"/>
<packet pid="333" type="Unknown" streamType="6" language="deu"/>
<packet pid="340" type="Subtitle" streamType="6">
<subtitle type="36" cpage="1" apage="1" language="fra"/>
</packet>
<packet pid="341" type="Subtitle" streamType="6">
<subtitle type="20" cpage="1" apage="1" language="fra"/>
</packet>
<packet pid="342" type="Subtitle" streamType="6">
<subtitle type="20" cpage="1" apage="1" language="deu"/>
</packet>
<packet pid="370" type="Unknown" streamType="5"/>
<packet pid="371" type="Unknown" streamType="11"/>
</program>
<program id="1045" name="France 5" provider="Multi4" access="FTA" originalNetworkId="8442" transportStreamId="4">
<packet pid="400" type="PMT"/>
<packet pid="420" type="PCR"/>
<packet pid="420" type="Video H264" streamType="27"/>
<packet pid="430" type="Unknown" streamType="6" language="fra"/>
<packet pid="431" type="Unknown" streamType="6" language="qad"/>
<packet pid="440" type="Subtitle" streamType="6">
<subtitle type="36" cpage="1" apage="1" language="fra"/>
</packet>
<packet pid="432" type="Unknown" streamType="6" language="qaa"/>
<packet pid="441" type="Subtitle" streamType="6">
<subtitle type="20" cpage="1" apage="1" language="fra"/>
</packet>
</program>
<program id="1046" name="6ter" provider="Multi4" access="FTA" originalNetworkId="8442" transportStreamId="4">
<packet pid="500" type="PMT"/>
<packet pid="520" type="PCR"/>
<packet pid="520" type="Video H264" streamType="27"/>
<packet pid="530" type="Unknown" streamType="6" language="fra"/>
<packet pid="531" type="Unknown" streamType="6" language="qad"/>
<packet pid="532" type="Unknown" streamType="6" language="qaa"/>
<packet pid="540" type="Subtitle" streamType="6">
<subtitle type="36" cpage="1" apage="1" language="fra"/>
</packet>
<packet pid="541" type="Subtitle" streamType="6">
<subtitle type="20" cpage="1" apage="1" language="fra"/>
</packet>
</program>
</programs>
TS_FINISHED:ChannelScan
Exiting program, no more recording
Up-time: 00:00:03.962
Total read:12ÿ327ÿ536 bytes, Average rate:3ÿ111ÿ442,71 bytes/second
Total packet error:0, Total other error:0, Total clean data:1,00000
TS_CLOSE
Exiting
Code : Tout sélectionner
>DVPiper.exe -devicenum 2 -type dvb-t -frequency 522167 -bandwidth 8 -command "record(rid(1),progid(1031),buildpat,send(file('C:\player\DVPiper\1031.ts')))"
Code : Tout sélectionner
Général
ID : 1 (0x1)
Nom complet : C:\player\DVPiper\DVPiper1031.ts
Format : MPEG-TS
Taille du fichier : 157 Mio
Durée : 4 min 30s
Type de débit global : Variable
Débit global moyen : 4 866 kb/s
Vidéo
ID : 320 (0x140)
ID de menu : 1031 (0x407)
Format : AVC
Format/Info : Advanced Video Codec
Profil du format : High@L4
Paramètres du format, CABAC : Oui
Paramètres du format, RefFrames : 4 images
Identifiant du codec : 27
Durée : 4 min 30s
Débit : 4 173 kb/s
Largeur : 1 920 pixels
Hauteur : 1 080 pixels
Format à l'écran : 16/9
Images par seconde : 25,000 Im/s
Norme : Component
Espace de couleurs : YUV
Sous-échantillonnage de la chrominance : 4:2:0
Profondeur des couleurs : 8 bits
Type de balayage : MBAFF
Ordre de balayage, mode d'enregistrement : Trames séparées
Ordre de balayage : Ligne du haut d'abord
Bits/(Pixel*Image) : 0.081
Taille du flux : 134 Mio (86%)
Gamme de couleurs : Limited
Coordonnées de chromaticité : BT.709
Caractéristiques du transfert : BT.709
Coefficients de la matrice : BT.709
Audio #1
ID : 330 (0x14A)
ID de menu : 1031 (0x407)
Format : E-AC-3
Format/Info : Audio Coding 3
Paramètres du format, Endianness : Big
Identifiant du codec : 6
Durée : 4 min 30s
Type de débit : Constant
Débit : 128 kb/s
Canaux : 2 canaux
Position des cannaux : Front: L R
Echantillonnage : 48,0 kHz
Images par seconde : 187,500 Im/s (256 spf)
Mode de compression : Avec perte
Délai par rapport Vidéo : -512 ms
Taille du flux : 4,12 Mio (3%)
Langue : Français
Audio #2
ID : 331 (0x14B)
ID de menu : 1031 (0x407)
Format : E-AC-3
Format/Info : Audio Coding 3
Paramètres du format, Endianness : Big
Identifiant du codec : 6
Durée : 4 min 30s
Type de débit : Constant
Débit : 96,0 kb/s
Canaux : 2 canaux
Position des cannaux : Front: L R
Echantillonnage : 48,0 kHz
Images par seconde : 187,500 Im/s (256 spf)
Mode de compression : Avec perte
Délai par rapport Vidéo : -384 ms
Taille du flux : 3,09 Mio (2%)
Langue : qad
descriptor_tag_extension : 6
Audio #3
ID : 332 (0x14C)
ID de menu : 1031 (0x407)
Format : E-AC-3
Format/Info : Audio Coding 3
Paramètres du format, Endianness : Big
Identifiant du codec : 6
Durée : 4 min 30s
Type de débit : Constant
Débit : 128 kb/s
Canaux : 2 canaux
Position des cannaux : Front: L R
Echantillonnage : 48,0 kHz
Images par seconde : 187,500 Im/s (256 spf)
Mode de compression : Avec perte
Délai par rapport Vidéo : -512 ms
Taille du flux : 4,12 Mio (3%)
Langue : qaa
Audio #4
ID : 333 (0x14D)
ID de menu : 1031 (0x407)
Format : E-AC-3
Format/Info : Audio Coding 3
Paramètres du format, Endianness : Big
Identifiant du codec : 6
Durée : 4 min 30s
Type de débit : Constant
Débit : 96,0 kb/s
Canaux : 2 canaux
Position des cannaux : Front: L R
Echantillonnage : 48,0 kHz
Images par seconde : 187,500 Im/s (256 spf)
Mode de compression : Avec perte
Délai par rapport Vidéo : -384 ms
Taille du flux : 3,09 Mio (2%)
Langue : Allemand
Texte #1
ID : 340 (0x154)
ID de menu : 1031 (0x407)
Format : DVB Subtitle
Identifiant du codec : 6
Durée : 4 min 27s
Délai par rapport Vidéo : 1s 920 ms
Langue : Français
Texte #2
ID : 341 (0x155)
ID de menu : 1031 (0x407)
Format : DVB Subtitle
Identifiant du codec : 6
Langue : Français
Texte #3
ID : 342 (0x156)
ID de menu : 1031 (0x407)
Format : DVB Subtitle
Identifiant du codec : 6
Langue : Allemand
Menu
ID : 300 (0x12C)
ID de menu : 1031 (0x407)
Durée : 4 min 30s
Liste : 320 (0x140) (AVC) / 330 (0x14A) (E-AC-3, Français) / 331 (0x14B) (E-AC-3, qad) / 332 (0x14C) (E-AC-3, qaa) / 333 (0x14D) (E-AC-3, Allemand) / 340 (0x154) (DVB Subtitle, Français) / 341 (0x155) (DVB Subtitle, Français) / 342 (0x156) (DVB Subtitle, Allemand) / 370 (0x172) () / 371 (0x173) ()
Langue : / Français / qad / qaa / Allemand / Français / Français / Allemand
Code : Tout sélectionner
::local la clé TNT est sur ce PC
>DVPiper.exe -devicenum 2 -type dvb-t -frequency 522167 -bandwidth 8 -command "record(rid(1237),progid(1031),buildpat,send(udp(192.168.1.100,1234)))"
::distant PC portable se trouvant un etage au-dessus
DVPiper.exe -devicenum 2 -type DVB-T -frequency 522167 -bandwidth 8 -command "record(rid(1237),progid(1031),buildpat,send(udp(192.168.1.200,1234)))"