
Recherche avancée
Autres articles (22)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (5392)
-
FFMPEG audio/video livestream with html5 dashjs player : time is not sync
14 avril 2017, par Dániel KisI am going to create a live video & audio stream with ffmeg with libvpx-vp9 codec, and I want to view it from html5 browser with dashjs. But when the dashjs opens the video it seatches for chunks than not yet exits. It seems that the chunk counter is running in double speed in client side.
Here is how I create the stream :
VP9_LIVE_PARAMS="-speed 6 -tile-columns 4 -frame-parallel 1 -threads 8 -static-thresh 0 -max-intra-rate 300 -deadline realtime -lag-in-frames 0 -error-resilient 1"
TARGET_PATH="/var/www/html/live/stream"
ffmpeg \
-thread_queue_size 8192 \
-f v4l2 -input_format mjpeg -r 30 -s 640x360 -i /dev/video0 \
-thread_queue_size 16384 \
-f alsa -ar 44100 -ac 2 -i hw:1,0 \
-map 0:0 \
-pix_fmt yuv422p \
-c:v libvpx-vp9 \
-s 640x360 -keyint_min 60 -g 60 ${VP9_LIVE_PARAMS} \
-b:v 300k \
-f webm_chunk \
-header "${TARGET_PATH}/glass_360.hdr" \
-chunk_start_index 1 \
"${TARGET_PATH}/glass_360_%d.chk" \
-map 1:0 \
-c:a libvorbis \
-b:a 64k -ar 44100 \
-f webm_chunk \
-audio_chunk_duration 2000 \
-header "${TARGET_PATH}/glass_171.hdr" \
-chunk_start_index 1 \
"${TARGET_PATH}/glass_171_%d.chk" \some seconds later I call the ffmpeg again to create manifest file :
ffmpeg \
-analyzeduration 1000\
-f webm_dash_manifest -live 1 \
-i "${TARGET_PATH}/glass_360.hdr" \
-f webm_dash_manifest -live 1 \
-i "${TARGET_PATH}/glass_171.hdr" \
-c copy \
-map 0 -map 1 \
-f webm_dash_manifest -live 1 \
-adaptation_sets "id=0,streams=0 id=1,streams=1" \
-chunk_start_index 1 \
-chunk_duration_ms 2000 \
-time_shift_buffer_depth 7200 \
-minimum_update_period 7200 \
"${TARGET_PATH}/glass_live_manifest.mpd"My server’s clock is synced to "http://time.akamai.com/?iso"
HTML5 player :
<code class="echappe-js"><script src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>Live broadcast<script><br />
var url = "glass_live_manifest.mpd";<br />
var player = dashjs.MediaPlayer().create();<br />
player.initialize(document.querySelector("#videoPlayer"), url, true);<br />
<br />
</script> -
android ffmpeg video rotated while merge tow videos
29 novembre 2017, par medbenjemaai have some app that edit’s videos and images, i try to merge tow videos with ffmpeg but unfortunately the end side is merged rotated and i don’t know why
this is my code to merge the videos
public void step2video(String imagepath){
String body="file '"+selectedVideoPath+"'\nfile '"+imagepath+"'";
createFiletxt(getApplicationContext(),"input.txt",body);
try {
loadFFMpegBinary();
// String txtpath=Environment.getExternalStorageDirectory() + "/images/input.txt";
String cmd1 = "-f concat -safe 0 -i " + Environment.getExternalStorageDirectory() + "/images/input.txt -codec copy " + Environment.getExternalStorageDirectory() + "/images/output.mp4";
Log.i("commande",cmd1);
//String root2 =selectedVideoPath;
String\[\] comnds = cmd1.split(" ");
ffmpeg.execute(comnds, new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {}
@Override
public void onProgress(String message) {
Log.d("progress",message);
}
@Override
public void onFailure(String message) {
Log.d("ffmpeg-failed",message);
pDialog.dismiss();
}
@Override
public void onSuccess(String message) {
Log.i("ffmpeg-message",message);
String finalvideoPath=Environment.getExternalStorageDirectory() + "/images/output.mp4";
loadViedo(finalvideoPath);
pDialog.dismiss();
}
@Override
public void onFinish() {
Toast.makeText(NewGift.this,"finished", Toast.LENGTH_SHORT).show();
}
});
}catch (Exception er){
Log.i("ffmpegerror",er.toString());
}
}take a look at the log and the output
please any help for this
-
how to run "3gp, FLV, avi" video format in AVPLAYER or MPMoviePlayerViewController in iOS ?
8 mai 2015, par JeniferI need to play 3gp, FLV, avi Video file format in my application.
I had searched lot about it.Got some library like "FFmpeg" Library. But could not find any sample code for it.
Any other ways for it are also appreciated.
Does any body have done it before ?
I am even not sure that if it is possible or not in iOS.
Please give me solution for it.
UPDATE :
I tried one 3gp Video in my
AVquePlaye
but it is not play in my code,While i use same Video in
WhatsApp
in myiPhone
, Surprisingly video is playing there.