
Recherche avancée
Autres articles (40)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (5549)
-
How to convert the stream from h265 to h264
12 avril 2021, par Hrithik AnchaliyaI'm trying to create a media server using nodejs, and i have no problem streaming any formats but
Since web browsers cant play H265 codec videos i need to convert them to H264 while createReadStream creates a chunk so that i dont have to convert them completely before hand, just that chunk which is sent by the server to the browser.


const path = 'assets/yourfavmov.mkv';
const stat = fs.statSync(path);
const fileSize = stat.size;
const range = req.headers.range;
if (range) { 
const rangeArray = range.replace(/bytes=/, "").split("-"); 
console.log(rangeArray) 
const start = parseInt(rangeArray[0], 10); 
const end = rangeArray[1] ? parseInt(rangeArray[1], 10) : fileSize-1; 
const chunksize = (end-start) + 1; 
const fileChunk = fs.createReadStream(path, {start, end});
const head = {
 'Content-Range': `bytes ${start}-${end}/${fileSize}`, 
 'Accept-Ranges': 'bytes', 
 'Content-Length': chunksize, 
 'Content-Type': 'video/x-matroska' 
};
res.writeHead(206, head); 
fileChunk.pipe(res); 
} else {
 res.end("wont let you stream");
}



I tried to convert the stream using ffmpeg-stream, like so


const converter = new Converter();
const input = converter.createInputStream({
 f: "matroska,webm",
 vcodec : "hevc"
})
const fileChunk = fs.createReadStream(path, {start, end}); 
fileChunk.pipe(input);
converter
 .createOutputStream({ f: "matroska,webm", vcodec: "h264" })
 .pipe(res);



But i have no idea what i did is correct or wrong, so no luck
so is there an way to do it right ?


Thanks in advance.


-
Xuggler Transcoder error
4 septembre 2013, par Andrei BaidocI tried to follow the instructions from here : http://www.javacodegeeks.com/2010/05/rtmp-to-rtsp-re-stream-using-wowza-and.html
All worked fine, Xuggler has been installed with no errors, all tests passed but now when I try to start the transcoder I get this error :
root@heb1:~# java -jar transcoder-1.0.jar
11:25:28.902 [main] WARN com.xuggle.ferry.JNILibrary - Failure: library load of library: xuggle; url: /tmp/xuggle/xuggle6615346873936202632.tmp; error: java.lang.UnsatisfiedLinkError: /tmp/xuggle/xuggle6615346873936202632.tmp: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /tmp/xuggle/xuggle6615346873936202632.tmp)
11:25:46.673 [main] ERROR com.xuggle.xuggler - URL: rtmp://localhost/live/b; Error: could not find output format (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:513)
java.lang.RuntimeException: could not open output url: rtmp://localhost/live/b
at com.xuggle.xuggler.Converter.setupStreams(Converter.java:670)
at com.xuggle.xuggler.Converter.run(Converter.java:1203)
at com.agilio.transcoder.App.main(App.java:34)So the transcoder sees the input stream, but for the output it says that it can't find the output format, althow it is send to Xuggler :
String[] parameters = new String[] { "--acodec", "libfaac", "--vcodec",
"libx264", "--vpreset",
"/usr/local/xuggler/share/ffmpeg/libx264-ultrafast.ffpreset",
inputStream, outputStream }; -
How can we reduce the size of audio file after uploading ?
8 novembre 2019, par Arjun PujariI have used this command in the terminal to install the package :
composer require pbmedia/laravel-ffmpeg
. The package is successfully downloaded, but I don’t know how to use it. I don’t even know if this package can also reduce the audio file size or not.Anyone know any other library or package ?
<form action="{{route('upload')}}" method="post" enctype="multipart/form-data">
Select Audio to upload:
<input type="file" />
<input type="submit" value="upload MP3" />
</form>
<?phpHere is my controller. Write basic code for save file :
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Pbmedia\LaravelFFMpeg\FFMpeg;
class FileCompress extends Controller
{
public function compressFile(Request $request)
{
$uploadFileName = mt_rand().time(). '.' . $file->getClientOriginalExtension();
$filetype = substr($file->getClientMimeType(), 0, strpos($file->getClientMimeType(), "/"));
if($filetype == 'video'){
$localpath = public_path().'/videos/'.$uploadFileName;
//code for video file compress.
}else{
//code for audio file compress.
}
}
}But I need to reduce the audio file size when a file is uploaded or reduce the file size immediately after the file upload. How can i do that ?