
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (99)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
À propos des documents
21 juin 2013, parQue faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
Document bloqué en file d’attente ?
Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...)
Sur d’autres sites (8096)
-
Cannot merge VisualSampleEntry error while appending videos in MP4parser
13 août 2021, par Abhishek IppakayalI am creating four videos with ffmpeg and then i am appending them with MP4parser.
Details of four videos that i am creating with ffmpeg.


- 

- 1,2 video : created using one image




[-loop, 1, -i, Count_1627453922.jpg, -s, 720x1280, -vf, format=yuv420p,fps=25,fade=type=in:duration=1,fade=type=out:duration=1:start_time=1, -t, 2, -preset, ultrafast, CountImageVideo_1627453922.mp4]



- 

- 3,4 video : trimming 3 second video from an existing mp4 video




[-i, footages_5_1624263519549.mp4, -ss, 00:00:00, -to, 00:00:02, -s, 720x1280, -r, 25, -preset, ultrafast, One_1627453926.mp4]



Now i am trying to append all these videos with MP4Parser and getting below error :


java.io.IOException: Cannot merge VisualSampleEntry[com.googlecode.mp4parser.boxes.mp4.ESDescriptorBox@f3f76444] and VisualSampleEntry[com.googlecode.mp4parser.boxes.mp4.ESDescriptorBox@e20a2ed0]
 at com.googlecode.mp4parser.authoring.tracks.AppendTrack.mergeStsds(AppendTrack.java:116)
 at com.googlecode.mp4parser.authoring.tracks.AppendTrack.<init>(AppendTrack.java:59)
</init>


I have done some debugging and found something that can help understand error better.
Sample Description boxes of two videos


Two video tracks have different formats (MP4v & AVC1). I am new to ffmpeg and MP4parser so did not getting what i am doing wrong. Thanks ! in advance.


Logs of all video creation ffmpeg command and error of mp4parser


