
Recherche avancée
Autres articles (8)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (5269)
-
Media type mismatch Error in ffmpeg-android while Concating videos
21 mars 2017, par Karandeep AtwalI
concat
different mp4 videos with different properties like aspect ratio, SAR value, frame size using this command inffmpeg-android
-final String joinVideo = "-i "+Vid1+" -i "+Vid2+" -i "+Vid3+" -i "+Vid4+" -filter_complex [0]setdar=16/9[a];[1]setdar=16/9[b];[2]setdar=16/9[c];[3]setdar=16/9[d];[a][b][c][d]concat=n=4:v=1:a=1 "+Outputfile;
My logcat shows-
03-21 13:06:05.537 26112-26311/com.karandeepEnact I/System.out: --onStart-->
03-21 13:06:05.545 26112-26312/com.karandeepEnact D/FFmpeg: Running publishing updates method
03-21 13:06:05.576 26112-26112/com.karandeepEnact I/System.out: --onProgress-->ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-21 13:06:05.580 26112-26112/com.karandeepEnact I/System.out: --onProgress--> built with gcc 4.8 (GCC)
03-21 13:06:05.580 26112-26112/com.karandeepEnact I/System.out: --onProgress--> 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=
03-21 13:06:05.620 26112-26112/com.karandeepEnact I/System.out: --onProgress--> libavutil 55. 17.103 / 55. 17.103
03-21 13:06:05.621 26112-26112/com.karandeepEnact I/System.out: --onProgress--> libavcodec 57. 24.102 / 57. 24.102
03-21 13:06:05.621 26112-26112/com.karandeepEnact I/System.out: --onProgress--> libavformat 57. 25.100 / 57. 25.100
03-21 13:06:05.621 26112-26112/com.karandeepEnact I/System.out: --onProgress--> libavdevice 57. 0.101 / 57. 0.101
03-21 13:06:05.621 26112-26112/com.karandeepEnact I/System.out: --onProgress--> libavfilter 6. 31.100 / 6. 31.100
03-21 13:06:05.621 26112-26112/com.karandeepEnact I/System.out: --onProgress--> libswscale 4. 0.100 / 4. 0.100
03-21 13:06:05.621 26112-26112/com.karandeepEnact I/System.out: --onProgress--> libswresample 2. 0.101 / 2. 0.101
03-21 13:06:05.621 26112-26112/com.karandeepEnact I/System.out: --onProgress--> libpostproc 54. 0.100 / 54. 0.100
03-21 13:06:05.653 26112-26112/com.karandeepEnact I/System.out: --onProgress-->Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/vid.mp4':
03-21 13:06:05.653 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.654 26112-26112/com.karandeepEnact I/System.out: --onProgress--> major_brand : isom
03-21 13:06:05.654 26112-26112/com.karandeepEnact I/System.out: --onProgress--> minor_version : 512
03-21 13:06:05.654 26112-26112/com.karandeepEnact I/System.out: --onProgress--> compatible_brands: isomiso2avc1mp41
03-21 13:06:05.654 26112-26112/com.karandeepEnact I/System.out: --onProgress--> title : 1282287935171187
03-21 13:06:05.654 26112-26112/com.karandeepEnact I/System.out: --onProgress--> encoder : Lavf56.40.101
03-21 13:06:05.654 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Duration: 00:12:11.52, start: 0.169000, bitrate: 292 kb/s
03-21 13:06:05.654 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 400x400, 268 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
03-21 13:06:05.654 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.655 26112-26112/com.karandeepEnact I/System.out: --onProgress--> handler_name : VideoHandler
03-21 13:06:05.655 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Stream #0:1(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 19 kb/s (default)
03-21 13:06:05.676 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.679 26112-26112/com.karandeepEnact I/System.out: --onProgress--> handler_name : SoundHandler
03-21 13:06:05.679 26112-26112/com.karandeepEnact I/System.out: --onProgress-->[mov,mp4,m4a,3gp,3g2,mj2 @ 0xad6b9600] sample aspect ratio already set to 1:1, ignoring 'pasp' atom (65536:65536)
03-21 13:06:05.788 26112-26112/com.karandeepEnact I/System.out: --onProgress-->Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/vid1.mp4':
03-21 13:06:05.789 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.789 26112-26112/com.karandeepEnact I/System.out: --onProgress--> major_brand : mp42
03-21 13:06:05.789 26112-26112/com.karandeepEnact I/System.out: --onProgress--> minor_version : 0
03-21 13:06:05.789 26112-26112/com.karandeepEnact I/System.out: --onProgress--> compatible_brands: isommp42
03-21 13:06:05.790 26112-26112/com.karandeepEnact I/System.out: --onProgress--> creation_time : 2017-03-20 09:36:26
03-21 13:06:05.790 26112-26112/com.karandeepEnact I/System.out: --onProgress--> com.android.version: 7.0
03-21 13:06:05.790 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Duration: 00:00:09.47, start: 0.000000, bitrate: 6138 kb/s
03-21 13:06:05.815 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Stream #1:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 720x480, 6004 kb/s, SAR 1:1 DAR 3:2, 29.99 fps, 30 tbr, 90k tbn, 180k tbc (default)
03-21 13:06:05.815 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.816 26112-26112/com.karandeepEnact I/System.out: --onProgress--> rotate : 90
03-21 13:06:05.816 26112-26112/com.karandeepEnact I/System.out: --onProgress--> creation_time : 2017-03-20 09:36:26
03-21 13:06:05.816 26112-26112/com.karandeepEnact I/System.out: --onProgress--> handler_name : VideoHandle
03-21 13:06:05.816 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Side data:
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> displaymatrix: rotation of -90.00 degrees
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> creation_time : 2017-03-20 09:36:26
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> handler_name : SoundHandle
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress-->Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/vid2.mp4':
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> major_brand : mp42
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> minor_version : 1
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> compatible_brands: mp41mp42isom
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> creation_time : 2017-02-28 04:56:18
03-21 13:06:05.817 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Duration: 00:00:30.87, start: 0.000000, bitrate: 568 kb/s
03-21 13:06:05.832 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 400x400, 482 kb/s, 25 fps, 25 tbr, 600 tbn, 1200 tbc (default)
03-21 13:06:05.832 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.832 26112-26112/com.karandeepEnact I/System.out: --onProgress--> creation_time : 2017-02-28 04:56:18
03-21 13:06:05.832 26112-26112/com.karandeepEnact I/System.out: --onProgress--> handler_name : Core Media Video
03-21 13:06:05.832 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 81 kb/s (default)
03-21 13:06:05.832 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.833 26112-26112/com.karandeepEnact I/System.out: --onProgress--> creation_time : 2017-02-28 04:56:18
03-21 13:06:05.833 26112-26112/com.karandeepEnact I/System.out: --onProgress--> handler_name : Core Media Audio
03-21 13:06:05.849 26112-26112/com.karandeepEnact I/System.out: --onProgress-->Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/vid3.mp4':
03-21 13:06:05.868 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.869 26112-26112/com.karandeepEnact I/System.out: --onProgress--> major_brand : mp42
03-21 13:06:05.869 26112-26112/com.karandeepEnact I/System.out: --onProgress--> minor_version : 0
03-21 13:06:05.869 26112-26112/com.karandeepEnact I/System.out: --onProgress--> compatible_brands: mp42isom
03-21 13:06:05.869 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Duration: 00:00:31.40, start: 0.000000, bitrate: 1771 kb/s
03-21 13:06:05.869 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Stream #3:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x368, 1644 kb/s, 30.04 fps, 30.04 tbr, 30041 tbn, 60082 tbc (default)
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Metadata:
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress--> rotate : 90
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Side data:
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress--> displaymatrix: rotation of -90.00 degrees
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress--> Stream #3:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress-->[Parsed_setdar_1 @ 0xad6aa1c0] Media type mismatch between the 'Parsed_setdar_1' filter output pad 0 (video) and the 'Parsed_concat_4' filter input pad 1 (audio)
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress-->[AVFilterGraph @ 0xad697180] Cannot create the link setdar:0 -> concat:1
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress-->Error initializing complex filters.
03-21 13:06:05.870 26112-26112/com.karandeepEnact I/System.out: --onProgress-->Invalid argument
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: --onFailure-->ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: built with gcc 4.8 (GCC)
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: 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=
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: libavutil 55. 17.103 / 55. 17.103
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: libavcodec 57. 24.102 / 57. 24.102
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: libavformat 57. 25.100 / 57. 25.100
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: libavdevice 57. 0.101 / 57. 0.101
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: libavfilter 6. 31.100 / 6. 31.100
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: libswscale 4. 0.100 / 4. 0.100
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: libswresample 2. 0.101 / 2. 0.101
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: libpostproc 54. 0.100 / 54. 0.100
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/vid.mp4':
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: major_brand : isom
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: minor_version : 512
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: compatible_brands: isomiso2avc1mp41
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: title : 1282287935171187
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: encoder : Lavf56.40.101
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: Duration: 00:12:11.52, start: 0.169000, bitrate: 292 kb/s
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 400x400, 268 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: handler_name : VideoHandler
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: Stream #0:1(und): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 19 kb/s (default)
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.871 26112-26112/com.karandeepEnact I/System.out: handler_name : SoundHandler
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xad6b9600] sample aspect ratio already set to 1:1, ignoring 'pasp' atom (65536:65536)
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/vid1.mp4':
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: major_brand : mp42
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: minor_version : 0
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: compatible_brands: isommp42
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: creation_time : 2017-03-20 09:36:26
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: com.android.version: 7.0
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Duration: 00:00:09.47, start: 0.000000, bitrate: 6138 kb/s
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Stream #1:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 720x480, 6004 kb/s, SAR 1:1 DAR 3:2, 29.99 fps, 30 tbr, 90k tbn, 180k tbc (default)
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: rotate : 90
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: creation_time : 2017-03-20 09:36:26
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: handler_name : VideoHandle
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Side data:
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: displaymatrix: rotation of -90.00 degrees
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: creation_time : 2017-03-20 09:36:26
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: handler_name : SoundHandle
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/vid2.mp4':
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: major_brand : mp42
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: minor_version : 1
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: compatible_brands: mp41mp42isom
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: creation_time : 2017-02-28 04:56:18
03-21 13:06:05.872 26112-26112/com.karandeepEnact I/System.out: Duration: 00:00:30.87, start: 0.000000, bitrate: 568 kb/s
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 400x400, 482 kb/s, 25 fps, 25 tbr, 600 tbn, 1200 tbc (default)
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: creation_time : 2017-02-28 04:56:18
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: handler_name : Core Media Video
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 81 kb/s (default)
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: creation_time : 2017-02-28 04:56:18
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: handler_name : Core Media Audio
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/vid3.mp4':
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: major_brand : mp42
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: minor_version : 0
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: compatible_brands: mp42isom
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Duration: 00:00:31.40, start: 0.000000, bitrate: 1771 kb/s
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Stream #3:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x368, 1644 kb/s, 30.04 fps, 30.04 tbr, 30041 tbn, 60082 tbc (default)
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Metadata:
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: rotate : 90
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Side data:
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: displaymatrix: rotation of -90.00 degrees
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Stream #3:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: [Parsed_setdar_1 @ 0xad6aa1c0] Media type mismatch between the 'Parsed_setdar_1' filter output pad 0 (video) and the 'Parsed_concat_4' filter input pad 1 (audio)
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: [AVFilterGraph @ 0xad697180] Cannot create the link setdar:0 -> concat:1
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Error initializing complex filters.
03-21 13:06:05.873 26112-26112/com.karandeepEnact I/System.out: Invalid argument
03-21 13:06:05.874 26112-26112/com.karandeepEnact I/System.out: --onFinish-->
03-21 13:08:12.360 26112-26120/com.karandeepEnact I/art: Debugger is no longer active
03-21 13:08:12.360 26112-26120/com.karandeepEnact I/art: Starting a blocking GC Instrumentation -
Stream RTP packets to FFMPEG [duplicate]
21 mars 2017, par Johnathan KanarekThis question already has an answer here :
-
Stream RTP to FFMPEG using SDP
1 answer
I get RTP stream from WebRTC server (I used mediasoup) using node.js and I get the decrypted RTP packets raw data from the stream. I want to forward this RTP data to ffmpeg. I create SDP file that describes both the audio and video streams and send the packets through UDP.
The SDP :v=0
o=mediasoup 7199daf55e496b370e36cd1d25b1ef5b9dff6858 0 IN IP4 192.168.193.182
s=7199daf55e496b370e36cd1d25b1ef5b9dff6858
c=IN IP4 192.168.193.182
t=0 0
m=audio 33400 RTP/AVP 111
a=rtpmap:111 /opus/48000
a=fmtp:111 minptime=10;useinbandfec=1
a=rtcp-fb:111 transport-cc
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=mid:audio
a=recvonly
m=video 33402 RTP/AVP 100
a=rtpmap:100 /VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=mid:video
a=recvonly
a=rtcp-muxThe command :
ffmpeg -loglevel debug -analyzeduration 2147483647 -probesize 2147483647 -protocol_whitelist file,crypto,udp,rtp -re -vcodec vp8 -acodec opus -i test.sdp -vcodec h264 -acodec aac -y output.mp4The log :
ffmpeg version 3.2
Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
configuration: --prefix=/opt/kaltura/ffmpeg-3.2 --libdir=/opt/kaltura/ffmpeg-3.2/lib --shlibdir=/opt/kaltura/ffmpeg-3.2/lib --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -I/opt/kaltura/include' --extra-ldflags=-L/opt/kaltura/lib --disable-devices --enable-bzlib --enable-libgsm --enable-libmp3lame --enable-libschroedinger --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-avisynth --enable-libxvid --enable-filter=movie --enable-avfilter --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libvpx --enable-libspeex --enable-libass --enable-postproc --enable-pthreads --enable-static --enable-shared --enable-gpl --disable-debug --disable-optimizations --enable-gpl --enable-pthreads --enable-swscale --enable-vdpau --enable-bzlib --disable-devices --enable-filter=movie --enable-version3 --enable-indev=lavfi --enable-x11grab
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Splitting the commandline.
Reading option '-loglevel' ...
matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-analyzeduration' ...
matched as AVOption 'analyzeduration' with argument '2147483647'.
Reading option '-probesize' ...
matched as AVOption 'probesize' with argument '2147483647'.
Reading option '-protocol_whitelist' ...
matched as AVOption 'protocol_whitelist' with argument 'file,crypto,udp,rtp'.
Reading option '-re' ...
matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-vcodec' ...
matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'vp8'.
Reading option '-acodec' ...
matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'opus'.
Reading option '-i' ... matched as input file with argument 'test.sdp'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'aac'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'output.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file test.sdp.
Applying option re (read input at native frame rate) with argument 1.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument vp8.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument opus.
Successfully parsed a group of options.
Opening an input file: test.sdp.
[sdp @ 0xb1ef00] Format sdp probed with size=2048 and score=50
[sdp @ 0xb1ef00] audio codec set to: (null)
[sdp @ 0xb1ef00] audio samplerate set to: 44100
[sdp @ 0xb1ef00] audio channels set to: 1
[sdp @ 0xb1ef00] video codec set to: (null)
[udp @ 0xb21940] end receive buffer size reported is 131072
[udp @ 0xb21660] end receive buffer size reported is 131072
[sdp @ 0xb1ef00] setting jitter buffer size to 500
[udp @ 0xb21da0] end receive buffer size reported is 131072
[udp @ 0xb22060] end receive buffer size reported is 131072
[sdp @ 0xb1ef00] setting jitter buffer size to 500
[sdp @ 0xb1ef00] Before avformat_find_stream_info() pos: 889 bytes read:889 seeks:0 nb_streams:2
[vp8 @ 0xb27600] Header size larger than data provided
Last message repeated 2 times
[sdp @ 0xb1ef00] Non-increasing DTS in stream 1: packet 2 with DTS 0, packet 3 with DTS 0
[vp8 @ 0xb27600] Header size larger than data provided
... repeats many times until I kill the socket ...
Last message repeated 1 times
[sdp @ 0xb1ef00] Non-increasing DTS in stream 1: packet 273 with DTS 553050, packet 274 with DTS 553050
[vp8 @ 0xb27600] Header size larger than data provided
received id=7199daf55e496b370e36cd1d25b1ef5b9dff6858 type=bye
PeerConnection close. id=7199daf55e496b370e36cd1d25b1ef5b9dff6858
-- PeerConnection.closed, err: undefined
-- peers in the room = 0
[sdp @ 0xb1ef00] decoding for stream 1 failed
[sdp @ 0xb1ef00] Could not find codec parameters for stream 1 (Video: vp8, 1 reference frame, yuv420p): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[sdp @ 0xb1ef00] After avformat_find_stream_info() pos: 889 bytes read:889 seeks:0 frames:584
Input #0, sdp, from 'test.sdp':
Metadata:
title : 7199daf55e496b370e36cd1d25b1ef5b9dff6858
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0, 309, 1/90000: Audio: opus, 48000 Hz, mono, fltp
Stream #0:1, 275, 1/90000: Video: vp8, 1 reference frame, yuv420p, 90k tbr, 90k tbn, 90k tbc
Successfully opened the file.
Parsing a group of options: output file output.mp4.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument aac.
Successfully parsed a group of options.
Opening an output file: output.mp4.
Matched encoder 'libx264' for codec 'h264'.
[file @ 0xbc56e0]
Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 1 logical cores
[graph 0 input from stream 0:1 @ 0xb1eca0]
Setting 'video_size' to value '0x0'
[buffer @ 0xbc54e0]
Unable to parse option value "0x0" as image size
[graph 0 input from stream 0:1 @ 0xb1eca0]
Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:1 @ 0xb1eca0]
Setting 'time_base' to value '1/90000'
[graph 0 input from stream 0:1 @ 0xb1eca0] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:1 @ 0xb1eca0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:1 @ 0xb1eca0] Setting 'frame_rate' to value '90000/1'
[buffer @ 0xbc54e0] Unable to parse option value "0x0" as image size
[buffer @ 0xbc54e0] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:1 @ 0xb1eca0] Error applying options to the filter.
Error opening filters!
[AVIOContext @ 0xbc57c0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0xb1f8c0]
Statistics: 889 bytes read, 0 seeksAs you can see, at the beginning of the log the SDP parsed without recognizing the codecs :
Opening an input file: test.sdp.
[sdp @ 0xb1ef00] Format sdp probed with size=2048 and score=50
[sdp @ 0xb1ef00] audio codec set to: (null)
[sdp @ 0xb1ef00] audio samplerate set to: 44100
[sdp @ 0xb1ef00] audio channels set to: 1
[sdp @ 0xb1ef00] video codec set to: (null)Then it’s trying to read the packets from the sockets.
Only when I close the socket, ffmpeg continues to parse the SDP, this time finding the correct codec :Opening an input file: test.sdp.
[sdp @ 0xb1ef00] Format sdp probed with size=2048 and score=50
[sdp @ 0xb1ef00] audio codec set to: (null)
[sdp @ 0xb1ef00] audio samplerate set to: 44100
[sdp @ 0xb1ef00] audio channels set to: 1
[sdp @ 0xb1ef00] video codec set to: (null)I suspect that the "Non-increasing DTS" and "Header size larger than data provided" errors are caused by wrong parsing of the packets due to usage with the wrong codec.
I checked the SDP order and it seems the same as in other examples I have.
Can someone suggest an explanation ?
BTW, audio only works fine, but I guess it’s because of the simplicity of OPUS.
Thanks.
-
Stream RTP to FFMPEG using SDP
-
FFmpeg "Unrecognized option" error when trying to merge 2 audio files in Android
20 mars 2017, par ShaLooked at This and This links to create a command to merge 2 audio files using
ffmpeg
but it’s not working.My command :
String input1 = "/storage/emulated/0/jd.m4a ";
String input2 = "/storage/emulated/0/jd.m4a "; //trying with same audio just to check if it works or not
String filter = "-filter_complex [0:a]volume=0.99[a1];[1:a]volume=0.3[a2];[a1][a2]amerge=inputs=2,volume=1.3,pan=stereo|c0code>The console output :
03-20 13:52:04.981 32013-32013/io.whispero.soundmerger E/onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-20 13:52:04.981 32013-32013/io.whispero.soundmerger E/onProgress: built with gcc 4.8 (GCC)
03-20 13:52:04.982 32013-32013/io.whispero.soundmerger E/onProgress: 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=
03-20 13:52:04.982 32013-32013/io.whispero.soundmerger E/onProgress: libavutil 55. 17.103 / 55. 17.103
03-20 13:52:04.983 32013-32013/io.whispero.soundmerger E/onProgress: libavcodec 57. 24.102 / 57. 24.102
03-20 13:52:04.983 32013-32013/io.whispero.soundmerger E/onProgress: libavformat 57. 25.100 / 57. 25.100
03-20 13:52:04.984 32013-32013/io.whispero.soundmerger E/onProgress: libavdevice 57. 0.101 / 57. 0.101
03-20 13:52:04.984 32013-32013/io.whispero.soundmerger E/onProgress: libavfilter 6. 31.100 / 6. 31.100
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libswscale 4. 0.100 / 4. 0.100
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libswresample 2. 0.101 / 2. 0.101
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libpostproc 54. 0.100 / 54. 0.100
03-20 13:52:04.986 32013-32013/io.whispero.soundmerger E/onProgress: Unrecognized option 'filter_complex [0:a]volume=0.99[a1];[1:a]volume=0.3[a2];[a1][a2]amerge=inputs=2,volume=1.3,pan=stereo|c0io.whispero.soundmerger E/onProgress: Error splitting the argument list: Option not foundFrom what I can understand is that
ffmpeg
is unable to split and differentiate the inputs, filter and output from thecommand
, but I tried with a lot of variations, still not working :(Please help. Looked around a lot but none of the commands is working.
Thanks in advance !
EDIT :
Added-report
before-filter_complex
and ran. LOG is below AS @Mulvya asked03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: built with gcc 4.8 (GCC)
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: 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=
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: libavutil 55. 17.103 / 55. 17.103
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: libavcodec 57. 24.102 / 57. 24.102
03-20 16:29:06.832 27671-27671/io.whispero.soundmerger E/onProgress: libavformat 57. 25.100 / 57. 25.100
03-20 16:29:06.832 27671-27671/io.whispero.soundmerger E/onProgress: libavdevice 57. 0.101 / 57. 0.101
03-20 16:29:06.833 27671-27671/io.whispero.soundmerger E/onProgress: libavfilter 6. 31.100 / 6. 31.100
03-20 16:29:06.834 27671-27671/io.whispero.soundmerger E/onProgress: libswscale 4. 0.100 / 4. 0.100
03-20 16:29:06.834 27671-27671/io.whispero.soundmerger E/onProgress: libswresample 2. 0.101 / 2. 0.101
03-20 16:29:06.835 27671-27671/io.whispero.soundmerger E/onProgress: libpostproc 54. 0.100 / 54. 0.100
03-20 16:29:06.836 27671-27671/io.whispero.soundmerger E/onProgress: Unrecognized option 'i '.
03-20 16:29:06.837 27671-27671/io.whispero.soundmerger E/onProgress: Error splitting the argument list: Option not found
03-20 16:29:06.846 27671-27671/io.whispero.soundmerger E/onFailure: 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
Unrecognized option 'i '.
Error splitting the argument list: Option not found
03-20 16:29:06.848 27671-27671/io.whispero.soundmerger E/onFinish: onFinish