Recherche avancée

Médias (91)

Autres articles (59)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (7871)

  • mp4 created by ffmpeg will not play with IPython.display.Video

    19 novembre 2020, par Austin

    I'm creating a mp4 video from jpegs with ffmpeg, using the following command :

    


    ffmpeg -y -threads 0 -f image2 -i jpegs/%05d.jpg -framerate 10 video.mp4

    


    The resulting video will play fine with VLC, but will not play in a Jupyter notebook via :

    


    from IPython.display import Video
Video('video.mp4')


    


    This notebook video functionality has worked for me in the past, so I assume there's something about the codec/mime type that the Video function can't resolve ?

    



    


    Requested update

    


    New command I've tried :

    


    ffmpeg -y -framerate 10 -i jpegs/%05d.jpg -vf format=yuv420p -movflags +faststart video.mp4

    


    Video still plays fine in VLC and still does not play in Jupyter. I've looked at the duplicates this is marked as and it does not actually seem to be the same issue..

    


    Here's the output (I've removed the framerate and threads flags to simplify) :

    


    algo-1-poqk5_1  | 2020-11-18 21:19:36 [INFO]: ffmpeg output:
algo-1-poqk5_1  | 2020-11-18 21:19:36 [INFO]: ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
algo-1-poqk5_1  |   built with gcc 7.2.0 (crosstool-NG fa8859cb)
algo-1-poqk5_1  |   configuration: --prefix=/opt/conda --cc=/opt/conda/conda-bld/ffmpeg_1531088893642/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-shared --enable-static --enable-zlib --enable-pic --enable-gpl --enable-version3 --disable-nonfree --enable-hardcoded-tables --enable-avresample --enable-libfreetype --disable-openssl --disable-gnutls --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --disable-libx264
algo-1-poqk5_1  |   libavutil      56. 14.100 / 56. 14.100
algo-1-poqk5_1  |   libavcodec     58. 18.100 / 58. 18.100
algo-1-poqk5_1  |   libavformat    58. 12.100 / 58. 12.100
algo-1-poqk5_1  |   libavdevice    58.  3.100 / 58.  3.100
algo-1-poqk5_1  |   libavfilter     7. 16.100 /  7. 16.100
algo-1-poqk5_1  |   libavresample   4.  0.  0 /  4.  0.  0
algo-1-poqk5_1  |   libswscale      5.  1.100 /  5.  1.100
algo-1-poqk5_1  |   libswresample   3.  1.100 /  3.  1.100
algo-1-poqk5_1  |   libpostproc    55.  1.100 / 55.  1.100
algo-1-poqk5_1  | Input #0, image2, from '/opt/ml/model/outputs/01-IR.mp4_1/%05d.jpg':
algo-1-poqk5_1  |   Duration: 00:00:12.00, start: 0.000000, bitrate: N/A
algo-1-poqk5_1  |     Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
algo-1-poqk5_1  | Stream mapping:
algo-1-poqk5_1  |   Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
algo-1-poqk5_1  | Press [q] to stop, [?] for help
algo-1-poqk5_1  | [swscaler @ 0x55b8cc6fcc40] deprecated pixel format used, make sure you did set range correctly
algo-1-poqk5_1  | Output #0, mp4, to '/opt/ml/model/outputs/01-IR.mp4_1/video.mp4':
algo-1-poqk5_1  |   Metadata:
algo-1-poqk5_1  |     encoder         : Lavf58.12.100
algo-1-poqk5_1  |     Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
algo-1-poqk5_1  |     Metadata:
algo-1-poqk5_1  |       encoder         : Lavc58.18.100 mpeg4
algo-1-poqk5_1  |     Side data:
algo-1-poqk5_1  |       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
algo-1-poqk5_1  | frame=   31 fps=0.0 q=31.0 size=     768kB time=00:00:01.20 bitrate=5242.8kbits/s speed=2.33x    
algo-1-poqk5_1  | frame=   64 fps= 63 q=31.0 size=    1280kB time=00:00:02.52 bitrate=4161.0kbits/s speed=2.48x    
algo-1-poqk5_1  | frame=   98 fps= 64 q=31.0 size=    1792kB time=00:00:03.88 bitrate=3783.5kbits/s speed=2.53x    
algo-1-poqk5_1  | frame=  131 fps= 64 q=31.0 size=    2304kB time=00:00:05.20 bitrate=3629.7kbits/s speed=2.55x    
algo-1-poqk5_1  | frame=  164 fps= 64 q=31.0 size=    2560kB time=00:00:06.52 bitrate=3216.5kbits/s speed=2.56x    
algo-1-poqk5_1  | frame=  198 fps= 65 q=31.0 size=    3072kB time=00:00:07.88 bitrate=3193.6kbits/s speed=2.58x    
algo-1-poqk5_1  | frame=  232 fps= 65 q=31.0 size=    3328kB time=00:00:09.24 bitrate=2950.6kbits/s speed= 2.6x    
algo-1-poqk5_1  | frame=  266 fps= 66 q=31.0 size=    3840kB time=00:00:10.60 bitrate=2967.7kbits/s speed=2.62x    
algo-1-poqk5_1  | frame=  299 fps= 66 q=31.0 size=    4096kB time=00:00:11.92 bitrate=2815.0kbits/s speed=2.62x    
algo-1-poqk5_1  | [mp4 @ 0x55b8cc658900] Starting second pass: moving the moov atom to the beginning of the file
algo-1-poqk5_1  | frame=  300 fps= 65 q=31.0 Lsize=    4202kB time=00:00:11.96 bitrate=2877.9kbits/s speed=2.61x    
algo-1-poqk5_1  | video:4199kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.052020%


    


  • avfilter/avf_showfreqs : implement phase display

    26 novembre 2020, par Paul B Mahol
    avfilter/avf_showfreqs : implement phase display
    
    • [DH] doc/filters.texi
    • [DH] libavfilter/avf_showfreqs.c
  • FFMPEG throws error can not open display error for :1

    2 décembre 2020, par Krishna

    i am using Xvfb for starting X server on display 1 and x11vnc is also set for -display :1 along with fluxbox as window manager on Ubuntu 20.04 LTS like using below commands

    


    sudo -i -u ubuntu Xvfb :1 +extension GLX -screen 0 1440x1080x16 -ac sudo -i -u ubuntu DISPLAY=:1 fluxbox sudo -i -u ubuntu x11vnc -forever -display :1

    


    and when i run command : "ffmpeg -video_size 1440x1080 -framerate 25 -f x11grab -i :1.0 -c:v libx264rgb -crf 0 -preset ultrafast sample.mp4" it runs, however when i execute programmatically through processbuilder i see that in output buffer stream log file as :1 : Invalid argument and doesn't start recording,

    


    Command sent to processBuilder is like below :

    


    pb = new ProcessBuilder(ffmpegLocation, "-video_size", "1440x1080x16",
"-f", "x11grab", "-i", ":1", "-c:v libx264 -crf 0 -preset ultrafast", "-framerate","25", outputfilepath()) ;

    


    -FYI i have tried setting environmental variable as export DISPLAY=:1 , but still same error and also do i need to set the DISPLAY=:1, since i am setting up display number when i start Xvfb ? this used to work using avconv on older version of ubuntu but i am stuck on display issue for ffmpeg, anyone has idea how to resolve this ?