Copyright (c) 2000-2020 the FFmpeg developers
I: built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
I: configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --cc=i686-linux-android16-clang --cxx=i686-linux-android16-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/cpu-features/lib -lndk_compat' --target-os=android --disable-neon --disable-asm --disable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
I: libavutil 56. 55.100 / 56. 55.100
I: libavcodec 58. 96.100 / 58. 96.100
I: libavformat 58. 48.100 / 58. 48.100
I: libavdevice 58. 11.101 / 58. 11.101
I: libavfilter 7. 87.100 / 7. 87.100
I: libswscale 5. 8.100 / 5. 8.100
I: libswresample 3. 8.100 / 3. 8.100
I: Input #0, png_pipe, from '1628829731.jpg':
I: Duration: 
I: N/A
I: , bitrate: 
I: N/A
I: Stream #0:0
I: : Video: png, rgb24(pc), 1280x592
I: , 
I: 25 fps, 
I: 25 tbr, 
I: 25 tbn, 
I: 25 tbc
I: Input #1, lavfi, from 'anullsrc':
I: Duration: 
I: N/A
I: , start: 
I: 0.000000
I: , bitrate: 
I: 705 kb/s
I: Stream #1:0
I: : Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
W: Codec AVOption preset (Configuration preset) specified for output file #0 (FootageVideo_1628829747.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
I: Stream mapping:
I: Stream #0:0 -> #0:0
I: (png (native) -> mpeg4 (native))
I: Stream #1:0 -> #0:1
I: (pcm_u8 (native) -> aac (native))
I: Press [q] to stop, [?] for help
W: [graph 0 input from stream 0:0 @ 0xbdf3a220] sws_param option is deprecated and ignored
I: Output #0, mp4, to 'FootageVideo_1628829747.mp4':
I: Metadata:
I: encoder : 
I: Lavf58.48.100
I: Stream #0:0
I: : Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1280x592, q=2-31, 200 kb/s
I: , 
I: 24 fps, 
I: 12288 tbn, 
I: 24 tbc
I: Metadata:
I: encoder : 
I: Lavc58.96.100 mpeg4
I: Side data:
I: 
I: cpb: 
I: bitrate max/min/avg: 0/0/200000 buffer size: 0 
I: vbv_delay: N/A
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: Stream #0:1
I: : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
I: Metadata:
I: encoder : 
I: Lavc58.96.100 aac
I: Background young concurrent copying GC freed 20080(1054KB) AllocSpace objects, 9(2100KB) LOS objects, 7% free, 26MB/29MB, paused 4.477ms total 113.190ms
I: frame= 9 fps=0.0 q=13.8 size= 0kB time=00:00:00.34 bitrate= 1.0kbits/s speed=0.665x 
I: frame= 24 fps= 23 q=24.9 size= 0kB time=00:00:00.97 bitrate= 0.4kbits/s speed=0.953x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 40 fps= 26 q=21.0 size= 0kB time=00:00:01.64 bitrate= 0.2kbits/s speed=1.07x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 55 fps= 27 q=23.7 size= 0kB time=00:00:02.27 bitrate= 0.2kbits/s speed= 1.1x 
I: frame= 71 fps= 28 q=31.0 size= 256kB time=00:00:02.92 bitrate= 716.9kbits/s speed=1.13x 
I: frame= 72 fps= 27 q=31.0 Lsize= 307kB time=00:00:03.01 bitrate= 832.4kbits/s speed=1.14x 
I: video:303kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 
I: 1.018265%
I: [aac @ 0xbdf43c00] Qavg: 65536.000
I: Image to video: 0 : 674960272
I: [-loop, 1, -i, Count_1628829749.jpg, -f, lavfi, -i, anullsrc, -s, 1280x592, -vf, scale='if(gt(a,1280/592),1280,-1)':'if(gt(a1280/592),-1,592)',format=yuv420p,fps=24,fade=type=in:duration=1,fade=type=out:duration=1:start_time=1, -t, 2, -preset, ultrafast, CountImageVideo_1628829749.mp4]
I: [-loop, 1, -i, Count_1628829749.jpg, -f, lavfi, -i, anullsrc, -s, 1280x592, -vf, scale='if(gt(a,1280/592),1280,-1)':'if(gt(a1280/592),-1,592)',format=yuv420p,fps=24,fade=type=in:duration=1,fade=type=out:duration=1:start_time=1, -t, 2, -preset, ultrafast, CountImageVideo_1628829749.mp4]
I: Image to Video: [-loop, 1, -i, Count_1628829749.jpg, -f, lavfi, -i, anullsrc, -s, 1280x592, -vf, scale='if(gt(a,1280/592),1280,-1)':'if(gt(a1280/592),-1,592)',format=yuv420p,fps=24,fade=type=in:duration=1,fade=type=out:duration=1:start_time=1, -t, 2, -preset, ultrafast, CountImageVideo_1628829749.mp4]
I: ffmpeg version v4.4-dev-416
I: Copyright (c) 2000-2020 the FFmpeg developers
I: built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
I: configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --cc=i686-linux-android16-clang --cxx=i686-linux-android16-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/cpu-features/lib -lndk_compat' --target-os=android --disable-neon --disable-asm --disable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
I: libavutil 56. 55.100 / 56. 55.100
I: libavcodec 58. 96.100 / 58. 96.100
I: libavformat 58. 48.100 / 58. 48.100
I: libavdevice 58. 11.101 / 58. 11.101
I: libavfilter 7. 87.100 / 7. 87.100
I: libswscale 5. 8.100 / 5. 8.100
I: libswresample 3. 8.100 / 3. 8.100
I: Input #0, png_pipe, from 'Count_1628829749.jpg':
I: Duration: 
I: N/A
I: , bitrate: 
I: N/A
I: Stream #0:0
I: : Video: png, rgba(pc), 1794x1080
I: , 
I: 25 fps, 
I: 25 tbr, 
I: 25 tbn, 
I: 25 tbc
I: Input #1, lavfi, from 'anullsrc':
I: Duration: 
I: N/A
I: , start: 
I: 0.000000
I: , bitrate: 
I: 705 kb/s
I: Stream #1:0
I: : Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
W: Codec AVOption preset (Configuration preset) specified for output file #0 (CountImageVideo_1628829749.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
I: Stream mapping:
I: Stream #0:0 -> #0:0
I: (png (native) -> mpeg4 (native))
I: Stream #1:0 -> #0:1
I: (pcm_u8 (native) -> aac (native))
I: Press [q] to stop, [?] for help
W: [graph 0 input from stream 0:0 @ 0xbe554440] sws_param option is deprecated and ignored
I: Output #0, mp4, to 'CountImageVideo_1628829749.mp4':
I: Metadata:
I: encoder : 
I: Lavf58.48.100
I: Stream #0:0
I: : Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1280x592, q=2-31, 200 kb/s
I: , 
I: 24 fps, 
I: 12288 tbn, 
I: 24 tbc
I: Metadata:
I: encoder : 
I: Lavc58.96.100 mpeg4
I: Side data:
I: 
I: cpb: 
I: bitrate max/min/avg: 0/0/200000 buffer size: 0 
I: vbv_delay: N/A
I: Stream #0:1
I: : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
I: Metadata:
I: encoder : 
I: Lavc58.96.100 aac
W: Not supplying enough data to HAL, expected position 1243219441 , only wrote 1243083210
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 3 fps=0.0 q=2.0 size= 0kB time=00:00:00.09 bitrate= 3.8kbits/s speed=0.289x 
I: frame= 11 fps=0.0 q=2.0 size= 0kB time=00:00:00.44 bitrate= 0.8kbits/s speed=0.521x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 18 fps= 13 q=2.0 size= 0kB time=00:00:00.71 bitrate= 0.5kbits/s speed=0.532x 
I: frame= 26 fps= 14 q=2.0 size= 0kB time=00:00:01.06 bitrate= 0.3kbits/s speed=0.571x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 35 fps= 14 q=2.0 size= 0kB time=00:00:01.43 bitrate= 0.2kbits/s speed=0.595x 
I: frame= 43 fps= 14 q=2.0 size= 0kB time=00:00:01.76 bitrate= 0.2kbits/s speed=0.593x 
D: onUnbind: Intent { act=com.google.android.gms.wallet.service.BIND pkg=com.google.android.gms }
D: onUnbind: Intent { act=com.google.android.mdd.service.START cmp=com.google.android.gms/.chimera.GmsBoundBrokerService }
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 48 fps= 14 q=2.0 Lsize= 75kB time=00:00:02.02 bitrate= 303.7kbits/s speed=0.586x 
I: video:72kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 
I: 3.472700%
I: [aac @ 0xbdf69c00] Qavg: 65536.000
I: Count Image to video: 0 : 674963874
I: Start Video Query: [-i, iOS_footages_4_1627755471638.mp4, -ss, 00:00:02, -to, 00:00:05, -s, 1280x592, -r, 24, -preset, ultrafast, TilePartOne_1628829753.mp4]
I: ffmpeg version v4.4-dev-416
I: Copyright (c) 2000-2020 the FFmpeg developers
I: built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
I: configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --cc=i686-linux-android16-clang --cxx=i686-linux-android16-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/cpu-features/lib -lndk_compat' --target-os=android --disable-neon --disable-asm --disable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
I: libavutil 56. 55.100 / 56. 55.100
I: libavcodec 58. 96.100 / 58. 96.100
I: libavformat 58. 48.100 / 58. 48.100
I: libavdevice 58. 11.101 / 58. 11.101
I: libavfilter 7. 87.100 / 7. 87.100
I: libswscale 5. 8.100 / 5. 8.100
I: libswresample 3. 8.100 / 3. 8.100
I: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'iOS_footages_4_1627755471638.mp4':
I: Metadata:
I: major_brand : 
I: qt 
I: minor_version : 
I: 0
I: compatible_brands: 
I: qt 
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: com.apple.quicktime.author: 
I: ReplayKitRecording
I: Duration: 
I: 00:03:34.00
I: , start: 
I: 0.000000
I: , bitrate: 
I: 2183 kb/s
I: Stream #0:0
I: (und)
I: : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 37 kb/s
I: (default)
I: Metadata:
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: handler_name : 
I: Core Media Audio
I: Stream #0:1
I: (und)
I: : Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt709), 592x1280, 2139 kb/s
I: , 
I: 38.89 fps, 
I: 59.94 tbr, 
I: 600 tbn, 
I: 1200 tbc
I: (default)
I: Metadata:
I: rotate : 
I: 270
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: handler_name : 
I: Core Media Video
I: encoder : 
I: H.264
I: Side data:
I: 
I: displaymatrix: rotation of 90.00 degrees
W: Codec AVOption preset (Configuration preset) specified for output file #0 (TilePartOne_1628829753.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
I: Stream mapping:
I: Stream #0:1 -> #0:0
I: (h264 (native) -> mpeg4 (native))
I: Stream #0:0 -> #0:1
I: (aac (native) -> aac (native))
I: Press [q] to stop, [?] for help
I: frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A 
W: [graph 0 input from stream 0:1 @ 0xedd7fca0] sws_param option is deprecated and ignored
W: [swscaler @ 0xb645a800] deprecated pixel format used, make sure you did set range correctly
I: frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
E: Couldn't load memtrack module
W: failed to get memory consumption info: -1
I: Output #0, mp4, to 'TilePartOne_1628829753.mp4':
I: Metadata:
I: major_brand : 
I: qt 
I: minor_version : 
I: 0
I: compatible_brands: 
I: qt 
I: com.apple.quicktime.author: 
I: ReplayKitRecording
I: encoder : 
I: Lavf58.48.100
I: Stream #0:0
I: (und)
I: : Video: mpeg4 (mp4v / 0x7634706D), yuv420p(progressive), 1280x592, q=2-31, 200 kb/s
I: , 
I: 24 fps, 
I: 12288 tbn, 
I: 24 tbc
I: (default)
I: Metadata:
I: encoder : 
I: Lavc58.96.100 mpeg4
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: handler_name : 
I: Core Media Video
I: Side data:
I: 
I: cpb: 
I: bitrate max/min/avg: 0/0/200000 buffer size: 0 
I: vbv_delay: N/A
I: 
I: displaymatrix: rotation of -0.00 degrees
I: Stream #0:1
I: (und)
I: : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
I: (default)
I: Metadata:
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: handler_name : 
I: Core Media Audio
I: encoder : 
I: Lavc58.96.100 aac
I: frame= 6 fps=6.0 q=5.8 size= 0kB time=00:00:00.20 bitrate= 1.7kbits/s speed=0.208x 
I: frame= 28 fps= 18 q=31.0 size= 0kB time=00:00:01.12 bitrate= 0.3kbits/s dup=0 drop=3 speed=0.736x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 44 fps= 22 q=31.0 size= 0kB time=00:00:01.79 bitrate= 0.2kbits/s dup=0 drop=15 speed=0.881x 
I: frame= 63 fps= 25 q=31.0 size= 0kB time=00:00:02.58 bitrate= 0.1kbits/s dup=0 drop=18 speed=1.01x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 72 fps= 24 q=31.0 size= 256kB time=00:00:02.95 bitrate= 709.0kbits/s dup=0 drop=19 speed=0.968x 
I: frame= 72 fps= 21 q=31.0 Lsize= 448kB time=00:00:03.01 bitrate=1215.1kbits/s dup=0 drop=19 speed=0.873x 
I: video:398kB audio:47kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 
I: 0.696200%
I: Start video: 0 : 674967468
I: [aac @ 0xb8c6e400] Qavg: 667.684
I: End Video Query: [-i, iOS_footages_4_1627755471638.mp4, -ss, 00:00:05, -to, 00:00:08, -s, 1280x592, -r, 24, -preset, ultrafast, TilePartTwo_1628829756.mp4]
I: ffmpeg version v4.4-dev-416
I: Copyright (c) 2000-2020 the FFmpeg developers
I: built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
I: configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --cc=i686-linux-android16-clang --cxx=i686-linux-android16-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/cpu-features/lib -lndk_compat' --target-os=android --disable-neon --disable-asm --disable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
I: libavutil 56. 55.100 / 56. 55.100
I: libavcodec 58. 96.100 / 58. 96.100
I: libavformat 58. 48.100 / 58. 48.100
I: libavdevice 58. 11.101 / 58. 11.101
I: libavfilter 7. 87.100 / 7. 87.100
I: libswscale 5. 8.100 / 5. 8.100
I: libswresample 3. 8.100 / 3. 8.100
I: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'iOS_footages_4_1627755471638.mp4':
I: Metadata:
I: major_brand : 
I: qt 
I: minor_version : 
I: 0
I: compatible_brands: 
I: qt 
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: com.apple.quicktime.author: 
I: ReplayKitRecording
I: Duration: 
I: 00:03:34.00
I: , start: 
I: 0.000000
I: , bitrate: 
I: 2183 kb/s
I: Stream #0:0
I: (und)
I: : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 37 kb/s
I: (default)
I: Metadata:
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: handler_name : 
I: Core Media Audio
I: Stream #0:1
I: (und)
I: : Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt709), 592x1280, 2139 kb/s
I: , 
I: 38.89 fps, 
I: 59.94 tbr, 
I: 600 tbn, 
I: 1200 tbc
I: (default)
I: Metadata:
I: rotate : 
I: 270
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: handler_name : 
I: Core Media Video
I: encoder : 
I: H.264
I: Side data:
I: 
I: displaymatrix: rotation of 90.00 degrees
W: Codec AVOption preset (Configuration preset) specified for output file #0 (TilePartTwo_1628829756.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
I: Stream mapping:
I: Stream #0:1 -> #0:0
I: (h264 (native) -> mpeg4 (native))
I: Stream #0:0 -> #0:1
I: (aac (native) -> aac (native))
I: Press [q] to stop, [?] for help
W: [graph 0 input from stream 0:1 @ 0xe2c97860] sws_param option is deprecated and ignored
W: [swscaler @ 0xb5d28a80] deprecated pixel format used, make sure you did set range correctly
I: frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A 
I: Output #0, mp4, to 'TilePartTwo_1628829756.mp4':
I: Metadata:
I: major_brand : 
I: qt 
I: minor_version : 
I: 0
I: compatible_brands: 
I: qt 
I: com.apple.quicktime.author: 
I: ReplayKitRecording
I: encoder : 
I: Lavf58.48.100
I: Stream #0:0
I: (und)
I: : Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1280x592, q=2-31, 200 kb/s
I: , 
I: 24 fps, 
I: 12288 tbn, 
I: 24 tbc
I: (default)
I: Metadata:
I: encoder : 
I: Lavc58.96.100 mpeg4
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: handler_name : 
I: Core Media Video
I: Side data:
I: 
I: cpb: 
I: bitrate max/min/avg: 0/0/200000 buffer size: 0 
I: vbv_delay: N/A
I: 
I: displaymatrix: rotation of -0.00 degrees
I: Stream #0:1
I: (und)
I: : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
I: (default)
I: Metadata:
I: creation_time : 
I: 2021-07-31T18:17:18.000000Z
I: handler_name : 
I: Core Media Audio
I: encoder : 
I: Lavc58.96.100 aac
I: frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x 
I: frame= 10 fps=4.9 q=18.5 size= 0kB time=00:00:00.37 bitrate= 0.9kbits/s speed=0.183x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 31 fps= 12 q=31.0 size= 0kB time=00:00:01.25 bitrate= 0.3kbits/s dup=0 drop=2 speed=0.491x 
I: frame= 52 fps= 17 q=31.0 size= 0kB time=00:00:02.12 bitrate= 0.2kbits/s dup=0 drop=5 speed=0.692x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 72 fps= 20 q=31.0 size= 0kB time=00:00:02.95 bitrate= 0.1kbits/s dup=0 drop=7 speed=0.827x 
I: frame= 72 fps= 18 q=31.0 size= 256kB time=00:00:02.95 bitrate= 709.0kbits/s dup=0 drop=7 speed=0.725x 
E: gnssSvStatusCb: a: input svInfo.flags is 8
E: gnssSvStatusCb: b: input svInfo.flags is 8
I: frame= 72 fps= 16 q=31.0 Lsize= 543kB time=00:00:03.01 bitrate=1472.6kbits/s dup=0 drop=7 speed=0.689x 
I: video:493kB audio:47kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 
I: 0.573798%
I: [aac @ 0xc2f20000] Qavg: 669.561
I: Movie paths: [CountImageVideo_1628829749.mp4, TilePartTwo_1628829756.mp4, FootageVideo_1628829747.mp4]
 
 --------- beginning of crash
