
Recherche avancée
Autres articles (56)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 (6491)
-
Playing fragmented mp4 doesnt continue playing
18 mai 2017, par advinerUsing ffmpeg I create an mp4 using my video camera as the source.
ffmpeg -f dshow -i video="Integrated Webcam":audio="Microphone (Realtek High Definition Audio)"^
-g 52^
-vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3^
-f mp4 -movflags empty_moov+default_base_moof+frag_keyframe^
%OUTPUT%\video.mp4Works with IE11, Chrome and Firefox
And my html video tags :
<video controls="controls" autoplay="autoplay" style="width:640px;height:360px;">
<source src="http://localhost/video.mp4" type="video/mp4;codecs="avc1.42E01E, mp4a.40.2""></source>
</video>The node web server version just has src="http://localhost/" for the
using
I’ve tried nginx and a node version that I got from this site
The nginx doesnt do anything special. I just basically point the root to the folder so it sees the mp4.The problem is it only plays however much the webserver sees when the page is loaded. The file is still continuously growing. And if I refresh the page I can see the time length is now longer since the last time.
My question is how can I make the video tag continuously play the fragmented video data without stopping and refreshing the page (which starts from the beginning again) ?
-
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.
The post Annual Release of External-Videos plugin – we’ve hit v1.0 first appeared on ginger’s thoughts.
-
Batch Encoding With Array - Doesn't Recognize Active Encode and tries doing it again.
16 avril 2017, par Vahid JamaliI have a working script that so far works successfully with recognizing when a a folder of files
A) Has files to encode B) when a file is encoding script won’t allow for another file to encode. C) Can successfully encode the video and output it to respective folders.My Issue is that I created the script with another coder in order to allow for my self using the $max variable to encode up to 5 files at once, while recognizing which files in the array are being encoded at that point and skipping over those, as to not overwrite them.
Any idea’s what I’m doing wrong with the array ? Currently it’ll try to overwrite the first file in the array, sometimes going to the second one.
<?php
$path = '/home/ftfiles/cron/';
$videoFolder = '/home/files/videos/';
$originalFolder = '/home/files/orig_videos/';
$unencodeFolder = '/home/ftp/files/tempvid/';
$filesToEncode = 1; //Ignore
$extArray = array('avi', 'm4v', 'mp4', 'mpg','h264', 'mpeg', 'flv', 'mkv', 'wmv','rmvb', 'rm');
$priorityLevels = 3;
$max = 5; // How many video encodes to allow at once on the server.
$instance = file_get_contents($path.'busy2.txt');
if ($instance >= $max)
die;
for ($z = 1; $z <= $priorityLevels; $z ++) {
$folder = $unencodeFolder.$z.'/';
$dh = opendir($folder);
while($fileName = readdir($dh)) {
$fileName .= '';
$pathinfo = pathinfo($folder.$fileName);
$go = false;
foreach ($extArray as $ext) {
if ($ext == strtolower($pathinfo['extension'])) {
$go = true;
}
}
if ((is_file($folder.$fileName))&&($go)) {
$videos[]['file'] = $fileName;
$videos[count($videos) - 1]['level'] = $z;
}
}
}
print_r ($videos); // dont need?
$cnt = 0;
if (isset($videos) && count($videos)) {
foreach($videos as $k => $v) {
$fileName = $v['file'];
$folder = $unencodeFolder.$v['level'].'/';
file_put_contents($path.'busy2.txt', $instance+1);
//extracting video size from filename
$cnt++;
$fileParts = explode('_', $fileName);
if ((isset($fileParts[0]))&&(isset($fileParts[1]))&&(isset($fileParts[2]))) {
$sizeText = '-s '.$fileParts[0].'x'.$fileParts[1];
$newFileName = $fileParts[2];
} else {
$sizeText = '';
$newFileName = $fileName;
}
//
$pathInfo = pathinfo($newFileName);
$output = 'encoded_'.str_replace('.'.$pathInfo['extension'], '', $newFileName).'.mp4';
//special encoding options, saved in file
if (file_exists($folder.$fileName.'.txt')) {
$encodeOptions = file_get_contents($folder.$fileName.'.txt');
unlink($folder.$fileName.'.txt');
} else {
$encodeOptions = '';
}
//ffmpeg conversion
$command = '/usr/bin/ffmpeg -i '.$folder.$fileName.' '.$encodeOptions.' '.$sizeText.' -f mp4 '.$videoFolder.$output.'';
passthru($command);
//moving original file from unencoded to encoded folder
copy($folder.$fileName, $originalFolder.$fileName);
unlink($folder.$fileName);
$instance = file_get_contents($path.'busy2.txt');
file_put_contents($path.'busy2.txt', $instance - 1);
if (!file_exists($originalFolder.$output))
break;
//delete original file from unencoded to encoded folder
if (file_exists($folder.$fileName)) { unlink($folder.$fileName); }
if (file_exists($folder.$fileName . '.txt')) { unlink($folder.$fileName . '.txt'); }
break;
//exit
if ($cnt >= $filesToEncode) {
break;
}
}}