Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (3)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • ANNEXE : Les extensions, plugins SPIP des canaux

    11 février 2010, par

    Un plugin est un ajout fonctionnel au noyau principal de SPIP. MediaSPIP consiste en un choix délibéré de plugins existant ou pas auparavant dans la communauté SPIP, qui ont pour certains nécessité soit leur création de A à Z, soit des ajouts de fonctionnalités.
    Les extensions que MediaSPIP nécessite pour fonctionner
    Depuis la version 2.1.0, SPIP permet d’ajouter des plugins dans le répertoire extensions/.
    Les "extensions" ne sont ni plus ni moins que des plugins dont la particularité est qu’ils se (...)

  • 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 ; (...)

Sur d’autres sites (2029)

  • writting mp4 file from binary string python

    25 avril 2016, par Irakli Mchedlishvili

    I have a Binary string of mp4 video file and want to convert it back to mp4 file, to get single frame out of there with openCV library

    import cv2
    import tempfile

    temp_path = tempfile.gettempdir()
    video_binary_string = 'AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAQC0ttZGF0AQIUGRQmM...'

    with open(temp_path+'/video.mp4', 'wb') as wfile:
      wfile.write(video_binary_string)
    cap = cv2.VideoCapture(temp_path+'/video.mp4')
    success, frame = cap.read()

    print success
    >>> False

    If frame was read correctly, it would be True

    I understand that this is not the correct way of writing video file. I tried to do it with FFMPEG but I can’t understand it’s documentation.

    Please give an example with simple explanations how to convert binary string back to video, with this or other way.

  • ffmpeg make thumbnail and compress in one command

    9 juin 2021, par chris227

    I want to compress a video and make thumbnail on same command but it's not working. It makes compression, it creates the log file but not the thumbnail, here is my php command :

    


     $command = "/usr/bin/ffmpeg -i $targetFilePathPrefix -b:v 700k -bufsize 700k /home/etwow8083/public_html/worldconnect.me/community/uploads/$idUser/$fileNameConvert -ss 00:00:01.000 -vframes 1 $thumbnail 1> /home/etwow8083/public_html/worldconnect.me/community/uploads/$idUser/$fileOutput 2>&1 &";
exec($command);


    


  • Overlay image in ts file

    12 juin 2015, par good-engineer

    I’m using the FFmpeg library in Android.

    I’m able to generate a .ts file which i can play later using VLC player. But now i want my app to overlay a .png image over the whole video.

    The .ts file i want to overlay an image in is called "out.ts". The name might seem confusing, but it is called that way because it is the output of my camera.

    This is the line i’m using :

    ffmpeg -i /storage/emulated/0/out.ts -i /storage/emulated/0/mustache.png -filter_complex "overlay=10:10" /storage/emulated/0/newout.ts

    This is the output i’m receiving :

       ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
    built on Oct  7 2014 15:08:46 with gcc 4.8 (GCC)
    configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    libavutil      54.  7.100 / 54.  7.100
    libavcodec     56.  1.100 / 56.  1.100
    libavformat    56.  4.101 / 56.  4.101
    libavdevice    56.  0.100 / 56.  0.100
    libavfilter     5.  1.100 /  5.  1.100
    libswscale      3.  0.100 /  3.  0.100
    libswresample   1.  1.100 /  1.  1.100
    libpostproc    53.  0.100 / 53.  0.100
    Input #0, mpegts, from '/storage/emulated/0/out.ts':
    Duration: 00:00:02.79, start: 0.000000, bitrate: 1118 kb/s
    Program 1
    Stream #0:0[0x1e1]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x480, 32 tbr, 90k tbn, 180k tbc
    Input #1, png_pipe, from '/storage/emulated/0/mustache.png':
    Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, ya8, 1848x580 [SAR 2835:2835 DAR 462:145], 25 tbr, 25 tbn, 25 tbc
    [AVFilterGraph @ 0x2b411ec0] No such filter: '"overlay'
    Error configuring filters.

    Some explaination on how to tell ffmpeg where to position the .png image would be appreciated.