Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (36)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (4746)

  • FFMPEG Cannot Init CUDA

    7 novembre 2016, par Alan

    I am working to install ffmpeg with hardware GPU support on a Xenserver virtual server (Ubuntu 16.04). I am following the guide from : http://developer.download.nvidia.com/compute/redist/ffmpeg/1511-patch/FFMPEG-with-NVIDIA-Acceleration-on-Ubuntu_UG_v01.pdf

    While updating the directions for the newest versions of the SDK and versions for 16.04. I have everything built and all seems fine when doing version checks :

    ffmpeg version N-82277-ge2193b5 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
     configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
    --extra-cflags=-I/root/ffmpeg_build/include
    --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac
    --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
    --enable-libx264 --enable-libx265 --enable-libvidstab --enable-nonfree --enable-nvenc

    #nvcc --version
    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2015 NVIDIA Corporation
    Built on Tue_Aug_11_14:27:32_CDT_2015
    Cuda compilation tools, release 7.5, V7.5.17

    When I try doing the test using the GPU I get this :

    #time ffmpeg -y -i 337.mp4 -vcodec h264_nvenc -b:v 5M -acodec copy OUTPUT.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '337.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.25.101
     Duration: 00:00:22.74, start: 0.000000, bitrate: 537 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 1:1 DAR 3:2], 434 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 96 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    modprobe: ERROR: could not insert 'nvidia_367_uvm': No such device
    [h264_nvenc @ 0x3da6400] Cannot init CUDA
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
     Stream #0:1 -> #0:1 (copy)
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    In particular I get an error [h264_nvenc @ 0x3da6400] Cannot init CUDA

    I can’t seem to find any info on this. I am not running any desktop GUI, strictly command line trying to accelerate video encoding with a Nvidia GTX 960.

  • Video won't play on iphone

    18 octobre 2016, par Merc

    I have an app that places videos online, and cannot find a way to get iPhones to actually play them.

    ffprobe says :

     merc@mercs-thinkpad:/disk/home/merc/Downloads$ ffprobe 5801005ff1861ba1729757fbffprobe version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2007-2016 the FFmpeg developers
       built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 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
       WARNING: library configuration mismatch
       avcodec     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 --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
       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
     Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '5801005ff1861ba1729757fb':
       Metadata:
         major_brand     : isom
         minor_version   : 512
         compatible_brands: isomiso2avc1mp41
         encoder         : Lavf57.50.100
       Duration: 00:00:12.37, start: 0.021333, bitrate: 993 kb/s
         Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 928 kb/s, 29.83 fps, 29.83 tbr, 11456 tbn, 59.67 tbc (default)
         Metadata:
           handler_name    : VideoHandler
         Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 70 kb/s (default)
         Metadata:
           handler_name    : SoundHandler

    The video is here

    The file was created using ffmpeg from within the app.

    Is this a codec problem ? What shall I do to make sure iPhones can actually play them ?

  • Error opening filters : Running ffmpeg through Groovy and ProcessBuilder

    30 octobre 2016, par smeeb

    This question involves the popular Linux media processing utility "ffmpeg", but I think its really a Java 8 ProcessBuilder question at its core. Or possibly an issue w/ Groovy GStrings.

    The ffmpeg command to split an MP4 video into frames/images based on a sampling rate is :

    ffmpeg -i /some/path/to/video.mp4 -vf "select=not(mod(n\,${samplingRate}))" -vsync vfr -q:v 2 img_%d.jpg

    Where ${samplingRate} is a positive integer and represents the number of frames to skip in between creating each frame. So for instance, if you had a video with 430 frames in it, and wanted to sample every 50th frame, your command would be :

    ffmpeg -i /some/path/to/video.mp4 -vf "select=not(mod(n\,50))" -vsync vfr -q:v 2 img_%d.jpg

    Which would then create 8 (or maybe 9, not gonna do the math for a pretend example) JPG files called img_1.jpg, img_2.jpg, ...etc. The first image would be the 50th frame in the video. The second image would be the 100th frame, etc. I have ran the above command directly from a terminal and confirmed that it is correct and succeeds without errors.

    I have a Groovy app, and am trying to run this ffmpeg command via a Java 8 ProcessBuilder, and am having issues with the select= argument. Currently I have :

    int numSamples = 50
    Process frameSamplerProc = new ProcessBuilder(
       'ffmpeg',
       '-i',
       "/home/myuser/some/path/to/video.mp4",
       '-vf',
       "\"select=not(mod(n\\,${numSamples}))\"",
       '-vsync',
       'vfr',
       '-q:v',
       '2',
       'sample%d.jpg'
    ).redirectErrorStream(true).start()

    frameSamplerProc.inputStream.eachLine { fsamplerLine ->
       println(fsamplerLine)
    }

    When I run thise code, I don’t get any errors, but I do see errors in ffmpeg’s output :

    ffmpeg version N-81995-gd790e48 Copyright (c) 2000-2016 the FFmpeg developers
    // Omitting the next ~50 lines of output as it all looks normal

    Metadata:
     creation_time   : 2016-10-27T20:20:01.000000Z
     handler_name    : SoundHandle
    [AVFilterGraph @ 0x3eddc80] No such filter: '"select'
    Error opening filters!

    I’m wondering if I’m not escaping the select argument properly or if I’m passing in a bad array to the ProcessBuilder. Can anybody spot where I’m going awry ?