Recherche avancée

Médias (91)

Autres articles (52)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (5087)

  • How to capture region screen with Watermark using FFmpeg on Mac ? [duplicate]

    25 janvier 2021, par Yong Ju

    I was tried to capture region screen using FFmpeg on Mac.
So, I ran some command line for it.

    


    ffmpeg -f avfoundation -i "0" -vf "crop=500:500:400:800" -pix_fmt yuv420p -y -r 25 out.mov


    


    Now, I want to capture region screen with watermark.
I don't know how to configure command line for it.
If you have good experience in this field, Please advice me.

    


  • How to create mp4 to multi bitrate hls(.m3u8) Stream With fluent-ffmpeg

    6 janvier 2023, par Vinay Vadachhak
    ffmpeg -hide_banner -y -i beach.mkv \
  -vf scale=w=640:h=360:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod  -b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k -hls_segment_filename beach/360p_%03d.ts beach/360p.m3u8 \
  -vf scale=w=842:h=480:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 1400k -maxrate 1498k -bufsize 2100k -b:a 128k -hls_segment_filename beach/480p_%03d.ts beach/480p.m3u8 \
  -vf scale=w=1280:h=720:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k -hls_segment_filename beach/720p_%03d.ts beach/720p.m3u8 \
  -vf scale=w=1920:h=1080:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 5000k -maxrate 5350k -bufsize 7500k -b:a 192k -hls_segment_filename beach/1080p_%03d.ts beach/1080p.m3u8


    


    Convert this command to fluent-ffmpeg node js :

    


    My Code :

    


    let ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;new ffmpeg()&#xA;        .addInput(&#x27;./public/class.mp4&#x27;)&#xA;        .outputOptions([&#xA;            &#x27;-map 0:v&#x27;,&#xA;            &#x27;-map 0:v&#x27;,&#xA;            &#x27;-map 0:a&#x27;,&#xA;            &#x27;-map 0:a&#x27;,&#xA;            &#x27;-s:v:0 426x240&#x27;,&#xA;            &#x27;-c:v:0 libx264&#x27;,&#xA;            &#x27;-b:v:0 400k&#x27;,&#xA;            &#x27;-c:a:0 aac&#x27;,&#xA;            &#x27;-b:a:0 64k&#x27;,&#xA;            &#x27;-s:v:1 640x360&#x27;,&#xA;            &#x27;-c:v:1 libx264&#x27;,&#xA;            &#x27;-b:v:1 700k&#x27;,&#xA;            &#x27;-c:a:1 aac&#x27;,&#xA;            &#x27;-b:a:1 96k&#x27;,&#xA;            //&#x27;-var_stream_map&#x27;, &#x27;"v:0,a:0 v:1,a:1"&#x27;,&#xA;            &#x27;-master_pl_name playlist.m3u8&#x27;,&#xA;            &#x27;-f hls&#x27;,&#xA;            &#x27;-max_muxing_queue_size 1024&#x27;,&#xA;            &#x27;-hls_time 4&#x27;,&#xA;            &#x27;-hls_playlist_type vod&#x27;,&#xA;            &#x27;-hls_list_size 0&#x27;,&#xA;            &#x27;-hls_segment_filename ./public/output/v%v/segment%03d.ts&#x27;&#xA;        ])&#xA;        .output(&#x27;./public/output/v%v/master.m3u8&#x27;)&#xA;        .on(&#x27;start&#x27;, function (commandLine) {&#xA;            console.log(&#x27;Spawned Ffmpeg with command: &#x27; &#x2B; commandLine);&#xA;            res.write(&#x27;<p>&#x27; &#x2B; commandLine &#x2B; &#x27;</p>&#x27;);&#xA;        })&#xA;        .on(&#x27;error&#x27;, function (err, stdout, stderr) {&#xA;            console.error(&#x27;An error occurred: &#x27; &#x2B; err.message, err, stderr);&#xA;            res.write(&#x27;<p>&#x27; &#x2B; err.message &#x2B; &#x27;</p>&#x27;);&#xA;        })&#xA;        .on(&#x27;progress&#x27;, function (progress) {&#xA;            console.log(&#x27;Processing: &#x27; &#x2B; progress.percent &#x2B; &#x27;% done&#x27;);&#xA;            console.log(progress);&#xA;            /*percent = progress.percent;&#xA;            res.write(&#x27;<h1>&#x27; &#x2B; percent &#x2B; &#x27;</h1>&#x27;);*/&#xA;        })&#xA;        .on(&#x27;end&#x27;, function (err, stdout, stderr) {&#xA;            console.log(&#x27;Finished processing!&#x27; /*, err, stdout, stderr*/);&#xA;            res.write(&#x27;Finished processing!&#x27;);&#xA;        })&#xA;        .run();&#xA;

    &#xA;

    This code generate only one bitrate .m3u8 stream.

    &#xA;

    I have tried many ways to generate multi bitrate hls stream through node js but always generate single bitrate.&#xA;i have tried bash command and that was work fine, now i want to convert this command to nodejs script.

    &#xA;

    Is any one have idea about this ?

    &#xA;

  • Resize/cut video to a certain region

    18 mars 2023, par user3

    I have a series of videos (like 7k videos) in which I have to make a cut. Basically they are videos of people talking, and I have to cut said video and keep only the part of the lips.

    &#xA;

    Does anyone know how to cut them ? I need to be able to automate it

    &#xA;

    I'm looking for a command line software, where you can enter the coordinates and generates the new cropped video.

    &#xA;

    Is it possible to do it maybe with ffmpeg ? I couldn't find a way yet

    &#xA;

    Thank you !!!

    &#xA;

    I have tried to do it using ffmpeg, but I couldn't find the way to introduce the region (by coordinates) which I want cut

    &#xA;