
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (106)
-
Publier sur MédiaSpip
13 juin 2013Puis-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, parThe 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, parLorsque 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 turrnutI tried to install ffmpeg using pip like this


pip install ffmpeg



However I got the following error :


Collecting ffmpeg
 Using cached ffmpeg-1.4.tar.gz (5.1 kB)
 Preparing metadata (setup.py) ... error
 error: subprocess-exited-with-error

 × python setup.py egg_info did not run successfully.
 │ exit code: 1
 ╰─> [34 lines of output]
 Traceback (most recent call last):
 File "<string>", line 2, in <module>
 File "", line 34, in <module>
 File "C:\Users\vwu20\AppData\Local\Temp\pip-install-rdqrdeeq\ffmpeg_3cdda176f3f04ceea4a14d868e94924e\setup.py", line 13, in <module>
 setup(
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py", line 87, in setup
 return distutils.core.setup(**attrs)
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\core.py", line 147, in setup
 _setup_distribution = dist = klass(attrs)
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 476, in __init__
 _Distribution.__init__(
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\_distutils\dist.py", line 282, in __init__
 self.finalize_options()
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 899, in finalize_options
 for ep in sorted(loaded, key=by_order):
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 898, in <lambda>
 loaded = map(lambda e: e.load(), filtered)
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\importlib\metadata\__init__.py", line 171, in load
 module = import_module(match.group('module'))
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
 return _bootstrap._gcd_import(name[level:], package, level)
 File "<frozen>", line 1050, in _gcd_import
 File "<frozen>", line 1027, in _find_and_load
 File "<frozen>", line 1006, in _find_and_load_unlocked
 File "<frozen>", line 688, in _load_unlocked
 File "<frozen>", line 883, in exec_module
 File "<frozen>", line 241, in _call_with_frames_removed
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\build_app.py", line 37, in <module>
 from py2app.create_appbundle import create_appbundle
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\create_appbundle.py", line 9, in <module>
 from py2app.util import make_exec, makedirs, mergecopy, mergetree, skipscm
 File "C:\Users\vwu20\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\util.py", line 5, in <module>
 import fcntl
 ModuleNotFoundError: No module named 'fcntl'
 [end of output]

 note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
</module></module></module></frozen></frozen></frozen></frozen></frozen></frozen></lambda></module></module></module></string>


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

pip install fcntl



The attempt to install fcntl produce the following error :


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



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


-
How to fix the problem I'm having with FFmpeg ?
23 février 2023, par JohnI'm working with the ffmpeg library to convert mp4 video files to mp3 audio files.
Here is my code :


package com.exer;


import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Environment;
import android.widget.Toast;
import com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler;
import com.github.hiteshsondhi88.libffmpeg.FFmpeg;
import com.github.hiteshsondhi88.libffmpeg.FFmpegLoadBinaryResponseHandler;

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



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


loaded!

start converting...

finished!
as I write them in the functions, apart that nothing else happens the file is not converted what's wrong ?

Here my manifest file :


<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.exer">
 
 
 
 
 
 
 
 <action></action>

 <category></category>
 
 
 

</manifest>



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


-
Video playing, how to play a video back a a rapid rate at random timestamp locations
10 avril 2020, par Zarc RowdenNote : 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 :)



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.



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.



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.