Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (86)

  • 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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (11391)

  • How to update this script to generate HLS video with different resolution streams ? [closed]

    1er décembre 2023, par Andy Z

    I have the following FFmpeg script :

    


    ffmpeg -i video.mp4 -i video.vtt \
 -map 0:v -map 0:a:0 -map 1 \
 -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \
 -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \
 -f hls -hls_playlist_type vod -var_stream_map "v:0,a:0,s:0" \
 -master_pl_name video.m3u8 -hls_time 6 -hls_list_size 0 -hls_allow_cache 1 -start_number 1 \
 -hls_segment_filename "output/hls/%v/seg-%d.ts" output/hls/%v/index.m3u8


    


    Currently it only produces one 1080x1920 stream, how do I produce more lower resolution ones so it can adjust based on client bandwidth ?

    


    Also, I've noticed that it doesn't add the reference to the VTT file to the master HLS playlist ; I had to add this manually but is there a way to make FFmpeg do it for me ?

    


    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="en",CHARACTERISTICS="public.accessibility.transcribes-spoken-dialog",URI="0/index_vtt.m3u8"


    


    I've tried this, but I get an argument error :

    


    ffmpeg -i video.mp4 -i video.vtt \
 -map 0:v -map 0:a:0 -map 1 \
 -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \
 -s:v:1 720x1280 -c:v:1 h264 -b:v:1 300K \
 -s:v:2 480x854 -c:v:2 h264 -b:v:2 150K \
 -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \
 -f hls -hls_playlist_type vod -var_stream_map "v:0,a:0,s:0 v:1,a:1 s:1 v:2,a:2 s:2" \
 -master_pl_name video.m3u8 -hls_time 6 -hls_list_size 0 -hls_allow_cache 1 -start_number 1 \
 -hls_segment_filename "output/hls/%v/seg-%d.ts" output/hls/%v/index.m3u8


    


  • JavaCPP BytePointer OutOfMemory Error

    20 septembre 2016, par Tunahan Bayındır

    Sorry for bad English, not a native speaker.

    I am using sourab-sharma’s TouchToRecord library, available on github, I updated javacv and javacpp and now app crashes on video record with,

    java.lang.OutOfMemoryError: Cannot allocate 267850262 + 614403 bytes (> Pointer.maxBytes)
       at org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:446)
       at org.bytedeco.javacpp.Pointer.init(Pointer.java:118)
       at org.bytedeco.javacpp.BytePointer.allocateArray(Native Method)
       at org.bytedeco.javacpp.BytePointer.<init>(BytePointer.java:82)
       at org.bytedeco.javacv.FFmpegFrameFilter.pushImage(FFmpegFrameFilter.java:265)
       at org.bytedeco.javacv.FFmpegFrameFilter.push(FFmpegFrameFilter.java:252)
       at org.bytedeco.javacv.FFmpegFrameFilter.push(FFmpegFrameFilter.java:248)
       at com.dodo.challenger.videorecorder.RecorderThread.processBytesUsingFrame(RecorderThread.java:186)
       at com.dodo.challenger.videorecorder.RecorderThread.processFramesFromList(RecorderThread.java:84)
       at com.dodo.challenger.videorecorder.RecorderThread.run(RecorderThread.java:59)
    </init>

    this. Have been working on 8 straight hours, no luck yet.

    JavaCpp version was : 1.1 - now : 1.2.4,

    JavaCv version was : 1.1 - now : 1.2.1

    Also this message appears on error trace just in version 1.2.4, below don’t have it.

    No implementation found for long org.bytedeco.javacpp.Pointer.physicalBytes()
  • Subtitles in video with NodeJS and FFMpeg Fluent Api

    23 juillet 2016, par João Santiago

    I try to include subtitles (srt) in na vídeo stream with Node JS and FFMpeg... I’m try this away :

    var command = ffmpeg(file.createReadStream())
       .input("C:\\code.srt").videoCodec('copy')
     .videoCodec('libvpx').audioCodec('libvorbis').format('webm')
     .audioBitrate(128)
     .videoBitrate(1024)
       .inputFPS(75)
     .outputOptions([
       '-deadline realtime',
       '-error-resilient 1'
     ])

    And I got this error :

    [Error: ffmpeg exited with code 1: Encoder (codec none) not found for output stream #0:2

    Try this too, with —vf subititles= of documentation of FFMpeg and I’ve got this error :

    var command = ffmpeg(file.createReadStream())
         .videoCodec('libvpx').audioCodec('libvorbis').format('webm')
         .audioBitrate(128)
         .videoBitrate(1024)
           .inputFPS(75)
         .outputOptions([
           '-deadline realtime',
           '-vf subtitles=C:\\code.srt',
           '-error-resilient 1'
         ])

    Error: ffmpeg exited with code 1: Error opening filters!

    Someone knows a away of embed subtitles in vídeo with FFMpeg Fluent Api in Node.JS

    Sorry my English, I’m Brazilian ! Thank’s so much