Recherche avancée

Médias (0)

Mot : - Tags -/content

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (69)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (7557)

  • Create animated gif from a set of png images

    12 avril 2020, par Zizi96

    I'm trying to use ffpmeg to convert a list of png to a gif.

    



    Running C:\Users\Me\Art\Animations\wubz\output> dir shows my files :

    



    12/04/2020  16:48    <dir>          ..&#xA;12/04/2020  16:45           136,706 wubz_0001.png&#xA;12/04/2020  16:45           136,180 wubz_0002.png&#xA;12/04/2020  16:45           136,413 wubz_0003.png&#xA;12/04/2020  16:45           136,099 wubz_0004.png&#xA;12/04/2020  16:45           136,309 wubz_0005.png&#xA;12/04/2020  16:45           137,172 wubz_0006.png&#xA;</dir>

    &#xA;&#xA;

    The code I'm running in command prompt from C:\Users\Me\Art\Animations\wubz\output> :

    &#xA;&#xA;

    ffmpeg-f image2 -framerate 30 -i wubz_%d.png video.flv&#xA;

    &#xA;&#xA;

    gives the error message :&#xA;[image2 @ 000001efd6c4bac0] Could find no file with path &#x27;wubz_%d.png&#x27; and index in the range 0-4&#xA;wubz_%d.png: No such file or directory

    &#xA;&#xA;

    Can someone explain what I'm doing wrong, I don't get why ffmpeg isn't seeing the png files in the output directory.

    &#xA;

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

  • 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

    &#xA;&#xA;

     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;