Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (56)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7773)

  • avconv/ffmpeg to sync audio in a single file

    6 avril 2014, par Jeff Thompson

    I have an avi file with duration 1 hour. The audio rate is out of sync and ends about 2 minutes before the end of the video. I used the avconv -async option :

    avconv -i unsynced.avi -i unsynced.avi -acodec adpcm_ms -vcodec copy -map 0:0 -map 1:1 -async 1000 synced.avi

    But the output audio is still out of sync. Am I using the avconv command correctly to sync the audio with the video in the one input file ?

    Thanks,
    - Jeff

  • ffmpeg : failed to convert m3u8 to mp4

    4 mars 2016, par MrSmile07

    I want to convert a .m3u8 file into .mp4, for that I am using ffmpeg.
    The only Thing that disturbs is, that one file work with the Command and the other not.

    Here the command :

    ffmpeg -i http://91.250.77.10:8134/hls-vod/jp/523.mp4.m3u8 -acodec copy -vcodec copy  -y -loglevel info -f mp4 Namezurspeicherrung.mp4
    

    that file works, but by the other file :

    ffmpeg -i http://91.250.77.10:8134/hls-vod/mk/01.mp4.m3u8 -acodec copy -vcodec         copy  -y  -loglevel info -f mp4 Namezurspeicherrung2.mp4
    

    doesn’t work.

    _
    _

    OK : Here the Output from file 2 :

    ffmpeg -i http://91.250.77.10:8134/hls-vod/mkmp4.m3u8 -acodec copy -vcodec copy  -y -loglevel info -f mp4 Wasichsiewirklichgernefragenwuerde.mp4
        ffmpeg version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
          built on Feb  6 2014 20:56:59 with gcc 4.6.3
        *** THIS PROGRAM IS DEPRECATED ***
        This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [NULL @ 0x16b5120] non-existing PPS referenced
        [h264 @ 0x1825a60] non-existing PPS 0 referenced
        [h264 @ 0x1825a60] decode_slice_header error
        [h264 @ 0x1825a60] no frame !
        [applehttp @ 0x16ab9a0] max_analyze_duration reached
        [applehttp @ 0x16ab9a0] Estimating duration from bitrate, this may be inaccurate
    

    Seems stream 0 codec frame rate differs from container frame rate : 180000.00 (180000/1) -> 1000.00 (1000/1)
    Input #0, applehttp, from ’http://91.250.77.10:8134/hls-vod/mk/01.mp4.m3u8’ :
    Duration : 00:23:30.00, start : 8.700000, bitrate : N/A
    Stream #0.0 : Video : h264, 1k tbr, 90k tbn, 180k tbc
    Stream #0.1 : Audio : aac, 48000 Hz, stereo, s16
    [mp4 @ 0x1826640] dimensions not set
    Output #0, mp4, to ’Wasichsiewirklichgernefragenwuerde.mp4’ :
    Stream #0.0 : Video : libx264, q=2-31, 90k tbn, 90k tbc
    Stream #0.1 : Audio : libvo_aacenc, 48000 Hz, stereo
    Stream mapping :
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Could not write header for output file #0 (incorrect codec parameters ?)

    Last Edit : 23.03.2014 20:08

  • getting black and white image after encoding

    16 mai 2012, par user1310596

    I am trying to encode image using ffmpeg library and objective c. I am using following code but I am getting black and white image as the result. Is there something to do with pixel format(PIX_FMT) ? Please help me so that I can get colored image.

    av_register_all();
    avcodec_init();
    avcodec_register_all();
    avformat_alloc_context();

    AVCodec *codec;
    AVCodecContext *ctx= NULL;
    int out_size, size, outbuf_size;
    AVFrame *picture;
    uint8_t *outbuf;
    unsigned char *flvdata = malloc(sizeof(unsigned char) * 30);


    outbuf_size = 200000;
    outbuf = malloc(outbuf_size);


    printf("Video encoding\n");

    codec = avcodec_find_encoder(CODEC_ID_FLV1);
    if (!codec) {
           fprintf(stderr, "codec not found\n");
           exit(1);
    }

    ctx= avcodec_alloc_context();
    picture= avcodec_alloc_frame();


    ctx->width = 320;
    ctx->height = 240;
    ctx -> sample_rate = 11025;
    ctx -> time_base.den = 1000;
    ctx -> time_base.num = 23976;
    ctx -> codec_id = CODEC_ID_FLV1;
    ctx -> codec_type = CODEC_TYPE_VIDEO;
    ctx->pix_fmt = PIX_FMT_YUV420P;

    if (avcodec_open(ctx, codec) < 0) {
           fprintf(stderr, "could not open codec\n");
           exit(1);
    }

    outbuf_size = 100000;
    outbuf = malloc(outbuf_size);
    size = ctx->width * ctx->height;

    AVFrame* outpic = avcodec_alloc_frame();
    int nbytes = avpicture_get_size(PIX_FMT_YUV420P, ctx->width, ctx->height);

    uint8_t* outbuffer = (uint8_t*)av_malloc(nbytes);

    fflush(stdout);

    int numBytes = avpicture_get_size(PIX_FMT_YUV420P, ctx->width, ctx->height);

    UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"0.jpg"]];
    CGImageRef newCgImage = [image CGImage];

    CGDataProviderRef dataProvider = CGImageGetDataProvider(newCgImage);
    CFDataRef bitmapData = CGDataProviderCopyData(dataProvider);
    long dataLength = CFDataGetLength(bitmapData);

    uint8_t *buffer = (uint8_t *)av_malloc(dataLength);
    buffer = (uint8_t *)CFDataGetBytePtr(bitmapData);

    for(int i = 0; i < dataLength; i++)
    {
           if((i + 1) % 16 == 1 && i != 1)
                   printf("\n");
           printf("%X\t",buffer[i]); // getting something different than the     actual hex value of the image
    }



    outpic -> pts = 0;        

    avpicture_fill((AVPicture*)picture, buffer, PIX_FMT_RGB8, ctx->width, ctx->height);

    avpicture_fill((AVPicture*)outpic, outbuffer, PIX_FMT_YUV420P, ctx->width, ctx->height);

    struct SwsContext* fooContext = sws_getContext(ctx->width, ctx->height,
                                                          PIX_FMT_RGB8,
                                                          ctx->width, ctx->height,
                                                          PIX_FMT_YUV420P,
                                                          SWS_FAST_BILINEAR, NULL, NULL, NULL);

    sws_scale(fooContext, picture->data, picture->linesize, 0, ctx->height, outpic->data, outpic->linesize);

    printf("abcdefghijklmnop");
    out_size = avcodec_encode_video(ctx, outbuf, outbuf_size, outpic);
    printf("\n\n out_size %d   outbuf_size %d",out_size,outbuf_size);

    Thanks in advance