E: FATAL EXCEPTION: Thread-8
 Process: com.wev.app, PID: 21310
 java.io.IOException: Cannot merge VisualSampleEntry[com.googlecode.mp4parser.boxes.mp4.ESDescriptorBox@ed48a2a8] and VisualSampleEntry[com.googlecode.mp4parser.boxes.mp4.ESDescriptorBox@dc387090]
 at com.googlecode.mp4parser.authoring.tracks.AppendTrack.mergeStsds(AppendTrack.java:116)
 at com.googlecode.mp4parser.authoring.tracks.AppendTrack.<init>(AppendTrack.java:59)
 at Mp4Cutter2.combineClips(Mp4Cutter2.kt:208)
 at com.wev.app.ui.activity.videoplayer.PlayVideoActivity.finalVideoGenerate(PlayVideoActivity.kt:3457)
 at com.wev.app.ui.activity.videoplayer.PlayVideoActivity.endVideoCreate(PlayVideoActivity.kt:3383)
 at com.wev.app.ui.activity.videoplayer.PlayVideoActivity.startVideoCreate(PlayVideoActivity.kt:3298)
 at com.wev.app.ui.activity.videoplayer.PlayVideoActivity.countImageToVideo(PlayVideoActivity.kt:3220)
 at com.wev.app.ui.activity.videoplayer.PlayVideoActivity.imageToVideo(PlayVideoActivity.kt:3158)
 at com.wev.app.ui.activity.videoplayer.PlayVideoActivity$createWev$1$getVideo$imageToVideo$1.run(PlayVideoActivity.kt:3056)
 
