
Recherche avancée
Autres articles (49)
-
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn 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, parMediaSPIP 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 (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (7196)
-
Ndk : Button event error Fatal 11 SIGSEGV when video streaming
24 avril 2015, par user3773632I’m using ffmpeg in ndk, make video streaming service.
my problem is that Video streaming when the button is pressed, an fatal 11 SIGSEGV error occurs.
this my source
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_main);
Log.v("LOG", "CREATE");
mUHSurfaceView = (UHSurfaceView) findViewById(R.id.uhsurfaceview);
bCamera = (Button)findViewById(R.id.camera);
bCamera.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Log.v("CameraButton", "CameraButton");
}
});In ndk using ffmpeg h264 decoding and rgb24 through opengl(GLSurfaceView) screen output.
I don’t know why occur this error i can’t solve error
please help me !my device : Samsung galaxy s4 mini
android : 4.2.2Thanks.
-
FFmpeg exit value = 4
13 mai 2013, par Yuliya TarasenkoI try to run ffmpeg command on android devices. On some of them the code below works excellent and the video is created. But on some(e.g. motorola xoom) the exit value is 4. And while debugging on samsung galaxy s 2.3.3 it frozes up on process.waitFor() ;
Could anyone help me please ? I can't understand what is wrong.public void execFfmpeg(){
try {
File resultFile = new File(mContext.getFilesDir() + "/ffmpeg");
String[] command = null;
command = new String[] {
resultFile.getAbsolutePath(),
"-shortest",
"-i",
audioPath,
"-loop",
"1",
"-i",
imagePath, "-acodec", "ac3", "-ab", "128k", "-vcodec",
"mpeg4", videoFileName };
if(command != null){
Process process = Runtime.getRuntime().exec(command);
process.waitFor();
dumpStream(process.getInputStream());
dumpStream(process.getErrorStream());
mLogger.error("" + process.exitValue());
if(process.exitValue() == 0){
}
}
}
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
} -
subprocess called from multiprocess not finishing
24 juin 2020, par Pavel KomarovI've got a set of videos from which I'm trying to pull random frames. There are a lot of videos, so I want to work in parallel, and
ffmpeg
can splice out the frames for me, so here's the important part of the code :

import os
from tqdm import tqdm
from joblib import Parallel, delayed
from multiprocessing import current_process
from subprocess import Popen

vids_dir = 'just a string'
out_dir = 'another string'

def process_each(f):
 temp = 'temp' + str(current_process()._identity[0])
 os.mkdir(temp)

 proc = Popen(['ffmpeg -i ' + vids_dir + '/' + f + ' ' + temp + '/' + f[:-4] + '_%03d.jpg &> /dev/null'], shell=True) # convert to frames
 proc.wait()

 # do stuff

 os.system('rm -rf ' + temp) # clean up


Parallel(n_jobs=10)(delayed(process_each)(f) for f in tqdm(os.listdir(vids_dir)))



I can print out the command being passed to
Popen
and execute it in a shell, and it works. I can open apython3
session and call the command fromPopen
orsubprocess.call
or evenos.system
, and it works. I can even setn_jobs=1
in myParallel
, and it works.

But the moment I actually parallelize this, I find
ffmpeg
doesn't flush its full results to the temporary folders ; it only gets the first one or few frames.

What on earth could be going on ?
subprocess
andmultiprocessing
should be able to mix this way.