
Recherche avancée
Autres articles (84)
-
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 (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (12516)
-
Video won't play with Android's native MediaPlayer, however it plays with Dropbox's video player
12 novembre 2014, par NachiI’m having trouble playing a certain .3gp file (from a Dropbox link) with Android’s MediaPlayer. However the file magically plays without problems from the Dropbox Android app.
I’m trying to play it using this :
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://www.dropbox.com/s/zpiqwmxka6llavt/SketchyFile.3gp"));
startActivity(intent);and my manifest contains
which gives a "Can’t play this video" error.
Logcat shows :
I/NuCachedSource2(89): new range: offset= 2245017
I/ChromiumHTTPDataSource(89): connect to https://dl.dropbox.com/0/view/a1crokuhpprsaeo/SketchyFile.3gp @2245017
I/NuCachedSource2(89): ERROR_END_OF_STREAM
E/MediaPlayer(3629): error (1, -2147483648)
E/MediaPlayer(3629): Error (1,-2147483648)
D/VideoView(3629): Error: 1,-2147483648If I try to play it from the Dropbox Android app, Dropbox’s video player has no problem playing it.
According to ffmpeg’s ffprobe tool I could verify that the media type is not something exotic to Android.
Is Dropbox performing some weird transcoding voodoo and is there a way I can make this work in a similar way ?
EDIT : Here’s some more insight into DropBox’s encoding voodoo.
-
no sound when streaming mkv video to html 5 video player via node js
8 septembre 2013, par TristanI have been playing around with building a simple html 5 media server for all my mkv files since I discovered chrome can play them when just dragging and dropping the file into a new tab !
So I actually have something up and going and I am able to stream the mkv files through a nodejs sever to a simple html 5 video player, the only problem is there is no sound and the volume icon in the controls is crossed and greyed out !
Now I realise that mkv files can have multiple audio streams within and this is probably my issue, that the video player doesn't know which one to use or is missing it for some reason.
I have avoided using ffmpeg for the time being as I wanted to stream the videos without any transcoding (and without using express as shown in the fluent-ffmpeg stream example).
See below for the code I use to stream the video :
cFs.exists(sFileName, function(bExists){
if (bExists)
{
var cFile = null;
var cStat = cFs.statSync(sFileName);
if (cRequest.headers['range'])
{
var aParts = cRequest.headers['range'].replace(/bytes=/, "").split("-");
var nStart = parseInt(aParts[0], 10);
var nEnd = aParts[1] ? parseInt(aParts[1], 10) : cStat.size - 1;
var nChunkSize = (nEnd - nStart) + 1;
cFile = cFs.createReadStream(sFileName, {start: nStart, end: nEnd});
cResponse.writeHead(206, {
"Content-Type": "video/x-matroska",
"Content-Range": "bytes " + nStart + "-" + nEnd + "/" + cStat.size,
"Accept-Ranges": "bytes",
"Content-Length": nChunkSize
});
cFile.pipe(cResponse);
cRequest.on('close', function(){
cFile.destroy();
});
}
else
{
cResponse.writeHead(200, {
"Content-Type": "video/x-matroska",
"Content-Length": cStat.size
});
cFile = cFs.createReadStream(sFileName);
cFile.pipe(cResponse);
}
cRequest.on('close', function(){
if (cFile)
{
cFile.destroy();
}
});
/*new ffmpeg({
source: sFileName
}).toFormat('webm').writeToStream(cResponse, function(){
console.log(arguments);
});*/
}
else
{
cResponse.writeHead(404, {
"Content-Type": "text/plain"
});
cResponse.write("404 Not Found\n");
cResponse.end();
}
});if you could help me sort out the sound for the code above or can provide a fluent-ffmpeg solution without using express and retaining as much image quality as possible that would be great !
-
FFMPEG scaling video disable viewing it in HTML player while process is not ended, for video transcoding on the fly
6 juillet 2022, par Lucas FGood day all,


I'm working on a video player with 1080p original video files, and I would like to change their resolution on the fly :


Actually I host all my original video files under a web mp4 1080p format, and I would like to be able to offer 720p, 480p, etc ... qualities.


So I started to look for tutorials about video transcoding on the fly and I found the FFMPEG tool.


I'm actually using the following command to scale videos - to 720p for e.g. :


ffmpeg -i input.mp4 -vf scale=-1:720 output.mp4



The problem is, once FFMPEG starts scaling it, I have to wait the end of the process before being able to play the video. Do you know if there is any parameter for this command to allow playing the video while it's under scaling ?


Or any workaround that can help me doing this ?


Thank you in advance for your help !


EDIT - To allow fragmented video metas


Now I found how to access readable content while transcoding (by transcoding to fragmented MP4) :


ffmpeg -i input.mp4 -vf scale=-2:720 -movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov output.mp4



But my problem is when opening the video it comes as an "ended" video of the current transcoded data.


So if video lasts 1min and is half transcoded, I'll see only 30s, it will not load more data, once the rest is transcoded.


EDIT - To play entire video while transcoding


I found the following solution that creates a streaming flow througout RTMP protocol :


ffmpeg -i input.mp4 -vf scale=-2:720 -movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov output.mp4 -listen 1 -f flv rtmp://127.0.0.1:10000/test-stream



My only problem, is that it's not supported into the HTML5 video player, so I tried to convert the RTMP stream to HTTP with the following command :


ffmpeg -v verbose -i rtmp://127.0.0.1:10000/test-stream -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 18 -profile:v baseline -maxrate 400k -bufsize 1835k -pix_fmt yuv420p -flags -global_header -hls_time 10 -hls_list_size 6 -start_number 1 C:\www\test-stream.m3u8



But this is only supported on Apple devices, any idea about how to read this .m3u8 on all other devices ?