Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (83)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    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 (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (7020)

  • 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;

  • configure : add POWER9 & 10 cpus

    3 février, par Sean McGovern
    configure : add POWER9 & 10 cpus
    

    IBM introduced POWER9 in 2017 and likewise POWER10 in 2020.

    • [DH] configure
  • Why won't this encrypted HLS video play on iOS (but works on Windows Chrome via hls.js library) ?

    8 mai 2023, par Ryan

    I am trying to play an MP4 test video.

    &#xA;

    My /home/vagrant/Code/example/public/hls_hls.keyInfo is :

    &#xA;

    https://example.com/hls.key&#xA;/home/vagrant/Code/example/public/hls_hls.key&#xA;467216aae8a26fb699080812628031955e304a66e9e4480f9b70d31d8fe94e9a&#xA;

    &#xA;

    My /home/vagrant/Code/example/public/hls_hls.key was generated using PHP : hex2bin(&#x27;467216aae8a26fb699080812628031955e304a66e9e4480f9b70d31d8fe94e9a&#x27;)

    &#xA;

    The ffmpeg command for encrypting the video as HLS playlist with "ts" files :

    &#xA;

    &#x27;/usr/bin/ffmpeg&#x27; &#x27;-y&#x27; &#x27;-i&#x27; &#x27;storage/app/sample_media2/2020-02-27/Sample_Videos_5.mp4&#x27; &#xA;&#x27;-c:v&#x27; &#x27;libx264&#x27; &#x27;-s:v&#x27; &#x27;1920x1080&#x27; &#x27;-crf&#x27; &#x27;20&#x27; &#x27;-sc_threshold&#x27; &#x27;0&#x27; &#x27;-g&#x27; &#x27;48&#x27; &#xA;&#x27;-keyint_min&#x27; &#x27;48&#x27; &#x27;-hls_list_size&#x27; &#x27;0&#x27; &#xA;&#x27;-hls_time&#x27; &#x27;10&#x27; &#x27;-hls_allow_cache&#x27; &#x27;0&#x27; &#x27;-b:v&#x27; &#x27;4889k&#x27; &#x27;-maxrate&#x27; &#x27;5866k&#x27; &#xA;&#x27;-hls_segment_type&#x27; &#x27;mpegts&#x27; &#x27;-hls_fmp4_init_filename&#x27; &#x27;output_init.mp4&#x27; &#xA;&#x27;-hls_segment_filename&#x27; &#x27;storage/app/public/test/output_1080p_%04d.ts&#x27; &#xA;&#x27;-hls_key_info_file&#x27; &#x27;/home/vagrant/Code/example/public/hls_hls.keyInfo&#x27; &#xA;&#x27;-strict&#x27; &#x27;-2&#x27; &#x27;-threads&#x27; &#x27;12&#x27; &#x27;storage/app/public/test/output_1080p.m3u8&#x27;&#xA;

    &#xA;

    Then, I know from https://caniuse.com/#search=hls that Windows Chrome won't be able to play the HLS video without a library, so I use https://github.com/video-dev/hls.js/, and Windows Chrome successfully plays the encrypted video !

    &#xA;

    However, iOS Safari is unable to play it (with or without the hls.js library).

    &#xA;

    On iOS Safari, when I try to play the video, I see just a quick glimpse (less than a second) where the screen shows 0:15, so it must be reading and decrypting enough to know the correct duration of the video.

    &#xA;

    So, to debug, I log events :

    &#xA;

    const nativeHlsEvents = [&#x27;play&#x27;, &#x27;playing&#x27;, &#x27;abort&#x27;, &#x27;error&#x27;, &#x27;canplaythrough&#x27;, &#x27;waiting&#x27;, &#x27;loadeddata&#x27;, &#x27;loadstart&#x27;, &#x27;progress&#x27;, &#x27;timeupdate&#x27;, &#x27;volumechange&#x27;];&#xA;$.each(nativeHlsEvents, function (i, eventType) {&#xA;    video.addEventListener(eventType, (event) => {//https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement&#xA;        console.log(eventType, event);&#xA;        if (eventType === &#x27;error&#x27;) {&#xA;            console.error(video.error);//https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error&#xA;        }&#xA;    });&#xA;});&#xA;

    &#xA;

    I see in the console log :

    &#xA;

    loadstart, {"isTrusted":true}&#xA;progress, {"isTrusted":true}&#xA;play, {"isTrusted":true}&#xA;waiting, {"isTrusted":true}&#xA;error, {"isTrusted":true}&#xA;video.error, {}&#xA;

    &#xA;

    I don't know how to find more details about the error.

    &#xA;

    Note that even though Windows Chrome successfully plays the video, it too shows warnings in the console log :

    &#xA;

    {"type":"mediaError","details":"fragParsingError","fatal":false,"reason":"TS packet did not start with 0x47","frag":{"...&#xA;{"type":"mediaError","details":"fragParsingError","fatal":false,"reason":"no audio/video samples found","frag":{...&#xA;

    &#xA;

    Where is my problem ?

    &#xA;