Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (47)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8006)

  • Anomalie #4295 (Nouveau) : Bug sur Boucle DATA et fusion sur un #ARRAY

    21 février 2019

    Bonjour,

    J’ai fait une boucle complexe pour lister par année, et mois les articles et les brèves d’un site : https://zone.spip.org/trac/spip-zone/changeset/113991

    Dans mon jeu de test, elle génère ce tableau :

    1. <span class="CodeRay"><span class="predefined">Array</span>
    2. (
    3. [<span class="integer">0</span>] => <span class="predefined">Array</span>
    4. (
    5. [year] => <span class="integer">2016</span>
    6. [month] => <span class="integer">12</span>
    7. [lemois] => décembre
    8. [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">12</span>-<span class="integer">18</span> <span class="integer">23</span>:<span class="integer">05</span>:<span class="integer">51</span>
    9. [url] => <span class="constant">Test</span>-modele-exergue.html
    10. [descriptif] =>
    11. [titre] => <span class="constant">Test</span> modèle exergue
    12. [<span class="keyword">class</span>] =>
    13. )
    14. [<span class="integer">1</span>] => <span class="predefined">Array</span>
    15. (
    16. [year] => <span class="integer">2016</span>
    17. [month] => <span class="integer">10</span>
    18. [lemois] => octobre
    19. [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">10</span>-<span class="integer">27</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">00</span>
    20. [url] => <span class="constant">Derniers</span>-articles.html
    21. [descriptif] =>
    22. [titre] => <span class="constant">Derniers</span> articles
    23. [<span class="keyword">class</span>] =>
    24. )
    25. [<span class="integer">2</span>] => <span class="predefined">Array</span>
    26. (
    27. [year] => <span class="integer">2016</span>
    28. [month] => <span class="integer">09</span>
    29. [lemois] => septembre
    30. [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">09</span>-<span class="integer">06</span> <span class="integer">20</span>:<span class="integer">20</span>:<span class="integer">42</span>
    31. [url] => <span class="constant">Test</span>-<span class="constant">Form</span>-<span class="constant">IP</span>.html
    32. [descriptif] =>
    33. <span class="constant">Tentez</span> de gagner par tirage au <span class="predefined">sort</span> le remboursement de votre achat [<span class="integer">1</span>]
    34.  
    35. [titre] => <span class="constant">Test</span> <span class="constant">Form</span> <span class="constant">IP</span>
    36. [<span class="keyword">class</span>] =>
    37. )
    38. [<span class="integer">3</span>] => <span class="predefined">Array</span>
    39. (
    40. [year] => <span class="integer">2016</span>
    41. [month] => <span class="integer">07</span>
    42. [lemois] => juillet
    43. [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">07</span>-<span class="integer">29</span> <span class="integer">14</span>:<span class="integer">45</span>:<span class="integer">00</span>
    44. [url] => <span class="constant">Article</span>-avec-logo.html
    45. [descriptif] =>
    46. [titre] => <span class="constant">Article</span> avec logo
    47. [<span class="keyword">class</span>] =>
    48. )
    49. [<span class="integer">4</span>] => <span class="predefined">Array</span>
    50. (
    51. [year] => <span class="integer">2016</span>
    52. [month] => <span class="integer">05</span>
    53. [lemois] => mai
    54. [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">22</span> <span class="integer">17</span>:<span class="integer">29</span>:<span class="integer">43</span>
    55. [url] => <span class="constant">Long</span>.html
    56. [descriptif] =>
    57. [titre] => <span class="constant">Long</span>
    58. [<span class="keyword">class</span>] =>
    59. )
    60. [<span class="integer">5</span>] => <span class="predefined">Array</span>
    61. (
    62. [year] => <span class="integer">2016</span>
    63. [month] => <span class="integer">05</span>
    64. [lemois] => mai
    65. [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">22</span> <span class="integer">17</span>:<span class="integer">03</span>:<span class="integer">50</span>
    66. [url] => <span class="constant">Repetition</span>-avec-debut-dans-le-passe.html
    67. [descriptif] =>
    68. [titre] => <span class="constant">Répétition</span> avec début dans le passé
    69. [<span class="keyword">class</span>] =>
    70. )
    71. [<span class="integer">6</span>] => <span class="predefined">Array</span>
    72. (
    73. [year] => <span class="integer">2016</span>
    74. [month] => <span class="integer">05</span>
    75. [lemois] => mai
    76. [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">02</span> <span class="integer">07</span>:<span class="integer">42</span>:<span class="integer">45</span>
    77. [url] => <span class="constant">Test</span>-previsualisation-etendue.html
    78. [descriptif] =>
    79. <span class="constant">Je</span> suis un testeur
    80.  
    81. [titre] => <span class="constant">Test</span> prévisualisation étendue
    82. [<span class="keyword">class</span>] =>
    83. )
    84. [<span class="integer">7</span>] => <span class="predefined">Array</span>
    85. (
    86. [year] => <span class="integer">2016</span>
    87. [month] => <span class="integer">04</span>
    88. [lemois] => avril
    89. [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">04</span>-<span class="integer">01</span> <span class="integer">04</span>:<span class="integer">10</span>:<span class="integer">12</span>
    90. [url] => <span class="constant">Test</span>-forme-colorees.html
    91. [descriptif] =>
    92. <span class="constant">Test</span> qui va bien
    93.  
    94. [titre] => <span class="constant">Test</span> forme colorées
    95. [<span class="keyword">class</span>] =>
    96. )
    97. [<span class="integer">8</span>] => <span class="predefined">Array</span>
    98. (
    99. [year] => <span class="integer">2015</span>
    100. [month] => <span class="integer">12</span>
    101. [lemois] => décembre
    102. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">12</span>-<span class="integer">06</span> <span class="integer">15</span>:<span class="integer">00</span>:<span class="integer">00</span>
    103. [url] => <span class="constant">Test</span>-article-sur-embargo.html
    104. [descriptif] =>
    105. [titre] => <span class="constant">Test</span> article sur embargo
    106. [<span class="keyword">class</span>] =>
    107. )
    108. [<span class="integer">9</span>] => <span class="predefined">Array</span>
    109. (
    110. [year] => <span class="integer">2015</span>
    111. [month] => <span class="integer">11</span>
    112. [lemois] => novembre
    113. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">11</span>-<span class="integer">24</span> <span class="integer">09</span>:<span class="integer">48</span>:<span class="integer">01</span>
    114. [url] => <span class="constant">Intentions</span>-de-prieres.html
    115. [descriptif] =>
    116. <span class="constant">Test</span> des <span class="constant">IP</span>
    117.  
    118. [titre] => <span class="constant">Intentions</span> de prières
    119. [<span class="keyword">class</span>] =>
    120. )
    121. [<span class="integer">10</span>] => <span class="predefined">Array</span>
    122. (
    123. [year] => <span class="integer">2015</span>
    124. [month] => <span class="integer">10</span>
    125. [lemois] => octobre
    126. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">26</span> <span class="integer">23</span>:<span class="integer">06</span>:<span class="integer">31</span>
    127. [url] => <span class="constant">Test</span>-<span class="constant">Newsletter</span>.html
    128. [descriptif] =>
    129. <span class="constant">Un</span> autre descriptif
    130.  
    131. [titre] => <span class="constant">Test</span> <span class="constant">Newsletter</span>
    132. [<span class="keyword">class</span>] =>
    133. )
    134. [<span class="integer">11</span>] => <span class="predefined">Array</span>
    135. (
    136. [year] => <span class="integer">2015</span>
    137. [month] => <span class="integer">10</span>
    138. [lemois] => octobre
    139. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
    140. [url] => <span class="constant">Historique</span>-des-versions-de-<span class="constant">SPIP</span>.html
    141. [descriptif] =>
    142. [titre] => <span class="constant">Historique</span> des versions de <span class="constant">SPIP</span>
    143. [<span class="keyword">class</span>] =>
    144. )
    145. [<span class="integer">12</span>] => <span class="predefined">Array</span>
    146. (
    147. [year] => <span class="integer">2015</span>
    148. [month] => <span class="integer">10</span>
    149. [lemois] => octobre
    150. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
    151. [url] => <span class="constant">Evenement</span>-exceptionnel.html
    152. [descriptif] =>
    153. [titre] => Événement exceptionnel
    154. [<span class="keyword">class</span>] =>
    155. )
    156. [<span class="integer">13</span>] => <span class="predefined">Array</span>
    157. (
    158. [year] => <span class="integer">2015</span>
    159. [month] => <span class="integer">10</span>
    160. [lemois] => octobre
    161. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
    162. [url] => <span class="constant">Installation</span>-du-site.html
    163. [descriptif] =>
    164. [titre] => <span class="constant">Installation</span> du site
    165. [<span class="keyword">class</span>] =>
    166. )
    167. [<span class="integer">14</span>] => <span class="predefined">Array</span>
    168. (
    169. [year] => <span class="integer">2015</span>
    170. [month] => <span class="integer">10</span>
    171. [lemois] => octobre
    172. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
    173. [url] => <span class="constant">Demonstration</span>-<span class="constant">Agenda</span>.html
    174. [descriptif] =>
    175. [titre] => <span class="constant">Démonstration</span> <span class="constant">Agenda</span>
    176. [<span class="keyword">class</span>] =>
    177. )
    178. [<span class="integer">15</span>] => <span class="predefined">Array</span>
    179. (
    180. [year] => <span class="integer">2015</span>
    181. [month] => <span class="integer">10</span>
    182. [lemois] => octobre
    183. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
    184. [url] => <span class="constant">Titre</span>-de-la-rubrique.html
    185. [descriptif] =>
    186. [titre] => <span class="constant">Titre</span> de la rubrique
    187. [<span class="keyword">class</span>] =>
    188. )
    189. [<span class="integer">16</span>] => <span class="predefined">Array</span>
    190. (
    191. [year] => <span class="integer">2015</span>
    192. [month] => <span class="integer">10</span>
    193. [lemois] => octobre
    194. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
    195. [url] => <span class="constant">Logo</span>-de-survol.html
    196. [descriptif] =>
    197. [titre] => <span class="constant">Logo</span> de survol
    198. <span class="constant">Nouveauté</span>
    199. [<span class="keyword">class</span>] =>
    200. )
    201. [<span class="integer">17</span>] => <span class="predefined">Array</span>
    202. (
    203. [year] => <span class="integer">2015</span>
    204. [month] => <span class="integer">10</span>
    205. [lemois] => octobre
    206. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    207. [url] => <span class="constant">Altera</span>-sententia-est.html
    208. [descriptif] =>
    209. [titre] => <span class="constant">Altera</span> sententia est
    210. [<span class="keyword">class</span>] =>
    211. )
    212. [<span class="integer">18</span>] => <span class="predefined">Array</span>
    213. (
    214. [year] => <span class="integer">2015</span>
    215. [month] => <span class="integer">10</span>
    216. [lemois] => octobre
    217. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    218. [url] => <span class="constant">Quis</span>-enim.html
    219. [descriptif] =>
    220. [titre] => <span class="constant">Quis</span> enim
    221. [<span class="keyword">class</span>] =>
    222. )
    223. [<span class="integer">19</span>] => <span class="predefined">Array</span>
    224. (
    225. [year] => <span class="integer">2015</span>
    226. [month] => <span class="integer">10</span>
    227. [lemois] => octobre
    228. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    229. [url] => <span class="constant">Oportunum</span>-est.html
    230. [descriptif] =>
    231. [titre] => <span class="constant">Oportunum</span> est
    232. [<span class="keyword">class</span>] =>
    233. )
    234. [<span class="integer">20</span>] => <span class="predefined">Array</span>
    235. (
    236. [year] => <span class="integer">2015</span>
    237. [month] => <span class="integer">10</span>
    238. [lemois] => octobre
    239. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    240. [url] => <span class="constant">Rogatus</span>-ad-ultimum.html
    241. [descriptif] =>
    242. [titre] => <span class="constant">Rogatus</span> ad ultimum
    243. [<span class="keyword">class</span>] =>
    244. )
    245. [<span class="integer">21</span>] => <span class="predefined">Array</span>
    246. (
    247. [year] => <span class="integer">2015</span>
    248. [month] => <span class="integer">10</span>
    249. [lemois] => octobre
    250. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    251. [url] => <span class="constant">Urbibus</span>-decorata.html
    252. [descriptif] =>
    253. [titre] => <span class="constant">Urbibus</span> decorata
    254. [<span class="keyword">class</span>] =>
    255. )
    256. [<span class="integer">22</span>] => <span class="predefined">Array</span>
    257. (
    258. [year] => <span class="integer">2015</span>
    259. [month] => <span class="integer">10</span>
    260. [lemois] => octobre
    261. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    262. [url] => <span class="constant">Les</span>-derniers-articles-modifies.html
    263. [descriptif] =>
    264. [titre] => <span class="constant">Les</span> derniers articles modifiés
    265. [<span class="keyword">class</span>] =>
    266. )
    267. [<span class="integer">23</span>] => <span class="predefined">Array</span>
    268. (
    269. [year] => <span class="integer">2015</span>
    270. [month] => <span class="integer">10</span>
    271. [lemois] => octobre
    272. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    273. [url] => <span class="constant">Image</span>-logo.html
    274. [descriptif] =>
    275. [titre] => <span class="constant">Image</span> = logo
    276. [<span class="keyword">class</span>] =>
    277. )
    278. [<span class="integer">24</span>] => <span class="predefined">Array</span>
    279. (
    280. [year] => <span class="integer">2015</span>
    281. [month] => <span class="integer">10</span>
    282. [lemois] => octobre
    283. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    284. [url] => <span class="constant">Articles</span>-avec-le-<span class="constant">Mot</span>-clef-<span class="constant">ALaUne</span>.html
    285. [descriptif] =>
    286. <span class="constant">Ceci</span> est une bulle d’aide !
    287.  
    288. [titre] => <span class="constant">Articles</span> avec le <span class="constant">Mot</span> clef : « <span class="constant">ALaUne</span> »
    289. [<span class="keyword">class</span>] =>
    290. )
    291. [<span class="integer">25</span>] => <span class="predefined">Array</span>
    292. (
    293. [year] => <span class="integer">2015</span>
    294. [month] => <span class="integer">10</span>
    295. [lemois] => octobre
    296. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    297. [url] => <span class="constant">Un</span>-sourire-peut-changer-une-vie.html
    298. [descriptif] =>
    299. [titre] => <span class="constant">Un</span> sourire peut changer une vie
    300. [<span class="keyword">class</span>] =>
    301. )
    302. [<span class="integer">26</span>] => <span class="predefined">Array</span>
    303. (
    304. [year] => <span class="integer">2015</span>
    305. [month] => <span class="integer">10</span>
    306. [lemois] => octobre
    307. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    308. [url] => <span class="constant">Le</span>-nombre-d-article-affiche-est-administrable.html
    309. [descriptif] =>
    310. [titre] => <span class="constant">Le</span> nombre d’article affiché est administrable
    311. [<span class="keyword">class</span>] =>
    312. )
    313. [<span class="integer">27</span>] => <span class="predefined">Array</span>
    314. (
    315. [year] => <span class="integer">2015</span>
    316. [month] => <span class="integer">10</span>
    317. [lemois] => octobre
    318. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
    319. [url] => <span class="constant">Iamque</span>-non-umbratis.html
    320. [descriptif] =>
    321. [titre] => <span class="constant">Iamque</span> non umbratis (pdq2n)
    322. [<span class="keyword">class</span>] =>
    323. )
    324. [<span class="integer">28</span>] => <span class="predefined">Array</span>
    325. (
    326. [year] => <span class="integer">2015</span>
    327. [month] => <span class="integer">10</span>
    328. [lemois] => octobre
    329. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
    330. [url] => <span class="constant">Mensarum</span>-enim.html
    331. [descriptif] =>
    332. [titre] => <span class="constant">Mensarum</span> enim
    333. [<span class="keyword">class</span>] =>
    334. )
    335. [<span class="integer">29</span>] => <span class="predefined">Array</span>
    336. (
    337. [year] => <span class="integer">2015</span>
    338. [month] => <span class="integer">10</span>
    339. [lemois] => octobre
    340. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
    341. [url] => <span class="constant">Ideo</span>-urbs-venerabilis.html
    342. [descriptif] =>
    343. [titre] => <span class="constant">Ideo</span> urbs venerabilis
    344. [<span class="keyword">class</span>] =>
    345. )
    346. [<span class="integer">30</span>] => <span class="predefined">Array</span>
    347. (
    348. [year] => <span class="integer">2015</span>
    349. [month] => <span class="integer">10</span>
    350. [lemois] => octobre
    351. [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
    352. [url] => <span class="constant">Et</span>-prima-post-<span class="constant">Osdroenam</span>-quam.html
    353. [descriptif] =>
    354. [titre] => <span class="constant">Et</span> prima post <span class="constant">Osdroenam</span> quam
    355. [<span class="keyword">class</span>] =>
    356. )
    357. [<span class="integer">31</span>] => <span class="predefined">Array</span>
    358. (
    359. [year] => <span class="integer">2019</span>
    360. [month] => <span class="integer">02</span>
    361. [lemois] => février
    362. [<span class="predefined">date</span>] => <span class="integer">2019</span>-<span class="integer">02</span>-<span class="integer">21</span> <span class="integer">12</span>:<span class="integer">46</span>:<span class="integer">24</span>
    363. [url] => +<span class="constant">Test</span>-d-une-breve+.html
    364. [descriptif] =>
    365. [titre] => <span class="constant">Test</span> d’une brève
    366. [<span class="keyword">class</span>] => iconbreves
    367. )
    368. )
    369. </span>

    Télécharger

    Mais le résultat n’affiche rien à partir de l’année 2015.

    Si je modifie les boucles pour ne générer dans l’array que l’année 2015, celle-ci est affichée correctement.
    Si j’enlève des critères fusion lemois, l’année 2015 est parcourue.

    Testé en SPIP 3.2.3 SVN [24229]

  • Python - why do I get this ffprobe error ?

    4 juillet 2022, par gasper101

    I am on mac and am working on a project in which my program shoud convert a .mp3 file into a .wav file and than get text from that file (basic speech recognition). For converting a .mp3 file into a .wav file I am using ffmpeg library. I have installed both ffmpeg and ffprobe libraryies using pip and than using homebrew so I have them installed in a folder.

    &#xA;

    This is my code :

    &#xA;

    import speech_recognition&#xA;from pydub import AudioSegment&#xA;from os import path&#xA;&#xA;&#xA;#get text from original voice file------------------------------------------------- &#xA;&#xA;sound = AudioSegment.from_mp3("/path/to/file.mp3")&#xA;sound.export("/output/path/file.wav", format="wav")&#xA;&#xA;file_audio = speech_recognition.AudioFile(&#x27;/output/path/file.wav&#x27;)&#xA;&#xA;r = speech_recognition.Recognizer()&#xA;with file_audio as source:&#xA;    audio_text = r.record(source)&#xA;&#xA;word = r.recognize_google(audio_text)&#xA;

    &#xA;

    And this is the error i get :&#xA;FileNotFoundError : [Errno 2] No such file or directory : 'ffprobe'

    &#xA;

    Full error :&#xA;Warning (from warnings module) :&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 170&#xA;warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)&#xA;RuntimeWarning : Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work

    &#xA;

    Warning (from warnings module) :&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 198&#xA;warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)

    &#xA;

    RuntimeWarning : Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work&#xA;Traceback (most recent call last) :&#xA;File "/Users/marcus/Downloads/pronaunciation_checker/pronaunciation_check.py", line 12, in &#xA;sound = AudioSegment.from_mp3("/Users/marcus/Desktop/think.mp3")&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/audio_segment.py", line 796, in from_mp3&#xA;return cls.from_file(file, 'mp3', parameters=parameters)&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/audio_segment.py", line 728, in from_file&#xA;info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydub/utils.py", line 274, in mediainfo_json&#xA;res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init&#xA;self._execute_child(args, executable, preexec_fn, close_fds,&#xA;File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child&#xA;raise child_exception_type(errno_num, err_msg, err_filename)&#xA;FileNotFoundError : [Errno 2] No such file or directory : 'ffprobe'

    &#xA;

  • ytdl python "KeyError : formats"

    7 juillet 2022, par Mondumkreisung

    Im trying to make a discord music bot for personal use, since groovy and rythm got shut down.&#xA;It's working okay-ish I guess, but im having a problem with ytdl.&#xA;typing "-play" and an url is working just like intended, but i cant type "-play 'song name'".&#xA;Typing "-play example" gives me this :

    &#xA;

    [download] Downloading playlist: example&#xA;[youtube:search] query "example": Downloading page 1&#xA;[youtube:search] playlist example: Downloading 1 videos&#xA;[download] Downloading video 1 of 1&#xA;[youtube] CLXt3yh2g0s: Downloading webpage&#xA;Ignoring exception in command play:&#xA;[download] Finished downloading playlist: example&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped&#xA;    ret = await coro(*args, **kwargs)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\voice.py", line 53, in play&#xA;    url2 = info[&#x27;formats&#x27;][0][&#x27;url&#x27;]&#xA;KeyError: &#x27;formats&#x27;&#xA;&#xA;The above exception was the direct cause of the following exception:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke&#xA;    await ctx.command.invoke(ctx)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke&#xA;    await injected(*ctx.args, **ctx.kwargs)&#xA;  File "C:\Users\Dennis\PycharmProjects\groovy&#x27;s true successor\venv\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped&#xA;    raise CommandInvokeError(exc) from exc&#xA;discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: &#x27;formats&#x27;&#xA;

    &#xA;

    im fairly new to coding, so im sorry if somethings weird to understand.

    &#xA;

    okay, so : typing -play with an url works fine, but typing -play with the song name doesnt. its only searching for the first word, downloads the first searchresult and then "crashes".

    &#xA;

    so "-play Rick Astley - Never Gonna Give You Up" for example only searches for "Rick" and then it says something about KeyError : 'formats'&#xA;Here is my code :

    &#xA;

    @client.command()&#xA;async def play(ctx, url):&#xA;    channel = ctx.author.voice.channel&#xA;    voice = discord.utils.get(client.voice_clients, guild=ctx.guild)&#xA;    if voice and voice.is_connected():&#xA;        pass&#xA;    else:&#xA;        await channel.connect()&#xA;&#xA;    ffmpeg_opts = {&#x27;before_options&#x27;: &#x27;-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5&#x27;, &#x27;options&#x27;: &#x27;-vn&#x27;}&#xA;    ydl_opts = {&#x27;format&#x27;: "bestaudio/best", &#x27;default_search&#x27;: &#x27;auto&#x27;}&#xA;    vc = ctx.voice_client&#xA;&#xA;    with youtube_dl.YoutubeDL(ydl_opts) as ydl:&#xA;        info = ydl.extract_info(url, download=False)&#xA;        url2 = info[&#x27;formats&#x27;][0][&#x27;url&#x27;]&#xA;        source = await discord.FFmpegOpusAudio.from_probe(url2, **ffmpeg_opts)&#xA;        vc.play(source)&#xA;

    &#xA;