
Recherche avancée
Autres articles (37)
-
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 (4766)
-
ffmpeg audio video synchronisation mux
19 juillet 2013, par Rahul KumarI am trying to mux audio and video but the resultant is not what expected. The video is not shown in the output.
rahul@hp : $ ffmpeg -i /Desktop/a.m4a -i /Desktop/a.mp4 -acodec copy -vcodec copy /Desktop/output.mkv ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers built on Apr 2 2013 17:00:59 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rahul/Desktop/a.m4a' : Metadata : major_brand : dash minor_version : 0 compatible_brands : iso6mp41 creation_time : 2013-05-17 06:34:22 Duration : 00:16:41.01, start : 500.506122, bitrate : 127 kb/s Stream #0.0(und) : Audio : aac, 44100 Hz, stereo, s16 Metadata : creation_time : 2013-05-17 06:34:22
Seems stream 0 codec frame rate differs from container frame rate : 47.95 (48000/1001) -> 23.97 (45000/1877)
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/home/rahul/Desktop/a.mp4' :
Metadata :
major_brand : dash
minor_version : 0
compatible_brands : iso6avc1mp41
creation_time : 2013-05-17 06:34:22
Duration : 00:16:40.61, start : 500.316311, bitrate : 675 kb/s
Stream #1.0(und) : Video : h264 (Main), yuv420p, 1280x720, 23.97 tbr, 90k tbn, 47.95 tbc
Metadata :
creation_time : 2013-05-17 06:34:22
Output #0, matroska, to '/home/rahul/Desktop/output.mkv' :
Metadata :
major_brand : dash
minor_version : 0
compatible_brands : iso6mp41
creation_time : 2013-05-17 06:34:22
encoder : Lavf53.21.1
Stream #0.0(und) : Video : avc1 / 0x31637661, yuv420p, 1280x720, q=2-31, 1k tbn, 23.98 tbc
Metadata :
creation_time : 2013-05-17 06:34:22
Stream #0.1(und) : Audio : aac, 44100 Hz, stereo
Metadata :
creation_time : 2013-05-17 06:34:22
Stream mapping :
Stream #1.0 -> #0.0
Stream #0.0 -> #0.1
Press ctrl-c to stop encoding
frame= 0 fps= 0 q=-1.0 Lsize= 15643kB time=500.51 bitrate= 256.0kbits/s
video:0kB audio:15493kB global headers:0kB muxing overhead 0.967810%
rahul@hp : $i tried using
-map 0:v:0
-map 1:v:0
-map 0:v:1
but all showed
Number of stream maps must match number of output streams
-
ffmpeg gives an error Option movflags not found
12 juillet 2013, par HemantIn Ubuntu 12.04 LTS I have used
-movflags frag_keyframe+empty_moov
in my ffmpeg command :ffmpeg -i http://filesbe.vocativ.internal.net/03/44/SN/q1/xg/xl/0344SNq1xgxl.flv \
-crf 32.0 -g 250 -keyint_min 25 -aspect 4:3 -movflags frag_keyframe -vcodec \
libx264 -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 128k -map 0:0 \
-map 0:1 -f flv -y test.flv
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:02:36 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[flv @ 0x10569a0] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'http://filesbe.vocativ.internal.net/03/44/SN/q1/xg/xl/0344SNq1xgxl.flv':
Metadata:
starttime : 0
totalduration : 64
totaldatarate : 710
bytelength : 5674798
canseekontime : true
sourcedata : BADC23401MH1326550770698632
purl :
pmsg :
Duration: 00:01:03.96, start: 0.000000, bitrate: 718 kb/s
Stream #0.0: Video: h264 (Main), yuv420p, 854x480, 590 kb/s, 25 tbr, 1k tbn, 50 tbc
Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 128 kb/s
[buffer @ 0x105c600] w:854 h:480 pixfmt:yuv420p
[movie @ 0x105c440] seek_point:0 format_name:(null) file_name:/home/assetproxy/htdocs/transcoder/helper_asset/voca_scaled.png stream_index:0
[overlay @ 0x1060840] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed filter 0 movie' and the filter 'Parsed filter 1 overlay'
[scale @ 0x11d8300] w:90 h:51 fmt:rgb24 -> w:90 h:51 fmt:yuva420p flags:0x4
[overlay @ 0x1060840] main w:854 h:480 fmt:yuv420p overlay x:754 y:419 w:90 h:51 fmt:yuva420p
[overlay @ 0x1060840] main_tb:1/1000000 overlay_tb:1/25 -> tb:1/1000000 exact:1
[libx264 @ 0x1059d20] using SAR=191/255
[libx264 @ 0x1059d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x1059d20] profile Main, level 3.0
[libx264 @ 0x1059d20] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=32.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.41 aq=1:1.00
Option movflags not found. -
Making ffmpeg/javacv less verbose in java
27 août 2013, par lejlotI have a Java application that uses
ffmpeg
library andjavacv
to load and process video files.I am currently using following code, for loading
videofile
to my data container.public boolean add(String videofile) {
FrameGrabber g = new OpenCVFrameGrabber( videofile );
try{
g.start();
}
catch(Exception e){
g = new FFmpegFrameGrabber( videofile );
try {
g.start();
}catch(Exception x){
return false;
}
}
grabbers.add( new Pair(videofile, g) );
frames.add( 0 );
preprocessed=false;
return true;
}Each time video is loaded, a library outputs a lot of meta information regarding video itself :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/lejlot/data/test.mp4' :
Metadata :
major_brand : isom
minor_version : 512
compatible_brands : isomiso2mp41
encoder : Lavf53.21.1 Duration : 00:04:36.27, start : 0.000000, bitrate : 305 kb/s
Stream #0:0(und) : Video : mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 303 kb/s, 20,85
fps, 30 tbr, 1k tbn, 1k tbc
Metadata :
handler_name : VideoHandlerwhich obviously I do not want to see. I cannot (do not want) to modify the libraries source codes, but rather modify my own so it can intercept this log and discard it.
As far I tried to temporarly block the stdout/stderr streams through
private static final devnull = new PrintStream(new OutputStream() {
@Override
public void write(int b) {
//DO NOTHING
}
@Override
public void write(byte[] b,int x,int y){
}
});
/**
* Blocks messages to stdout
*/
public static void silentStdOut(){
System.setOut(devnull);
}
/**
* Blocks messages to stderr
*/
public static void silentStdErr(){
System.setErr(devnull);
}but it does not seem to help, log message is still displayed
public boolean add(String videofile) {
Utils.silentStdErr();
Utils.silentStdOut();
FrameGrabber g = new OpenCVFrameGrabber( videofile );
try{
g.start();
}
,,,"Raw" ffmpeg can be set to be less verbose using
ffmpeg -loglevel panic
but neither
OpenCVFrameGrabber
notFFmpegFrameGrabber
give access to the tool's parameters.To sum up - how can I discard these log messages without modifing the libraries' source codes ?