Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (84)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (8664)

  • screen mess when change video on rtmp

    16 mars 2014, par dingyaguang117
    1. when I use "ffmpeg -i" to probe video info, the infos below will be shown (take 2 examples)

      Stream #0:0 : Video : h264 (High), yuv420p, 600x352, 281 kb/s, 29.97 tbr, 1k tbn, 59.94 tbc
      Stream #0:0(und) : Video : h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 532 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
      

      What does the "avc1" mean?why the first doesn't shown ?

      Will it be "screen mess","no sound" or "no image" when switch the video that is publishing to rtmp server if the contiguous video encode by different codec ?

    2. How to switch video publishing to rtmp smoothly ?
      I use nginx-rtmp-module,set "live on",and use "ffmpeg -re" to publish video.
      My method to switch video is to "pkill ffmpeg", and start another "ffmpeg -re" process.
      If the contiguous videos encode by different codec,it maybe "screen mess","no sound" or "no image". What can I do to solve it ?

    3. Are there any experiences(about tools,switch videos,how to choose encoding) when doing live video ?

  • Why does calling ffmpeg from python's popen break screen capture functionality ?

    4 mars 2016, par Jabb

    I am trying to create screen captures from mp4 files in python.
    Calling ffmpeg on the command line works fine. But as soon, as I issue the same command through python "popen", functionality breaks with an error that ffmpeg cannot find the moov atom. Can anyone explain this to me ?

    This is how I call ffmpeg from python :

    def ffmpegGetScreenshot(self,inputFilename,index,startTime):
       my_env = os.environ.copy()
       my_env.update({'PATH': '/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'})

       filename = inputFilename.split("/")[1]
       directory = inputFilename.split("/")[0]
       if os.path.isfile('videoscreenshots/'+filename+"_cs"+str(index)+".jpg"):
           return 'videoscreenshots/'+filename+"_cs"+str(index)+".jpg"
       print "get screenshots for: " + inputFilename
       command = [ FFMPEG_BIN,
                   '-y',
                   '-i', inputFilename,
                   '-ss', str(int(startTime)),
                   '-vframes', '1',
                   #'-loglevel','quiet',
                   'videoscreenshots/'+filename+"_cs"+str(index)+".jpg"
                   ]
       pipe = sp.Popen(command, env=my_env,stdin = sp.PIPE,stdout = sp.PIPE, stderr=None)
       print command

       return 'videoscreenshots/'+filename+"_cs"+str(index)+".jpg"

    Result :

    ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 41.100 / 56. 41.100
     libavformat    56. 36.100 / 56. 36.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x652120] moov atom not found
    videochunks/test.mp4: Invalid data found when processing input
    test.mp4

    This is the same command called on the console

    /usr/local/bin/ffmpeg -y -i videochunks/test.mp4 -ss 9 -vframes 1 videoscreenshots/test.mp4_cs2.jpg

    Result :

    root@3:/app# /usr/local/bin/ffmpeg -y -i videochunks/test.mp4 -ss 9 -vframes 1 videoscreenshots/test.mp4_cs2.jpg
    ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 41.100 / 56. 41.100
     libavformat    56. 36.100 / 56. 36.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videochunks/test.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       title           : Test
       composer        : Test
       album           : Test
       encoder         : Lavf56.36.100
     Duration: 00:00:10.01, start: 0.000000, bitrate: 520 kb/s
       Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 4:3 DAR 16:9], 436 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 97 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    [swscaler @ 0x648260] deprecated pixel format used, make sure you did set range correctly
    Output #0, image2, to 'videoscreenshots/test_cs2.jpg':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       title           : Test
       composer        : Test
       album           : Test
       encoder         : Lavf56.36.100
       Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 320x240 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc56.41.100 mjpeg
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    frame=    1 fps=0.0 q=3.9 Lsize=N/A time=00:00:00.04 bitrate=N/A
    video:11kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  • Revision 74896 : le paramètre de résolution n’était pas pris en compte

    23 août 2013, par lesage.sylvain@… — Log

    le paramètre de résolution n’était pas pris en compte