
Recherche avancée
Autres articles (42)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (9002)
-
Why am I getting an error for stream #0.1 ?
30 juillet 2014, par Rob Avery IVI’m converting videos using ffmpeg-php. Here is my code :
// Set our source file
$srcFile = $uploadFilm.".".$film_type;
$destFile = $uploadFilm;
$ffmpegPath = "ffmpeg";
// Create our FFMPEG-PHP class
$ffmpegObj = new ffmpeg_movie($srcFile);
// Save our needed variables
$srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth());
$srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight());
$srcFPS = $ffmpegObj->getFrameRate();
if($ffmpegObj->hasAudio()){
$srcAB = intval($ffmpegObj->getAudioBitRate()/1000);
$srcAR = $ffmpegObj->getAudioSampleRate();
}else{
$srcAB = 0;
$srcAR = 0;
}
// Call our convert using exec()
//$command = $ffmpegPath . " -i " . $srcFile . " -ar " . $srcAR . " -ab " . $srcAB . "k -f flv -s " . $srcWidth . "x" . $srcHeight . " " . $destFile;
//$command = "whoami";
$command = $ffmpegPath . ' -i ' .'"'. $srcFile . '" -ar ' . $srcAR . ' -ab ' . $srcAB . 'k -f flv -s ' . $srcWidth . 'x' . $srcHeight . ' "' . $destFile . '" 2>&1';
$outputCommand = array();
$status = 1;
exec($command, $outputCommand, $status);The output gives out this error at the end :
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
I know that both
$srcAB
and$srcAR
have values because this is the command this being ran :ffmpeg -i source -ar 48000 -ab 160k -f flv -s 1920x1080 destination
Of course, after the command is executed, the "convert video" has a size 0, which means it didn’t convert it.
What am I missing here ?
EDIT : Here is my full output :
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
built on Jul 18 2014 08:41:45 with gcc 4.4.7 20120313 (Red Hat 4.4.7-3)
configuration: --enable-libmp3lame --disable-mmx --enable-shared
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/path/to/file/bbb_sunflower_1080p_30fps_normal.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2013-12-16 17:44:39
title : Big Buck Bunny, Sunflower version
artist : Blender Foundation 2008, Janus Bager Kristensen 2013
comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
genre : Animation
composer : Sacha Goedegebure
Duration: 00:10:34.60, start: 0.000000, bitrate: 3481 kb/s
Stream #0.0(und): Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc
Metadata:
creation_time : 2013-12-16 17:44:39
Stream #0.1(und): Audio: mp3, 48000 Hz, 2 channels, s16, 160 kb/s
Metadata:
creation_time : 2013-12-16 17:44:42
Stream #0.2(und): Audio: ac3, 48000 Hz, 6 channels, s16, 320 kb/s
Metadata:
creation_time : 2013-12-16 17:44:42
[buffer @ 0x2231e20] w:1920 h:1080 pixfmt:yuv420p
Output #0, flv, to '/path/to/file/bbb_sunflower_1080p_30fps_normal.flv':
Stream #0.0(und): Video: flv, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 30 tbc
Metadata:
creation_time : 2013-12-16 17:44:39
Stream #0.1(und): Audio: libmp3lame, 48000 Hz, 6 channels, s16, 160 kb/s
Metadata:
creation_time : 2013-12-16 17:44:42
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height -
Splicer Error Creating Video : Retrieving the COM class factory for component with CLSID {78530B75-61F9-11D2-8CAD-00A024580902} failed [duplicate]
26 septembre 2014, par wrox DeveloperThis question already has an answer here :
-
Splicer.dll on Windows 2008
3 answers
I am trying to integrate splicer into my asp.net MVC Project.I had a problem with Splicer code (which create video from images) works at local but gives the following error at server :
Retrieving the COM class factory for component with CLSID 78530B75-61F9-11D2-8CAD-00A024580902 failed due to the following error : 80040154 Class not registered (Exception from HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)).
Here is the link of my test sample
http://fctdev.azurewebsites.net/Home/Test
I know this question is already asked on this form and other forms but that doesn’t resolve my issue
Please help to solve the error
-
Splicer.dll on Windows 2008
-
Creating a movie from multiple .png files
21 octobre 2014, par QuantumFoolI’ve got quite a few .png files, and I need to create a movie out of them. So, I’m going through this tutorial which uses ffmpeg :
http://www.miscdebris.net/blog/2008/04/28/create-a-movie-file-from-single-image-files-png-jpegs/
When I go to type the first line (sudo apt-get install ffmpeg), in Terminal and enter my password as appropriate, I get :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ffmpeg' has no installation candidateThat’s funny ; I installed the latest version manually this morning ! Anyway, I proceed with the instructions assuming ffmpeg is installed properly (I’m looking at the file where it downloaded to, so that can’t be the issue) :
cd Downloads
cd python-meep
cd Images
ffmpeg -qscale 4 -r 20 -b 9600 -i Image%03d.png movie.mp4To my surprise, I get :
ffmpeg: command not found
I just installed it ! Furthermore, I dragged my manual installation folder into the very same directory with the pictures ! What’s going on ?
Thanks !