
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (43)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (5127)
-
Annual Release of External-Videos plugin – we’ve hit v1.0
13 janvier 2017, par silviaThis is the annual release of my external-videos wordpress plugin and with the help of Andrew Nimmolo I’m proud to annouce we’ve reached version 1.0 !
So yes, my external-videos wordpress plugin is now roughly 7 years old, who would have thought ! During the year, I don’t get the luxury of spending time on maintaining this open source love child of mine, but at Christmas, my bad conscience catches up with me – every year ! I then spend some time going through bug reports, upgrading the plugin to the latest wordpress version, upgrading to the latest video site APIs, testing functionality and of course making a new release.
This year has been quite special. The power of open source has kicked in and a new developer took an interest in external-videos. Andrew Nimmolo submitted patches over all of 2016. He decided to bring the external-videos plugin into the new decade with a huge update to the layout of the settings pages, general improvements, and an all-round update of all the video site APIs which included removing their overly complex SDKs and going straight for the REST APIs.
Therefore, I’m very proud to be able to release version 1.0 today. Thanks, Andrew !
Enjoy – and I look forward to many more contributions – have a Happy 2017 !
—
NOTE : If you’re upgrading from an older version, you might need to remove and re-add your social video sites because the API details have changed a bit. Also, we noticed that there were layout issues on WordPress 4.3.7, so try and make sure your WordPress version is up to date.
-
FFMPEG resizing ouputs 0B file
26 octobre 2016, par Rahul KumarI am trying to resize a .mp4 file to different resolutions.
This is the command I’m using :/c E:\videos\manage\ffmpeg.exe -i "E:\media\SampleVideo1280x7201mb.mp4" -s 800x600 -ar 22050 "E:\media\encoded\med_SampleVideo1280x7201mb.mp4" 2>&1
This works for most of the files but for some input files, the file that outputs is 0B in size and This is the message I get :
ffmpeg version N-69422-gf5722ba Copyright (c) 2000-2015 the FFmpeg developers built on Jan 30 2015 22:13:10 with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 54. 18.100 / 54. 18.100 libavcodec 56. 21.101 / 56. 21.101 libavformat 56. 19.100 / 56. 19.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 9.102 / 5. 9.102 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\media\SampleVideo1280x7201mb.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 1970-01-01 00:00:00 encoder : Lavf53.24.2 Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 384 kb/s (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : SoundHandler [libx264 @ 00000000036e00a0] using SAR=4/3 [libx264 @ 00000000036e00a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 00000000036e00a0] profile High, level 3.1 [libx264 @ 00000000036e00a0] 264 - core 144 r2525 40bb568 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=36 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [libvo_aacenc @ 0000000002cca5c0] Unable to set encoding parameters Output #0, mp4, to 'E:\media\encoded\med_SampleVideo1280x7201mb.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf53.24.2 Stream #0:0(und): Video: h264 (libx264), yuv420p, 800x600 [SAR 4:3 DAR 16:9], q=-1--1, 25 fps, 25 tbn, 25 tbc (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler encoder : Lavc56.21.101 libx264 Stream #0:1(und): Audio: aac, 0 channels, 128 kb/s (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : SoundHandler encoder : Lavc56.21.101 libvo_aacenc Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc)) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
What am I doing wrong ? How do I fix this ?
-
Unable to probe
8 mai 2017, par EtsonI’m using php-ffmpeg on windows with cakephp3, and encountered an issue that says :
Unable to probe /var/www/blogchild.dev/webroot/uploads/records//Танец довольного теннисиста.mp4
MultimediaController
<?php
namespace App\Controller;
use App\Controller\AppController;
class MultimediaController extends AppController
{
public function initialize()
{
parent::initialize(); // TODO: Change the autogenerated stub
$this->Auth->allow(['index', 'addvideo']);
$this->loadModel('Posts');
$this->loadComponent('File');
$this->loadComponent('Flash');
$this->loadComponent('Upload');
}
public function addvideo()
{
$this->viewBuilder()->template('addvideo');
$posts = $this->Posts->newEntity();
// $posts = $this->MsPosts->find()->toArray();
// dump($posts);
// die();
if ($this->request->is('post')) {
$data = $this->request->data;
$data['mentor_id'] = '1';
$data['nbr_of_views'] = '0';
$data['nbr_of_loves'] = '0';
$data['nbr_of_smiles'] = '0';
$data['mentor_id'] = '1';
$data['child_id'] = '1';
$post = $this->Posts->patchEntity($posts, $data);
// var_dump($data);
// die();
// debug($this->MsPosts->save($post));die();
// $upload = $this->File->uploadFile($this->request->data['file'], $post['id']);
// $post->file = $upload['url'];
if (!empty($this->request->data['file']['name'])) {
$path = '/uploads' . DS . 'records' . DS . $post->id;
$this->uploadFile($_FILES['file'], $path, $post->id);
$post->file = $path . DS . $_FILES['file']['name'];
$this->Posts->save($post);
} else {
$this->Posts->save($post);
}
$this->Flash->success(__('The post saved'));
return $this->redirect(['action' => 'addvideo']);AppController
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.2.9
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace App\Controller;
use Cake\Controller\Controller;
use Cake\Event\Event;
use Cake\Filesystem\Folder;
use FFMpeg\Coordinate\TimeCode;
use FFMpeg\FFMpeg;
use Cake\Controller\Component;
use Cake\I18n\I18n;
/**
* Application Controller
*
* Add your application-wide methods in the class below, your controllers
* will inherit them.
*
* @link http://book.cakephp.org/3.0/en/controllers.html#the-app-controller
*/
class AppController extends Controller
{
/**
* Initialization hook method.
*
* Use this method to add common initialization code like loading components.
*
* e.g. `$this->loadComponent('Security');`
*
* @return void
*/
public function initialize()
{
parent::initialize();
$this->loadComponent('Cookie');
$this->loadComponent('RequestHandler');
$this->loadComponent('Flash');
$provider = $this->request->query('provider');
//if ($provider === null) {
$this->loadComponent('Auth', [
'authenticate' => [
'Form' => [
'finder' => 'auth',
'fields' => [
'username' => 'email',
'password' => 'password'
],
'loginAction' => [
'controller' => 'Auth',
'action' => 'login'
],
'loginRedirect' => [
'controller' => 'Auth',
'action' => 'login'
],
'logoutRedirect' => [
'controller' => 'Auth',
'action' => 'login'
]
],
'ADmad/HybridAuth.HybridAuth' => [
// All keys shown below are defaults
'fields' => [
'provider' => 'provider',
'openid_identifier' => 'openid_identifier',
'email' => 'email'
],
'profileModel' => 'ADmad/HybridAuth.SocialProfiles',
'profileModelFkField' => 'user_id',
// The URL Hybridauth lib should redirect to after authentication.
// If no value is specified you are redirect to this plugin's
// HybridAuthController::authenticated() which handles persisting
// user info to AuthComponent and redirection.
'hauth_return_to' => null,
'loginRedirect' => [
'controller' => 'Auth',
'action' => 'login'
],
'logoutRedirect' => [
'controller' => 'Auth',
'action' => 'login'
]
],
],
]);
// } else {
// $this->loadComponent('Auth', [
// 'authenticate' => [
// 'Form',
//
//
// ]
//
// ]);
// }
}
/**
* Before render callback.
*
* @param \Cake\Event\Event $event The beforeRender event.
* @return void
*/
public function beforeRender(Event $event)
{
if (!array_key_exists('_serialize', $this->viewVars) &&
in_array($this->response->type(), ['application/json', 'application/xml'])
) {
$this->set('_serialize', true);
}
if ($this->request->session()->read('Auth.User')) {
$this->set('loggedIn', true);
} else {
$this->set('loggedIn', false);
}
}
protected function uploadFile(array $file, $path, $postId)
{
$objFile = $file;
$path = $_SERVER['DOCUMENT_ROOT'] . $path;
//@TODO check file size|Return error
$folder = new Folder();
$folder->create($path, 0755);
move_uploaded_file($objFile['tmp_name'], $path . DS . $objFile['name']);
$ffmpeg = FFMpeg::create(
array(
'ffmpeg.binaries' => '/usr/bin/ffmpeg',
'ffprobe.binaries' => '/usr/bin/ffprobe',
'timeout' => 3600, // The timeout for the underlying process
'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use
)
);
$temp = explode('.', $objFile['name']);
$video = $ffmpeg->open(WWW_ROOT . 'uploads/records' . DS . $postId . DS . $objFile['name']);
$frame = $video->frame(TimeCode::fromSeconds(1));
$userPath = 'uploads/records' . DS . $postId . DS . $temp[0] . '.jpg';
$frame->save(WWW_ROOT . $userPath);
}WARNING !!!!! Help me......
enter image description here