Path: csiph.com!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx32.am4.POSTED!not-for-mail Received-SPF: none (Address does not pass the Sender Policy Framework) SPF=HELO; sender=mail-wr1-f47.google.com; remoteip=::ffff:209.85.221.47; remotehost=; helo=mail-wr1-f47.google.com; receiver=hugo.zagamma.cz; Received-SPF: pass (Address passes the Sender Policy Framework) SPF=MAILFROM; sender=rainbof@gmail.com; remoteip=::ffff:209.85.221.47; remotehost=; helo=mail-wr1-f47.google.com; receiver=hugo.zagamma.cz; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=8OpAc1BMrDgyNKZ58j2MQYiqskqbnEH066+9Yv3Nxp8=; b=faHuofR7B4jhOMAVTqybPb3wVWvtqKViXS7u0mM6xjc/9Taz1qaxUXqgfn1H8iTP2G UGph5gKFnwmbZbopGoGZBktMURO/+oArkRN/lPAtlCg/nmQge9ym8geYaupekZWsNYFr wOc9gE4BLVpFXSdCXJNNfIwN85Zvti32W+5sEBZSkR3CcwMAGJ669AJ9Zd4aSMf0uGQw Pk/u1hH7D1W7Pr+RdHY32MPey9a/qYE1AkgnDSSJg2Sn+mr1oQT0PMvmEKF/tP/hMSvQ 7qWdrvEHQNw43duWi9589fV31Y3/PYwTy7FL62tCu1IxYyPaXKKjLXB5SnSIDzaHJabT P6vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=8OpAc1BMrDgyNKZ58j2MQYiqskqbnEH066+9Yv3Nxp8=; b=llBbksMUtv67mCkwKvymQzE009XP1EBzanLQ5nsLx/vVBA7ImKCJex1c41xk39NkYd u8SgFLlSqp5cBESr221HrilxjXNbr2aRFJ60cowAhgezG4Jcu4vUZacT9nwl4HwRIMd0 GP74XWkecpersaOGTi/xtQJEc5lkgleidh1gRAlmAMrEYZagaaphCM1cxrU3fYY4MS1Y YtGSUq/MvlpodCiqifMvmCPE2yxv2wSy0Zd0rbhXVlLGfm/S1JtH0KPI3ztquJBPMFej azWS6XwQjUJzEVBY47z3bjeCF2ZmrAoal42bcsz5L9CaxS8NRCiZd+ZCCt4QB2nkmTDt hcwA== X-Gm-Message-State: APjAAAW0vcF14pRkryRI2bz3hZDn9MnYYBxXfUcgHQogXvu1yTR2bwYF 1uR+WQK2XT3uCQNdjvrXkBsTTyjA2TuANXmA0vSukM2NWUQ= X-Google-Smtp-Source: APXvYqyU49t3IoJRK6s4246aoQdzbZGUcpR66ofTn5ttu4ycYhopaqKuFjYKNLG25y4s57ylhGZ5C4McHB5VfmDsDpM= X-Received: by 2002:a5d:4b91:: with SMTP id b17mr24980892wrt.57.1565688608904; Tue, 13 Aug 2019 02:30:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: From: Ondrej Beranek Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [python] =?utf-8?b?eG1sIHBhcnNvdsOhbsOt?= X-BeenThere: python@py.cz X-Mailman-Version: 2.1.29 Precedence: list List-Id: Konference PyCZ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: cz.comp.lang.python Message-ID: X-Mailman-Original-Message-ID: X-Mailman-Original-References: <6ot.DzVH.657}E95Dld6.1TKbRh@seznam.cz> References: <6ot.DzVH.657}E95Dld6.1TKbRh@seznam.cz> Lines: 58 X-Complaints-To: abuse@usenet-news.net NNTP-Posting-Date: Tue, 13 Aug 2019 09:30:11 UTC Organization: usenet-news.net Date: Tue, 13 Aug 2019 11:30:08 +0200 X-Received-Bytes: 5359 X-Received-Body-CRC: 2332338184 Xref: csiph.com cz.comp.lang.python:3364 Ahoj, kdy=C5=BE jste to tu tak nakousli, kdy=C5=BE bych cht=C4=9Bl zpracov=C3=A1v= at xml streamy p=C5=99edem nezn=C3=A1m=C3=A9ho obsahu, co na to pou=C5=BE=C3=ADt ? Pot=C5= =99ebuju aby se to neslo=C5=BEilo kdy=C5=BE p=C5=99ijde n=C4=9Bjak=C3=BD vadn=C3=BD tag abych = m=C4=9Bl =C5=A1anci si to o=C5=A1et=C5=99it. Tak ne=C5=BE za=C4=8Dnu ps=C3=A1t kolo... rainbof 13.08.19, Petr Messner : > V t=C4=9Bchto p=C5=99=C3=ADpadech je asi nejednodu=C5=A1=C5=A1=C3=AD xpat= h. Minim=C3=A1ln=C4=9B lxml ho um=C3=AD. > > PM > > =C3=BAt 13. 8. 2019 v 8:22 odes=C3=ADlatel Ctibor.Plasek > napsal: > >> Ahoj. >> M=C3=A1m takov=C3=BDto xml soubor (viz.p=C5=99ilo=C5=BEen=C3=BD soubor) = - export z ffprobe. >> Pro ty hodnoty, kter=C3=A9 jsou u > >> from xml.dom import minidom >> xmldoc =3D minidom.parse('RainS02E06.mkv.xml') >> streamlist =3D xmldoc.getElementsByTagName('stream') >> for s in streamlist: >> print(s.attributes['index'].value) >> print(s.attributes['codec_name'].value) >> try: >> print(s.attributes['sample_rate'].value) >> except: >> print('none') >> >> ale nev=C3=ADm jak=C3=BDm zp=C5=AFsobem se dostat k t=C4=9Bm "hlub=C5=A1= =C3=ADm" hodnot=C3=A1m - nap=C5=99. >> > >> Mohli byste mi, pros=C3=ADm, poradit? >> >> D=C4=9Bkuji Ctibor >> >> >> >> >> _______________________________________________ >> Python mailing list >> python@py.cz >> http://www.py.cz/mailman/listinfo/python >> >> Visit: http://www.py.cz >> >