
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (54)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
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 -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)
Sur d’autres sites (7731)
-
FFmpeg adding 0.05 seconds of silence to transcoded AAC file ?
29 octobre 2015, par FTLRalphIn Java, I’m using FFmpeg to convert a WAV file to AAC with the function :
-i input.wav -ac 1 -ab 64000 -ar 22050 output.aac
When I open these two files in Audacity, I can clearly see that the AAC file is 0.05 seconds longer, with 0.05 seconds of silence added to the beginning.
This is an issue when I try to mux this AAC file with a video file - the audio doesn’t sync up.
Is there some sort of parameter to prevent this behavior or another way to get around this issue ?
Edit - Console output while running the function :
10-28 17:47:10.845: I/System.out(14784): FFmpeg: Running the function: -i "input.wav" -ac 1 -ab 64000 -ar 22050 "output.aac"
10-28 17:47:10.845: I/System.out(14784): FFmpeg function: onStart()
10-28 17:47:10.865: D/FFmpeg(14784): Running publishing updates method
10-28 17:47:10.865: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.875: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.875: I/System.out(14784): ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
10-28 17:47:10.875: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.875: I/System.out(14784): built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
10-28 17:47:10.875: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.875: I/System.out(14784): 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=
10-28 17:47:10.875: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.875: I/System.out(14784): libavutil 54. 7.100 / 54. 7.100
10-28 17:47:10.875: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.875: I/System.out(14784): libavcodec 56. 1.100 / 56. 1.100
10-28 17:47:10.875: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.875: I/System.out(14784): libavformat 56. 4.101 / 56. 4.101
10-28 17:47:10.880: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.880: I/System.out(14784): libavdevice 56. 0.100 / 56. 0.100
10-28 17:47:10.880: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.880: I/System.out(14784): libavfilter 5. 1.100 / 5. 1.100
10-28 17:47:10.880: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.880: I/System.out(14784): libswscale 3. 0.100 / 3. 0.100
10-28 17:47:10.880: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.880: I/System.out(14784): libswresample 1. 1.100 / 1. 1.100
10-28 17:47:10.880: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.880: I/System.out(14784): libpostproc 53. 0.100 / 53. 0.100
10-28 17:47:10.895: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.895: I/System.out(14784): Guessed Channel Layout for Input Stream #0.0 : mono
10-28 17:47:10.895: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.895: I/System.out(14784): Input #0, wav, from 'input.wav':
10-28 17:47:10.895: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.900: I/System.out(14784): Duration: 00:00:02.50, bitrate: 352 kb/s
10-28 17:47:10.900: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.900: I/System.out(14784): Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, 1 channels, s16, 352 kb/s
10-28 17:47:10.935: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.935: I/System.out(14784): Output #0, adts, to 'output.aac':
10-28 17:47:10.935: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.935: I/System.out(14784): Metadata:
10-28 17:47:10.935: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.935: I/System.out(14784): encoder : Lavf56.4.101
10-28 17:47:10.935: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.935: I/System.out(14784): Stream #0:0: Audio: aac, 22050 Hz, mono, fltp, 64 kb/s
10-28 17:47:10.935: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.935: I/System.out(14784): Metadata:
10-28 17:47:10.935: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.935: I/System.out(14784): encoder : Lavc56.1.100 aac
10-28 17:47:10.940: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.940: I/System.out(14784): Stream mapping:
10-28 17:47:10.940: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.940: I/System.out(14784): Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (native))
10-28 17:47:10.940: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:10.940: I/System.out(14784): Press [q] to stop, [?] for help
10-28 17:47:11.395: D/dalvikvm(14784): JIT unchain all for threadid=16
10-28 17:47:11.420: D/dalvikvm(14784): GC_FOR_ALLOC freed 4698K, 40% free 7190K/11964K, paused 271ms, total 272ms
10-28 17:47:11.420: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:11.420: I/System.out(14784): size= 12kB time=00:00:02.50 bitrate= 37.7kbits/s
10-28 17:47:11.455: I/System.out(14784): FFmpeg function: onProgress()...
10-28 17:47:11.455: I/System.out(14784): video:0kB audio:11kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.363914%
10-28 17:47:11.470: I/System.out(14784): FFmpeg function: onSuccess(), message:
10-28 17:47:11.470: I/System.out(14784): ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
10-28 17:47:11.470: I/System.out(14784): built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
10-28 17:47:11.470: I/System.out(14784): 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=
10-28 17:47:11.470: I/System.out(14784): libavutil 54. 7.100 / 54. 7.100
10-28 17:47:11.470: I/System.out(14784): libavcodec 56. 1.100 / 56. 1.100
10-28 17:47:11.470: I/System.out(14784): libavformat 56. 4.101 / 56. 4.101
10-28 17:47:11.470: I/System.out(14784): libavdevice 56. 0.100 / 56. 0.100
10-28 17:47:11.470: I/System.out(14784): libavfilter 5. 1.100 / 5. 1.100
10-28 17:47:11.470: I/System.out(14784): libswscale 3. 0.100 / 3. 0.100
10-28 17:47:11.470: I/System.out(14784): libswresample 1. 1.100 / 1. 1.100
10-28 17:47:11.470: I/System.out(14784): libpostproc 53. 0.100 / 53. 0.100
10-28 17:47:11.470: I/System.out(14784): Guessed Channel Layout for Input Stream #0.0 : mono
10-28 17:47:11.470: I/System.out(14784): Input #0, wav, from 'input.wav':
10-28 17:47:11.470: I/System.out(14784): Duration: 00:00:02.50, bitrate: 352 kb/s
10-28 17:47:11.475: I/System.out(14784): Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, 1 channels, s16, 352 kb/s
10-28 17:47:11.475: I/System.out(14784): Output #0, adts, to 'output.aac':
10-28 17:47:11.475: I/System.out(14784): Metadata:
10-28 17:47:11.475: I/System.out(14784): encoder : Lavf56.4.101
10-28 17:47:11.475: I/System.out(14784): Stream #0:0: Audio: aac, 22050 Hz, mono, fltp, 64 kb/s
10-28 17:47:11.475: I/System.out(14784): Metadata:
10-28 17:47:11.475: I/System.out(14784): encoder : Lavc56.1.100 aac
10-28 17:47:11.475: I/System.out(14784): Stream mapping:
10-28 17:47:11.475: I/System.out(14784): Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (native))
10-28 17:47:11.475: I/System.out(14784): Press [q] to stop, [?] for help
10-28 17:47:11.475: I/System.out(14784): size= 12kB time=00:00:02.50 bitrate= 37.7kbits/s
10-28 17:47:11.475: I/System.out(14784): video:0kB audio:11kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.363914%
10-28 17:47:11.475: I/System.out(14784): FFmpeg function: onFinish() -
Convert video by ffmpeg not working in chrome
18 novembre 2015, par DucthienI used command :
$ ffmpeg -y -i "E:\SharingVideo\src\main\webapp\resources\video\input\input.mp4" -an -c:a libfdk_aac -ac 2 -ab 128k -c:v libx264 -x264opts 'keyint=24:min-keyint=24:no-scenecut' -b:v 1500k -maxrate 1500k -bufsize 1000k -vf "scale=-1:720" "E:\SharingVideo\src\main\webapp\resources\video\input\input_an.mp4"
to get only video with format h264 (without sound). Cmd result :
ffmpeg version N-76224-ga7c5005 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-fontconfig --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-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 9.100 / 57. 9.100
libavformat 57. 10.101 / 57. 10.101
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 12.100 / 6. 12.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\SharingVideo\src\main\webapp\resources\video\input\input.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf52.94.0
Duration: 00:02:29.95, start: 0.000000, bitrate: 1787 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 1629 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 151 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
[libx264 @ 000000821f5fbe40] using SAR=1/1
[libx264 @ 000000821f5fbe40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 000000821f5fbe40] profile High, level 3.1
[libx264 @ 000000821f5fbe40] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=24 keyint_min=13 scenecut=0 intra_refresh=0 rc_lookahead=24 rc=cbr mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1500 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'E:\SharingVideo\src\main\webapp\resources\video\input\input_an.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.10.101
Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1500 kb/s, 29.97 fps, 30k tbn, 29.97 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
encoder : Lavc57.9.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 4494 fps= 38 q=-1.0 Lsize= 25050kB time=00:02:29.88 bitrate=1369.1kbits/s
video:25003kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.188374%
[libx264 @ 000000821f5fbe40] frame I:188 Avg QP:17.73 size: 40170
[libx264 @ 000000821f5fbe40] frame P:2060 Avg QP:23.64 size: 7302
[libx264 @ 000000821f5fbe40] frame B:2246 Avg QP:24.03 size: 1339
[libx264 @ 000000821f5fbe40] consecutive B-frames: 29.6% 8.4% 8.9% 53.1%
[libx264 @ 000000821f5fbe40] mb I I16..4: 27.8% 64.1% 8.1%
[libx264 @ 000000821f5fbe40] mb P I16..4: 5.4% 12.4% 0.3% P16..4: 26.4% 4.3% 2.0% 0.0% 0.0% skip:49.3%
[libx264 @ 000000821f5fbe40] mb B I16..4: 0.2% 0.4% 0.0% B16..8: 17.5% 0.7% 0.1% direct: 0.9% skip:80.2% L0:41.5% L1:55.9% BI: 2.7%
[libx264 @ 000000821f5fbe40] 8x8 transform intra:66.9% inter:89.7%
[libx264 @ 000000821f5fbe40] coded y,uvDC,uvAC intra: 39.1% 57.7% 20.9% inter: 4.7% 10.1% 0.3%
[libx264 @ 000000821f5fbe40] i16 v,h,dc,p: 43% 29% 8% 20%
[libx264 @ 000000821f5fbe40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 23% 21% 4% 5% 5% 5% 5% 5%
[libx264 @ 000000821f5fbe40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 9% 4% 8% 7% 7% 5% 4%
[libx264 @ 000000821f5fbe40] i8c dc,h,v,p: 49% 24% 20% 7%
[libx264 @ 000000821f5fbe40] Weighted P-Frames: Y:9.1% UV:8.9%
[libx264 @ 000000821f5fbe40] ref P L0: 74.5% 11.1% 11.0% 3.3% 0.1%
[libx264 @ 000000821f5fbe40] ref B L0: 91.0% 7.9% 1.1%
[libx264 @ 000000821f5fbe40] ref B L1: 96.4% 3.6%
[libx264 @ 000000821f5fbe40] kb/s:1365.92then i get audio from mp4 file :
ffmpeg -i "E:\SharingVideo\src\main\webapp\resources\video\input\input.mp4" -vn -acodec copy "E:\SharingVideo\src\main\webapp\resources\video\input\audio.mp4"
cmd result :
$ ffmpeg -i "E:\SharingVideo\src\main\webapp\resources\video\input\input.mp4" -vn -acodec copy "E:\SharingVideo\src\mai
n\webapp\resources\video\input\audio.mp4"
ffmpeg version N-76224-ga7c5005 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-fontconfig --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-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 9.100 / 57. 9.100
libavformat 57. 10.101 / 57. 10.101
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 12.100 / 6. 12.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\SharingVideo\src\main\webapp\resources\video\input\input.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf52.94.0
Duration: 00:02:29.95, start: 0.000000, bitrate: 1787 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 1629 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 151 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
[mp4 @ 0000000b967e30a0] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, mp4, to 'E:\SharingVideo\src\main\webapp\resources\video\input\audio.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.10.101
Stream #0:0(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 151 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 2806kB time=00:02:29.86 bitrate= 153.4kbits/s
video:0kB audio:2780kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.933710%after that. I create .mpd file by MP4box :
MP4Box -dash 10000 -profile onDemand -rap -out "E:\SharingVideo\src\main\webapp\resources\video\input\input_dash.mpd" "E:\SharingVideo\src\main\webapp\resources\video\input\input_an.mp4"#video:id=video_2Mb "E:\SharingVideo\src\main\webapp\resources\video\input\audio.mp4"#audio:id=audio
the video play fine in firefox and IE but in chrome it doesn’t working :
VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) The video playback was aborted due to a corruption problem or because the video used features your browser did not support.
Video Element Error: MEDIA_ERR_DECODE
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The video could not be loaded, either because the server or network failed or because the format is not supported.
Video Element Error: MEDIA_ERR_SRC_NOT_SUPPORTEDI don’t know why it doesn’t work in chrome, please help me.What did I wrong something to display video in chrome ?
-
FFMPEG android is processing slow
23 novembre 2015, par jpcI’m using https://github.com/WritingMinds/ffmpeg-android-java as my framework for FFMPEG
I’m trying to convert an image to a video using this command
ffmpeg -y -loop 1 -i input.jpg -strict -2 -vcodec mpeg4 -t 5 -pix_fmt yuv420p out.mp4
It took about 32 seconds to finish the process which is very slow for my requirements.
Is there a way to speed this up ? I’m thinking of something around 5 seconds, perhaps approximately equal to the specified length of the video
here’s the log btw
11-23 12:12:13.587 4228-4228/com.lo.and.dev W/com.lo.and.util: WARNING: linker: /data/data/com.lo.and.dev/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
11-23 12:12:13.607 4228-4228/com.lo.and.dev W/com.lo.and.util: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
11-23 12:12:13.607 4228-4228/com.lo.and.dev W/com.lo.and.util: built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
11-23 12:12:13.607 4228-4228/com.lo.and.dev W/com.lo.and.util: 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=
11-23 12:12:13.607 4228-4228/com.lo.and.dev W/com.lo.and.util: libavutil 54. 7.100 / 54. 7.100
11-23 12:12:13.607 4228-4228/com.lo.and.dev W/com.lo.and.util: libavcodec 56. 1.100 / 56. 1.100
11-23 12:12:13.607 4228-4228/com.lo.and.dev W/com.lo.and.util: libavformat 56. 4.101 / 56. 4.101
11-23 12:12:13.607 4228-4228/com.lo.and.dev W/com.lo.and.util: libavdevice 56. 0.100 / 56. 0.100
11-23 12:12:13.607 4228-4228/com.lo.and.dev W/com.lo.and.util: libavfilter 5. 1.100 / 5. 1.100
11-23 12:12:13.617 4228-4228/com.lo.and.dev W/com.lo.and.util: libswscale 3. 0.100 / 3. 0.100
11-23 12:12:13.617 4228-4228/com.lo.and.dev W/com.lo.and.util: libswresample 1. 1.100 / 1. 1.100
11-23 12:12:13.617 4228-4228/com.lo.and.dev W/com.lo.and.util: libpostproc 53. 0.100 / 53. 0.100
11-23 12:12:13.707 4228-4228/com.lo.and.dev W/com.lo.and.util: Input #0, image2, from '/storage/emulated/0/DCIM/Camera/20151122_172809.jpg':
11-23 12:12:13.707 4228-4228/com.lo.and.dev W/com.lo.and.util: Duration: 00:00:00.04, start: 0.000000, bitrate: 95165 kb/s
11-23 12:12:13.717 4228-4228/com.lo.and.dev W/com.lo.and.util: Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
11-23 12:12:13.727 4228-4228/com.lo.and.dev W/com.lo.and.util: [swscaler @ 0xb5d89000] deprecated pixel format used, make sure you did set range correctly
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: Output #0, mp4, to '/storage/emulated/0/DCIM/out.mp4':
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: Metadata:
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: encoder : Lavf56.4.101
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: Metadata:
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: encoder : Lavc56.1.100 mpeg4
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: Stream mapping:
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
11-23 12:12:13.777 4228-4228/com.lo.and.dev W/com.lo.and.util: Press [q] to stop, [?] for help
11-23 12:12:14.707 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 3 fps=0.0 q=2.0 size= 343kB time=00:00:00.12 bitrate=23400.5kbits/s
11-23 12:12:15.247 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 5 fps=4.2 q=4.9 size= 345kB time=00:00:00.20 bitrate=14125.9kbits/s
11-23 12:12:15.737 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 7 fps=4.0 q=10.2 size= 347kB time=00:00:00.28 bitrate=10149.8kbits/s
11-23 12:12:16.467 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 10 fps=4.1 q=18.9 size= 350kB time=00:00:00.40 bitrate=7167.7kbits/s
11-23 12:12:17.037 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 12 fps=4.0 q=24.8 size= 352kB time=00:00:00.48 bitrate=6007.9kbits/s
11-23 12:12:17.567 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 14 fps=3.9 q=27.8 size= 403kB time=00:00:00.56 bitrate=5893.7kbits/s
11-23 12:12:18.337 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 17 fps=4.0 q=31.0 size= 406kB time=00:00:00.68 bitrate=4891.5kbits/s
11-23 12:12:18.847 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 19 fps=3.9 q=31.0 size= 408kB time=00:00:00.76 bitrate=4398.6kbits/s
11-23 12:12:19.607 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 22 fps=3.9 q=31.0 size= 411kB time=00:00:00.88 bitrate=3827.4kbits/s
11-23 12:12:20.107 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 24 fps=3.9 q=31.0 size= 413kB time=00:00:00.96 bitrate=3525.9kbits/s
11-23 12:12:20.637 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 26 fps=3.9 q=31.0 size= 460kB time=00:00:01.04 bitrate=3624.3kbits/s
11-23 12:12:21.157 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 28 fps=3.9 q=31.0 size= 462kB time=00:00:01.12 bitrate=3381.1kbits/s
11-23 12:12:21.667 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 30 fps=3.9 q=31.0 size= 464kB time=00:00:01.20 bitrate=3169.7kbits/s
11-23 12:12:22.167 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 32 fps=3.9 q=31.0 size= 466kB time=00:00:01.28 bitrate=2984.6kbits/s
11-23 12:12:22.897 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 35 fps=3.9 q=31.0 size= 469kB time=00:00:01.40 bitrate=2746.8kbits/s
11-23 12:12:23.657 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 38 fps=3.9 q=31.0 size= 517kB time=00:00:01.52 bitrate=2788.3kbits/s
11-23 12:12:24.387 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 41 fps=4.0 q=31.0 size= 521kB time=00:00:01.64 bitrate=2600.1kbits/s
11-23 12:12:24.887 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 43 fps=3.9 q=31.0 size= 523kB time=00:00:01.72 bitrate=2488.9kbits/s
11-23 12:12:25.417 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 45 fps=3.9 q=31.0 size= 525kB time=00:00:01.80 bitrate=2387.6kbits/s
11-23 12:12:25.967 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 47 fps=3.9 q=31.0 size= 527kB time=00:00:01.88 bitrate=2294.9kbits/s
11-23 12:12:26.477 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 49 fps=3.9 q=24.8 size= 572kB time=00:00:01.96 bitrate=2390.0kbits/s
11-23 12:12:27.297 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 52 fps=3.9 q=31.0 size= 577kB time=00:00:02.08 bitrate=2271.5kbits/s
11-23 12:12:27.987 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 55 fps=3.9 q=31.0 size= 580kB time=00:00:02.20 bitrate=2159.1kbits/s
11-23 12:12:28.737 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 58 fps=3.9 q=31.0 size= 583kB time=00:00:02.32 bitrate=2058.2kbits/s
11-23 12:12:29.247 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 60 fps=3.9 q=31.0 size= 585kB time=00:00:02.40 bitrate=1996.6kbits/s
11-23 12:12:30.017 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 63 fps=3.9 q=31.0 size= 633kB time=00:00:02.52 bitrate=2057.7kbits/s
11-23 12:12:30.557 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 65 fps=3.9 q=31.0 size= 635kB time=00:00:02.60 bitrate=2000.8kbits/s
11-23 12:12:31.057 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 67 fps=3.9 q=31.0 size= 637kB time=00:00:02.68 bitrate=1947.4kbits/s
11-23 12:12:31.627 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 69 fps=3.9 q=31.0 size= 639kB time=00:00:02.76 bitrate=1897.0kbits/s
11-23 12:12:32.167 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 71 fps=3.9 q=31.0 size= 641kB time=00:00:02.84 bitrate=1849.5kbits/s
11-23 12:12:32.927 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 74 fps=3.9 q=31.0 size= 689kB time=00:00:02.96 bitrate=1907.2kbits/s
11-23 12:12:33.407 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 76 fps=3.9 q=31.0 size= 691kB time=00:00:03.04 bitrate=1862.8kbits/s
11-23 12:12:34.157 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 79 fps=3.9 q=31.0 size= 694kB time=00:00:03.16 bitrate=1800.0kbits/s
11-23 12:12:34.657 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 81 fps=3.9 q=31.0 size= 696kB time=00:00:03.24 bitrate=1760.7kbits/s
11-23 12:12:35.217 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 83 fps=3.9 q=31.0 size= 698kB time=00:00:03.32 bitrate=1723.3kbits/s
11-23 12:12:35.777 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 85 fps=3.9 q=24.8 size= 744kB time=00:00:03.40 bitrate=1791.6kbits/s
11-23 12:12:36.297 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 87 fps=3.9 q=31.0 size= 747kB time=00:00:03.48 bitrate=1759.6kbits/s
11-23 12:12:36.827 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 89 fps=3.9 q=31.0 size= 750kB time=00:00:03.56 bitrate=1724.8kbits/s
11-23 12:12:37.547 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 92 fps=3.9 q=31.0 size= 753kB time=00:00:03.68 bitrate=1675.4kbits/s
11-23 12:12:38.297 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 95 fps=3.9 q=31.0 size= 756kB time=00:00:03.80 bitrate=1629.1kbits/s
11-23 12:12:38.797 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 97 fps=3.9 q=24.8 size= 801kB time=00:00:03.88 bitrate=1690.8kbits/s
11-23 12:12:39.547 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 100 fps=3.9 q=31.0 size= 806kB time=00:00:04.00 bitrate=1650.2kbits/s
11-23 12:12:40.047 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 102 fps=3.9 q=31.0 size= 808kB time=00:00:04.08 bitrate=1621.9kbits/s
11-23 12:12:40.807 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 105 fps=3.9 q=31.0 size= 811kB time=00:00:04.20 bitrate=1581.6kbits/s
11-23 12:12:41.267 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 107 fps=3.9 q=31.0 size= 813kB time=00:00:04.28 bitrate=1555.9kbits/s
11-23 12:12:42.057 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 110 fps=3.9 q=31.0 size= 861kB time=00:00:04.40 bitrate=1602.8kbits/s
11-23 12:12:42.557 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 112 fps=3.9 q=31.0 size= 863kB time=00:00:04.48 bitrate=1578.1kbits/s
11-23 12:12:43.307 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 115 fps=3.9 q=31.0 size= 866kB time=00:00:04.60 bitrate=1542.4kbits/s
11-23 12:12:43.817 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 117 fps=3.9 q=31.0 size= 868kB time=00:00:04.68 bitrate=1519.6kbits/s
11-23 12:12:44.517 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 120 fps=3.9 q=31.0 size= 871kB time=00:00:04.80 bitrate=1486.8kbits/s
11-23 12:12:45.277 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 123 fps=3.9 q=31.0 size= 919kB time=00:00:04.92 bitrate=1530.6kbits/s
11-23 12:12:45.987 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 125 fps=3.9 q=31.0 size= 921kB time=00:00:05.00 bitrate=1509.4kbits/s
11-23 12:12:45.987 4228-4228/com.lo.and.dev W/com.lo.and.util: frame= 125 fps=3.9 q=31.0 Lsize= 923kB time=00:00:05.00 bitrate=1511.6kbits/s
11-23 12:12:45.987 4228-4228/com.lo.and.dev W/com.lo.and.util: video:921kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.148301%