Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (38)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (7017)

  • php shell_exec() command pop out error and permission denied ffmpeg

    3 juin 2023, par user3711175

    This is the main index.php file where I run my code to generate a video thumbnail with ffmpeg but it has no lucks at all I have been searching online for a lot of solution but nothing comes out i will be very appreciate if you guys can help me out. The shell_exec() keep giving me error

    



    &#xA;&#xA;&#xA;&#xA;<form action="index.php" method="POST" enctype="multipart/form-data">&#xA;<input type="file" /><input type="submit" value="upload" />&#xA;&#xA;</form>&#xA;&#xA;&lt;?php&#xA;&#xA;if(isset($_POST[&#x27;submit&#x27;])){&#xA;&#xA;&#xA;$ffmpeg = "/Users/mac/Documents/ffmpeg/3.1.4/bin/ffmpeg";&#xA;$videoFile = $_FILES["file"]["tmp_name"];&#xA;$imageFile = "1.jpg";&#xA;$size = "320x240";&#xA;$getFromSecond = 5;&#xA;$cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile 2>&amp;1";&#xA;&#xA;    echo shell_exec($cmd);&#xA;&#xA;&#xA;echo shell_exec(&#x27;whoami&#x27;);&#xA;if(!shell_exec($cmd)){&#xA;&#xA;&#xA;    echo "thumbnail created";&#xA;}else{&#xA;    echo "error creating thumbnail";&#xA;}&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;}&#xA;&#xA;?>&#xA;&#xA;&#xA;&#xA;

    &#xA;

  • Video duration not detected by moviepy

    27 août 2023, par Kyv

    I have downloaded a video online, and wanted to add a background sound to it.&#xA;I followed this link :&#xA;Combining an audio file with video file in python&#xA;But, while reading the file

    &#xA;

    my_clip = mpe.VideoFileClip(&#x27;file.mp4&#x27;)&#xA;

    &#xA;

    I get the error [mov,mp4,m4a,3gp,3g2,mj2 @ 00000152769e78c0] moov atom not found : path/to/file.mp4 Invalid data found when processing input from line 320 in the github resource https://github.com/victorcampos7/tensorflow-ffmpeg/blob/master/ffmpeg_reader.py&#xA;How to overcome this issue ?
    &#xA;The video I am testing on : https://simgool.com/salon/SHY4xAqxVZ

    &#xA;

  • What is the proper input format for drawtext's timecode option in fluent-ffmpeg (node.js) ?

    24 janvier 2023, par Gil Dekel

    I am trying to generate short video clips from 3 images with a simple millisecond counter at the top left per user request. So far I was able to generate the clips using the videoshow npm lib, no issues here.

    &#xA;&#xA;

    However, when I try to add the timer via fluent-ffmpeg's drawtext filter to an already generated video, I run into the following issue.

    &#xA;&#xA;

    Here's what I have so far :

    &#xA;&#xA;

    ffmpeg(&#x27;video.mp4&#x27;)&#xA;    .on(&#x27;error&#x27;, function(err, stdout, stderr) {&#xA;      console.log("ffmpeg stdout:\n" &#x2B; stdout);&#xA;      console.log("ffmpeg stderr:\n" &#x2B; stderr);&#xA;    })&#xA;    .videoCodec(&#x27;libx264&#x27;)&#xA;    .format(&#x27;mp4&#x27;)&#xA;    .fps(fps)&#xA;    .complexFilter([&#xA;        {&#xA;            filter: &#x27;drawtext&#x27;,&#xA;            options: {&#xA;                fontsize: 15,&#xA;                timecode: &#x27;00\:00\:00\:00&#x27;,  //&lt;--- Issue is most likely here&#xA;                fontsize: 32,&#xA;                fontcolor: &#x27;white&#x27;,&#xA;                boxcolor: &#x27;black&#x27;,&#xA;                box: 1&#xA;            }&#xA;        }&#xA;    ]).save(&#x27;out.mp4&#x27;);&#xA;

    &#xA;&#xA;

    From what I found online I am quite convinced that my problem is with the timecode input format. Here's my error log :

    &#xA;&#xA;

    ffmpeg stderr:&#xA;ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers&#xA;  built with Apple LLVM version 9.0.0 (clang-900.0.39.2)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-nonfree&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;video.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf57.83.100&#xA;  Duration: 00:00:01.03, start: 0.000000, bitrate: 585 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x1136 [SAR 923:924 DAR 130:231], 573 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;[Parsed_drawtext_0 @ 0x7f91aa700700] Both text and text file provided. Please provide only one&#xA;[AVFilterGraph @ 0x7f91aa700440] Error initializing filter &#x27;drawtext&#x27; with args &#x27;fontsize=32:timecode=00:00:00:00:fontcolor=white:boxcolor=black:box=1&#x27;&#xA;Error initializing complex filters.&#xA;Invalid argument&#xA;

    &#xA;&#xA;

    Specifically this :

    &#xA;&#xA;

    [Parsed_drawtext_0 @ 0x7f91aa700700] Both text and text file provided. Please provide only one&#xA;

    &#xA;&#xA;

    When I run what should be the equivalent to my code in shell, it works perfectly :

    &#xA;&#xA;

    ffmpeg -i video.mp4 \&#xA;       -vf drawtext="fontsize=15:timecode=&#x27;00\:00\:00\:00&#x27;:rate=60:fontsize=32:fontcolor=&#x27;white&#x27;:\&#xA;           boxcolor=0x000000AA:box=1" \&#xA;       -f mp4 out.mp4&#xA;

    &#xA;&#xA;

    I already spent a whole day trying to find any previous solutions to this problem, or documentation online regarding the proper format of drawtext's timecode option within node.js with no luck. It seems most of the information out there is for bash/shell use. I need to do this programmatically on a server per request, and I just can't find the right example to solve this.

    &#xA;&#xA;

    Any help to resolve this would be appreciated.

    &#xA;