
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (73)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (5099)
-
python imageio.get_reader() returns format error
19 août 2020, par tristan_jiaimport imageio

reader = imageio.get_reader("./t.mp4")



As shown above, with python 3.6.10, it returns :


>>> reader = imageio.get_reader("../")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/functions.py", line 129, in get_reader
 return format.get_reader(request)
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 168, in get_reader
 return self.Reader(self, request)
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 217, in __init__
 self._open(**self.request.kwargs.copy())
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 357, in _open
 self._initialize()
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 430, in _initialize
 shell=ISWIN)
 File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
 restore_signals, start_new_session)
 File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
 raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/tristan_jia/.imageio/ffmpeg/ffmpeg-linux64-v3.3.1'

</module></stdin>


I searched everywhere but haven't seen any similar questions. The script runs on Opensuse Leap 15.1, is it related to the system I use ?


-
JavaCV - How to handle cases where FFmpegFrameFilter.pull() returns null
20 juin 2018, par Gensoukyou1337Currently I have the basic workflow of pulling frames from one video using
FFmpegFrameGrabber
, filtering them using anFFmpegFrameFilter
, and recording them in anFFmpegFrameRecorder
, as follows :framesLen = vCap.getLengthInFrames();
try {
Frame f;
for(int i = 0; i < framesLen; i++) {
f = vCap.grab();
if(f != null) {
vFilter.push(f);
Frame filtered;// = vFilter.pull();
vRec.setFrameNumber(i);
while((filtered = vFilter.pull()) != null) {
Log.i("ffmpeg_recorder", "processing frame "+i +" "+f+" "+filtered);
vRec.record(filtered);
}
i++;
}
}
} catch (FFmpegFrameGrabber.Exception e) {
exception = e;
} catch (FFmpegFrameRecorder.Exception e) {
exception = e;
} catch (FFmpegFrameFilter.Exception e) {
exception = e;
}
try {
vCap.flush();
vCap.release();
vRec.stop();
vRec.release();
} catch (FFmpegFrameGrabber.Exception e) {
exception = e;
} catch (FFmpegFrameRecorder.Exception e) {
exception = e;
}
if (exception != null) {
Log.e("ffmpeg_exception", exception.getMessage()+"");
return null;
} else {
return outFile+"";
}My current problem is that sometimes
FFmpegFrameFilter.pull()
would return null in that loop, ending withvRec
recording a null frame, causing the final video to get stuck for a few seconds in the same frame.What’s happening in the
FFmpegFrameFilter
when itspull()
returns null ? Is it the case when I try topull()
when it hasn’t finished processing the current frame ? If that’s so, should I just put an emptywhile
loop like this ?...
while((filtered = vFilter.pull()) == null) {/*block until it's NOT null*/}
vRec.record(filtered);
...EDIT :
OK, my proposed solution above doesn’t work - it just goes into an infinite loop. Though I really don’t want to skip those frames.
-
php and ffmpeg from command line in windows - not working, nothing returns
24 août 2015, par user3725395I’m trying to execute ffmpeg within a website and it never output’s a file, nothing return’s, I have tried it with parameters -version and that works fine.
I can copy and paste the main command into dos and it also works fine.I’m stuck, I have tried many things including shell_exec but to no avail, nothing comes back other than array(0) int(0). help ?
//$cmd = 'C:\ffmpeg.exe ffmpeg -version';
$cmd = "C:\ffmpeg.exe -i C:\1.mp3 -i C:\2.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 C:\out.mp3";
echo exec($cmd, $o, $v);
var_dump($o);
var_dump($v);