
Recherche avancée
Médias (16)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (105)
-
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 ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (6330)
-
How to encode ffmepg for jwplayer script which script read pass php file ?
25 décembre 2013, par Sarun PrasomsriI have encoded my video use this command.
$encode_comand="ffmpeg -i $input_path -ac 1 -ab 128k -y -vcodec libx264 -vpre ultrafast -g 30 -r 30 -crf 22 $target_path &";
exec($encode_comand);And it work for script below
echo '
<div style="margin:0px auto; text-align:center; width:auto; display:blog;" class="vdoplayer">JW Player goes here</div>
<code class="echappe-js"><script type="text/javascript" src="http://stackoverflow.com/feeds/tag/jwplayer/jwplayer.js"></script><script type="text/javascript">jwplayer.key="OOD7GkWbyNXOL6MbstF2Sa/YrQPgtNUPqxm5NA==";</script>
<script type="text/javascript"><br />
jwplayer("mediaplayer&#39;."11111".&#39;").setup({<br />
flashplayer: "jwplayer/jwplayer.flash.swf",<br />
file: "$video_file", <br />
width: "&#39;.$width.&#39;",<br />
height: "&#39;.$height.&#39;",<br />
stretching: "uniform",<br />
type: "mp4",<br />
skin: "jwplayer/jwplayer-skins-free/six.xml",<br />
<br />
});<br />
</script>'
//$video_file="http://myhost.com/project/files/1/video/file3.mp4" ;
But After I chang script
echo '
<div style="margin:0px auto; text-align:center; width:auto; display:blog;" class="vdoplayer">JW Player goes here</div>
<code class="echappe-js"><script type="text/javascript" src="http://stackoverflow.com/feeds/tag/jwplayer/jwplayer.js"></script><script type="text/javascript">jwplayer.key="OOD7GkWbyNXOL6MbstF2Sa/YrQPgtNUPqxm5NA==";</script>
<script type="text/javascript"><br />
jwplayer("mediaplayer&#39;."11111".&#39;").setup({<br />
flashplayer: "jwplayer/jwplayer.flash.swf",<br />
file: "readfile.php", <br />
width: "&#39;.$width.&#39;",<br />
height: "&#39;.$height.&#39;",<br />
stretching: "uniform",<br />
type: "mp4",<br />
skin: "jwplayer/jwplayer-skins-free/six.xml",<br />
abouttext: "project",<br />
aboutlink: "project",<br />
});<br />
</script>'
It not work for my video encode,But i try video that not encode it work.
Video
Dimension : 853 x 840
codec : H.264
Framerate : 30 frames per second
Bitrate 408 kbps
Audio
codec : MPEG-4 AAC
channels : Stero
Sample rate : 44100 Hz ์
Bitrate : N/AReadfile.php that have function read file
<?php
$filename= 'http://www.longtailvideo.com/jw/upload/bunny.mp4'; //can read
$video_file = "http://myhost.com/project/files/1/video/file3.mp4";
//cannot read Same file as script below
if (file_exists($video_file)) { ob_clean(); flush(); };
header('Content-Type: video/mp4');
header('Content-Disposition: attachment;filename=file.mp4');
readfile($video_file);
?>Thank you
-
Lego Mindstorms RSO Format
14 juillet 2010, par Multimedia Mike — GeneralI recently read a magazine article about Lego Mindstorms. Naturally, the item that caught my eye was the mention of a bit of Lego software that converts various audio file formats to a custom format called RSO that can be downloaded into a Mindstorms project to make the creation output audio. To read different sources, one might be left with the impression that there is something super-duper top secret proprietary about the format. Such impressions do not hold up under casual analysis of a sample file.
A Google search for "filetype:rso" yielded a few pre-made sample that I have mirrored into the samples archive. The format appears to be an 8-byte header followed by unsigned, 8-bit PCM. More on the wiki. If FFmpeg could gain an RSO file muxer, that would presumably be a heroic feat to the Lego hacking community.
-
Flutter video_compress and then ffmpeg trim video to 30s fails with endless logs
7 mars 2021, par Charles BassI am trying to make a simple app in Flutter. A user can either take or pick a video and then upload it. However, I wanted to compress the video for storage purposes on firebase storage, and also trim it to only get the first 30 seconds.


I am facing a very puzzling problem. I am able to compress the video, but with the resultant file, FFmpeg fails to trim it and I get endless logs which result in me having to stop the app and re-run. Alternatively, I am able to trim the video, but with the resultant file, I am unable to compress it getting the error :
Failed to open file '/data/user/0/live.roots.roots/app_flutter/TRIMMED.mp4'. (No such file or directory) PlatformException(error, java.io.IOException: Failed to instantiate extractor., null, java.lang.RuntimeException: java.io.IOException: Failed to instantiate extractor.


This is my code below :




//! function that controls file compression and trimming
static Future<file> compressFile(File file) async {
 print('[COMPRESSING FILE]');

 String mimeStr = lookupMimeType(file.path);
 var fileType = mimeStr.split('/');

 if (fileType.contains("image")) {
 print('[COMPRESSING FILE] - file is image');
 String tempPath = (await getTemporaryDirectory()).path;
 String targetPath = '$tempPath/${DateTime.now().toIso8601String()}.jpg';
 return await compressImageAndGetFile(file, targetPath);
 } else {
 print('[COMPRESSING FILE] - file is video');

 final compressedVideoFile = await compressVideoAndGetFile(file);
 print('[VIDEO FILE COMPRESSED]');
 return await trimVideoGetFile(compressedVideoFile);
 }
 }
 
 
//! function to compress video
static Future<file> compressVideoAndGetFile(File file) async {
 print('[COMPRESSING VIDEO]');

 var result = await VideoCompress.compressVideo(
 file.absolute.path,
 quality: VideoQuality.DefaultQuality,
 deleteOrigin: true,
 );

 print('[COMPRESSED VIDEO TO]: ${result.file.path}');

 return result.file;
 }
 
//! function to trim video
static Future<file> trimVideoGetFile(File file) async {
 print('[TRIMMING VIDEO]');

 Directory appDocumentDir = await getApplicationDocumentsDirectory();
 String rawDocumentPath = appDocumentDir.path;
 String outputPath = rawDocumentPath + "/TRIMMED.mp4";

 final newFile = File(outputPath);

 if (await newFile.exists()) {
 await newFile.delete();
 }

 _flutterFFmpeg
 .execute(
 "-ss 00:00:00 -i ${file.path} -to 00:00:30 -c copy $outputPath")
 .then((rt) async {
 print('[TRIMMED VIDEO RESULT] : $rt');
 if (rt == -1) {
 throw Exception("Something went wrong when trimming the video");
 }
 });

 return File(outputPath);
 }</file></file></file>







Thank you in advance