
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (21)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (4722)
-
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
-
FFMPEG scale and crop in single command
26 mars 2016, par The Hungry AndroiderI’m using FFMPEG on Android using the following lib : http://writingminds.github.io/ffmpeg-android-java/
This is the command I’m using :
"-i " + path + " -vf scale=480:360,crop=360:360:0:00 -strict -2 -preset ultrafast " + fileOutPath
My goal of this is to scale the image down to 480x360, then crop it to 360x360 from (0,0) (top left corner). HOWEVER, what ends up happening is that it crops from the vertical-center. So for example if you were to take a vide of three blocks on top of each other filling the entire screen, the crop would eventually show just the middle block, whereas I desire the top block.
Any ideas as to what I’m doing wrong ?
My ultimate goal from all of this is to get a square video of size 360x360.
Output log :
03-26 12:10:16.816 17198-17198/com.noq D/FFMPEG: FFMPEG onStart
03-26 12:10:16.900 17198-17385/com.noq D/FFmpeg: Running publishing updates method
03-26 12:10:16.914 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: WARNING: linker: /data/user/0/com.noq/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
03-26 12:10:17.004 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
03-26 12:10:17.004 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
03-26 12:10:17.007 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: 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=
03-26 12:10:17.021 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: libavutil 54. 7.100 / 54. 7.100
03-26 12:10:17.022 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: libavcodec 56. 1.100 / 56. 1.100
03-26 12:10:17.022 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: libavformat 56. 4.101 / 56. 4.101
03-26 12:10:17.022 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: libavdevice 56. 0.100 / 56. 0.100
03-26 12:10:17.022 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: libavfilter 5. 1.100 / 5. 1.100
03-26 12:10:17.022 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: libswscale 3. 0.100 / 3. 0.100
03-26 12:10:17.022 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: libswresample 1. 1.100 / 1. 1.100
03-26 12:10:17.022 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: libpostproc 53. 0.100 / 53. 0.100
03-26 12:10:17.201 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/com.noq/files/Pictures/noq/1459008610063.mp4':
03-26 12:10:17.201 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Metadata:
03-26 12:10:17.201 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: major_brand : mp42
03-26 12:10:17.201 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: minor_version : 0
03-26 12:10:17.201 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: compatible_brands: isommp42
03-26 12:10:17.201 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: creation_time : 2016-03-26 16:10:16
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Duration: 00:00:02.02, start: 0.000000, bitrate: 6131 kb/s
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x480, 5926 kb/s, SAR 65536:65536 DAR 4:3, 29.87 fps, 30.17 tbr, 90k tbn, 180k tbc (default)
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Metadata:
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: rotate : 270
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: creation_time : 2016-03-26 16:10:16
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: handler_name : VideoHandle
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: encoder : MOTO
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Side data:
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: displaymatrix: rotation of 90.00 degrees
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s (default)
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Metadata:
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: creation_time : 2016-03-26 16:10:16
03-26 12:10:17.202 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: handler_name : SoundHandle
03-26 12:10:17.263 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] using SAR=1/1
03-26 12:10:17.297 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] using cpu capabilities: none!
03-26 12:10:17.411 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] profile Constrained Baseline, level 2.1
03-26 12:10:17.417 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
03-26 12:10:17.464 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Output #0, mp4, to '/storage/emulated/0/Android/data/com.noq/files/Pictures/noq/14590086100631459008616802_square.mp4':
03-26 12:10:17.464 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Metadata:
03-26 12:10:17.464 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: major_brand : mp42
03-26 12:10:17.464 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: minor_version : 0
03-26 12:10:17.464 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: compatible_brands: isommp42
03-26 12:10:17.464 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: encoder : Lavf56.4.101
03-26 12:10:17.465 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x360 [SAR 1:1 DAR 1:1], q=-1--1, 30.17 fps, 11584 tbn, 30.17 tbc (default)
03-26 12:10:17.465 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Metadata:
03-26 12:10:17.465 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: rotate : 270
03-26 12:10:17.465 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: creation_time : 2016-03-26 16:10:16
03-26 12:10:17.465 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: handler_name : VideoHandle
03-26 12:10:17.465 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: encoder : Lavc56.1.100 libx264
03-26 12:10:17.465 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
03-26 12:10:17.466 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Metadata:
03-26 12:10:17.466 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: creation_time : 2016-03-26 16:10:16
03-26 12:10:17.466 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: handler_name : SoundHandle
03-26 12:10:17.467 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: encoder : Lavc56.1.100 aac
03-26 12:10:17.467 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Stream mapping:
03-26 12:10:17.467 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
03-26 12:10:17.467 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Stream #0:1 -> #0:1 (aac (native) -> aac (native))
03-26 12:10:17.468 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: Press [q] to stop, [?] for help
03-26 12:10:18.035 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: frame= 3 fps=0.0 q=0.0 size= 0kB time=00:00:01.00 bitrate= 0.4kbits/s dup=1 drop=0
03-26 12:10:18.526 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: frame= 21 fps= 20 q=24.0 size= 48kB time=00:00:01.00 bitrate= 390.3kbits/s dup=1 drop=0
03-26 12:10:19.008 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: frame= 26 fps= 17 q=25.0 size= 68kB time=00:00:01.85 bitrate= 301.1kbits/s dup=1 drop=0
03-26 12:10:19.533 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: frame= 47 fps= 23 q=23.0 size= 165kB time=00:00:01.87 bitrate= 719.7kbits/s dup=1 drop=0
03-26 12:10:19.956 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: frame= 62 fps= 25 q=-1.0 Lsize= 297kB time=00:00:02.05 bitrate=1184.9kbits/s dup=1 drop=0
03-26 12:10:19.956 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: video:262kB audio:33kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.992648%
03-26 12:10:19.984 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] frame I:1 Avg QP:20.00 size: 18507
03-26 12:10:19.984 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] frame P:61 Avg QP:23.52 size: 4079
03-26 12:10:19.984 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] mb I I16..4: 100.0% 0.0% 0.0%
03-26 12:10:19.984 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] mb P I16..4: 4.4% 0.0% 0.0% P16..4: 70.9% 0.0% 0.0% 0.0% 0.0% skip:24.7%
03-26 12:10:19.985 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] coded y,uvDC,uvAC intra: 44.6% 40.1% 14.8% inter: 39.1% 32.7% 0.6%
03-26 12:10:19.985 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] i16 v,h,dc,p: 42% 24% 21% 13%
03-26 12:10:19.986 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] i8c dc,h,v,p: 44% 24% 25% 8%
03-26 12:10:19.987 17198-17198/com.noq D/FFMPEG: FFMPEG onProgress: [libx264 @ 0xb78cde30] kb/s:1040.60
03-26 12:10:20.002 17198-17198/com.noq D/FFMPEG: FFMPEG onSuccess: WARNING: linker: /data/user/0/com.noq/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. 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
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/com.noq/files/Pictures/noq/1459008610063.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-03-26 16:10:16
Duration: 00:00:02.02, start: 0.000000, bitrate: 6131 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x480, 5926 kb/s, SAR 65536:65536 DAR 4:3, 29.87 fps, 30.17 tbr, 90k tbn, 180k tbc (default)
Metadata:
rotate : 270
creation_time : 2016-03-26 16:10:16
handler_name : VideoHandle
encoder : MOTO
Side data:
displaymatrix: rotation of 90.00 degrees
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s (default)
Metadata:
creation_time : 2016-03-26 16:10:16
handler_name : SoundHandle
[libx264 @ 0xb78cde30] using SAR=1/1
[libx264 @ 0xb78cde30] using cpu capabilities: none!
[libx264 @ 0xb78cde30] profile Constrained Baseline, level 2.1
[libx264 @ 0xb78cde30] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
Output #0, mp4, to '/storage/emulated/0/Android/data/com.noq/files/Pictures/noq/14590086100631459008616802_square.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
encoder : Lavf56.4.101
Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x360 [SAR 1:1 DAR 1:1], q=-1--1, 30.17 fps, 11584 tbn, 30.17 tbc (default)
Metadata:
rotate : 270
creation_time : 2016-03-26 16:10:16
handler_name : VideoHandle
encoder : Lavc56.1.100 libx264
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2016-03-26 16:10:16
handler_name : SoundHandle
encoder : La
03-26 12:10:20.037 17198-17198/com.noq D/FFMPEG: FFMPEG onFinish -
M2TS from FREEBOX V6 -> Subtitle issue : Unsupported codec
2 avril 2016, par httpwaysI would like to extract subtitles of an M2TS file coming from my FREEBOX V6.
Below the command I typed :
$ avprobe source.m2ts
avprobe version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2007-2014 the Libav developers
built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[aac @ 0x224c0c0] get_buffer() failed
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[aac @ 0x2267a80] get_buffer() failed
[aac @ 0x224b6a0] get_buffer() failed
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[mpegts @ 0x2244200] max_analyze_duration reached
[mpegts @ 0x2244200] PES packet size mismatch
[mpegts @ 0x2244200] PES packet size mismatch
[mpegts @ 0x2244200] PES packet size mismatch
[mpegts @ 0x2244200] PES packet size mismatch
Input #0, mpegts, from 'source.m2ts':
Duration: 00:55:00.23, start: 19624.453300, bitrate: 4608 kb/s
Program 4106
Stream #0.0[0x140]: Video: h264 (High), yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x14a](fra): Audio: aac, 48000 Hz, stereo, fltp, 66 kb/s
Stream #0.2[0x14b](qad): Audio: aac, 48000 Hz, stereo, fltp, 54 kb/s
Stream #0.3[0x14c](qaa): Audio: aac, 48000 Hz, stereo, fltp, 65 kb/s
Stream #0.4[0x155](fre): Subtitle: [6][0][0][0] / 0x0006
[h264 @ 0x2249f80] Ignoring NAL unit 9 during extradata parsing
Unsupported codec with id 94215 for input stream 4
# avprobe outputAs you can see, I have an unsupported codec for the Subtitle stream n°4 [b]Unsupported codec with id 94215 for input stream 4[/b]
Any idea on how to fix it ?
Below is the mediainfo to show you more information about the file M2TS generated by the FREEBOX V6 :
$ mediainfo source.m2ts
General
ID : 4106 (0x100A)
Complete name : source.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 1.77 GiB
Duration : 54mn 59s
Overall bit rate mode : Variable
Overall bit rate : 4 609 Kbps
Video
ID : 320 (0x140)
Menu ID : 4106 (0x100A)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=4, N=25
Codec ID : 27
Duration : 54mn 59s
Width : 1 440 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Audio #1
ID : 330 (0x14A)
Menu ID : 4106 (0x100A)
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 2
Format profile : HE-AAC / LC
Muxing mode : ADTS
Codec ID : 15
Duration : 54mn 59s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Delay relative to video : -104ms
Language : French
Audio #2
ID : 331 (0x14B)
Menu ID : 4106 (0x100A)
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 2
Format profile : HE-AAC / LC
Muxing mode : ADTS
Codec ID : 15
Duration : 54mn 59s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Delay relative to video : -104ms
Language : qad
Audio #3
ID : 332 (0x14C)
Menu ID : 4106 (0x100A)
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 2
Format profile : HE-AAC / LC
Muxing mode : ADTS
Codec ID : 15
Duration : 54mn 59s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Delay relative to video : -104ms
Language : qaa
Text #1
ID : 341 (0x155)-100
Menu ID : 4106 (0x100A)
Format : Teletext
Language : French
Text #2
ID : 341 (0x155)-888
Menu ID : 4106 (0x100A)
Format : Teletext Subtitle
Language : French
Text #3
ID : 341 (0x155)-889
Menu ID : 4106 (0x100A)
Format : Teletext Subtitle
Language : French
Menu
ID : 66 (0x42)
Menu ID : 4106 (0x100A)
Duration : 54mn 59s
List : 320 (0x140) (AVC) / 330 (0x14A) (AAC, French) / 331 (0x14B) (AAC, qad) / 332 (0x14C) (AAC, qaa) / 341 (0x155) ()
Language : / French / qad / qaaAs we can, I have 3 Text section which logic with the Teletext subtitle I originnaly have on my internet box...
Thanks for any help