Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (91)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The 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 2011

    Vous 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, par

    MediaSPIP 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 Rich

    Python 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>&#xA;    AudioSegment.from_file(song).export(mp3_filename, format=&#x27;mp3&#x27;)&#xA;  File "/home/tom/.local/lib/python2.7/site-packages/pydub/audio_segment.py", line 725, in from_file&#xA;    p.returncode, p_err.decode(errors=&#x27;ignore&#x27;) ))&#xA;pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1&#xA;&#xA;Output from ffmpeg/avlib:&#xA;&#xA;ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)&#xA;  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 &#xA;--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&#xA;  WARNING: library configuration mismatch&#xA;  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&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;musicproject.py: Invalid data found when processing input&#xA;</module>

    &#xA;

  • avcodec/mpeg12dec : Fix uninitialized data in fate-sub-cc-scte20

    28 juin 2020, par Limin Wang
    avcodec/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>

    • [DH] libavcodec/mpeg12dec.c
  • Node Media Server not stream when i try to pass the argument "transpose=1" to ffmpeg

    28 mai 2020, par joao.jlf4

    I'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 :

    &#xA;&#xA;

    import NodeMediaServer from &#x27;node-media-server&#x27;;&#xA;import removeBarOfRtmpUrl from &#x27;./utils/removeBarRtmpUrl&#x27;;&#xA;import path from &#x27;path&#x27;;&#xA;import { remote } from &#x27;electron&#x27;;&#xA;&#xA;export default function(data) {&#xA;&#xA;const streams = data.map(stream => ({&#xA;endpoint: removeBarOfRtmpUrl(stream.endpoint),&#xA;key: stream.key,&#xA;}))&#xA;&#xA;const config = {&#xA;rtmp: {&#xA;port: 1935,&#xA;chunk_size: 60000,&#xA;gop_cache: true,&#xA;ping: 30,&#xA;ping_timeout: 60&#xA;},&#xA;http: {&#xA;port: 8000,&#xA;allow_origin: &#x27;*&#x27;&#xA;},&#xA;relay: {&#xA;// C:\Users\Usuario\Desktop\multistream\node_modules.bin\ffmpeg.exe&#xA;ffmpeg: path.join(remote.app.getPath(&#x27;appData&#x27;), &#x27;..&#x27;, &#x27;Local&#x27;, &#x27;Programs&#x27;, &#x27;multistream&#x27;, &#x27;app&#x27;, &#x27;ffmpeg&#x27;, &#x27;bin&#x27;, &#x27;ffmpeg.exe&#x27;),&#xA;tasks: streams.map(stream => ({&#xA;app: &#x27;live&#x27;,&#xA;mode: &#x27;push&#x27;,&#xA;edge: ${stream.endpoint}/${stream.key},&#xA;&#xA;  }))&#xA;},&#xA;};&#xA;&#xA;const nms = new NodeMediaServer(config);&#xA;return nms;&#xA;}&#xA;&#xA;// {&#xA;// app: &#x27;live&#x27;,&#xA;// mode: &#x27;push&#x27;,&#xA;// edge: &#x27;rtmp://a.rtmp.youtube.com/live2/keyyoutube&#x27;,&#xA;// },```&#xA;

    &#xA;