
Recherche avancée
Autres articles (98)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (7670)
-
FFMPEG with PHP does not execute ?
15 septembre 2012, par ConorAfter reading about a gazillion questions here on SO related to FFMPEG with PHP I have gotten together a small snippet or what-not, but it does not seem to do anything - not even throw errors.
My PHP is as follows :
function get_video_thumbnail($file) {
define('ALL_PLACE_WIDTH', 250);
define('ALL_PLACE_HEIGHT', 200);
$ffmpeg = "ffmpeg"; // where ffmpeg is
$image_source_path = $file; // where the video is
$image_cmd = " -r 1 -ss 00:00:10 -t 00:00:01 -s ".ALL_PLACE_WIDTH."x".ALL_PLACE_HEIGHT." -f image2 "; // command
$dest_image_path = "cdn/thumbnails"; // destination of thumbnail
$str_command = $ffmpeg ." -i " . $image_source_path . $image_cmd .$dest_image_path;
shell_exec($str_command);
}in the root folder there's a folder "ffmpeg" in what there's "ffmpeg.exe", "ffplay.exe" and "pthreadGC2.dll". So I'm wondering, is there anything I'm missing ? I'm trying to generate a thumbnail from a video/mp4 file.
-
Segmentation fault in samplerate conversion function
17 juin 2014, par user3749290playmp3() using libmpg123
if (isPaused==0 && mpg123_read(mh, buffer, buffer_size, &done) == MPG123_OK)
{
char * resBuffer=&buffer[0]; //22100=0,5s
buffer = resample(resBuffer,22100,22100);
if((ao_play(dev, (char*)buffer, done)==0)){
return 1;
}resample() Using avcodec from ffmpeg
#define LENGTH_MS 500 // how many milliseconds of speech to store
#define RATE 44100 // the sampling rate (input)
#define FORMAT PA_SAMPLE_S16NE // sample size: 8 or 16 bits
#define CHANNELS 2 // 1 = mono 2 = stereo
struct AVResampleContext* audio_cntx = 0;
char * resample(char in_buffer[(LENGTH_MS*RATE*16*CHANNELS)/8000],int out_rate,int nsamples)
{
char out_buffer[ sizeof( in_buffer ) * 4];
audio_cntx = av_resample_init( out_rate, //out rate
RATE, //in rate
16, //filter length
10, //phase count
0, //linear FIR filter
1.0 ); //cutoff frequency
assert( audio_cntx && "Failed to create resampling context!");
int samples_consumed;
int samples_output = av_resample( audio_cntx, //resample context
(short*)out_buffer, //buffout
(short*)in_buffer, //buffin
&samples_consumed, //&consumed
nsamples, //nb_samples
sizeof(out_buffer)/2,//lenout
0);//is_last
assert( samples_output > 0 && "Error calling av_resample()!" );
av_resample_close( audio_cntx );
//*resample = malloc(sizeof(out_buffer));
return &out_buffer[0];
}When i run this code i get 3393 Segmentation fault (core dump created). Why ?
For example, the use of pointers is correct ?
and 22100 are the samples that are contained in 0.5 seconds of the song ? -
Evolution #2633 : Pouvoir modifier _DIR_RESTREINT_ABS
10 juillet 2015, par jluc -Pourrait on réouvrir ce ticket ?
Dans SPIP 3.1 du 15 juin environ voici la liste des occurences de ecrire que j’ai trouvé dans la dist :
squelettes-dist/robots.txt.html:11:Disallow : /ecrire/
spip_loader.php:44:define(’_SPIP_LOADER_PLUGIN_RETOUR’, "ecrire/ ?exec=admin_plugin&voir=tous") ;
spip_loader.php:923:if (@file_exists(’ecrire/inc_version.php’))
spip_loader.php:924 : define(’_SPIP_LOADER_URL_RETOUR’, "ecrire/ ?exec=accueil") ;
spip_loader.php:925 : include_once ’ecrire/inc_version.php’ ;
spip_loader.php:933 : else define(’_SPIP_LOADER_URL_RETOUR’, "ecrire/ ?exec=install") ;spip.php:14:if (!defined(’_DIR_RESTREINT_ABS’)) define(’_DIR_RESTREINT_ABS’, ’ecrire/’) ;
ecrire/inc/flock.php:607 : * $x = preg_files(’ecrire/data/’, ’[.]lock$’) ;
ecrire/public/debusquer.php:366 : if ($reg[1]==’ecrire/public’)
ecrire/inc_version.php:38 : define(’_DIR_RESTREINT_ABS’, ’ecrire/’) ;
ecrire/inc_version.php:42 : * vide si on est dans ecrire, ’ecrire/’ sinon */plugins-dist/compresseur/tests/compacte_css.php:10 : while (!is_dir($remonte."ecrire"))
plugins-dist/forum/prive/modeles/forum-actions-moderer.html:2 :[(#SETretour,[(#REM|test_espace_prive| ?[(#VALecrire/|concat#SELF|replace’./’,’’)],#SELF|ancre_urlforum#ID_FORUM)])]
plugins-dist/filtres_images/tests/_couleur_rgb2hsv.php:13 : while (!is_dir($remonte."ecrire"))
plugins-dist/filtres_images/tests/_couleur_hsv2rgb.php:13 : while (!is_dir($remonte."ecrire"))
plugins-dist/filtres_images/tests/_couleur_rgb2hsl.php:13 : while (!is_dir($remonte."ecrire"))
plugins-dist/filtres_images/tests/multiple_de_trois.php:13 : while (!is_dir($remonte."ecrire"))
plugins-dist/filtres_images/tests/couleur_extraire.php:13 : while (!is_dir($remonte."ecrire"))
plugins-dist/filtres_images/tests/_couleur_hsl2rgb.php:13 : while (!is_dir($remonte."ecrire"))
plugins-dist/textwheel/tests/tw_propre_modeles_block.php:9 : while (!is_dir($remonte."ecrire"))
plugins-dist/textwheel/tests/tw_propre_modeles_inline.php:9 : while (!is_dir($remonte."ecrire"))
plugins-dist/textwheel/tests/tw_propre_typo.php:9 : while (!is_dir($remonte."ecrire"))
plugins-dist/textwheel/tests/tw_propre.php:9 : while (!is_dir($remonte."ecrire"))
plugins-dist/porte_plume/tests/lanceur_spip.php:7:while (!is_dir($remonte."ecrire"))
plugins/spipr/zcore/v2.4.3/tests/zcore_echafaudable.php:12 : while (!is_dir($remonte."ecrire"))
plugins/auto/zcore/v2.4.5/tests/zcore_echafaudable.php:12 : while (!is_dir($remonte."ecrire"))
plugins/auto/gis/v4.26.12/tests/gis_connect_sql.php:10 : while (!is_dir($remonte."ecrire"))
config/ecran_securite.php:113 : OR @file_exists(’ecrire/inc_version.php’))
config/ecran_securite.php:259:if (strpos($_SERVER[’REQUEST_URI’],"ecrire/") !==false)