
Recherche avancée
Autres articles (41)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (6761)
-
I need to convert audio files using ffmpeg but i got error
4 juin 2020, par tohid nooriI wanna convert an mp3 file to wav file but I can't.
 I try converting mp3 file to other formats too but I always get an error .
Maybe my implementation of FFmpeg has problem if you how to import the FFmpeg library tell me in the comment too. 
I search a lot but I can't find solution maybe my FFmpeg command code has a problem. if you know how to deal whit it please help me.
this is my code.



String s = " -i " + musicDbs.get(0).musicPath +" -vn -ar 44100 -b:a 192k "+ dir.getPath();
// s = -i /storage/emulated/0/Doto30/FX/Pishro_Ft_Hichkas_Divoone.mp3 -vn -ar 44100 -b:a 192k /storage/emulated/0/Doto30/.final_audio.wav
String[]cmd = s.split(" ");
 FFmpeg ffmpeg = FFmpeg.getInstance(context);
 try {
 ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
 @Override
 public void onStart() {
 }

 @Override
 public void onFailure() {
 }

 @Override
 public void onSuccess() {
 }

 @Override
 public void onFinish() {
 }
 });
 } catch (Exception e) {
 Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();
 }

 try {
 ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {
 @Override
 public void onStart() {
 dialog.show();
 }

 @Override
 public void onProgress(String message) {

 }

 @Override
 public void onFailure(String message) {
 String s1 = message;
 Toast.makeText(context, s1, Toast.LENGTH_SHORT).show();
 dialog.dismiss();

 }

 @Override
 public void onSuccess(String message) {
 Toast.makeText(context, "Build has been successful", Toast.LENGTH_SHORT).show();
 dialog.dismiss();
 }

 @Override
 public void onFinish() {

 }
 });
 } catch (Exception e) {
 Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();
 } finally {
 if (ffmpeg.isFFmpegCommandRunning()) {
 ffmpeg.killRunningProcesses();
 }
 }




but i got this error



ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain- 
android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect -- 
sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable- 
libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable- 
fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded- 
tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared - 
-enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config -- 
prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='- 
I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE - 
D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='- 
L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra- 
libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[mp3 @ 0xf6829000] Skipping 0 bytes of junk at 116058. 
[mjpeg @ 0xf687e400] Changing bps to 8
[mp3 @ 0xf6829000] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from '/storage/emulated/0/Doto30/FX/Pishro_Ft_Hichkas_Divoone.mp3':
Metadata:
 album_artist : [3DaMusic.Ir]
 album : [3DaMusic.Ir]
 artist : [3DaMusic.Ir]
 composer : [3DaMusic.Ir]
 disc : [3DaMusic.Ir]
 genre : [3DaMusic.Ir]
 title : [3DaMusic.Ir]
 lyrics-eng : [3DaMusic.Ir]
 track : 1865
 encoded_by : [3DaMusic.Ir]
 TOPE : [3DaMusic.Ir]
 copyright : [3DaMusic.Ir]
 TIT1 : [3DaMusic.Ir]
 date : 2014
Duration: 00:03:48.08, start: 0.000000, bitrate: 132 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 530x533, 90k tbr, 90k tbn, 90k tbc
Metadata:
 title : [www.shiraz-song.ir]
 comment : Cover (front)
[NULL @ 0xf6829600] Unable to find a suitable output format for ''
: Invalid argument




if you can help me.


