
Recherche avancée
Médias (17)
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (100)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (9801)
-
ffplay : avoid direct access to lowres use av_codec_g/set_lowres()
3 octobre 2013, par Michael Niedermayer -
I can't access an mp3 file in python to get the length of [closed]
11 janvier 2024, par SameerI've tried using pydub, mutagen, and eyed3 to try and access the length of an mp3 file I created using pyttsx3. However, I repeatedly get similar issues with my machine telling me that it is unable to access the mp3, that the file cannot be found at the specified path I'm trying to access it at, despite me ahving confirmed it does exist by the time it gets to the problematic line of code. Here's me trying to use eyed3 :


original_clip = VideoFileClip(original_video_path)
 voiceoverDirTitle = "VoiceoversTitle"
 filePath = f"{voiceoverDirTitle}/{id}.mp3"
 engine = pyttsx3.init()
 engine.save_to_file(title, filePath)
 engine.runAndWait() 

 script_dir = os.path.dirname(os.path.abspath(__file__))
 voiceoverDirTitle = "VoiceoversTitle"
 filePathAbsolute = os.path.join(script_dir, voiceoverDirTitle, f"{id}.mp3")
 print(filePathAbsolute)

 exists = os.path.isfile(filePathAbsolute)
 print(exists)
 audio = eyed3.load(filePathAbsolute)



up until the very last line of code, everything looks promising, when it throws me this error message :


AttributeError: 'NoneType' object has no attribute 'info'



This is me trying to use pydub :


original_clip = VideoFileClip(original_video_path)
 voiceoverDirTitle = "VoiceoversTitle"
 filePath = f"{voiceoverDirTitle}/{id}.mp3"
 engine = pyttsx3.init()
 engine.save_to_file(title, filePath)
 engine.runAndWait() 

 script_dir = os.path.dirname(os.path.abspath(__file__))
 voiceoverDirTitle = "VoiceoversTitle"
 filePathAbsolute = os.path.join(script_dir, voiceoverDirTitle, f"{id}.mp3")
 print(filePathAbsolute)

 exists = os.path.isfile(filePathAbsolute)
 print(exists)
 audio = AudioSegment.from_mp3(filePathAbsolute)
 duration_seconds = len(audio) / 1000



And the error it returns :


FileNotFoundError: [WinError 2] The system cannot find the file specified



I suspected at first it was an ffmpeg issue, but when i try "pip install ffmpeg", it says "requirement already satisfied", and besides, moviepy (the library I'm using) uses ffmpeg for its final encoding, and that part of my code seems to work fine. Any help would be greatly appreciated !!


-
FFmpeg dxva2 H264 decoder reinitialize codec - access violation
18 janvier 2023, par SpurigaI have a small project which decodes h264 I frame (SPS+PPS in extradata).
It uses "dxva2" hw acceleration and works fine until I reinitialize the codec. This can be occured when an rtsp stream change the format. Fe. : h264 to h264H. and the extradata must be changed.


The extradata modifying code is :


...

 ret = decode_write(decoder_ctx, packet); //GOOD 
 ret = decode_write(decoder_ctx, NULL);

 if (avcodec_close(decoder_ctx) < 0)
 return -2;

 if (hw_decoder_init(decoder_ctx, type) < 0)
 return -1;

 if ((ret = avcodec_open2(decoder_ctx, decoder, NULL)) < 0) {
 fprintf(stderr, "Failed to open codec for stream.\n");
 return -1;
 }

 ret = decode_write(decoder_ctx, packet); //ACCESS VIOLATION
 ret = decode_write(decoder_ctx, NULL);



The next
avcodec_send_packet
goes access violation exception.
When I switch off the HW acceleration and fallback to CPU this change is works fine.

So the only problem when I use dxva2 and reinitialize the codec.


The extradata change code is not in this small example, because the error reason is the reinitialize.