</init>


-
Launch Leech and the History of WMV
14 septembre 2010, par Multimedia Mike — GeneralI was combing through my programming archives again and came across an old Perl script called launch-leech.pl. This was a private script I used to maintain for the benefit of myself and a few friends. See, there was this site called Launch.com (URL doesn’t seem to do anything as of this writing but here’s the Wikipedia page). Purchased by Yahoo ! in 2001, Launch still maintained their independent branding. They also carried a lot of music videos, of which I am a huge junkie. launch-leech.pl was the tool I used to download the videos. This was particularly useful since I stubbornly clung to dialup internet access until mid-2004 and it would have been impossible to stream video at any decent quality (though there were 56k streams, so like I said– not possible at any decent quality).
Technically
I followed Launch.com for many years. To be honest, I only “followed” in that I figured out where their “latest videos” URL lived and regularly polled it. Each video had either a 6-, 7-, or 8-digit unique ID that could be plugged into the launch-leech.pl script which would then have a conversation with the relevant servers, determine the correct streaming URL with the highest quality, then download and save the URL by handing it off to an external program (first ASFRecorder, though I later switched to mmsclient).At one point, I even wrote a crawler that compiled an offline database of all the videos, their IDs and their metadata. I never thought of anything interesting to do with it, though.
Windows Media Legacy
During these glory days of leeching, Launch.com streamed using Windows Media. I admit, it’s a bit of a blur now — the site might have used Real or QuickTime, but I was obviously most in tune with the WM side. I remember when I first found the site circa 2000-2001, the videos were in MS MPEG-4v3, and the high quality bitrate was 300 kbits/sec. Eventually, Launch.com would stream WMV7, WMV8, and finally WMV9, with bitrates up to 700 kbits/sec. However, they never broke free of the 320×240 encoding resolution, which was frustrating. When I wasn’t able to notice any substantial difference between 300 and 700 kbits/sec, I felt it might be time to put those extra bits to work on a resolution upgrade.At least they were nice enough to re-encode a number of old videos using better codecs and bitrates with each revision, thus prompting me to scan through the site collecting updated video IDs for download.
Epilogue
I don’t clearly remember when I stopped visiting Launch.com. Video-wise, the web has been a blur of Flash video ever since about 2006. Meanwhile, I spent a lot of time collecting a bunch of music videos in the first half of the decade only to find that pretty much every version of every music video made since the dawn of time is available on demand thanks to YouTube. I have found that this phenomenon manifests in many areas as internet technology marches on.The Real Entertainment
The launch-leech.pl tool represents a recurring pattern for me. I derive as much — if not more — entertainment from creating programs like launch-leech.pl (and implicitly reverse engineering something in the process ; in this case, a website) as I do from the intended entertainment media itself. I seem to have this issue a lot with games, too.Is this an issue for anyone else ? Am I the only one who would rather play with the box that a shiny toy comes packaged in ?
-
Converting from FLV to MP4 using ffmpeg
14 juillet 2016, par BradI have a library of several thousand flv files which I need to convert to mp4. I’m trying to use ffmpeg to do so but I’m running into some issues.
Primarily :
1) I can’t switch from FLV to MP4 without re-encoding. If I do I get a message from ffmpeg saying "Could not find tag for codec flv1 in stream #0, codec not currently supported in container"
2) If I re-encode the videos, the resultant videos are lower quality (I see artifacting in VLC) AND larger. For example one video went from 2.5MB to 4.3MB (almost double in size)
Given number two you may be asking yourself - why convert then ?
The answer is I need to stream these to mobile devices (phones/tablets etc) and flv isn’t supported. So I need to convert the files but I can’t tolerate more than a minimum change in quality, and preferably zero to no increase in size.
Here’s the ffmpeg command I’m running :
ffmpeg -i $_.FullName -movflags faststart -profile:v baseline -level 3.0 "$($_.BaseName).mp4"
(Note that I’m running ffmpeg from powershell so :
$_.FullName = the original file name
"$($_.BaseName).mp4" = the original file name with mp4 extension)Can any FFMPEG guru’s help me to understand what I’m doing wrong ? Is there some set of parameters I can use to make this conversion result in less loss of quality and similar size ?
Note I’ve also tried "-c:v libx264 -preset veryslow -crf 23 -c:a copy". Using present "veryslow" doesn’t result in any appreciable difference.
UPDATE
I’m using the following options :ffmpeg -i $_.FullName -c:v libx264 -preset veryslow -crf 19 -c:a copy "$($_.BaseName).mp4"
Here’s the full output :
ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfi
g —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —
enable-libdcadec —enable-libfreetype —enable-libgme —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libm
p3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —en
able-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —ena
ble-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enabl
e-libx264 —enable-libx265 —enable-libxavs —enable-libxvid —enable-lzma —enable-decklink —enable-zlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, flv, from ’C :\Users\brad\Desktop\ffmpeg\Originals\1019800-1278575542468.flv’ :
Metadata :
canSeekToEnd : false
createdby : FMS 3.5
creationdate : Thu Jul 08 03:52:25 2010
Duration : 00:00:56.94, start : 0.000000, bitrate : 360 kb/s
Stream #0:0 : Video : flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
[libx264 @ 02cf7300] using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 02cf7300] profile High, level 4.2
[libx264 @ 02cf7300] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.or
g/x264.html - options : cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=7 lookahead_th
reads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=
2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60
rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to ’1019800-1278575542468.mp4’ :
Metadata :
canSeekToEnd : false
createdby : FMS 3.5
creationdate : Thu Jul 08 03:52:25 2010
encoder : Lavf56.40.101
Stream #0:0 : Video : h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x240, q=-1—1, 1k fps, 16k tbn, 1k tbc
Metadata :
encoder : Lavc56.60.100 libx264
Stream mapping :
Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=57117 fps=199 q=-1.0 Lsize= 5611kB time=00:00:57.11 bitrate= 804.8kbits/s dup=56685 drop=0
video:5184kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : 8.229259%
[libx264 @ 02cf7300] frame I:230 Avg QP:15.92 size : 8828
[libx264 @ 02cf7300] frame P:6399 Avg QP:17.19 size : 385
[libx264 @ 02cf7300] frame B:50488 Avg QP:27.13 size : 16
[libx264 @ 02cf7300] consecutive B-frames : 0.4% 0.0% 0.0% 0.0% 0.0% 2.3% 0.0% 0.0% 97.2%
[libx264 @ 02cf7300] mb I I16..4 : 2.9% 92.6% 4.5%
[libx264 @ 02cf7300] mb P I16..4 : 0.1% 2.0% 0.2% P16..4 : 2.4% 1.2% 1.1% 0.1% 0.0% skip:92.9%
[libx264 @ 02cf7300] mb B I16..4 : 0.0% 0.0% 0.0% B16..8 : 2.6% 0.0% 0.0% direct : 0.0% skip:97.3% L0:45.0% L1:5
4.9% BI : 0.0%
[libx264 @ 02cf7300] 8x8 transform intra:90.7% inter:76.5%
[libx264 @ 02cf7300] direct mvs spatial:75.2% temporal:24.8%
[libx264 @ 02cf7300] coded y,uvDC,uvAC intra : 94.4% 96.8% 64.8% inter : 0.3% 0.4% 0.1%
[libx264 @ 02cf7300] i16 v,h,dc,p : 16% 25% 18% 41%
[libx264 @ 02cf7300] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 19% 28% 30% 4% 3% 3% 4% 4% 5%
[libx264 @ 02cf7300] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 18% 22% 9% 11% 8% 7% 10% 8% 7%
[libx264 @ 02cf7300] i8c dc,h,v,p : 30% 34% 23% 13%
[libx264 @ 02cf7300] Weighted P-Frames : Y:0.1% UV:0.1%
[libx264 @ 02cf7300] ref P L0 : 74.1% 19.7% 4.5% 0.6% 0.1% 0.2% 0.0% 0.1% 0.0% 0.1% 0.0% 0.2% 0.0% 0.2% 0.0%
0.1%
[libx264 @ 02cf7300] ref B L0 : 95.5% 1.6% 0.7% 0.5% 0.4% 0.3% 0.3% 0.2% 0.1% 0.1% 0.1% 0.1% 0.1% 0.0% 0.0%[libx264 @ 02cf7300] ref B L1 : 84.5% 15.5%
[libx264 @ 02cf7300] kb/s:743.46Original Video Size: 2.44 MB
New Video Size: 5.6 MB