
Recherche avancée
Autres articles (36)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (6304)
-
AttributeError : 'FFmpegAudio' object has no attribute '_process' while trying to play audio from URL
13 août 2022, par jmcamacho7I can't find any solution online and I don't know what's wrong.


My code is : (Not pasting the URL getting since that works fine)


from urllib import parse, request
import re
import pafy
from discord import FFmpegPCMAudio, PCMVolumeTransformer

FFMPEG_OPTIONS = {
 'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'
}

@bot.command(pass_context=True)
async def play(ctx, * , search):
 query_string = parse.urlencode({'search_query': search})
 html_content = request.urlopen('http://www.youtube.com/results?' + query_string)
 search_results=re.findall('watch\?v=(.{11})',html_content.read().decode('utf-8'))
 print(search_results[0])
 
 if(ctx.author.voice):
 channel = ctx.message.author.voice.channel
 await ctx.send("https://www.youtube.com/watch?v="+search_results[0]) 
 url = "https://www.youtube.com/watch?v="+search_results[0]
 conn = await channel.connect()
 conn.play(discord.FFmpegAudio(url, **FFMPEG_OPTIONS))
 else:
 await ctx.send("Necesitas estar en un canal de audio para usar este comando")



It just gives me this error everytime I try it :


Traceback (most recent call last):
 File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 103, in __del__
 self.cleanup()
 File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 154, in cleanup
 proc = self._process
AttributeError: 'FFmpegAudio' object has no attribute '_process'



Anyway to solve this ?


-
How to extract video+audio streams from MP4 file via ffmpeg ?
12 août 2022, par MatthiasI have a bunch of MP4 files from a GoPro, which include streams of metadata like GPS information. Now unfortunately when I try to open these MP4 files in any browser (tried both Firefox and Chrome on Windows and Linux), then only the audio is being played, but no video. I can, however, open the MP4 files in VLC player and that can play both video and audio without problem - so the files seem correct, just the browser cannot play them correctly.


Since I need to play the MP4 files in a browser, I need to extract both the video and the audio streams from the original files and create new MP4 files out of them, in a format so that the browser can play them. I also don't want to loose any frames during conversion - it would be OK to compress the video stream a bit, so that the resulting MP4 files would be a bit smaller than the originals, but the number of frames and the FPS value and these settings must be exactly as in the original file.


What would be the proper
ffmpeg
command to achieve this ?

For your reference, this is the information fromffprobe
on one of the videos :

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55ce62e37a00] Using non-standard frame rate 59/1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/winclients/ASFINAG/Abnahme/GX010005.MP4':
 Metadata:
 major_brand : mp41
 minor_version : 538120216
 compatible_brands: mp41
 creation_time : 2021-06-07T15:21:10.000000Z
 location : +48.3743+016.2383/
 location-eng : +48.3743+016.2383/
 firmware : HD9.01.01.00.00
 Duration: 00:08:51.54, start: 0.000000, bitrate: 60205 kb/s
 Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 59941 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 59.94 tbc (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro H.265
 encoder : GoPro H.265 encoder
 timecode : 15:35:51:04
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro AAC
 timecode : 15:35:51:04
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro TCD
 timecode : 15:35:51:04
 Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 47 kb/s (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro MET
 Stream #0:4(eng): Data: none (fdsc / 0x63736466), 13 kb/s (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro SOS
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 100359 for input stream 3
Unsupported codec with id 0 for input stream 4



-
How to extract video+audio streams from GoPro MP4 file via ffmpeg ?
11 août 2022, par MatthiasI have a bunch of MP4 files from a GoPro, which include streams of metadata like GPS information. Now unfortunately when I try to open these MP4 files in any browser (tried both Firefox and Chrome on Windows and Linux), then only the audio is being played, but no video. I can, however, open the MP4 files in VLC player and that can play both video and audio without problem - so the files seem correct, just the browser cannot play them correctly.


Since I need to play the MP4 files in a browser, I need to extract both the video and the audio streams from the original files and create new MP4 files out of them, in a format so that the browser can play them. I also don't want to loose any frames during conversion - it would be OK to compress the video stream a bit, so that the resulting MP4 files would be a bit smaller than the originals, but the number of frames and the FPS value and these settings must be exactly as in the original file.


What would be the proper
ffmpeg
command to achieve this ?

For your reference, this is the information fromffprobe
on one of the videos :

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55ce62e37a00] Using non-standard frame rate 59/1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/winclients/ASFINAG/Abnahme/GX010005.MP4':
 Metadata:
 major_brand : mp41
 minor_version : 538120216
 compatible_brands: mp41
 creation_time : 2021-06-07T15:21:10.000000Z
 location : +48.3743+016.2383/
 location-eng : +48.3743+016.2383/
 firmware : HD9.01.01.00.00
 Duration: 00:08:51.54, start: 0.000000, bitrate: 60205 kb/s
 Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 59941 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 59.94 tbc (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro H.265
 encoder : GoPro H.265 encoder
 timecode : 15:35:51:04
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro AAC
 timecode : 15:35:51:04
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro TCD
 timecode : 15:35:51:04
 Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 47 kb/s (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro MET
 Stream #0:4(eng): Data: none (fdsc / 0x63736466), 13 kb/s (default)
 Metadata:
 creation_time : 2021-06-07T15:21:10.000000Z
 handler_name : GoPro SOS
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 100359 for input stream 3
Unsupported codec with id 0 for input stream 4