Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (66)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (5381)

  • FFmpeg adding 0.05 seconds of silence to transcoded AAC file ?

    29 octobre 2015, par FTLRalph

    In 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()
  • FFMPEG gets stuck on higher resolution or frame rate [H265]

    29 octobre 2015, par Anakooter

    I am running the following command which works perfectly on my system running Elementary OS on Intel Corei5 :

    ffmpeg -f v4l2 -i /dev/video0 -c:v libx265 -x265-params crf=14:vbv-maxrate=128:vbv-bufsize=32:keyint=10:qcomp=0.5:rd=5:ctu=64:min-cu-size=8:cu-lossless=false:fast-intra=false:strong-intra-smoothing=false -tune zerolatency -s 640x480 -preset ultrafast -r 5 -pix_fmt yuv420p -an -strict experimental -f mpegts udp://239.0.0.1:5002

    but if I change the output size to 800x600 and or increase the frame rate from 5 to 10. After a few seconds the video gets stuck.

    I have monitored the CPU usage for both the commands and it is almost identical that is between 300 to 400 percent ( since 4 cores ).

    Any possible answers to mitigate the issue.

    ffmpeg version 2.7.2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.9.3 (Debian 4.9.3-1)
    configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9
    libavutil      54. 27.100 / 54. 27.100
    libavcodec     56. 41.100 / 56. 41.100
    libavformat    56. 36.100 / 56. 36.100
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 16.101 /  5. 16.101
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.100 /  1.  2.100
    libpostproc    53.  3.100 / 53.  3.100
    Routing option strict to both codec and muxer layer
    [video4linux2,v4l2 @ 0x4775460] fd:4 capabilities:84000001
    Input #0, video4linux2,v4l2, from '/dev/video0':
    Duration: N/A, start: 1223.904801, bitrate: 36864 kb/s
    Stream #0:0: Video: rawvideo, 1 reference frame (YUY2 / 0x32595559), yuyv422, 320x240, 36864 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
    [graph 0 input from stream 0:0 @ 0x476aae0] w:320 h:240 pixfmt:yuyv422     tb:1/1000000 fr:30/1 sar:0/1 sws_param:flags=2
    [scaler for output stream 0:0 @ 0x476a920] w:800 h:600 flags:'0x4' interl:0
    [scaler for output stream 0:0 @ 0x476a920] w:320 h:240 fmt:yuyv422 sar:0/1 -> w:800 h:600 fmt:yuv420p sar:0/1 flags:0x4
    x265 [info]: HEVC encoder version 1.7+354-b2ba7df1fc69
    x265 [info]: build info [Linux][GCC 4.9.3][64 bit] 8bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    x265 [info]: Main profile, Level-3 (Main tier)
    x265 [info]: Thread pool created using 4 threads
    x265 [info]: frame threads / pool features       : 2 / wpp(10 rows)
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : dia / 57 / 0 / 2
    x265 [info]: Keyframe min / max / scenecut       : 1 / 10 / 0
    x265 [info]: Lookahead / bframes / badapt        : 0 / 0 / 0
    x265 [info]: b-pyramid / weightp / weightb       : 0 / 0 / 0
    x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
    x265 [info]: Rate Control / qCompress            : CRF-14.0 / 0.50
    x265 [info]: VBV/HRD buffer / max-rate / init    : 32 / 64 / 0.900
    x265 [info]: tools: rd=5 psy-rd=0.30 early-skip tmvp deblock
    [mpegts @ 0x4776b00] muxrate VBR, pcr every 1 pkts, sdt every 200, pat/pmt every 40 pkts
    Output #0, mpegts, to 'udp://239.0.0.1:5002':
    Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0: Video: hevc (libx265), 1 reference frame, yuv420p, 800x600, q=2-31, 10 fps, 90k tbn, 10 tbc
    Metadata:
    encoder         : Lavc56.41.100 libx265
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (libx265))
    Press [q] to stop, [?] for help
    *** dropping frame 2 from stream 0 at ts 0
    *** dropping frame 3 from stream 0 at ts 1
       Last message repeated 2 times
    *** dropping frame 4 from stream 0 at ts 2
       Last message repeated 1 times
    *** dropping frame 5 from stream 0 at ts 3
       Last message repeated 1 times
    *** dropping frame 5 from stream 0 at ts 4
    *** dropping frame 6 from stream 0 at ts 4time=00:00:00.40 bitrate= 131.6kbits/s dup=0 drop=9    
       Last message repeated 1 times
    *** dropping frame 7 from stream 0 at ts 5
       Last message repeated 1 times
    *** dropping frame 8 from stream 0 at ts 6
       Last message repeated 2 times
    *** dropping frame 12 from stream 0 at ts 11me=00:00:00.90 bitrate= 112.0kbits/s dup=0 drop=16    
    *** dropping frame 13 from stream 0 at ts 11
       Last message repeated 1 times
    *** dropping frame 14 from stream 0 at ts 12
       Last message repeated 1 times
    *** dropping frame 15 from stream 0 at ts 13
       Last message repeated 2 times
    *** dropping frame 16 from stream 0 at ts 14me=00:00:01.40 bitrate= 103.1kbits/s dup=0 drop=24    
       Last message repeated 1 times
    *** dropping frame 17 from stream 0 at ts 15
       Last message repeated 1 times
    *** dropping frame 17 from stream 0 at ts 16
    *** dropping frame 18 from stream 0 at ts 16
       Last message repeated 1 times
    *** dropping frame 19 from stream 0 at ts 17
       Last message repeated 1 times
    *** dropping frame 20 from stream 0 at ts 18
       Last message repeated 1 times
    *** dropping frame 20 from stream 0 at ts 19
    *** dropping frame 21 from stream 0 at ts 19me=00:00:01.90 bitrate=  95.0kbits/s dup=0 drop=36    
       Last message repeated 1 times
    *** dropping frame 22 from stream 0 at ts 20
       Last message repeated 1 times
    *** dropping frame 23 from stream 0 at ts 21
       Last message repeated 2 times
    *** dropping frame 24 from stream 0 at ts 22
       Last message repeated 1 times
    *** dropping frame 25 from stream 0 at ts 23
       Last message repeated 1 times
    *** dropping frame 25 from stream 0 at ts 24
    *** dropping frame 26 from stream 0 at ts 24
       Last message repeated 1 times
    *** dropping frame 27 from stream 0 at ts 25
       Last message repeated 1 times
    *** dropping frame 28 from stream 0 at ts 26me=00:00:02.60 bitrate=  92.0kbits/s dup=0 drop=52    
       Last message repeated 2 times
    *** dropping frame 29 from stream 0 at ts 27
       Last message repeated 1 times
    *** dropping frame 30 from stream 0 at ts 28
       Last message repeated 1 times
    *** dropping frame 30 from stream 0 at ts 29
    *** dropping frame 31 from stream 0 at ts 29
       Last message repeated 1 times
    *** 1 dup!
    *** dropping frame 35 from stream 0 at ts 33me=00:00:03.30 bitrate=  96.2kbits/s dup=1 drop=62    
       Last message repeated 1 times
    *** dropping frame 36 from stream 0 at ts 34
       Last message repeated 1 times
    *** dropping frame 37 from stream 0 at ts 35
       Last message repeated 1 times
    *** dropping frame 37 from stream 0 at ts 36
    *** dropping frame 38 from stream 0 at ts 36
       Last message repeated 1 times
    *** dropping frame 39 from stream 0 at ts 37
       Last message repeated 1 times
    *** dropping frame 40 from stream 0 at ts 38
       Last message repeated 1 times
    *** dropping frame 40 from stream 0 at ts 39
    *** dropping frame 41 from stream 0 at ts 39
       Last message repeated 1 times
    *** dropping frame 42 from stream 0 at ts 40me=00:00:04.00 bitrate=  89.1kbits/s dup=1 drop=78    
       Last message repeated 1 times
    *** dropping frame 43 from stream 0 at ts 41
       Last message repeated 2 times
    *** dropping frame 44 from stream 0 at ts 42
       Last message repeated 1 times
    *** dropping frame 45 from stream 0 at ts 43
       Last message repeated 1 times
    *** dropping frame 45 from stream 0 at ts 44
    *** dropping frame 46 from stream 0 at ts 44me=00:00:04.40 bitrate=  93.3kbits/s dup=1 drop=88    
       Last message repeated 1 times
    *** dropping frame 47 from stream 0 at ts 45
       Last message repeated 1 times
    *** dropping frame 48 from stream 0 at ts 46
       Last message repeated 2 times
    *** dropping frame 49 from stream 0 at ts 47
       Last message repeated 1 times
    *** dropping frame 50 from stream 0 at ts 48me=00:00:04.80 bitrate=  91.8kbits/s dup=1 drop=97    
       Last message repeated 1 times
    *** dropping frame 50 from stream 0 at ts 49
    *** dropping frame 51 from stream 0 at ts 49
       Last message repeated 1 times
    *** dropping frame 55 from stream 0 at ts 53me=00:00:05.30 bitrate=  91.7kbits/s dup=1 drop=102    
    *** dropping frame 56 from stream 0 at ts 54
       Last message repeated 1 times
    *** dropping frame 57 from stream 0 at ts 55
       Last message repeated 1 times
    *** dropping frame 57 from stream 0 at ts 56
    *** dropping frame 58 from stream 0 at ts 56me=00:00:05.60 bitrate=  91.9kbits/s dup=1 drop=108    
       Last message repeated 1 times
    *** dropping frame 59 from stream 0 at ts 57
       Last message repeated 1 times
    *** 18 dup!
    *** 2 dup!
    *** 555 dup!fps= 10 q=0.0 size=      86kB time=00:00:08.00 bitrate=  88.4kbits/s dup=21 drop=112    
    x265 [warning]: poc:131, VBV underflow (-6152 bits)
    x265 [warning]: poc:151, VBV underflow (-17080 bits)
    x265 [warning]: poc:211, VBV underflow (-10272 bits)
    x265 [warning]: poc:301, VBV underflow (-9024 bits)
    x265 [warning]: poc:391, VBV underflow (-11368 bits)
    x265 [warning]: poc:501, VBV underflow (-6152 bits)
    x265 [warning]: poc:559, VBV underflow (-320 bits)
    x265 [warning]: poc:581, VBV underflow (-16552 bits)
    *** dropping frame 639 from stream 0 at ts 344=00:01:03.70 bitrate=  81.3kbits/s dup=576 drop=112    
       Last message repeated 2 times
    *** dropping frame 639 from stream 0 at ts 345
       Last message repeated 3 times
    *** dropping frame 639 from stream 0 at ts 346
       Last message repeated 1 times
    *** 70055 dup!
  • Manipulating one video into multi outputs with FFmpeg results in no audio in the last output

    27 octobre 2015, par my name is

    Using FFmpeg, I’m trying to do some filtering operations on one input video to scale it (out1), scale and trim it (out2).
    This is the command I’m using :

    ffmpeg -y \
    -i "Robotica_1080.mkv" \
    -filter_complex "[0:v]split=2[v1][v2]; \
    [v1]scale=640:360,setpts=PTS-STARTPTS[vout1]; \
    [v2]trim=10:15,scale=640:360,setpts=PTS-STARTPTS[vout2]; \
    [0:a]asplit=2[a1][a2]; \
    [a1]anull,asetpts=PTS-STARTPTS[aout1]; \
    [a2]atrim=10:15,asetpts=PTS-STARTPTS[aout2]; \
    [vout1][aout1]concat=n=1:v=1:a=1[out1]; \
    [vout2][aout2]concat=n=1:v=1:a=1[out2]" \
    -map "[out1]" "1.mp4" \
    -map "[out2]" "2.mp4"

    1.mp4 is ok while 2.mp4 lasts 5 seconds as expected but without audio at all (the QuickTime inspector doesn’t write the audio codec)

    I tried to remove the trim/atrim filters, so the filter_complex parameter looked like this :

    -filter_complex "[0:v]split=2[v1][v2]; \
    [v1]scale=640:360[vout1]; \
    [v2]scale=640:360[vout2]; \
    [0:a]asplit=2[a1][a2]; \
    [a1]anull[aout1]; \
    [a2]anull[aout2]; \
    [vout1][aout1]concat=n=1:v=1:a=1[out1]; \
    [vout2][aout2]concat=n=1:v=1:a=1[out2]" \

    but still no audio on 2.mp4

    Can anyone give me a hint ?

    —EDIT—
    This is the output from first ffmpeg command :


    Mac-mini:~ Luca$ /Applications/XAMPP/xamppfiles/htdocs/MediaGallery/ffmpeg/ffmpeg -y \
    > -i "/Users/Luca/Desktop/_TEMP UPLOAD/Video/Robotica_1080.mkv" \
    > -filter_complex "[0:v]split=2[v1][v2]; \
    > [v1]scale=640:360,setpts=PTS-STARTPTS[vout1]; \
    > [v2]trim=10:15,scale=640:360,setpts=PTS-STARTPTS[vout2]; \
    > [0:a]asplit=2[a1][a2]; \
    > [a1]anull,asetpts=PTS-STARTPTS[aout1]; \
    > [a2]atrim=10:15,asetpts=PTS-STARTPTS[aout2]; \
    > [vout1][aout1]concat=n=1:v=1:a=1[out1]; \
    > [vout2][aout2]concat=n=1:v=1:a=1[out2]" \
    > -map "[out1]" "/Users/Luca/Downloads/1.mp4" \
    > -map "[out2]" "/Users/Luca/Downloads/2.mp4"
    ffmpeg version N-72460-gc5a07f1-tessus Copyright (c) 2000-2015 the FFmpeg developers
     built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
     configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
     libavutil      54. 23.101 / 54. 23.101
     libavcodec     56. 40.100 / 56. 40.100
     libavformat    56. 33.101 / 56. 33.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, matroska,webm, from '/Users/Luca/Desktop/_TEMP UPLOAD/Video/Robotica_1080.mkv':
     Metadata:
       encoder         : libDivXMediaFormat 4.0.0.0578
     Duration: 00:00:20.04, start: 0.000000, bitrate: 4282 kb/s
       Stream #0:0(eng): Video: hevc (Main), yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
       Stream #0:1(en): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    [swscaler @ 0x7fb4d181c400] deprecated pixel format used, make sure you did set range correctly
    [swscaler @ 0x7fb4d185be00] deprecated pixel format used, make sure you did set range correctly
    No pixel format specified, yuvj420p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
       Last message repeated 1 times
    [libx264 @ 0x7fb4d183f400] using SAR=1/1
    [libx264 @ 0x7fb4d183f400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
    [libx264 @ 0x7fb4d183f400] profile High, level 3.0
    [libx264 @ 0x7fb4d183f400] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=3 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=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [libx264 @ 0x7fb4d184e400] using SAR=1/1
    [libx264 @ 0x7fb4d184e400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
    [libx264 @ 0x7fb4d184e400] profile High, level 3.0
    [libx264 @ 0x7fb4d184e400] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=3 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=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '/Users/Luca/Downloads/1.mp4':
     Metadata:
       encoder         : Lavf56.33.101
       Stream #0:0: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
       Metadata:
         encoder         : Lavc56.40.100 libvo_aacenc
       Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s
       Metadata:
         encoder         : Lavc56.40.100 libvo_aacenc
       Stream #0:2: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc56.40.100 libx264
    Output #1, mp4, to '/Users/Luca/Downloads/2.mp4':
     Metadata:
       encoder         : Lavf56.33.101
       Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc56.40.100 libx264
    Stream mapping:
     Stream #0:0 (hevc) -> split
     Stream #0:1 (aac) -> asplit
     concat:out:a0 -> Stream #0:0 (libvo_aacenc)
     concat:out:a0 -> Stream #0:1 (libvo_aacenc)
     concat:out:v0 -> Stream #0:2 (libx264)
     concat:out:v0 -> Stream #1:0 (libx264)
    Press [q] to stop, [?] for help
    frame=  501 fps= 26 q=-1.0 Lq=-1.0 size=    1512kB time=00:00:19.97 bitrate= 620.1kbits/s    
    video:1385kB audio:392kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    [libx264 @ 0x7fb4d183f400] frame I:3     Avg QP:19.30  size:  3879
    [libx264 @ 0x7fb4d183f400] frame P:321   Avg QP:24.53  size:  3024
    [libx264 @ 0x7fb4d183f400] frame B:177   Avg QP:26.20  size:   825
    [libx264 @ 0x7fb4d183f400] consecutive B-frames: 40.7% 34.7%  5.4% 19.2%
    [libx264 @ 0x7fb4d183f400] mb I  I16..4: 24.8% 65.9%  9.3%
    [libx264 @ 0x7fb4d183f400] mb P  I16..4:  7.5% 10.5%  2.5%  P16..4: 22.9%  7.4%  2.7%  0.0%  0.0%    skip:46.5%
    [libx264 @ 0x7fb4d183f400] mb B  I16..4:  0.4%  0.6%  0.3%  B16..8: 17.2%  2.9%  0.7%  direct: 0.9%  skip:77.1%  L0:37.2% L1:51.8% BI:11.0%
    [libx264 @ 0x7fb4d183f400] 8x8 transform intra:51.6% inter:69.2%
    [libx264 @ 0x7fb4d183f400] coded y,uvDC,uvAC intra: 40.2% 24.2% 1.1% inter: 8.5% 4.0% 0.0%
    [libx264 @ 0x7fb4d183f400] i16 v,h,dc,p:  9% 65%  1% 25%
    [libx264 @ 0x7fb4d183f400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 29% 16%  4%  6%  6%  7%  6%  6%
    [libx264 @ 0x7fb4d183f400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 34% 12%  3%  7%  6%  7%  4%  4%
    [libx264 @ 0x7fb4d183f400] i8c dc,h,v,p: 63% 25% 11%  1%
    [libx264 @ 0x7fb4d183f400] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fb4d183f400] ref P L0: 69.3% 11.5% 12.5%  6.7%
    [libx264 @ 0x7fb4d183f400] ref B L0: 82.4% 16.7%  0.8%
    [libx264 @ 0x7fb4d183f400] ref B L1: 98.6%  1.4%
    [libx264 @ 0x7fb4d183f400] kb/s:450.44
    [libx264 @ 0x7fb4d184e400] frame I:1     Avg QP:22.23  size:  6699
    [libx264 @ 0x7fb4d184e400] frame P:78    Avg QP:24.94  size:  2998
    [libx264 @ 0x7fb4d184e400] frame B:46    Avg QP:27.93  size:  1036
    [libx264 @ 0x7fb4d184e400] consecutive B-frames: 32.0% 56.0%  2.4%  9.6%
    [libx264 @ 0x7fb4d184e400] mb I  I16..4: 53.5% 26.6% 19.9%
    [libx264 @ 0x7fb4d184e400] mb P  I16..4:  9.8%  7.6%  3.1%  P16..4: 25.0%  8.0%  2.8%  0.0%  0.0%    skip:43.8%
    [libx264 @ 0x7fb4d184e400] mb B  I16..4:  0.8%  0.5%  0.4%  B16..8: 22.4%  3.5%  0.8%  direct: 1.1%  skip:70.4%  L0:41.1% L1:48.0% BI:10.9%
    [libx264 @ 0x7fb4d184e400] 8x8 transform intra:36.1% inter:66.1%
    [libx264 @ 0x7fb4d184e400] coded y,uvDC,uvAC intra: 33.5% 24.6% 1.8% inter: 8.5% 3.8% 0.0%
    [libx264 @ 0x7fb4d184e400] i16 v,h,dc,p:  4% 82%  1% 13%
    [libx264 @ 0x7fb4d184e400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 40% 18%  3%  4%  4%  7%  3%  5%
    [libx264 @ 0x7fb4d184e400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 40% 13%  3%  5%  5%  6%  3%  4%
    [libx264 @ 0x7fb4d184e400] i8c dc,h,v,p: 54% 36%  8%  2%
    [libx264 @ 0x7fb4d184e400] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fb4d184e400] ref P L0: 60.6% 10.5% 17.5% 11.4%
    [libx264 @ 0x7fb4d184e400] ref B L0: 77.6% 22.0%  0.4%
    [libx264 @ 0x7fb4d184e400] ref B L1: 99.1%  0.9%
    [libx264 @ 0x7fb4d184e400] kb/s:461.15