Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (82)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (9155)

  • ffmpeg streaming video not in sync

    3 avril 2019, par Tenaciousd93

    I have a problem saving a streaming with ffmpeg.
    The problem is that video is not in sync with audio.

    The video comes 2-3 seconds before the audio.

    I try by removing and editing options but nothing change, I make some research too and I try all solution described in this great answer posted here, but it didn’t work for me.

    I tried to download a chunk from playlist and I’ve got a .ts file with audio/video in sync.

    If I play the streaming with VLC player I can hear the audio without video for some seconds, then the video appear and is in sync with audio.

    ffplay play the same streaming correctly too : seems like there is the time information inside audio and video codec and can be played correctly in sync.

    How can I ask ffmpeg to take audio and video in sync ?

    If you need ffmpeg or ffplay outputs I will post them.


    Edit : as requested, I report the full ffmpeg output of a simple command to save stream output to file :

    $ ffmpeg -i http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/master.m3u8?hdnts=st=1554271074~exp=1554271524~acl=/*~hmac=14df2434241f7fd52f5a6012094367180f8567a1a733f7ef9eeef3dc7b46ebb2 -c copy out.mp4
    ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
     built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-ffplay --enable-libmp3lame --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-nonfree
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/index_2_av-p.m3u8?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/index_2_av-b.m3u8?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/index_1_av-p.m3u8?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/index_1_av-b.m3u8?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/index_2_a-p.m3u8?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/index_2_a-b.m3u8?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427138_2_av-p.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427138_2_av-b.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427138_1_av-p.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427138_1_av-b.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427138_2_a-p.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427138_2_a-b.ts?sd=10&rebase=on' for reading
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdf0025e00] non-existing PPS 0 referenced
    [h264 @ 0x7ffdf0028200] non-existing PPS 0 referenced
    [h264 @ 0x7ffdf0028200] decode_slice_header error
    [h264 @ 0x7ffdf0028200] no frame!
    [NULL @ 0x7ffdf0025e00] non-existing PPS 0 referenced
    [h264 @ 0x7ffdf0028200] non-existing PPS 0 referenced
    [h264 @ 0x7ffdf0028200] decode_slice_header error
    [h264 @ 0x7ffdf0028200] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [NULL @ 0x7ffdf0025e00] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [h264 @ 0x7ffdf0028200] non-existing PPS 0 referenced
    [h264 @ 0x7ffdf0028200] decode_slice_header error
    [h264 @ 0x7ffdf0028200] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [NULL @ 0x7ffdf0025e00] non-existing PPS 0 referenced
    [h264 @ 0x7ffdf0028200] non-existing PPS 0 referenced
    [h264 @ 0x7ffdf0028200] decode_slice_header error
    [h264 @ 0x7ffdf0028200] no frame!
    [NULL @ 0x7ffdf0025e00] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [h264 @ 0x7ffdf0028200] non-existing PPS 0 referenced
    [h264 @ 0x7ffdf0028200] decode_slice_header error
    [h264 @ 0x7ffdf0028200] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    [NULL @ 0x7ffdef028000] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] non-existing PPS 0 referenced
    [h264 @ 0x7ffdef02a400] decode_slice_header error
    [h264 @ 0x7ffdef02a400] no frame!
    Input #0, hls,applehttp, from 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/master.m3u8?hdnts=st=1554271074~exp=1554271524~acl=/*~hmac=14df2434241f7fd52f5a6012094367180f8567a1a733f7ef9eeef3dc7b46ebb2':
     Duration: N/A, start: 65871.264133, bitrate: N/A
     Program 0
       Metadata:
         variant_bitrate : 528000
       Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv), 400x224, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         variant_bitrate : 528000
       Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
       Metadata:
         variant_bitrate : 528000
       Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
       Metadata:
         variant_bitrate : 528000
     Program 1
       Metadata:
         variant_bitrate : 528000
       Stream #0:3: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv), 400x224, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         variant_bitrate : 528000
       Stream #0:4: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
       Metadata:
         variant_bitrate : 528000
       Stream #0:5: Data: timed_id3 (ID3  / 0x20334449)
       Metadata:
         variant_bitrate : 528000
     Program 2
       Metadata:
         variant_bitrate : 1328000
       Stream #0:6: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv), 720x404, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         variant_bitrate : 1328000
       Stream #0:7: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
       Metadata:
         variant_bitrate : 1328000
       Stream #0:8: Data: timed_id3 (ID3  / 0x20334449)
       Metadata:
         variant_bitrate : 1328000
     Program 3
       Metadata:
         variant_bitrate : 1328000
       Stream #0:9: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv), 720x404, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         variant_bitrate : 1328000
       Stream #0:10: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
       Metadata:
         variant_bitrate : 1328000
       Stream #0:11: Data: timed_id3 (ID3  / 0x20334449)
       Metadata:
         variant_bitrate : 1328000
     Program 4
       Metadata:
         variant_bitrate : 128000
       Stream #0:12: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
       Metadata:
         variant_bitrate : 128000
       Stream #0:13: Data: timed_id3 (ID3  / 0x20334449)
       Metadata:
         variant_bitrate : 128000
     Program 5
       Metadata:
         variant_bitrate : 128000
       Stream #0:14: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
       Metadata:
         variant_bitrate : 128000
       Stream #0:15: Data: timed_id3 (ID3  / 0x20334449)
       Metadata:
         variant_bitrate : 128000
    Output #0, mp4, to 'out.mp4':
     Metadata:
       encoder         : Lavf57.83.100
       Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 720x404, q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
       Metadata:
         variant_bitrate : 1328000
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp
       Metadata:
         variant_bitrate : 528000
    Stream mapping:
     Stream #0:6 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [hls,applehttp @ 0x7ffdef800000] No longer receiving playlist 1rate=1167.5kbits/s speed=4.93x    
    [hls,applehttp @ 0x7ffdef800000] No longer receiving playlist 5
    [hls,applehttp @ 0x7ffdef800000] No longer receiving playlist 3
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427139_2_av-p.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427139_1_av-p.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] No longer receiving playlist 4
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427140_2_av-p.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427140_1_av-p.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/index_1_av-p.m3u8?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427141_1_av-p.ts?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/index_2_av-p.m3u8?sd=10&rebase=on' for reading
    [hls,applehttp @ 0x7ffdef800000] Opening 'http://la7livehls-lh.akamaihd.net/i/livebkup_1@372883/segment155427141_2_av-p.ts?sd=10&rebase=on' for reading
    [mp4 @ 0x7ffdf0170600] Non-monotonous DTS in output stream 0:1; previous: 1440768, current: 1439744; changing to 1440769. This may result in incorrect timestamps in the output file.
    (...)
  • ffmpeg massive error spamming from FritzBox rtsp stream

    19 février 2019, par itzaiiro

    Im trying to offer a rtsp live TV stream via rtmp to my family, since the Fritz Box (which is offering the stream) has only 4 tuners -> at most 4 streams can be watched simultaneously.
    Im using ffmpeg to prepare the stream as dash stream and send it to my rtmp nginx. When i run ffmpeg im experiencing heavy image and audio artifacts in the final stream and error spams of doom in the console. I couldn’t find anything specific to my case on google. I read on the internet that AVM barely implemented the rtsp protocoll enough to get it to work with vlc mediaplayer.

    launch param :

    ffmpeg -i "rtsp://192.168.178.1:554/?avm=1&freq=114&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,260,543,544,546,548,1621" -sn -vcodec libx264 -vprofile baseline -acodec aac -strict -2 -b:v 500k -minrate 500k -maxrate 500k -bufsize 1000k -g 60 -s 640x360 -f flv rtmp://192.168.178.15/dash/pro_sieben_low -sn -vcodec libx264 -vprofile baseline -acodec aac -strict -2 -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize 3000k -g 60 -s 1280x720 -f flv rtmp://192.168.178.15/dash/pro_sieben_med -sn -vcodec libx264 -vprofile baseline -acodec aac -strict -2 -b:v 5000k -minrate 5000k -maxrate 5000k -bufsize 10000k -g 60 -s 1920x1080 -f flv rtmp://192.168.178.15/dash/pro_sieben_high

    ffmpeg output (windows) :
    stored in pastebin
    https://pastebin.com/p4HAyBi5

    Is there anyway to get this under control ? The original stream is running good with vlc, but its unwatchable after its out of ffmpeg.

    Edit :
    I was running/testing this on my windows machine, but my target for this task is a ubuntu 16.04 so here ffmpeg on target with pthread support :

    ffmpeg -i "rtsp://192.168.178.1:554/?avm=1&freq=114&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,260,543,544,546,548,1621" -sn -vcodec libx264 -vprofile baseline -acodec aac -strict -2 -b:v 500k -minrate 500k -maxrate 500k -bufsize 1000k -g 60 -s 640x360 -f flv rtmp://192.168.178.15/dash/pro_sieben_low -sn -vcodec libx264 -vprofile baseline -acodec aac -strict -2 -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize 3000k -g 60 -s 1280x720 -f flv rtmp://192.168.178.15/dash/pro_sieben_med -sn -vcodec libx264 -vprofile baseline -acodec aac -strict -2 -b:v 5000k -minrate 5000k -maxrate 5000k -bufsize 10000k -g 60 -s 1920x1080 -f flv rtmp://192.168.178.15/dash/pro_sieben_high
    ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    [mpeg2video @ 0x167cde0] Invalid frame dimensions 0x0.
       Last message repeated 10 times
    [rtsp @ 0x1627c20] Could not find codec parameters for stream 4 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, rtsp, from 'rtsp://192.168.178.1:554/?avm=1&freq=114&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,260,543,544,546,548,1621':
     Metadata:
       title           : SatIPServer:1 0,0,4
     Duration: N/A, start: 33786.528778, bitrate: N/A
     Program 12101
       Metadata:
         service_name    : ?▒RTL▒ Television
         service_provider: ?Unitymedia
     Program 12102
       Metadata:
         service_name    : ?SAT.1
         service_provider: ?Unitymedia
     Program 12103
       Metadata:
         service_name    : ?ProSieben
         service_provider: ?Unitymedia
       Stream #0:3: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:2(deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
       Stream #0:0(deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s (clean effects)
       Stream #0:1(deu,deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
       Stream #0:4: Unknown: none ([5][0][0][0] / 0x0005)
     Program 12104
       Metadata:
         service_name    : ?VOX
         service_provider: ?Unitymedia
     Program 12105
       Metadata:
         service_name    : ?RTL2
         service_provider: ?Unitymedia
     Program 12106
       Metadata:
         service_name    : ?kabel eins
         service_provider: ?Unitymedia
     Program 12107
       Metadata:
         service_name    : ?▒S▒uper▒ RTL▒
         service_provider: ?Unitymedia
     Program 12109
       Metadata:
         service_name    : ?ntv
         service_provider: ?Unitymedia
     Program 12113
       Metadata:
         service_name    : ?ProSieben MAXX
         service_provider: ?Unitymedia
     Program 20116
       Metadata:
         service_name    : ?SIXX
         service_provider: ?Unitymedia
    [libx264 @ 0x182b140] using SAR=1/1
    [libx264 @ 0x182b140] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x182b140] profile Constrained Baseline, level 3.0
    [libx264 @ 0x182b140] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 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=0 weightp=0 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
    [libx264 @ 0x16e03c0] using SAR=1/1
    [libx264 @ 0x16e03c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x16e03c0] profile Constrained Baseline, level 3.1
    [libx264 @ 0x16e03c0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 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=0 weightp=0 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1500 vbv_bufsize=3000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
    [libx264 @ 0x16cc880] using SAR=1/1
    [libx264 @ 0x16cc880] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x16cc880] profile Constrained Baseline, level 4.0
    [libx264 @ 0x16cc880] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 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=0 weightp=0 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=5000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=5000 vbv_bufsize=10000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
    Output #0, flv, to 'rtmp://192.168.178.15/dash/pro_sieben_low':
     Metadata:
       title           : SatIPServer:1 0,0,4
       encoder         : Lavf56.40.101
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 500 kb/s, 25 fps, 1k tbn, 25 tbc
       Metadata:
         encoder         : Lavc56.60.100 libx264
       Stream #0:1(deu): Audio: aac ([10][0][0][0] / 0x000A), 48000 Hz, 5.1(side), fltp, 128 kb/s (clean effects)
       Metadata:
         encoder         : Lavc56.60.100 aac
    Output #1, flv, to 'rtmp://192.168.178.15/dash/pro_sieben_med':
     Metadata:
       title           : SatIPServer:1 0,0,4
       encoder         : Lavf56.40.101
       Stream #1:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1500 kb/s, 25 fps, 1k tbn, 25 tbc
       Metadata:
         encoder         : Lavc56.60.100 libx264
       Stream #1:1(deu): Audio: aac ([10][0][0][0] / 0x000A), 48000 Hz, 5.1(side), fltp, 128 kb/s (clean effects)
       Metadata:
         encoder         : Lavc56.60.100 aac
    Output #2, flv, to 'rtmp://192.168.178.15/dash/pro_sieben_high':
     Metadata:
       title           : SatIPServer:1 0,0,4
       encoder         : Lavf56.40.101
       Stream #2:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 5000 kb/s, 25 fps, 1k tbn, 25 tbc
       Metadata:
         encoder         : Lavc56.60.100 libx264
       Stream #2:1(deu): Audio: aac ([10][0][0][0] / 0x000A), 48000 Hz, 5.1(side), fltp, 128 kb/s (clean effects)
       Metadata:
         encoder         : Lavc56.60.100 aac
    Stream mapping:
     Stream #0:3 -> #0:0 (mpeg2video (native) -> h264 (libx264))
     Stream #0:0 -> #0:1 (ac3 (native) -> aac (native))
     Stream #0:3 -> #1:0 (mpeg2video (native) -> h264 (libx264))
     Stream #0:0 -> #1:1 (ac3 (native) -> aac (native))
     Stream #0:3 -> #2:0 (mpeg2video (native) -> h264 (libx264))
     Stream #0:0 -> #2:1 (ac3 (native) -> aac (native))
    Press [q] to stop, [?] for help
    RTP: missed 2137 packets.0 q=26.0 q=23.0 size=     238kB time=00:00:04.91 bitrate= 397.3kbits/s
    [rtsp @ 0x1627c20] PES packet size mismatch
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 16
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 17
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 18
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 19
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 20
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 21
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 22
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 23
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 17 11
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 24
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 25
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 26
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 27
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 31
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 32
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 33
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 34
    [mpeg2video @ 0x16d72c0] invalid mb type in I Frame at 0 35
    [mpeg2video @ 0x16d72c0] Warning MVs not available
    [mpeg2video @ 0x16d72c0] concealing 1125 DC, 1125 AC, 1125 MV errors in I frame
    RTP: missed 11 packets
    RTP: missed 37 packets
    [ac3 @ 0x1676bc0] exponent out-of-range
    [ac3 @ 0x1676bc0] error decoding the audio block
    [ac3 @ 0x1676bc0] frame sync error
    Error while decoding stream #0:0: Invalid data found when processing input
    [ac3 @ 0x1676bc0] exponent out-of-range
    [ac3 @ 0x1676bc0] error decoding the audio block
    RTP: missed 21 packets
    RTP: missed 32 packets
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 1 4
    [mpeg2video @ 0x16d72c0] Warning MVs not available
    [mpeg2video @ 0x16d72c0] concealing 1080 DC, 1080 AC, 1080 MV errors in B frame
    [mpeg2video @ 0x16d72c0] 00 motion_type at 21 27
    [mpeg2video @ 0x16d72c0] 00 motion_type at 2 26
    [mpeg2video @ 0x16d72c0] 00 motion_type at 0 27
    [mpeg2video @ 0x16d72c0] invalid cbp -1 at 2 1
    [mpeg2video @ 0x16d72c0] 00 motion_type at 5 2
    [mpeg2video @ 0x16d72c0] skip with previntra
    [mpeg2video @ 0x16d72c0] 00 motion_type at 2 4
    [mpeg2video @ 0x16d72c0] slice mismatch
    [mpeg2video @ 0x16d72c0] 00 motion_type at 1 6
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 3 7
    [mpeg2video @ 0x16d72c0] slice mismatch
    [mpeg2video @ 0x16d72c0] 00 motion_type at 37 9
    [mpeg2video @ 0x16d72c0] 00 motion_type at 1 10
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] 00 motion_type at 1 31
    [mpeg2video @ 0x16d72c0] 00 motion_type at 5 32
    [mpeg2video @ 0x16d72c0] 00 motion_type at 1 33
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 26 35
    [mpeg2video @ 0x16d72c0] Warning MVs not available
    [mpeg2video @ 0x16d72c0] concealing 945 DC, 945 AC, 945 MV errors in B frame
    [rtsp @ 0x1627c20] PES packet size mismatchze=     294kB time=00:00:05.27 bitrate= 457.1kbits/s
    [ac3 @ 0x1676bc0] frame sync error
    Error while decoding stream #0:0: Invalid data found when processing input
    [ac3 @ 0x1676bc0] exponent out-of-range
    [ac3 @ 0x1676bc0] error decoding the audio block
    [ac3 @ 0x1676bc0] frame sync error
    Error while decoding stream #0:0: Invalid data found when processing input
    RTP: missed 38 packets25.0 q=26.0 q=22.0 size=     320kB time=00:00:11.18 bitrate= 234.3kbits/s
    RTP: missed 18 packets
    RTP: missed 9 packets
    RTP: missed 21 packets
    RTP: missed 9 packets
    [rtsp @ 0x1627c20] PES packet size mismatch
    [ac3 @ 0x1676bc0] exponent out-of-range
    [ac3 @ 0x1676bc0] error decoding the audio block
    [ac3 @ 0x1676bc0] frame sync error
    Error while decoding stream #0:0: Invalid data found when processing input
    [ac3 @ 0x1676bc0] bandwidth code = 63 > 60
    [ac3 @ 0x1676bc0] error decoding the audio block
    RTP: missed 13 packets
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 3 6
    [mpeg2video @ 0x16d72c0] 00 motion_type at 1 16
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 0 17
    [mpeg2video @ 0x16d72c0] 00 motion_type at 5 21
    [mpeg2video @ 0x16d72c0] 00 motion_type at 3 27
    [mpeg2video @ 0x16d72c0] invalid cbp -1 at 7 32
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 8 32
    [mpeg2video @ 0x16d72c0] slice mismatch
       Last message repeated 2 times
    [mpeg2video @ 0x16d72c0] Warning MVs not available
    [mpeg2video @ 0x16d72c0] concealing 810 DC, 810 AC, 810 MV errors in P frame
    RTP: missed 44 packets
    [rtsp @ 0x1627c20] PES packet size mismatch
    [ac3 @ 0x1676bc0] frame sync error
    Error while decoding stream #0:0: Invalid data found when processing input
    [ac3 @ 0x1676bc0] exponent out-of-range0 size=     338kB time=00:00:11.43 bitrate= 242.2kbits/s
    [ac3 @ 0x1676bc0] error decoding the audio block
    RTP: missed 35 packets
       Last message repeated 1 times
    RTP: missed 31 packets
    [ac3 @ 0x1676bc0] frame sync error
    Error while decoding stream #0:0: Invalid data found when processing input
    [ac3 @ 0x1676bc0] exponent out-of-range
    [ac3 @ 0x1676bc0] error decoding the audio block
    [ac3 @ 0x1676bc0] frame sync error
    Error while decoding stream #0:0: Invalid data found when processing input
    RTP: missed 48 packets
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 5 23
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] 00 motion_type at 17 24
    [mpeg2video @ 0x16d72c0] slice mismatch
       Last message repeated 1 times
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 5 27
    [mpeg2video @ 0x16d72c0] skip with previntra
    [mpeg2video @ 0x16d72c0] 00 motion_type at 15 29
    [mpeg2video @ 0x16d72c0] 00 motion_type at 8 31
    [mpeg2video @ 0x16d72c0] 00 motion_type at 13 32
    [mpeg2video @ 0x16d72c0] 00 motion_type at 22 33
    [mpeg2video @ 0x16d72c0] 00 motion_type at 20 34
    [mpeg2video @ 0x16d72c0] 00 motion_type at 17 35
    [mpeg2video @ 0x16d72c0] Warning MVs not available
    [mpeg2video @ 0x16d72c0] concealing 543 DC, 543 AC, 543 MV errors in B frame
    [mpeg2video @ 0x16d72c0] 00 motion_type at 16 1
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 11 13
    [mpeg2video @ 0x16d72c0] invalid mb type in P Frame at 4 7
    [mpeg2video @ 0x16d72c0] 00 motion_type at 2 8
    [mpeg2video @ 0x16d72c0] invalid cbp 0 at 0 19
    [mpeg2video @ 0x16d72c0] invalid cbp 0 at 0 20
    [mpeg2video @ 0x16d72c0] 00 motion_type at 9 21
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 2 22
    [mpeg2video @ 0x16d72c0] 00 motion_type at 10 23
    [mpeg2video @ 0x16d72c0] slice mismatch
    [mpeg2video @ 0x16d72c0] invalid mb type in P Frame at 1 25
    [mpeg2video @ 0x16d72c0] invalid cbp 0 at 38 26
    [mpeg2video @ 0x16d72c0] invalid mb type in P Frame at 3 27
    [mpeg2video @ 0x16d72c0] invalid mb type in P Frame at 22 28
    [mpeg2video @ 0x16d72c0] 00 motion_type at 16 29
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 5 30
    [mpeg2video @ 0x16d72c0] 00 motion_type at 14 31
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 2 32
    [mpeg2video @ 0x16d72c0] invalid mb type in P Frame at 19 9
    [mpeg2video @ 0x16d72c0] invalid mb type in P Frame at 11 10
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 13 11
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 8 12
    [mpeg2video @ 0x16d72c0] 00 motion_type at 33 13
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 8 14
    [mpeg2video @ 0x16d72c0] invalid cbp -1 at 6 15
    [mpeg2video @ 0x16d72c0] invalid cbp -1 at 15 19
    [mpeg2video @ 0x16d72c0] 00 motion_type at 9 18
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] invalid cbp -1 at 15 21
    [mpeg2video @ 0x16d72c0] 00 motion_type at 13 21
    [mpeg2video @ 0x16d72c0] invalid cbp 0 at 16 22
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 5 23
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 4 24
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] 00 motion_type at 7 26
    [mpeg2video @ 0x16d72c0] slice mismatch
    [mpeg2video @ 0x16d72c0] 00 motion_type at 9 13
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 44 14
    [mpeg2video @ 0x16d72c0] invalid cbp 0 at 2 15
    [mpeg2video @ 0x16d72c0] mb incr damaged
       Last message repeated 1 times
    [mpeg2video @ 0x16d72c0] 00 motion_type at 34 18
    [mpeg2video @ 0x16d72c0] 00 motion_type at 15 19
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] 00 motion_type at 8 21
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 14 22
    [mpeg2video @ 0x16d72c0] invalid cbp -1 at 9 23
    [mpeg2video @ 0x16d72c0] invalid cbp 0 at 4 24
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] slice mismatch
       Last message repeated 1 times
    [mpeg2video @ 0x16d72c0] mb incr damaged
    [mpeg2video @ 0x16d72c0] ac-tex damaged at 25 29
    [mpeg2video @ 0x16d72c0] invalid cbp 0 at 14 30
    [mpeg2video @ 0x16d72c0] mb incr damaged
       Last message repeated 1 times
    [mpeg2video @ 0x16d72c0] 00 motion_type at 35 33
    [mpeg2video @ 0x16d72c0] slice mismatch
    [mpeg2video @ 0x16d72c0] Warning MVs not available
    [mpeg2video @ 0x16d72c0] concealing 1350 DC, 1350 AC, 1350 MV errors in P frame
    [flv @ 0x16d7c40] Failed to update header with correct duration.:00:12.12 bitrate= 241.4kbits/s
    [flv @ 0x16d7c40] Failed to update header with correct filesize.
    [flv @ 0x16df5a0] Failed to update header with correct duration.
    [flv @ 0x16df5a0] Failed to update header with correct filesize.
    [flv @ 0x16cbe00] Failed to update header with correct duration.
    [flv @ 0x16cbe00] Failed to update header with correct filesize.
    frame=  136 fps= 12 q=-1.0 Lq=-1.0 q=-1.0 size=     633kB time=00:00:13.24 bitrate= 391.8kbits/s
    video:7049kB audio:272kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    [libx264 @ 0x182b140] frame I:4     Avg QP:19.84  size: 33269
    [libx264 @ 0x182b140] frame P:132   Avg QP:21.93  size:  3136
    [libx264 @ 0x182b140] mb I  I16..4:  6.9%  0.0% 93.1%
    [libx264 @ 0x182b140] mb P  I16..4:  0.1%  0.0%  0.7%  P16..4: 32.0% 11.6%  4.4%  0.0%  0.0%    skip:51.1%
    [libx264 @ 0x182b140] coded y,uvDC,uvAC intra: 91.1% 88.6% 67.5% inter: 14.8% 20.2% 1.5%
    [libx264 @ 0x182b140] i16 v,h,dc,p: 35% 15%  3% 47%
    [libx264 @ 0x182b140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 19%  9%  6%  7%  8%  7%  7%  7%
    [libx264 @ 0x182b140] i8c dc,h,v,p: 45% 20% 28%  7%
    [libx264 @ 0x182b140] ref P L0: 80.5% 11.2%  8.4%
    [libx264 @ 0x182b140] kb/s:369.61
    [libx264 @ 0x16e03c0] frame I:4     Avg QP:19.81  size: 77367
    [libx264 @ 0x16e03c0] frame P:132   Avg QP:21.64  size:  9825
    [libx264 @ 0x16e03c0] mb I  I16..4: 16.2%  0.0% 83.8%
    [libx264 @ 0x16e03c0] mb P  I16..4:  0.6%  0.0%  1.2%  P16..4: 34.1%  9.5%  2.9%  0.0%  0.0%    skip:51.8%
    [libx264 @ 0x16e03c0] coded y,uvDC,uvAC intra: 76.8% 77.3% 41.8% inter: 11.9% 20.4% 0.7%
    [libx264 @ 0x16e03c0] i16 v,h,dc,p: 38% 18%  7% 37%
    [libx264 @ 0x16e03c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 22% 10%  5%  7%  7%  7%  6%  6%
    [libx264 @ 0x16e03c0] i8c dc,h,v,p: 47% 21% 26%  6%
    [libx264 @ 0x16e03c0] ref P L0: 80.8% 12.1%  7.1%
    [libx264 @ 0x16e03c0] kb/s:1085.42
    [libx264 @ 0x16cc880] frame I:4     Avg QP:15.79  size:181630
    [libx264 @ 0x16cc880] frame P:132   Avg QP:18.21  size: 32848
    [libx264 @ 0x16cc880] mb I  I16..4: 13.7%  0.0% 86.3%
    [libx264 @ 0x16cc880] mb P  I16..4:  1.3%  0.0%  2.7%  P16..4: 36.0% 14.2%  4.4%  0.0%  0.0%    skip:41.4%
    [libx264 @ 0x16cc880] coded y,uvDC,uvAC intra: 72.4% 70.6% 41.8% inter: 17.3% 24.9% 1.5%
    [libx264 @ 0x16cc880] i16 v,h,dc,p: 33% 21%  6% 39%
    [libx264 @ 0x16cc880] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 23%  9%  5%  8%  7%  7%  6%  5%
    [libx264 @ 0x16cc880] i8c dc,h,v,p: 44% 21% 27%  8%
    [libx264 @ 0x16cc880] ref P L0: 80.3% 12.7%  7.0%
    [libx264 @ 0x16cc880] kb/s:3420.59
  • Unknown V4L2 pixel format equivalent for yuva420p with ffmpeg and v4l2loopback

    7 février 2019, par Kim

    I am trying to use filter_complex from ffmpeg to stich several video input together into one output.

    I use v4l2loopback to create a virtual video device :

    sudo modprobe v4l2loopback video_nr=90

    In this example, i first try with only one camera :

    v4l2-ctl --device=/dev/video0 --info gives the following output :

    Driver Info (not using libv4l2):
           Driver name   : uvcvideo
           Card type     : HD USB Camera
           Bus info      : usb-0000:00:14.0-13.2
           Driver version: 4.10.17
           Capabilities  : 0x84200001
                   Video Capture
                   Streaming
                   Extended Pix Format
                   Device Capabilities
           Device Caps   : 0x04200001
                   Video Capture
                   Streaming
                   Extended Pix Format
    Priority: 2
    Video input : 0 (Camera 1: ok)
    Format Video Capture:
           Width/Height      : 640/480
           Pixel Format      : 'YUYV'
           Field             : None
           Bytes per Line    : 1280
           Size Image        : 614400
           Colorspace        : sRGB
           Transfer Function : Default
           YCbCr Encoding    : Default
           Quantization      : Default
           Flags             :
    Crop Capability Video Capture:
           Bounds      : Left 0, Top 0, Width 640, Height 480
           Default     : Left 0, Top 0, Width 640, Height 480
           Pixel Aspect: 1/1
    Selection: crop_default, Left 0, Top 0, Width 640, Height 480
    Selection: crop_bounds, Left 0, Top 0, Width 640, Height 480
    Streaming Parameters Video Capture:
           Capabilities     : timeperframe
           Frames per second: 30.000 (30/1)
           Read buffers     : 0
                        brightness (int)    : min=0 max=15 step=1 default=8 value=8
                          contrast (int)    : min=0 max=15 step=1 default=8 value=8
                        saturation (int)    : min=0 max=15 step=1 default=7 value=7
                               hue (int)    : min=-10 max=10 step=1 default=0value=0
    white_balance_temperature_auto (bool)   : default=1 value=1
                             gamma (int)    : min=1 max=10 step=1 default=7 value=7
                              gain (int)    : min=0 max=0 step=0 default=0 value=0
              power_line_frequency (menu)   : min=0 max=2 default=2 value=2
         white_balance_temperature (int)    : min=2800 max=6500 step=1 default=2800 value=2800 flags=inactive
                         sharpness (int)    : min=0 max=15 step=1 default=6 value=6
            backlight_compensation (int)    : min=0 max=1 step=1 default=0 value=0
                     exposure_auto (menu)   : min=0 max=3 default=3 value=3
                 exposure_absolute (int)    : min=4 max=5000 step=1 default=625 value=625 flags=inactive
                    focus_absolute (int)    : min=0 max=21 step=1 default=16 value=16 flags=inactive
                        focus_auto (bool)   : default=1 value=1

    Then i use this command to ouput /dev/video0 to /dev/video90 on the left side with a specific resolution :

    ffmpeg -loglevel verbose -y \
     -f v4l2 -thread_queue_size 512 -i /dev/video0 \
     -filter_complex "nullsrc=size=960x240 [base]; \
             [0:v] format=pix_fmts=yuva420p, setpts=PTS-STARTPTS, scale=320x240 [left]; \
             [base][left] overlay=shortest=1" \
     -f v4l2 /dev/video90

    Which results in the following error :

    [v4l2 @ 0x55fa67d02f60] Unknown V4L2 pixel format equivalent for yuva420p
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Error initializing output stream 0:0 --
    Conversion failed!

    Full logs :

    ffmpeg version 3.4.4-1~16.04.york0 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
     configuration: --prefix=/usr --extra-version='1~16.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     WARNING: library configuration mismatch
     avcodec     configuration: --prefix=/usr --extra-version='1~16.04.york0'--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    [video4linux2,v4l2 @ 0x55fa67cfca00] fd:5 capabilities:84200001
    [video4linux2,v4l2 @ 0x55fa67cfca00] Querying the device for the current frame size
    [video4linux2,v4l2 @ 0x55fa67cfca00] Setting frame size to 640x480
    Input #0, video4linux2,v4l2, from '/dev/video0':
     Duration: N/A, start: 273229.829138, bitrate: 147456 kb/s
       Stream #0:0: Video: rawvideo, 1 reference frame (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
    [Parsed_nullsrc_0 @ 0x55fa67d00680] size:960x240 rate:25/1 duration:-1.000000 sar:1/1
    [Parsed_scale_3 @ 0x55fa67d02240] w:320 h:240 flags:'bilinear' interl:0
    Stream mapping:
     Stream #0:0 (rawvideo) -> format
     overlay -> Stream #0:0 (rawvideo)
    Press [q] to stop, [?] for help
    [Parsed_nullsrc_0 @ 0x55fa67cfc760] size:960x240 rate:25/1 duration:-1.000000 sar:1/1
    [Parsed_scale_3 @ 0x55fa67d055c0] w:320 h:240 flags:'bilinear' interl:0
    [graph 0 input from stream 0:0 @ 0x55fa67d06a40] w:640 h:480 pixfmt:yuyv422 tb:1/1000000 fr:30/1 sar:0/1 sws_param:flags=2
    [auto_scaler_0 @ 0x55fa67d05d80] w:iw h:ih flags:'bilinear' interl:0
    [Parsed_format_1 @ 0x55fa67d04360] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_format_1'
    [auto_scaler_0 @ 0x55fa67d05d80] w:640 h:480 fmt:yuyv422 sar:0/1 -> w:640 h:480 fmt:yuva420p sar:0/1 flags:0x2
    [Parsed_format_1 @ 0x55fa67d04360] TB:0.000001 FRAME_RATE:30.000000 SAMPLE_RATE:nan
    [Parsed_scale_3 @ 0x55fa67d055c0] w:640 h:480 fmt:yuva420p sar:0/1 -> w:320 h:240 fmt:yuva420p sar:0/1 flags:0x2
    [Parsed_overlay_4 @ 0x55fa67d05e80] main w:960 h:240 fmt:yuva420p overlay w:320 h:240 fmt:yuva420p
    [Parsed_overlay_4 @ 0x55fa67d05e80] [framesync @ 0x55fa67d05fa8] Selected 1/1000000 time base
    [Parsed_overlay_4 @ 0x55fa67d05e80] [framesync @ 0x55fa67d05fa8] Sync level 2
    [v4l2 @ 0x55fa67d02f60] Unknown V4L2 pixel format equivalent for yuva420p
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Error initializing output stream 0:0 --
    Conversion failed!

    What I tried and didn’t work :

    • use -f h264 for the output, which ends in a av_interleaved_write_frame(): Invalid argument error