
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (91)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
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 (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (20945)
-
Pydub wma to mp3 fixing "library configuration mismatch"
21 juillet 2020, par RichPython novice, looking to change that.


I am trying to convert a song from wma to mp3 while keeping the metadata on the song. Here is my code.


#musicproject.py
import os
import glob
from pydub import AudioSegment

music_dir ='/mnt/c/renameproject'
extension_list = ('*.wma')

os.chdir(music_dir)
for extension in extension_list:
 for song in glob.glob(extension):
 mp3_filename = os.path.splitext(os.path.basename(song))[0] + '.mp3'
 AudioSegment.from_file(song).export(mp3_filename, format='mp3')



The program finishes and the song is written as an mp3 in the same folder and plays just fine. Unfortunately all of the metadata has been stripped from the song. I get the following warning at the command line when I run the program. My theory on the problem is that there is a mismatch between pydub and ffmpeg as far as the metadata library goes so pydub is feeding in something that ffmpeg doesn't understand so it pukes. I have absolutely no idea what steps to take to fix it from here. Any breadcrumbs would be appreciated. Thanks.


File "./musicproject.py", line 12, in <module>
 AudioSegment.from_file(song).export(mp3_filename, format='mp3')
 File "/home/tom/.local/lib/python2.7/site-packages/pydub/audio_segment.py", line 725, in from_file
 p.returncode, p_err.decode(errors='ignore') ))
pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1

Output from ffmpeg/avlib:

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
 configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy 
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
 WARNING: library configuration mismatch
 avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
 libavutil 55. 78.100 / 55. 78.100
 libavcodec 57.107.100 / 57.107.100
 libavformat 57. 83.100 / 57. 83.100
 libavdevice 57. 10.100 / 57. 10.100
 libavfilter 6.107.100 / 6.107.100
 libavresample 3. 7. 0 / 3. 7. 0
 libswscale 4. 8.100 / 4. 8.100
 libswresample 2. 9.100 / 2. 9.100
 libpostproc 54. 7.100 / 54. 7.100
musicproject.py: Invalid data found when processing input
</module>


-
avcodec/mpeg12dec : Fix uninitialized data in fate-sub-cc-scte20
28 juin 2020, par Limin Wangavcodec/mpeg12dec : Fix uninitialized data in fate-sub-cc-scte20
The issue is introduced in a705bcd763e344fa, please tested with below command line :
make V=1 fate-sub-cc-scte20 TARGET_EXEC="valgrind —error-exitcode=1"Reported-by : Martin Storsjö <martin@martin.st>
Reviewed-by : Martin Storsjö <martin@martin.st>
Signed-off-by : Limin Wang <lance.lmwang@gmail.com> -
Node Media Server not stream when i try to pass the argument "transpose=1" to ffmpeg
28 mai 2020, par joao.jlf4I'm using node-media-server to stream to instagram, and i need to rotate the original vídeo, to be portrait. I know that there is a flag on ffmpeg called transpose (there is rotate too), but when i pass it on node_relay_session.js on 24 line at the argv array, it returns me a "[Relay end]" on console, and it does'nt stream. When I remove the transpose flag from argv array it backs to stream normaly. Here is my config to nms :



import NodeMediaServer from 'node-media-server';
import removeBarOfRtmpUrl from './utils/removeBarRtmpUrl';
import path from 'path';
import { remote } from 'electron';

export default function(data) {

const streams = data.map(stream => ({
endpoint: removeBarOfRtmpUrl(stream.endpoint),
key: stream.key,
}))

const config = {
rtmp: {
port: 1935,
chunk_size: 60000,
gop_cache: true,
ping: 30,
ping_timeout: 60
},
http: {
port: 8000,
allow_origin: '*'
},
relay: {
// C:\Users\Usuario\Desktop\multistream\node_modules.bin\ffmpeg.exe
ffmpeg: path.join(remote.app.getPath('appData'), '..', 'Local', 'Programs', 'multistream', 'app', 'ffmpeg', 'bin', 'ffmpeg.exe'),
tasks: streams.map(stream => ({
app: 'live',
mode: 'push',
edge: ${stream.endpoint}/${stream.key},

 }))
},
};

const nms = new NodeMediaServer(config);
return nms;
}

// {
// app: 'live',
// mode: 'push',
// edge: 'rtmp://a.rtmp.youtube.com/live2/keyyoutube',
// },```