
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (61)
-
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 -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (4361)
-
FFmpeg : java.lang.UnsatisfiedLinkError while calling Runnable class
12 mars 2013, par Yuliya TarasenkoI need to take a picture file and an audio file and create a video.
I know that it's possible to do with the help ofRuntime.getRuntime().exec("ffmpeg -i image.jpeg -i audio.mp3 out.avi")
but only for rooted devices, so I've tried to create JNI wrapper for main() from ffmpeg.c and call it from my Activity like here : http://demo860.blogspot.com/2010/07/android-ffmpeg-dynamic-module-jni.html
1.This code is in ffmpeg.c :
int m_argc = 0;
char *m_pargv [30];
int dynamic_ffpmeg_main (int argc, char **argv);
jint JNICALL Java_com_ccmedia_codec_ffmpeg_mod_1run ( JNIEnv *, jclass, jstring, jstring );
jint JNICALL Java_com_ccmedia_codec_ffmpeg_mod_1run ( JNIEnv *env, jclass class, jstring pj1, jstring pj2)
{
// as in http://demo860.blogspot.com/2010/07/android-ffmpeg-dynamic-module-jni.html
}
int dynamic_ffpmeg_main(int argc, char **argv)
{
// as in http://demo860.blogspot.com/2010/07/android-ffmpeg-dynamic-module-jni.html
}
int main(int argc, char **argv)
{
dynamic_ffpmeg_main ( argc, argv );
return 0;
}2.This code is in my .java :
public class FFmpegCreator implements Runnable {
static boolean m_bret = false;
static String m_szconfig = " -i /sdcard/file.mpg -vcodec mpeg4 aaa.mpg";
//public native String unimplementedStringFromJNI();
static {
try {
System.out.println("[AdDBCache] Module load try ffmpeg : "
+ System.getProperty("java.library.path"));
// System.load("/sdcard/arm_and/bin/libffmpeg.so");
System.loadLibrary("ffmpeg");
System.out.println("[AdDBCache] Module load success");
}
catch (Exception e) {
System.out.println("[AdDBCache] Module load err : "
+ System.getProperty("java.library.path"));
}
}
private static synchronized final native int Java_com_ccmedia_codec_ffmpeg_mod_1run(String name, String sztoken);
public void set_config(String sz_config) {
m_szconfig = sz_config;
}
public void run_core(String sz_file, String sz_token) {
int n_stat;
m_bret = false;
n_stat = Java_com_ccmedia_codec_ffmpeg_mod_1run(m_szconfig, sz_token);
m_bret = true;
}
public void run() {
run_core("", "");
}
}3.And this in my Activity :
FFmpegCreator f = new FFmpegCreator ();
new Thread(f).start();But I have
E/AndroidRuntime(25682): java.lang.UnsatisfiedLinkError: Java_com_ccmedia_codec_ffmpeg_mod_1run .
And I can't understand why... FFmpeg build was successful...
Could anyone help me, please ? I'll really appreciate if you could help me. Thank you. -
.mov conversion to .mp4 using ffmpeg doesn't convert the entire video
5 février 2013, par user504879I am trying to convert a mov file which I got from saving my powerpoint presentation to a movie file. However only a part of the presentation is converted not the entire one and also running qt-start doesn't make the exported mp4 to stream over rtmp. Is there something which I am missing ?
I am attaching the output which i get when I am trying to convert the file using ffmpeg
$ export LD_LIBRARY_PATH=/usr/local/lib; /usr/local/bin/ffmpeg -y -i /data/tmp/vialogues_prez.mov -r 20 -g 40 -acodec libfaac -ar 44100 -ab 96k -vcodec libx264 -s 640x480 -vpre medium /data/videos/vialogues_prez.mp4
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
built on Feb 19 2011 19:03:56 with gcc 4.4.5
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x186f460]max_analyze_duration reached
Seems stream 0 codec frame rate differs from container frame rate: 600.00 (600/1) -> 0.08 (1/12)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/data/tmp/vialogues_prez.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
comment : Microsoft PowerPoint Movie
comment-eng : Microsoft PowerPoint Movie
Duration: 00:04:47.00, start: 0.000000, bitrate: 22 kb/s
Stream #0.0(eng): Video: qtrle, bgra, 640x480, 21 kb/s, 0.01 fps, 0.08 tbr, 600 tbn, 600 tbc
Stream #0.1(eng): Video: 0x0000, 600 tbr, 600 tbn, 600 tbc
Stream #0.2(eng): Video: 0x0000, 600 tbr, 600 tbn, 600 tbc
[libx264 @ 0x1873b50]using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x1873b50]profile High, level 3.0
[libx264 @ 0x1873b50]264 - core 114 - 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=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=200 ratetol=20.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, mp4, to '/data/videos/vialogues_prez.mp4':
Metadata:
encoder : Lavf52.64.2
Stream #0.0(eng): Video: libx264, yuv420p, 640x480, q=10-51, 200 kb/s, 20 tbn, 20 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 4 fps= 0 q=32766.0 Lsize= 50kB time=45.05 bitrate= 9.0kbits/s
video:49kB audio:0kB global headers:0kB muxing overhead 1.740573%
[libx264 @ 0x1873b50]frame I:1 Avg QP:32.73 size: 8427
[libx264 @ 0x1873b50]frame P:3 Avg QP:20.68 size: 13640
[libx264 @ 0x1873b50]mb I I16..4: 60.8% 14.6% 24.7%
[libx264 @ 0x1873b50]mb P I16..4: 28.7% 7.2% 15.4% P16..4: 2.0% 1.3% 1.4% 0.0% 0.0% skip:43.9%
[libx264 @ 0x1873b50]final ratefactor: -16.67
[libx264 @ 0x1873b50]8x8 transform intra:14.2% inter:5.0%
[libx264 @ 0x1873b50]coded y,uvDC,uvAC intra: 25.2% 18.4% 13.0% inter: 5.3% 7.4% 7.2%
[libx264 @ 0x1873b50]i16 v,h,dc,p: 63% 34% 1% 2%
[libx264 @ 0x1873b50]i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 41% 31% 1% 1% 1% 1% 1% 4%
[libx264 @ 0x1873b50]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 33% 19% 2% 3% 3% 4% 3% 4%
[libx264 @ 0x1873b50]i8c dc,h,v,p: 75% 20% 4% 1%
[libx264 @ 0x1873b50]Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1873b50]ref P L0: 57.0% 12.2% 26.2% 4.7%
[libx264 @ 0x1873b50]kb/s:1.14any help is appreciated.
-
ffmpeg audio conversion distorted - half rate
6 novembre 2013, par user1688971I'm trying to convert an asf audio to mp3 using ffmpeg.
But I have one specific audio that gets distorted in the middle and starts like if the person was talking in slow motion (at half rate).The command I'm using is :
ffmpeg - i input.asf -ac 2 output.mp3
I've tried a lot of options, but about the middle of the audio is when it fails.
The raw file sounds good, so it's not the recording. It is af in the middle of the transmission the frame rate went down for some reason.Thanks all !
[EDIT]
I'm adding the console response after running the command as a suggestion from LordNeckbeard :
[root@mynasserver home]# ffmpeg -i recording-8532-1.asf -ac 2 -ab 64k -ar 44100 recording-8532-ac2-ar44100.mp3
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Jan 29 2012 23:56:18 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[flv @ 0x86a4850]max_analyze_duration reached
[flv @ 0x86a4850]Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'recording-8532-1.asf':
Metadata:
source : STW MediaProxy v3.3.7.19894
Duration: 04:00:08.49, start: 0.000000, bitrate: N/A
Stream #0.0: Audio: aac, 44100 Hz, 2 channels (FC), s16
Output #0, mp3, to 'recording-8532-ac2-ar44100.mp3':
Metadata:
TSSE : Lavf52.64.2
Stream #0.0: Audio: libmp3lame, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 150906kB time=19315.93 bitrate= 64.0kbits/s
video:0kB audio:150906kB global headers:0kB muxing overhead 0.000021%So from the data above, you can see the input file is about 4hrs. The output ends up being around 5 hrs 20 mins.