Recherche avancée

Médias (0)

Mot : - Tags -/configuration

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (30)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (5747)

  • Issue when streaming some TV channels threw ffMpeg

    7 octobre 2016, par Raphael Serievic

    I am trying to stream a TV Tuner feed with ffMpeg through udp.

    The ffMpeg command line I use is the following :

    ffmpeg.exe -i udp://@239.255.255.9:1234 -map 0:p:1317:0 -profile:v baseline -crf 30 -preset ultrafast -vcodec libx264 -r 25 -vf scale=720:576-b:v 500k -f rtp udp://10.150.112.107:15048/ -map 0:p:1317:1 -acodec pcm_mulaw -strict experimental -ar 8k -ac 1 -b:a 128k -f rtp udp://10.150.112.107:15032/

    Where :

    • 1317 is the program id (channel)
    • 10.150.112.107 is where I want to stream the TV channel
    • 239.255.255.9 is where I receive the original TV channel’s feed from my TV Tuner

    My problem is that with some program IDs it is working and with some others it is not : it is working with 1572 ("channel 10 hd") but not with 1317 ("7flix Sydney").

    The output of this command-line for channel 1572 (where it works) is the following :

    C:\Program Files (x86)\Tuner Manager\ServerModule> ffmpeg.exe
    -i udp://@239.255.255.7:1234 -map 0:p:1572:0 -profile:v baseline -crf 30 -prese
    t ultrafast -vcodec libx264 -r 25 -vf scale=720:576 -    b:v 500k -f rtp udp://1
    0.150.112.107:15048/ -map 0:p:1572:1 -acodec pcm_mulaw -strict experimental -ar
    8k -ac 1 -b:a 128k -f rtp udp://10.150.112.107:15032/
    ffmpeg version N-71924-ga2190de Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
    ble-decklink --enable-zlib
     libavutil      54. 23.101 / 54. 23.101
     libavcodec     56. 37.100 / 56. 37.100
     libavformat    56. 31.102 / 56. 31.102
     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
    [NULL @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 00000000049cc980] Invalid frame dimensions 0x0.
    [mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [mpeg2video @ 00000000049cc980] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [mpeg2video @ 00000000049cc980] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 00000000049cc980] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
    [mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 0000000004967c80] Invalid frame dimensions 0x0.
    [mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
    [h264 @ 00000000049ce980] non-existing SPS 0 referenced in buffering period
    [h264 @ 00000000049ce980] non-existing PPS 0 referenced
    [h264 @ 00000000049ce980] decode_slice_header error
    [h264 @ 00000000049ce980] no frame!
    [mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
       Last message repeated 2 times
    [mpeg2video @ 00000000049cdbc0] Invalid frame dimensions 0x0.
    [mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
       Last message repeated 3 times
    [mpeg2video @ 000000000497e3e0] Invalid frame dimensions 0x0.
    [mpeg2video @ 0000000004975b40] Invalid frame dimensions 0x0.
       Last message repeated 3 times
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 2 (Unknow
    n: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 3 (Unknow
    n: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 4 (Unknow
    n: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 5 (Unknow
    n: none ([12][0][0][0] / 0x000C)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 8 (Unknow
    n: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 9 (Unknow
    n: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 10 (Unkno
    wn: none ([12][0][0][0] / 0x000C)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 14 (Unkno
    wn: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 15 (Unkno
    wn: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 16 (Unkno
    wn: none ([12][0][0][0] / 0x000C)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 25 (Unkno
    wn: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 26 (Unkno
    wn: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 27 (Unkno
    wn: none ([12][0][0][0] / 0x000C)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 29 (Unkno
    wn: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 30 (Unkno
    wn: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000000000494d6c0] Could not find codec parameters for stream 31 (Unkno
    wn: none ([12][0][0][0] / 0x000C)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mpegts, from 'udp://@239.255.255.7:1234':
     Duration: N/A, start: 64984.698511, bitrate: N/A
     Program 1569
       Metadata:
         service_name    : ONE
         service_provider: TEN Sydney
       Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:25[0x3e8]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:26[0x3f2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:27[0x3fc]: Unknown: none ([12][0][0][0] / 0x000C)
       Stream #0:23[0x202]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
    0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn,
    50 tbc
       Stream #0:24[0x2a0](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
    eo, s16p, 192 kb/s
       Stream #0:7[0x241](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
     Program 1573
       Metadata:
         service_name    : TEN Digital
         service_provider: TEN Sydney
       Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:14[0x3ea]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:15[0x3f4]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:16[0x3fe]: Unknown: none ([12][0][0][0] / 0x000C)
       Stream #0:17[0x200]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
    0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn,
    50 tbc
       Stream #0:18[0x28a](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, ster
    eo, s16p, 256 kb/s
       Stream #0:19[0x240](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
     Program 1574
       Metadata:
         service_name    : TVSN
         service_provider: TEN Sydney
       Stream #0:6[0x206]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
    p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 5
    0 tbc
       Stream #0:28[0x2b2](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, ster
    eo, s16p, 192 kb/s
       Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:29[0x3eb]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:30[0x3f5]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:31[0x3ff]: Unknown: none ([12][0][0][0] / 0x000C)
     Program 1575
       Metadata:
         service_name    : ONE
         service_provider: TEN Sydney
       Stream #0:23[0x202]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
    0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn,
    50 tbc
       Stream #0:24[0x2a0](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
    eo, s16p, 192 kb/s
       Stream #0:7[0x241](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:25[0x3e8]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:26[0x3f2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:27[0x3fc]: Unknown: none ([12][0][0][0] / 0x000C)
     Program 1576
       Metadata:
         service_name    : ELEVEN
         service_provider: TEN Sydney
       Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:8[0x3e9]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:9[0x3f3]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:10[0x3fd]: Unknown: none ([12][0][0][0] / 0x000C)
       Stream #0:11[0x204]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
    0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn,
    50 tbc
       Stream #0:12[0x2a9](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, ster
    eo, s16p, 192 kb/s
       Stream #0:13[0x242](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
     Program 1577
       Metadata:
         service_name    : SpreeTV
         service_provider: TEN Sydney
       Stream #0:0[0x208]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
    p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 5
    0 tbc
       Stream #0:1[0x2bc](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stere
    o, s16p, 192 kb/s
       Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:3[0x3ec]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:4[0x3f6]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:5[0x400]: Unknown: none ([12][0][0][0] / 0x000C)
     Program 1572
       Metadata:
         service_name    : TEN HD
         service_provider: TEN Sydney
       Stream #0:20[0x1ff]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv
    , bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
       Stream #0:21[0x289](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side
    ), fltp, 448 kb/s
       Stream #0:22[0x23f](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:2[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:14[0x3ea]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:15[0x3f4]: Unknown: none ([11][0][0][0] / 0x000B)
       Stream #0:16[0x3fe]: Unknown: none ([12][0][0][0] / 0x000C)
    [NULL @ 0000000005af6de0] Unable to find a suitable output format for 'pipe:'
    pipe:: Invalid argument

    The output of this command-line for channel 1317 (where it does not works) is the following :

    Microsoft Windows [Version 6.2.9200]
    (c) 2012 Microsoft Corporation. All rights reserved.
    C:\Users\Administrator.TMC>"C:\Program Files (x86)\Tv Tuner Mana
    ger\ServerModule\ffmpeg.exe" -i udp://@239.255.255.9:1234 -map 0:p:1317:0 -profi
    le:v baseline -crf 30 -preset ultrafast -vcodec libx264 -r 25 -vf scale=720:576
    -b:v 500k -f rtp udp://10.150.112.107:15048/ -map 0:p:1317:1 -acodec pcm_mulaw -
    strict experimental -ar 8k -ac 1 -b:a 128k -f rtp udp://10.150.112.107:15032/
    ffmpeg version N-71924-ga2190de Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
    ble-decklink --enable-zlib
     libavutil      54. 23.101 / 54. 23.101
     libavcodec     56. 37.100 / 56. 37.100
     libavformat    56. 31.102 / 56. 31.102
     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
    [mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
    [NULL @ 0000000004789600] non-existing PPS 0 referenced
    [h264 @ 0000000004789600] decode_slice_header error
    [h264 @ 0000000004789600] no frame!
    [mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
    [NULL @ 000000000472a060] non-existing PPS 0 referenced
    [h264 @ 000000000472a060] decode_slice_header error
    [h264 @ 000000000472a060] no frame!
    [mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
    [h264 @ 000000000472a060] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 000000000472a060] decode_slice_header error
    [h264 @ 000000000472a060] no frame!
    [h264 @ 000000000472a060] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 000000000472a060] decode_slice_header error
    [h264 @ 000000000472a060] no frame!
    [mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
    [mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 000000000472c620] Invalid frame dimensions 0x0.
    [h264 @ 0000000004789600] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000004789600] decode_slice_header error
    [h264 @ 0000000004789600] no frame!
    [mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
    [mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
    [h264 @ 000000000472a060] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 000000000472a060] decode_slice_header error
    [h264 @ 000000000472a060] no frame!
    [mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
    [mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
    [mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
    [mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 000000000472c620] Invalid frame dimensions 0x0.
    [mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
       Last message repeated 1 times
    [mpeg2video @ 000000000472dac0] Invalid frame dimensions 0x0.
    [mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
       Last message repeated 2 times
    [mpeg2video @ 00000000047c9200] Invalid frame dimensions 0x0.
    [mpeg2video @ 000000000473a8a0] Invalid frame dimensions 0x0.
    [mpegts @ 0000000004710020] Could not find codec parameters for stream 3 (Unknow
    n: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 0000000004710020] Could not find codec parameters for stream 4 (Unknow
    n: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mpegts, from 'udp://@239.255.255.9:1234':
     Duration: N/A, start: 77183.898689, bitrate: N/A
     Program 1312
       Metadata:
         service_name    : 7 Sydney
         service_provider: Seven Network
       Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
    p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s, 25 fps, 25 tbr, 90k tbn, 5
    0 tbc
       Stream #0:1[0x202](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stere
    o, s16p, 256 kb/s
       Stream #0:2[0x204](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
     Program 1313
       Metadata:
         service_name    : 7 Sydney
         service_provider: Seven Network
       Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
    p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s, 25 fps, 25 tbr, 90k tbn, 5
    0 tbc
       Stream #0:1[0x202](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stere
    o, s16p, 256 kb/s
       Stream #0:2[0x204](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
     Program 1314
       Metadata:
         service_name    : 7TWO Sydney
         service_provider: Seven Network
       Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:18[0x221]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
    0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s, 25 fps, 25 tbr, 90k tbn,
    50 tbc
       Stream #0:10[0x222](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
    eo, s16p, 192 kb/s
       Stream #0:5[0x224](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
     Program 1315
       Metadata:
         service_name    : 7mate Sydney
         service_provider: Seven Network
       Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:13[0x231]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
    0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s, 25 fps, 25 tbr, 90k tbn,
    50 tbc
       Stream #0:15[0x232](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, ster
    eo, s16p, 256 kb/s
       Stream #0:12[0x234](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
     Program 1316
       Metadata:
         service_name    : 7HD Sydney
         service_provider: Seven Network
       Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:6[0x241]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 19
    20x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:16[0x243](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, ster
    eo, fltp, 384 kb/s
       Stream #0:8[0x244](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
     Program 1317
       Metadata:
         service_name    : 7flix Sydney
         service_provider: Seven Network
       Stream #0:3[0x206]: Unknown: none ([5][0][0][0] / 0x0005)
       Stream #0:11[0x251]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
    0p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 12500 kb/s, 25 fps, 25 tbr, 90k tbn,
    50 tbc
       Stream #0:9[0x253](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stere
    o, s16p, 128 kb/s
       Stream #0:14[0x254](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
       Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
     Program 1320
       Metadata:
         service_name    : RACING.COM
         service_provider: Seven Network
       Stream #0:7[0x281]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 64
    0x576 [SAR 8:5 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:17[0x282](eng): Audio: aac_latm (HE-AACv2) ([17][0][0][0] / 0x0011
    ), 48000 Hz, stereo, fltp
       Stream #0:4[0x299]: Unknown: none ([11][0][0][0] / 0x000B)
    Cannot map stream #0:3 - unsupported type.

    Thanks for your help

  • FFmpeg Android Video cropping speed and perfomance [duplicate]

    5 octobre 2016, par kishore jethava

    This question already has an answer here :

    FFmpeg 15 seconds video takes 15 seconds to crop.
    How can we reduce this cropping time with command or some other tricks ?

    I have refereed this question but didn’t helped.

    Here is code

    final FFmpeg ffmpeg = FFmpeg.getInstance(getActivity());
           try {
               ffmpeg.loadBinary(new LoadBinaryResponseHandler() {

                   @Override
                   public void onStart() {}
                   @Override
                   public void onFailure() {}
                   @Override
                   public void onSuccess() {
                       Log.i(TAG, "FFMPEG Success ");
                       try {

                           /*Logic for cropping the original video to a square video depending of the                                           orientation of the original video*/

                           //Command for cropping square video
                           String[] cmd = {"-i", "path/source.mp4", "-vf", "scale=720:ih*720/iw, crop="720:720:0:0, "-preset","ultrafast","-strict","experimental","-vcodec","libx264","-preset","ultrafast","path/destination.mp4"};
                           // Execute cropping of video
                           ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {

                               @Override
                               public void onStart() {

                               }

                               @Override
                               public void onProgress(String message) {
                                   Log.i("Square", "progress : " +message);
                               }

                               @Override
                               public void onFailure(String message) {
                                   Log.i("Square", "total fail : " + message);
                               }
                               @Override
                               public void onSuccess(String message) {
                                   Log.i("Square", "Cropped video created.");

                               }
                               @Override
                               public void onFinish() {
                               }
                           });
                       } catch (FFmpegCommandAlreadyRunningException e) {
                           // Handle if FFmpeg is already running
                       }
                   }
               });
           } catch (FFmpegNotSupportedException e) {
               // Handle if FFmpeg is not supported by device
           }

    Logcat

    D/FFmpeg: Running publishing updates method
    I/Square: progress : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
    I/Square: progress :   built with gcc 4.8 (GCC)
    I/Square: progress :   configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    I/Square: progress :   libavutil      55. 17.103 / 55. 17.103
    I/Square: progress :   libavcodec     57. 24.102 / 57. 24.102
    I/Square: progress :   libavformat    57. 25.100 / 57. 25.100
    I/Square: progress :   libavdevice    57.  0.101 / 57.  0.101
    I/Square: progress :   libavfilter     6. 31.100 /  6. 31.100
    I/Square: progress :   libswscale      4.  0.100 /  4.  0.100
    I/Square: progress :   libswresample   2.  0.101 /  2.  0.101
    I/Square: progress :   libpostproc    54.  0.100 / 54.  0.100
    I/Square: progress : Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Content/source.mp4':
    I/Square: progress :   Metadata:
    I/Square: progress :     major_brand     : mp42
    I/Square: progress :     minor_version   : 0
    I/Square: progress :     compatible_brands: isommp42
    I/Square: progress :     creation_time   : 2016-10-05 05:19:12
    I/Square: progress :     com.android.version: 6.0.1
    I/Square: progress :   Duration: 00:00:15.91, start: 0.000000, bitrate: 6174 kb/s
    I/Square: progress :     Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 326 kb/s, 1.59 fps, 30 tbr, 90k tbn, 15 tbc (default)
    I/Square: progress :     Metadata:
    I/Square: progress :       rotate          : 90
    I/Square: progress :       creation_time   : 2016-10-05 05:19:12
    I/Square: progress :       handler_name    : VideoHandle
    I/Square: progress :     Side data:
    I/Square: progress :       displaymatrix: rotation of -90.00 degrees
    I/Square: progress :     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 12 kb/s (default)
    I/Square: progress :     Metadata:
    I/Square: progress :       creation_time   : 2016-10-05 05:19:12
    I/Square: progress :       handler_name    : SoundHandle
    I/Square: progress : [libx264 @ 0xf7544400] using SAR=1/1
    I/Square: progress : [libx264 @ 0xf7544400] using cpu capabilities: none!
    I/Square: progress : [libx264 @ 0xf7544400] profile Constrained Baseline, level 3.1
    I/Square: progress : [libx264 @ 0xf7544400] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    I/Square: progress : [aac @ 0xf7544c00] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
    I/Square: progress : Output #0, mp4, to '/storage/emulated/0/Content/destination.mp4':
    I/Square: progress :   Metadata:
    I/Square: progress :     major_brand     : mp42
    I/Square: progress :     minor_version   : 0
    I/Square: progress :     compatible_brands: isommp42
    I/Square: progress :     com.android.version: 6.0.1
    I/Square: progress :     encoder         : Lavf57.25.100
    I/Square: progress :     Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 638x638 [SAR 1:1 DAR 1:1], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    I/Square: progress :     Metadata:
    I/Square: progress :       handler_name    : VideoHandle
    I/Square: progress :       creation_time   : 2016-10-05 05:19:12
    I/Square: progress :       encoder         : Lavc57.24.102 libx264
    I/Square: progress :     Side data:
    I/Square: progress :       unknown side data type 10 (24 bytes)
    I/Square: progress :     Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 8000 Hz, mono, fltp, 48 kb/s (default)
    I/Square: progress :     Metadata:
    I/Square: progress :       creation_time   : 2016-10-05 05:19:12
    I/Square: progress :       handler_name    : SoundHandle
    I/Square: progress :       encoder         : Lavc57.24.102 aac
    I/Square: progress : Stream mapping:
    I/Square: progress :   Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
    I/Square: progress :   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    I/Square: progress : Press [q] to stop, [?] for help
    I/Square: progress : frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:05.24 bitrate=   0.1kbits/s speed=10.2x    
    I/Square: progress : frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:10.24 bitrate=   0.1kbits/s speed=  10x    
    I/Square: progress : frame=    0 fps=0.0 q=0.0 size=      19kB time=00:00:14.84 bitrate=  10.5kbits/s speed=9.73x    
    I/Square: progress : frame= 8519 fps=205 q=23.0 size=    3734kB time=00:04:43.53 bitrate= 107.9kbits/s dup=8516 drop=0 speed=6.84x    
    I/Square: progress : frame= 8537 fps=203 q=25.0 size=    3734kB time=00:04:44.13 bitrate= 107.7kbits/s dup=8516 drop=0 speed=6.77x    
    I/Square: progress : frame= 8556 fps=201 q=25.0 size=    3735kB time=00:04:44.76 bitrate= 107.4kbits/s dup=8516 drop=0 speed= 6.7x    
    I/Square: progress : frame= 8575 fps=199 q=25.0 size=    3843kB time=00:04:45.40 bitrate= 110.3kbits/s dup=8516 drop=0 speed=6.64x    
    I/Square: progress : frame= 8594 fps=198 q=25.0 size=    3844kB time=00:04:46.03 bitrate= 110.1kbits/s dup=8516 drop=0 speed=6.58x    
    I/Square: progress : frame= 8614 fps=196 q=25.0 size=    3844kB time=00:04:46.70 bitrate= 109.8kbits/s dup=8516 drop=0 speed=6.52x    
    I/Square: progress : frame= 8633 fps=194 q=25.0 size=    3844kB time=00:04:47.33 bitrate= 109.6kbits/s dup=8516 drop=0 speed=6.45x    
    I/Square: progress : frame= 8652 fps=192 q=25.0 size=    3844kB time=00:04:47.96 bitrate= 109.4kbits/s dup=8516 drop=0 speed= 6.4x    
    I/Square: progress : frame= 8672 fps=190 q=26.0 size=    3844kB time=00:04:48.63 bitrate= 109.1kbits/s dup=8516 drop=0 speed=6.34x    
    I/Square: progress : frame= 8691 fps=189 q=25.0 size=    3845kB time=00:04:49.26 bitrate= 108.9kbits/s dup=8516 drop=0 speed=6.28x    
    I/Square: progress : frame= 8711 fps=187 q=26.0 size=    3845kB time=00:04:49.93 bitrate= 108.6kbits/s dup=8516 drop=0 speed=6.23x    
    I/Square: progress : frame= 8731 fps=185 q=26.0 size=    3845kB time=00:04:50.60 bitrate= 108.4kbits/s dup=8516 drop=0 speed=6.17x    
    I/Square: progress : frame= 8750 fps=184 q=26.0 size=    3845kB time=00:04:51.23 bitrate= 108.2kbits/s dup=8516 drop=0 speed=6.12x    
    I/Square: progress : frame= 8770 fps=182 q=26.0 size=    3846kB time=00:04:51.90 bitrate= 107.9kbits/s dup=8516 drop=0 speed=6.07x    
    I/Square: progress : frame= 8791 fps=181 q=26.0 size=    3846kB time=00:04:52.60 bitrate= 107.7kbits/s dup=8516 drop=0 speed=6.02x    
    I/Square: progress : frame= 8811 fps=179 q=26.0 size=    3846kB time=00:04:53.26 bitrate= 107.4kbits/s dup=8516 drop=0 speed=5.97x    
    I/Square: progress : frame= 8831 fps=178 q=26.0 size=    3971kB time=00:04:53.93 bitrate= 110.7kbits/s dup=8516 drop=0 speed=5.92x    
    I/Square: progress : frame= 8851 fps=177 q=26.0 size=    4214kB time=00:04:54.60 bitrate= 117.2kbits/s dup=8516 drop=0 speed=5.88x    
    I/Square: progress : frame= 8871 fps=175 q=25.0 size=    4451kB time=00:04:55.26 bitrate= 123.5kbits/s dup=8516 drop=0 speed=5.83x    
    I/Square: progress : frame= 8891 fps=174 q=26.0 size=    4705kB time=00:04:55.93 bitrate= 130.2kbits/s dup=8516 drop=0 speed=5.78x    
    I/Square: progress : frame= 8911 fps=172 q=26.0 size=    4963kB time=00:04:56.60 bitrate= 137.1kbits/s dup=8516 drop=0 speed=5.74x    
    I/Square: progress : frame= 8932 fps=171 q=26.0 size=    5226kB time=00:04:57.30 bitrate= 144.0kbits/s dup=8516 drop=0 speed= 5.7x    
    I/Square: progress : frame= 8952 fps=170 q=26.0 size=    5475kB time=00:04:57.96 bitrate= 150.5kbits/s dup=8516 drop=0 speed=5.65x    
    I/Square: progress : frame= 8972 fps=169 q=26.0 size=    5730kB time=00:04:58.63 bitrate= 157.2kbits/s dup=8516 drop=0 speed=5.61x    
    I/Square: progress : frame= 8992 fps=167 q=26.0 size=    5970kB time=00:04:59.30 bitrate= 163.4kbits/s dup=8516 drop=0 speed=5.57x    
    I/Square: progress : frame= 8993 fps=167 q=-1.0 Lsize=    9456kB time=00:04:59.76 bitrate= 258.4kbits/s dup=8516 drop=0 speed=5.56x    
    I/Square: progress : video:9350kB audio:68kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.404826%
    I/Square: progress : [libx264 @ 0xf7544400] frame I:36    Avg QP:10.64  size:107101
    I/Square: progress : [libx264 @ 0xf7544400] frame P:8957  Avg QP:13.80  size:   638
    I/Square: progress : [libx264 @ 0xf7544400] mb I  I16..4: 100.0%  0.0%  0.0%
    I/Square: progress : [libx264 @ 0xf7544400] mb P  I16..4:  0.4%  0.0%  0.0%  P16..4:  4.3%  0.0%  0.0%  0.0%  0.0%    skip:95.3%
    I/Square: progress : [libx264 @ 0xf7544400] coded y,uvDC,uvAC intra: 78.5% 24.5% 12.4% inter: 2.6% 0.2% 0.0%
    I/Square: progress : [libx264 @ 0xf7544400] i16 v,h,dc,p: 28% 12% 42% 18%
    I/Square: progress : [libx264 @ 0xf7544400] i8c dc,h,v,p: 59% 15% 22%  4%
    I/Square: progress : [libx264 @ 0xf7544400] kb/s:255.50
    I/Square: progress : [aac @ 0xf7544c00] Qavg: 65536.000
    I/Square: Cropped video created.
    I/Square: finished
  • FFmpeg using png with tranparency and exclusion blending mode

    27 août 2016, par moorej

    I’m trying to use the exclusion blending mode to blend together a video and a png with transparency. I’ve looked around quite a bit but I can’t find a solution that works for me. Here’s the ffmpeg command :

    ffmpeg -i movie.mkv -i text_white_bg_trans.png -filter_complex\
     "[1:v]setsar=sar=1,format=rgba[txt]; [0:v]format=rgba[mo]; [mo][txt]blend=all_mode='exclusion'"  out_exclusion.mkv

    Edit : and the console output :

    ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
     configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-vda --enable-videotoolbox --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, matroska,webm, from 'movie.mkv':
     Metadata:
       ENCODER         : Lavf57.25.100
     Duration: 00:00:11.88, start: 0.000000, bitrate: 5143 kb/s
       Stream #0:0: Video: h264 (High), yuv420p, 1640x1232, SAR 1:1 DAR 205:154, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
       Metadata:
         ENCODER         : Lavc57.24.102 libx264
         DURATION        : 00:00:11.880000000
    Input #1, png_pipe, from 'text_white_bg_trans.png':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Video: png, rgba(pc), 1640x1232, 25 tbr, 25 tbn, 25 tbc
    File 'out_exclusion.mkv' already exists. Overwrite ? [y/N] y
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x7fb10a01e200] using SAR=1/1
    [libx264 @ 0x7fb10a01e200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x7fb10a01e200] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
    [libx264 @ 0x7fb10a01e200] 264 - core 148 - 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=4 threads=12 lookahead_threads=2 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, matroska, to 'out_exclusion.mkv':
     Metadata:
       encoder         : Lavf57.25.100
       Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1640x1232 [SAR 1:1 DAR 205:154], q=-1--1, 25 fps, 1k tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc57.24.102 libx264
       Side data:
         unknown side data type 10 (24 bytes)
    Stream mapping:
     Stream #0:0 (h264) -> format
     Stream #1:0 (png) -> setsar
     blend -> Stream #0:0 (libx264)
    Press [q] to stop, [?] for help
    frame=   24 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  frame=   47 fps= 40 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=  frame=   61 fps= 36 q=28.0 size=      96kB time=00:00:00.12 bitrate=6567.3kbitsframe=   70 fps= 32 q=28.0 size=     264kB time=00:00:00.48 bitrate=4513.9kbitsframe=   83 fps= 30 q=28.0 size=     498kB time=00:00:01.00 bitrate=4079.5kbitsframe=   95 fps= 29 q=28.0 size=     691kB time=00:00:01.48 bitrate=3827.5kbitsframe=  106 fps= 28 q=28.0 size=     896kB time=00:00:01.92 bitrate=3823.7kbitsframe=  118 fps= 27 q=28.0 size=    1132kB time=00:00:02.40 bitrate=3863.7kbitsframe=  130 fps= 26 q=28.0 size=    1338kB time=00:00:02.88 bitrate=3806.1kbitsframe=  142 fps= 26 q=28.0 size=    1588kB time=00:00:03.36 bitrate=3871.7kbitsframe=  154 fps= 25 q=28.0 size=    1808kB time=00:00:03.84 bitrate=3856.9kbitsframe=  166 fps= 25 q=28.0 size=    2062kB time=00:00:04.32 bitrate=3910.9kbitsframe=  178 fps= 24 q=28.0 size=    2328kB time=00:00:04.80 bitrate=3972.8kbitsframe=  190 fps= 24 q=28.0 size=    2620kB time=00:00:05.28 bitrate=4064.7kbitsframe=  203 fps= 24 q=28.0 size=    2886kB time=00:00:05.80 bitrate=4076.0kbitsframe=  215 fps= 24 q=28.0 size=    3132kB time=00:00:06.28 bitrate=4085.9kbitsframe=  226 fps= 24 q=28.0 size=    3357kB time=00:00:06.72 bitrate=4092.5kbitsframe=  238 fps= 24 q=28.0 size=    3589kB time=00:00:07.20 bitrate=4083.9kbitsframe=  250 fps= 23 q=28.0 size=    3794kB time=00:00:07.68 bitrate=4047.3kbitsframe=  260 fps= 23 q=28.0 size=    3978kB time=00:00:08.08 bitrate=4032.7kbitsframe=  272 fps= 23 q=28.0 size=    4212kB time=00:00:08.56 bitrate=4031.0kbitsframe=  284 fps= 23 q=28.0 size=    4453kB time=00:00:09.04 bitrate=4035.3kbitsframe=  295 fps= 23 q=28.0 size=    4632kB time=00:00:09.48 bitrate=4002.9kbitsframe=  297 fps= 20 q=-1.0 Lsize=    5559kB time=00:00:11.80 bitrate=3859.4kbits/s speed=0.808x    
    video:5556kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.053747%
    [libx264 @ 0x7fb10a01e200] frame I:2     Avg QP:21.70  size: 56001
    [libx264 @ 0x7fb10a01e200] frame P:178   Avg QP:23.12  size: 24833
    [libx264 @ 0x7fb10a01e200] frame B:117   Avg QP:25.78  size:  9886
    [libx264 @ 0x7fb10a01e200] consecutive B-frames: 29.3% 49.8% 14.1%  6.7%
    [libx264 @ 0x7fb10a01e200] mb I  I16..4:  9.5% 75.0% 15.5%
    [libx264 @ 0x7fb10a01e200] mb P  I16..4:  4.0% 14.8%  1.0%  P16..4: 43.3% 12.0%  4.5%  0.0%  0.0%    skip:20.4%
    [libx264 @ 0x7fb10a01e200] mb B  I16..4:  0.6%  1.9%  0.1%  B16..8: 48.5%  4.2%  0.3%  direct: 0.6%  skip:43.8%  L0:42.5% L1:55.6% BI: 1.9%
    [libx264 @ 0x7fb10a01e200] 8x8 transform intra:74.8% inter:85.5%
    [libx264 @ 0x7fb10a01e200] coded y,u,v intra: 31.3% 0.0% 0.0% inter: 15.0% 0.0% 0.0%
    [libx264 @ 0x7fb10a01e200] i16 v,h,dc,p: 30% 32% 13% 25%
    [libx264 @ 0x7fb10a01e200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 22% 32%  3%  4%  3%  6%  3%  3%
    [libx264 @ 0x7fb10a01e200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 33% 16%  3%  4%  3%  9%  4%  2%
    [libx264 @ 0x7fb10a01e200] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fb10a01e200] ref P L0: 72.2% 17.9%  7.5%  2.5%
    [libx264 @ 0x7fb10a01e200] ref B L0: 90.9%  8.6%  0.5%
    [libx264 @ 0x7fb10a01e200] ref B L1: 98.6%  1.4%
    [libx264 @ 0x7fb10a01e200] kb/s:3830.94

    Edit : Here’s a frame from the output.

    The output video is B&W rather than the original color (not sure why). The rectangle in the image is located where there is a block of text on a png with a transparent background. The png is the same size as the video.

    I’m expecting something more like this :
    enter image description here

    @Mulvya suggestion fixed the issue with color but I’m still seeing some problems with transparency being handled. I’m attaching a few different images below that each create different problems. All created in Photoshop CC (therein may lie the problem).

    A transparent background with a separate text layer that is then exported by Save->png, Photoshop appears to merge these two layers but differently than when "merge layers" is chosen before export. The exported image looks like the B&W image I posted above but with color.

    The in the second I merge the layers before exporting. It appears the entire image is treated as white.

    In the third I draw "hello" on a transparent layer with a "soft" brush using different grays then export. Transparent areas are rendered as white, gray or translucent areas opaque or with a strange dithering "effect."

    It seems I’m moving outside the realm of StackOverflow, but I’m not sure where this post would be better suited.
    1
    1
    2
    2
    3
    3