-
ffmpeg copy file while recording
5 mars 2015, par Bruno SiqueiraI am developing an Android app that records and live streams videos through the mobile camera.
Right now, I am toggling between both of them. I want to record and stream at the same time.While the file is being recorded, is not possible to stream using ffmpeg, because the MOV ATOM from the MP4 file information is not inserted in the file yet (it goes in the end).
Is there any way for the ffmpeg to :
- read the file successfully while it it being recorded ;
- listen to every change in the file, so it stream the new bytes of
information ; - in case I go for another solution, like copying the streaming bytes to a file, can I correct the file via ffmepg to correct any missing headers ?
Edit :
I decided to try a different approach by accessing the camera directly via command line using ffmepg. If it works, I can record the video and stream at the same time. I started trying the FFMPEG library for android : with the following code inside a MainActivity :
final FFmpeg ffmpeg = FFmpeg.getInstance(getApplicationContext());
try {
ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
@Override
public void onStart() {}
@Override
public void onFailure() {
}
@Override
public void onSuccess() {}
@Override
public void onFinish() {}
});
} catch (FFmpegNotSupportedException e) {
// Handle if FFmpeg is not supported by device
Log.e("FFMEPG","error", e);
}
try {
// to execute "ffmpeg -version" command you just need to pass "-version"
ffmpeg.execute(" -y -f video4linux2 -s 320x240 -r 25 -i /dev/video0 /testing.mp4", new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {
Log.d("FFMEPG","start");
}
@Override
public void onProgress(String message) {
Log.d("FFMEPG",message);
}
@Override
public void onFailure(String message) {
Log.e("FFMEPG",message);
}
@Override
public void onSuccess(String message) {
Log.d("FFMEPG",message);
}
@Override
public void onFinish() {
Log.d("FFMEPG","finish");
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// Handle if FFmpeg is already running
Log.e("FFMEPG","error", e);
}
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
ffmpeg.killRunningProcesses();
}
}, 10000);And also giving the necessary permissions in the AndroidManifest.xml :
I am just trying to record a simple 10 seconds mp4 file from the camera, but I am getting the following error :
03-05 12:52:29.391 22004-22004/test.testcameraffmpeg E/FFMEPG﹕ WARNING: linker: /data/data/test.testcameraffmpeg/files/ffmpeg has text relocations. This is wasting memory and is a security risk. Please fix.
ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
[video4linux2,v4l2 @ 0x424bad30] Cannot open video device /dev/video0: Permission denied
/dev/video0: Permission deniedDo I have to be root to access the camera ? Did anybody try this approach ?
-
How can I fix this ffmpeg memory error on linux ?
15 janvier 2020, par JohnI installed ffmpeg on my server and I am trying to create a simple slide show of two images named sample1.jpg and sample2.jpg.
This is the command I’m using :
ffmpeg -framerate 0.1 -i sample%d.jpg -c:v libx264 -r 30 -pix_fmt
yuv420p out2.aviIt fails with the message :
> [swscaler @ 0x1ea0f40] deprecated pixel format used, make sure you did
> set range correctly [libx264 @ 0x1ecad80] using SAR=1/1 [libx264 @
> 0x1ecad80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX x264
> [error]: malloc of size 3771712 failed Output #0, avi, to 'out2.avi':
> Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 30 fps
> Metadata:
> encoder : Lavc56.26.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as
> bit_rate, rate, width or heightThe image size are both 1440x960.
From what I interpret from the error code. Its failing to allocate 3MB of ram. When I check my memory with free -m. It says I have plenty of free memory :
total used free shared buffers cached
Mem: 1024 863 160 2 0 577
-/+ buffers/cache: 286 737
Swap: 0 0 0I think I’m on Centos 6 x64 bit :
centos-release-6-10.el6.centos.12.3.x86_64
How can I get ffmpeg to make a slideshow of my images without running out of memory ?
Edit : The entire log
root@mysite [/home/myfolder/public_html]# ffmpeg -framerate 0.1 -i sample%d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p out2.avi
ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --l ibdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-cryst alhd --enable-gnutls --enable-ladspa --enable-libass --enable-libdc1394 --enable-libfaac --enable-nonfree --d isable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjp eg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-li btheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11gr ab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mjpeg @ 0x1f1c5c0] Changeing bps to 8
Input #0, image2, from 'sample%d.jpg':
Duration: 00:00:20.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 3024x4032 [SAR 96:96 DAR 3:4], 0.10 tbr , 0.10 tbn, 0.10 tbc
[swscaler @ 0x1ef2f40] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x1f21860] using SAR=1/1
[libx264 @ 0x1f21860] frame MB size (189x252) > level limit (36864)
[libx264 @ 0x1f21860] DPB size (4 frames, 190512 mbs) > level limit (3 frames, 184320 mbs)
[libx264 @ 0x1f21860] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [error]: malloc of size 31393504 failed
Output #0, avi, to 'out2.avi':
Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 30 fps
Metadata:
encoder : Lavc56.26.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height