
Recherche avancée
Autres articles (13)
-
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 (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (4741)
-
ffmpeg android concatenation with different codec [on hold]
31 mars 2016, par raphwilmesI’m trying to concatenate 10 videos, but 5 of them have
Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 600x976 [SAR 1:1 DAR 75:122], 17 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)And the rest have
Stream #1:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480x 175 kb/s, SAR 65536:65536 DAR 4:3, 7.69frp, 23.08 tbr, 90k tbn, 15tbc (default)And my code is :
String commandForMerge = "";
for(int i = 1; i<=numberQuestion;i++){
commandForMerge += "-i "+toDir+"/image"+i+".mp4 -i "+toDir+"/"+i+".mp4 ";
}
String cmd = commandForMerge+"-filter_complex concat=n=10:v=1:a=1 -y "+toDir+"/input.mp4";
execFFmpegBinaryMerge(cmd);Here my fonction :
private void execFFmpegBinaryMerge(final String command) {
try {
ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
@Override
public void onFailure(String s) {
}
@Override
public void onSuccess(String s) {
}
@Override
public void onProgress(String s) {
txtProcess.setText(txtProcess.getText()+"\n "+s.toString());
}
@Override
public void onStart() {
txtProcess.setText("mise en place...");
}
@Override
public void onFinish() {
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// do nothing for now
}
}I use this library : https://github.com/WritingMinds/ffmpeg-android-java
Edit :
Now, I’v this : Unable to find a suitable output format for ’[1:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v1] ;’ Invalid Agurment
My Command is : *ffmpeg -i image1.mp4 -i 1.mp4 -i image2.mp4 -i 2.mp4 -i image3.mp4 -i 3.mp4.mp4 -i image4.mp4 -i 4.mp4 -i image5.mp4 -i .mp4
filter-complex
"[0:v]scale=-1:480,pad=640:0 :(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v0] ;
[1:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v1] ;
[2:v]scale=-1:480,pad=640:0 :(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v2] ;
[3:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v3] ;
[4:v]scale=-1:480,pad=640:0 :(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v4] ;
[5:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v5] ;
[6:v]scale=-1:480,pad=640:0 :(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v6] ;
[7:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v7] ;
[8:v]scale=-1:480,pad=640:0 :(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v8] ;
[9:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v9] ;"
’[v0][0:a][v1][1:a][v2][2:a][v3][3:a][v4][4:a][v5][5:a][v6][6:a][v7][7:a][v8][8:a][v9][9:a]’ concat=n=10:v=1:a=1 -y output.mp4
*Now the "[0:v]scale=-1:480,pad=640:0 :(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v0] ;" pass but not the [1:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v1] ;
output :
WARINING:linker : /data/data/vrapp_mobile.com.duoquiz2/files/ffmpeg has text relocation. This is wasting memory and is security risk. Please fix.
ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developpers 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- —arm=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-libfrididi —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcored-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pjg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon —extra-cflags=’-l/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protextor-all -mfpu=neon’ —extra-ldflags=’-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,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
Input #0,mov,mp4,m4a,3gp,mj2, from ’/storage/emulated/0/DuoQuiz/image1.mp4’ :
Metadata :
major_brand :isom
minor_version :512
compatible_brands:isomiso2avc1mp41
encoder :Lavf56.4.101
Duration : 00:00:02.40, start : 0.023021 , bitrate : 334 kb/s
Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 600x976 [SAR 1:1 DAR 75:122], 17 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata :
handler_name : VideoHandler
Stream #0:1(und) : Audio.mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 320 kb/s (default)
Metadata :
handler_name :SoundHandler
Input #1,mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/DuoQuiz/1.mp4’ :
Metadata :
major_brand :isom
minor_version :0
compatible_brands:isom3gp4
creation_time :2016-03-21 16:05:25
Duration : 00:00:02.73, start : 0.000000, bitrate : 229 kb/s
Stream #1:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480x 175 kb/s, SAR 65536:65536 DAR 4:3, 7.69frp, 23.08 tbr, 90k tbn, 15tbc (default)
Metadata :
rotate :270
creation_time :2016-03-21 16:05:25
handler_name :VideoHandle
Side data :
displaymatrix : rotation of 90.00 degrees
Stream #1:1(eng) : Audio : aac (mp4a / 0x6134706D),44100 Hz, mono, fltp, 49 kb/s (default)
Metadata :
creation_time :2016-03-21 16:05:25
handler_name :SoundHandle
Input #2,mov,mp4,m4a,3gp,mj2, from ’/storage/emulated/0/DuoQuiz/image2.mp4’ :
Metadata :
major_brand :isom
minor_version :512
compatible_brands:isomiso2avc1mp41
encoder :Lavf56.4.101
Duration : 00:00:02.40, start : 0.023021 , bitrate : 334 kb/s
Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 600x976 [SAR 1:1 DAR 75:122], 17 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata :
handler_name : VideoHandler
Stream #0:1(und) : Audio.mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 320 kb/s (default)
Metadata :
handler_name :SoundHandler
Input #3,mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/DuoQuiz/2.mp4’ :
Metadata :
major_brand :isom
minor_version :0
compatible_brands:isom3gp4
creation_time :2016-03-21 16:05:25
Duration : 00:00:02.73, start : 0.000000, bitrate : 229 kb/s
Stream #1:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480x 175 kb/s, SAR 65536:65536 DAR 4:3, 7.69frp, 23.08 tbr, 90k tbn, 15tbc (default)
Metadata :
rotate :270
creation_time :2016-03-21 16:05:25
handler_name :VideoHandle
Side data :
displaymatrix : rotation of 90.00 degrees
Stream #1:1(eng) : Audio : aac (mp4a / 0x6134706D),44100 Hz, mono, fltp, 49 kb/s (default)
Metadata :
creation_time :2016-03-21 16:05:25
handler_name :SoundHandle
Input #4,mov,mp4,m4a,3gp,mj2, from ’/storage/emulated/0/DuoQuiz/image3.mp4’ :
Metadata :
major_brand :isom
minor_version :512
compatible_brands:isomiso2avc1mp41
encoder :Lavf56.4.101
Duration : 00:00:02.40, start : 0.023021 , bitrate : 334 kb/s
Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 600x976 [SAR 1:1 DAR 75:122], 17 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata :
handler_name : VideoHandler
Stream #0:1(und) : Audio.mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 320 kb/s (default)
Metadata :
handler_name :SoundHandler
Input #5,mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/DuoQuiz/3.mp4’ :
Metadata :
major_brand :isom
minor_version :0
compatible_brands:isom3gp4
creation_time :2016-03-21
Duration : 00:00:02.73, start : 0.000000, bitrate : 229 kb/s
Stream #1:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480x 175 kb/s, SAR 65536:65536 DAR 4:3, 7.69frp, 23.08 tbr, 90k tbn, 15tbc (default)
Metadata :
rotate :270
creation_time :2016-03-2116:05:25
handler_name :VideoHandle
Side data :
displaymatrix : rotation of 90.00 degrees
Stream #1:1(eng) : Audio : aac (mp4a / 0x6134706D),44100 Hz, mono, fltp, 49 kb/s (default)
Metadata :
creation_time :2016-03-21 16:05:25
handler_name :SoundHandle
Input #6,mov,mp4,m4a,3gp,mj2, from ’/storage/emulated/0/DuoQuiz/image4.mp4’ :
Metadata :
major_brand :isom
minor_version :512
compatible_brands:isomiso2avc1mp41
encoder :Lavf56.4.101
Duration : 00:00:02.40, start : 0.023021 , bitrate : 334 kb/s
Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 600x976 [SAR 1:1 DAR 75:122], 17 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata :
handler_name : VideoHandler
Stream #0:1(und) : Audio.mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 320 kb/s (default)
Metadata :
handler_name :SoundHandler
Input #7,mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/DuoQuiz/4.mp4’ :
Metadata :
major_brand :isom
minor_version :0
compatible_brands:isom3gp4
creation_time :2016-03-21
Duration : 00:00:02.73, start : 0.000000, bitrate : 229 kb/s
Stream #1:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480x 175 kb/s, SAR 65536:65536 DAR 4:3, 7.69frp, 23.08 tbr, 90k tbn, 15tbc (default)
Metadata :
rotate :270
creation_time :2016-03-2116:05:25
handler_name :VideoHandle
Side data :
displaymatrix : rotation of 90.00 degrees
Stream #1:1(eng) : Audio : aac (mp4a / 0x6134706D),44100 Hz, mono, fltp, 49 kb/s (default)
Metadata :
creation_time :2016-03-21 16:05:25
handler_name :SoundHandle
Input #8,mov,mp4,m4a,3gp,mj2, from ’/storage/emulated/0/DuoQuiz/image5.mp4’ :
Metadata :
major_brand :isom
minor_version :512
compatible_brands:isomiso2avc1mp41
encoder :Lavf56.4.101
Duration : 00:00:02.40, start : 0.023021 , bitrate : 334 kb/s
Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 600x976 [SAR 1:1 DAR 75:122], 17 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata :
handler_name : VideoHandler
Stream #0:1(und) : Audio.mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 320 kb/s (default)
Metadata :
handler_name :SoundHandler
Input #9,mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/DuoQuiz/5.mp4’ :
Metadata :
major_brand :isom
minor_version :0
compatible_brands:isom3gp4
creation_time :2016-03-21
Duration : 00:00:02.73, start : 0.000000, bitrate : 229 kb/s
Stream #1:0(eng) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480x 175 kb/s, SAR 65536:65536 DAR 4:3, 7.69frp, 23.08 tbr, 90k tbn, 15tbc (default)
Metadata :
rotate :270
creation_time :2016-03-2116:05:25
handler_name :VideoHandle
Side data :
displaymatrix : rotation of 90.00 degrees
Stream #1:1(eng) : Audio : aac (mp4a / 0x6134706D),44100 Hz, mono, fltp, 49 kb/s (default)
Metadata :
creation_time :2016-03-21 16:05:25
handler_name :SoundHandle
[AVFilterGraph @ 0x2b5b2e10] No such filter : ""
Error configuring filter
*On my computer, i try this command :
-i image1.mp4 -i 1.mp4 -i image2.mp4 -i 2.mp4 -i image3.mp4 -i 3.mp4 -i image4.mp4 -i 4.mp4 -i image5.mp4 -i 5.mp4 -filter_complex "[0:v]scale=-1:480,pad=640:0:(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v0]; [1:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v1]; [2:v]scale=-1:480,pad=640:0:(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v2]; [3:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v3]; [4:v]scale=-1:480,pad=640:0:(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v4]; [5:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v5]; [6:v]scale=-1:480,pad=640:0:(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v6]; [7:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v7]; [8:v]scale=-1:480,pad=640:0:(ow-iw)/2,setsar=1,setpts=PTS-STARTPTS[v8]; [9:v]fps=25,setsar=1,setpts=PTS-STARTPTS[v9]; [v0][0:a][v1][1:a][v2][2:a][v3][3:a][v4][4:a][v5][5:a][v6][6:a][v7][7:a][v8][8:a][v9][9:a] concat=n=10:v=1:a=1" -y output.mp4
That’s ok on my PC but not on my Android
-
Already installed ffmpeg, how to add libvpx after the fact
16 mars 2016, par Jizbo JonezI have ffmpeg already installed on my server for the past 6 months, everything works fine but now it seems I need libvpx to be added to it so I can encode webm files. Is it possible to add this to my current ffmpeg or does it need to be removed and rebuilt from scratch ?
My current ffmpeg setup looks like this -
ffmpeg version N-35515-g901af94-syslint, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 6 2011 20:05:55 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint -
php ffmpeg flv conversion error
8 juillet 2013, par arjunI am trying to convert mp4 file to flv but i am getting 0 size flv files,
can you please help me out on this
array(45) [0]=string(72) "FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers" [1]=string(74) " built on Jan 12 2012 16:07:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)" [2]=> string(98) " configuration : —enable-libmp3lame —enable-gpl
— enable-libvorbis —disable-mmx —enable-shared" [3]=string(35) " libavutil 50.36. 0 / 50.36. 0" [4]=string(35) " libavcore 0.16. 1 / 0.16. 1" [5]=string(37) " libavcodec 52.108. 0 / 52.108. 0" [6]=string(35) " libavformat 52.93. 0 / 52.93. 0" [7]=string(35) " libavdevice 52. 2. 3 / 52. 2. 3" [8]=string(35) " libavfilter 1.74. 0 / 1.74. 0" [9]=string(35) " libswscale 0.12. 0 / 0.12. 0" [10]=> string(0) "" [11]=string(101) "Seems stream 0 codec frame rate differs from container frame rate : 30000.00 (30000/1) -15.00 (15/1)" [12]=string(106) "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '16112007069.mp4' :" [13]=string(11) " Metadata :" [14]=string(26) " major_brand : mp42" [15]=string(23) " minor_version : 0" [16]=string(35) " compatible_brands : mp423gp4isom" [17]=string(41) " creation_time : 2007-11-16 15:44:57" [18]=string(59) " Duration : 00:00:32.64, start : 0.000000, bitrate : 562 kb/s" [19]=string(115) " Stream #0.0(und) : Video : mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 512 kb/s, 15 fps, 15 tbr, 30k tbn, 30k tbc" [20]=string(13) " Metadata :" [21]=> string(43) " creation_time : 2007-11-16 15:44:57" [22]=string(62) " Stream #0.1(und) : Audio : aac, 16000 Hz, mono, s16, 48 kb/s" [23]=> string(13) " Metadata :" [24]=string(43) " creation_time : 2007-11-16 15:44:58" [25]=string(87) "WARNING : The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s" [26]=string(47) "[buffer @ 0x94a9de0] w:352 h:288 pixfmt:yuv420p" [27]=string(98) "[libmp3lame @ 0x94a9560] flv does not support that sample rate, choose from (44100, 22050, 11025)." [28]=string(85) "Output #0, flv, to '16112007069.flv' :" [29]=string(11) " Metadata :" [30]=string(26) " major_brand : mp42" [31]=string(23) " minor_version : 0" [32]=string(35) " compatible_brands : mp423gp4isom" [33]=string(41) " creation_time : 2007-11-16 15:44:57" [34]=string(33) " encoder : Lavf52.93.0" [35]=> string(103) " Stream #0.0(und) : Video : flv, yuv420p, 352x288 [PAR 1:1 DAR 11:9], q=2-31, 200 kb/s, 1k tbn, 15 tbc" [36]=string(13) " Metadata :" [37]=string(43) " creation_time : 2007-11-16 15:44:57" [38]=string(68) " Stream #0.1(und) : Audio : libmp3lame, 16000 Hz, mono, s16, 0 kb/s" [39]=string(13) " Metadata :" [40]=string(43) " creation_time : 2007-11-16 15:44:58" [41]=string(15) "Stream mapping :" [42]=string(21) " Stream #0.0 -#0.0" [43]=string(21) " Stream #0.1 -#0.1" [44]=string(72) "Could not write header for output file #0 (incorrect codec parameters ?)"ffmpeg : /usr/local/bin/ffmpeg file
path : 16112007069.mp4
srcAR : 16000
srcAB:48
dimention : 352 x 288 destFile : 16112007069.flv
coding part : :)
$srcFile = "/file destination/16112007069.mp4";
$destFile = "/file destination/16112007069.flv";
$ffmpegPath = "/usr/local/bin/ffmpeg";
$ffmpegObj = new ffmpeg_movie($srcFile);
$srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth());
$srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight());
$srcFPS = $ffmpegObj->getFrameRate();
$srcAB = intval($ffmpegObj->getAudioBitRate());
$srcAR => $ffmpegObj->getAudioSampleRate();
exec($ffmpegPath . " -i " . $srcFile . " -ar " . $srcAR . " -ab " . $srcAB . " -f flv -s " . $srcWidth . "x" . $srcHeight . " " . $destFile . " 2>&1", $output);
var_dump($output);
print "<br />ffmpeg: $ffmpegPath<br />"; print "file path: $srcFile<br />"; print "srcAR: $srcAR<br />"; print "srcAB: $srcAB<br />"; print
"dimention: $srcWidth x $srcHeight<br />"; print "destFile:
$destFile<br />";
function makeMultipleTwo ($value) {
$sType = gettype($value/2);
if($sType == "integer")
{
return $value;
} else {
return ($value-1);
}
}Note I added :
if($srcAR<41000){ $srcAR = "41000"; }
Above and its working !