Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (63)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 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 (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (4997)

  • Python librosa NoBackendError even though ffmpeg is installed

    11 avril 2020, par Slavko Kovačević

    I recently installed librosa (package I've been using for a while on different PC) on my new PC with Windows 10 running. After that I've downloaded latest static version of ffmpeg and copied it to C: and added it to the Path. Tested ffmpeg and it works like a charm ! For python I am using Anaconda environment and after starting Jupyter Notebook and running librosa.load(path, sr = None) I've got

    



     in <module>&#xA;----> 1 audio = librosa.load(pathToJson)&#xA;&#xA;~\anaconda3\envs\tf_gpu\lib\site-packages\librosa\core\audio.py in load(path, sr, mono, offset, duration, dtype, res_type)&#xA;    117 &#xA;    118     y = []&#xA;--> 119     with audioread.audio_open(os.path.realpath(path)) as input_file:&#xA;    120         sr_native = input_file.samplerate&#xA;    121         n_channels = input_file.channels&#xA;&#xA;~\anaconda3\envs\tf_gpu\lib\site-packages\audioread\__init__.py in audio_open(path, backends)&#xA;    114 &#xA;    115     # All backends failed!&#xA;--> 116     raise NoBackendError()&#xA;&#xA;NoBackendError:&#xA;</module>

    &#xA;&#xA;

    strange isn't it ? Then I went all over the internet, doing whatnot trying to fix it and then I've got an idea to run my line of code inside anaconda command interface and it WORKS ?? How is this possible ? It is the same environment.

    &#xA;&#xA;

    python&#xA;Python 3.7.7 (default, Mar 23 2020, 23:19:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32&#xA;Type "help", "copyright", "credits" or "license" for more information.&#xA;>>> import librosa&#xA;>>> librosa.load(&#x27;test.wav&#x27;)&#xA;(array([-0.00027   , -0.00039953, -0.0003659 , ..., -0.16393574,&#xA;       -0.17814247,  0.        ], dtype=float32), 22050)&#xA;

    &#xA;&#xA;

    I did a lot of testing and I really prefer my Jupyter so any help would be appreciated. I tried the following : I've added C:\ffmpeg\bin and C:\ffmpeg to my Path for both User and System Variables. After that I've made specific variables for ffmpeg and ffmpeg_bin for both User and System Variables. No luck. After that I've tried installing ffmpeg using conda, without success. The last thing I've tested is this :

    &#xA;&#xA;

    import audioread&#xA;audioread.ffdec.FFmpegAudioFile(&#x27;test.wav&#x27;)&#xA;

    &#xA;&#xA;

    and that works. Thanks

    &#xA;

  • ffmpeg : Convert a legally purchased video on Google

    24 avril 2020, par Heycava

    I've bought a video on the Google Play Store. I need to have it on my computer in order to edit it for a video montage. But Google says "Important : You cannot download movies and TV shows onto a PC, Mac, and other laptops or computers."

    &#xA;&#xA;

    The video has a YouTube link. As I paid for it, I can watch it. I've managed to get the video part and the audio thanks to some web tools.&#xA;The video is a .webm file and the audio a .m4a file.

    &#xA;&#xA;

    I can hear the audio with VLC but I can't watch the video. Even if VLC displays "21:42" for the timecode.

    &#xA;&#xA;

    Here are informations for the webm file (from MediaInfo) :

    &#xA;&#xA;

    General&#xA;Complete name                            : XXX\videoplayback.webm&#xA;Format                                   : WebM&#xA;Format version                           : Version 4 / Version 2&#xA;File size                                : 357 MiB&#xA;Duration                                 : 21 min 42 s&#xA;Overall bit rate                         : 2 301 kb/s&#xA;Writing application                      : google/video-file&#xA;Writing library                          : google/video-file&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;Format                                   : VP9&#xA;Codec ID                                 : V_VP9&#xA;Duration                                 : 21 min 42 s&#xA;Bit rate                                 : 2 203 kb/s&#xA;Width                                    : 854 pixels&#xA;Height                                   : 480 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Bits/(Pixel*Frame)                       : 0.224&#xA;Stream size                              : 342 MiB (96%)&#xA;Language                                 : English&#xA;Default                                  : Yes&#xA;Forced                                   : No&#xA;

    &#xA;&#xA;

    It seems to be a good video file.

    &#xA;&#xA;

    I wanted to convert it with some video converters but none of them works. So I've tried to download ffmpeg, I renamed the video to "video.webm" and tried a lot of commands. But none of them worked.

    &#xA;&#xA;

    Here are informations from ffprobe command :

    &#xA;&#xA;

    C:\Users\XXX\Downloads\ffmpeg-20200424-a501947-win64-static\bin>ffprobe -i video.webm&#xA;

    &#xA;&#xA;

    Results :

    &#xA;&#xA;

    ffprobe version git-2020-04-24-a501947 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200328&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 42.102 / 56. 42.102&#xA;  libavcodec     58. 81.100 / 58. 81.100&#xA;  libavformat    58. 42.101 / 58. 42.101&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 79.100 /  7. 79.100&#xA;  libswscale      5.  6.101 /  5.  6.101&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;[vp9 @ 00000284720d5f40] Invalid frame marker&#xA;    Last message repeated 111 times&#xA;[vp9 @ 00000284720d5f40] Profile 4 is not yet supported&#xA;[vp9 @ 00000284720d5f40] Invalid frame marker&#xA;    Last message repeated 6 times&#xA;[matroska,webm @ 00000284720cd840] decoding for stream 0 failed&#xA;[matroska,webm @ 00000284720cd840] Could not find codec parameters for stream 0 (Video: vp9 (Profile 0), none, 854x480): unspecified pixel format&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;Input #0, matroska,webm, from &#x27;video.webm&#x27;:&#xA;  Metadata:&#xA;    encoder         : google/video-file&#xA;  Duration: 00:21:42.05, start: 0.000000, bitrate: 2301 kb/s&#xA;    Stream #0:0(eng): Video: vp9 (Profile 0), none, 854x480, SAR 1:1 DAR 427:240, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      enc_key_id      : [24 characters I prefer not to display]&#xA;

    &#xA;&#xA;

    If ever I initiate a conversion, I get :

    &#xA;&#xA;

    [vp9 @ 0000019038a80980] Invalid frame marker&#xA;[vp9 @ 0000019038c0fe40] Invalid frame marker&#xA;[vp9 @ 0000019038c193c0] Invalid frame marker&#xA;[vp9 @ 0000019038c1e780] Invalid frame marker&#xA;[vp9 @ 0000019038c29100] Invalid frame marker&#xA;[vp9 @ 0000019038c324c0] Invalid frame marker&#xA;[vp9 @ 0000019038c3d480] Invalid frame marker&#xA;[vp9 @ 0000019038c47280] Invalid frame marker&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[vp9 @ 0000019038c4c080] Invalid frame marker&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[vp9 @ 0000019038a80980] Invalid frame marker&#xA;

    &#xA;&#xA;

    etc.&#xA;Then :

    &#xA;&#xA;

    Error while decoding stream #0:0: Resource temporarily unavailable&#xA;    Last message repeated 243 times&#xA;Error while decoding stream #0:0: Resource temporarily unavailabletrate=  -0.0kbits/s speed=N/A&#xA;    Last message repeated 306 times&#xA;Error while decoding stream #0:0: Resource temporarily unavailabletrate=  -0.0kbits/s speed=N/A&#xA;    Last message repeated 190 times&#xA;

    &#xA;&#xA;

    I've already checked on the Internet solutions for the raised issues :

    &#xA;&#xA;

      &#xA;
    • Invalid frame marker
    • &#xA;

    • unspecified pixel format
    • &#xA;

    • Consider increasing the value for the 'analyzeduration' and 'probesize' options
    • &#xA;

    &#xA;&#xA;

    But it didn't work in my case.

    &#xA;&#xA;

    Obviously, I can watch the video on YouTube when I'm logged into my purchase account. I presume they have a high level security algorithm, that's why I can't do nothing. Mayve there is something with the "enc_key_id" in the metadata, they get it and the video can only be read with it. I don't know.

    &#xA;&#xA;

    I find it unacceptable not to be able to use freely my purchased videos.

    &#xA;&#xA;

    Would anyone have an idea ?

    &#xA;

  • No Output when transcoding RTP to HLS with ffmpeg

    9 juillet 2021, par Adnan Ahmed

    I am running ubuntu 18.04(bionic) and i have generated a live RTP stream from kurento-media-server and i am converting it to HLS with this command of ffmpeg :

    &#xA;

    ffmpeg -protocol_whitelist file,udp,rtp -i rtp://127.0.0.1:55000 -vcodec libx264 -acodec libfdk_aac -f hls /live-stream/kurento-rtmp/hls/playlist.m3u8&#xA;

    &#xA;

    However. it shows this output and doesn't do anything and stays there. Any ideas why this is happening are really appreciated.

    &#xA;

    ffmpeg version 4.3.1-0york0~18.04 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)&#xA;  configuration: --prefix=/usr --extra-version=&#x27;0york0~18.04&#x27; --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libzimg --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;&#xA;&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;

    &#xA;

    I believe that at this stage ffmpeg is trying to determine the duration of input stream but since it is live it will never finish. If so, how would i flag ffmpeg that it is a live stream and not a local video.

    &#xA;