Recherche avancée

Médias (91)

Autres articles (106)

  • 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

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

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (14709)

  • Can't install FFMPEG using pip

    22 juin 2023, par turrnut

    I tried to install ffmpeg using pip like this

    


    pip install ffmpeg


    


    However I got the following error :

    


    Collecting ffmpeg&#xA;  Using cached ffmpeg-1.4.tar.gz (5.1 kB)&#xA;  Preparing metadata (setup.py) ... error&#xA;  error: subprocess-exited-with-error&#xA;&#xA;  &#xD7; python setup.py egg_info did not run successfully.&#xA;  │ exit code: 1&#xA;  ╰─> [34 lines of output]&#xA;      Traceback (most recent call last):&#xA;        File "<string>", line 2, in <module>&#xA;        File "", line 34, in <module>&#xA;        File "C:\Users\vwu20\AppData\Local\Temp\pip-install-rdqrdeeq\ffmpeg_3cdda176f3f04ceea4a14d868e94924e\setup.py", line 13, in <module>&#xA;          setup(&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py", line 87, in setup&#xA;          return distutils.core.setup(**attrs)&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\core.py", line 147, in setup&#xA;          _setup_distribution = dist = klass(attrs)&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 476, in __init__&#xA;          _Distribution.__init__(&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\dist.py", line 282, in __init__&#xA;          self.finalize_options()&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 899, in finalize_options&#xA;          for ep in sorted(loaded, key=by_order):&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 898, in <lambda>&#xA;          loaded = map(lambda e: e.load(), filtered)&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\importlib\metadata\__init__.py", line 171, in load&#xA;          module = import_module(match.group(&#x27;module&#x27;))&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module&#xA;          return _bootstrap._gcd_import(name[level:], package, level)&#xA;        File "<frozen>", line 1050, in _gcd_import&#xA;        File "<frozen>", line 1027, in _find_and_load&#xA;        File "<frozen>", line 1006, in _find_and_load_unlocked&#xA;        File "<frozen>", line 688, in _load_unlocked&#xA;        File "<frozen>", line 883, in exec_module&#xA;        File "<frozen>", line 241, in _call_with_frames_removed&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\build_app.py", line 37, in <module>&#xA;          from py2app.create_appbundle import create_appbundle&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\create_appbundle.py", line 9, in <module>&#xA;          from py2app.util import make_exec, makedirs, mergecopy, mergetree, skipscm&#xA;        File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\util.py", line 5, in <module>&#xA;          import fcntl&#xA;      ModuleNotFoundError: No module named &#x27;fcntl&#x27;&#xA;      [end of output]&#xA;&#xA;  note: This error originates from a subprocess, and is likely not a problem with pip.&#xA;error: metadata-generation-failed&#xA;&#xA;&#xD7; Encountered error while generating package metadata.&#xA;╰─> See above for output.&#xA;&#xA;note: This is an issue with the package mentioned above, not pip.&#xA;hint: See above for details.&#xA;</module></module></module></frozen></frozen></frozen></frozen></frozen></frozen></lambda></module></module></module></string>

    &#xA;

    The error message says that it's missing a package called fcntl, so i tried to install it using

    &#xA;

    pip install fcntl&#xA;

    &#xA;

    The attempt to install fcntl produce the following error :

    &#xA;

    ERROR: Could not find a version that satisfies the requirement fcntl (from versions: none)&#xA;ERROR: No matching distribution found for fcntl&#xA;

    &#xA;

    Can anyone tell me what I did wrong ? I am using windows 11, python 3.10, pip 23.1.2&#xA;Help would be appreciated.

    &#xA;

  • How to fix the problem I'm having with FFmpeg ?

    23 février 2023, par John

    I'm working with the ffmpeg library to convert mp4 video files to mp3 audio files.&#xA;Here is my code :

    &#xA;

    package com.exer;&#xA;&#xA;&#xA;import android.app.Activity;&#xA;import android.app.ProgressDialog;&#xA;import android.os.Bundle;&#xA;import android.os.Environment;&#xA;import android.widget.Toast;&#xA;import com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler;&#xA;import com.github.hiteshsondhi88.libffmpeg.FFmpeg;&#xA;import com.github.hiteshsondhi88.libffmpeg.FFmpegLoadBinaryResponseHandler;&#xA;&#xA;public class MainActivity extends Activity {&#xA;    &#xA;    FFmpeg ffmpeg;&#xA;    private ProgressDialog progressDialog;&#xA;    &#xA;    &#xA;    @Override&#xA;    protected void onCreate(Bundle savedInstanceState) {&#xA;        super.onCreate(savedInstanceState);&#xA;        setContentView(R.layout.activity_main);&#xA;    &#xA;        &#xA;        &#xA;        try {&#xA;            setUp();&#xA;            String[] command = {&#xA;                "-i", getPaths()&#x2B;"/dir/input.mp4", "-vn", getPaths()&#x2B;"/dir/output.mp3"&#xA;            };&#xA;            //convert("ffmpeg -i input.mp4 -vn output.mp3");&#xA;            convert(command);&#xA;            &#xA;        } catch (Exception e) {&#xA;            Toast.makeText(getApplicationContext(), e.getCause().toString(), Toast.LENGTH_SHORT).show();&#xA;        }&#xA;    }&#xA;    &#xA;    &#xA;    public void setUp() throws Exception {&#xA;        &#xA;        if(ffmpeg == null) {&#xA;            &#xA;            ffmpeg = FFmpeg.getInstance(this);&#xA;            ffmpeg.loadBinary(new FFmpegLoadBinaryResponseHandler(){&#xA;                    &#xA;            @Override&#xA;            public void onFailure() {&#xA;                Toast.makeText(getApplicationContext(), "failed to load library", Toast.LENGTH_SHORT).show();   &#xA;            }&#xA;                    &#xA;            @Override&#xA;            public void onSuccess() {&#xA;                Toast.makeText(getApplicationContext(), "loaded!", Toast.LENGTH_SHORT).show();&#xA;            }&#xA;                    &#xA;            @Override&#xA;            public void onStart() {&#xA;                        &#xA;            }&#xA;                    &#xA;            @Override&#xA;            public void onFinish() {&#xA;                        &#xA;            }&#xA;                    &#xA;                    &#xA;            });&#xA;            &#xA;        }&#xA;        &#xA;    }&#xA;    &#xA;    &#xA;    private void convert(String[] cmd) throws Exception {&#xA;        &#xA;        ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler(){&#xA;            &#xA;            @Override&#xA;            public void onFailure(String message){&#xA;                super.onFailure(message);&#xA;            }&#xA;            &#xA;            @Override&#xA;            public void onFinish(){&#xA;                super.onFinish();&#xA;                Toast.makeText(getApplicationContext(), "finished!", Toast.LENGTH_SHORT).show();&#xA;            }&#xA;            &#xA;            @Override&#xA;            public void onStart(){&#xA;                super.onStart();&#xA;                Toast.makeText(getApplicationContext(), "start conversion...", Toast.LENGTH_SHORT).show();&#xA;            }&#xA;            &#xA;            @Override&#xA;            public void onProgress(String message){&#xA;                super.onProgress(message);&#xA;            }&#xA;        });&#xA;        &#xA;    &#xA;    }&#xA;    &#xA;    private String getPaths() {&#xA;        return Environment.getExternalStorageDirectory().getPath();&#xA;    }&#xA;    &#xA;}&#xA;

    &#xA;

    When I run the app, the Toast messages are shown :

    &#xA;

    loaded!&#xA;start converting...&#xA;finished! as I write them in the functions, apart that nothing else happens the file is not converted what's wrong ?

    &#xA;

    Here my manifest file :

    &#xA;

    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;<manifest package="com.exer">&#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;        &#xA;            &#xA;                <action></action>&#xA;&#xA;                <category></category>&#xA;            &#xA;        &#xA;    &#xA;&#xA;</manifest>&#xA;

    &#xA;

    I've tried to delete the specified file on the phone to see what erros I might got, but still those three Toasts.

    &#xA;

  • Video playing, how to play a video back a a rapid rate at random timestamp locations

    10 avril 2020, par Zarc Rowden

    Note : this is a mildly general question that is looking more for pointers in the right direction and not exactly requiring a concise coded answer. I appreciate any and all input, thank you for lending your brain power to me for this moment :)

    &#xA;&#xA;

    I have a script that receives midi messages in real time and triggers playback of a single video on various timestamps that are changed/selected regularly and randomly by a user. Currently this is working in the browser, however, I've realized that there is some noticeable latency between (i'm guessing the cause here so please correct me) the moment a request to play a video at a specific time is made(note : the video is not being requested over the wire, this action does not take place until a JS Blob Url is loaded into the player) and the moment where that request is fulfilled and delivered from storage to pixels on the screen.

    &#xA;&#xA;

    My question is : Is it reasonable to assume that there is a tool out there, that given the correct video format and optimizations both in the code and in the file that could load an entire, say : 1 gb video into memory and play it back at random timestamps every 60 milliseconds at completely random, constantly changing timestamps.

    &#xA;&#xA;

    If you're now all the way down here... Thanks for reading this far, or scanning ! Please let me know if this question makes any sense / could be improved, I'm happy to clarify further.

    &#xA;