Recherche avancée

Médias (91)

Autres articles (101)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (7421)

  • 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

  • Files dissapearing with ffmpeg recursive conversion

    13 août 2014, par CaRoXo

    I started in askubuntu, asking for a way to convert recursively more than 14K of wma to mp3 extracting the wma files path from a txt file.
    There was an answer that could cover my needs, but a bug appears. The first run with some hundreds worked ok. The second, some wma albums got converted, others entirely deleted. There were some modifications. And last time completely, deleted all wma without converting.

    this was the original script

    #!/usr/bin/env bash

    readarray -t files &lt; wma-files.txt

    for file in "${files[@]}"; do
       out=`echo $file | sed "s:wma:mp3:"`
       probe=`avprobe -show_streams "$file" 2>/dev/null`
       rate=`echo "$probe" | grep "bit_rate" | sed "s:.*=\(.*\)[0-9][0-9][0-9][.].*:\1:"`
       avconv -i "$file" -ab "$rate"k "$out"
       rm "$file"
    done

    Then the adaptation with ffmpeg

    #!/usr/bin/env bash

    readarray -t files &lt; wma-files.txt

    for file in "${files[@]}"; do
       out=`echo $file | sed "s:wma:mp3:"`
       probe=`avprobe -show_streams "$file" 2>/dev/null`
       rate=`echo "$probe" | grep "bit_rate" | sed "s:.*=\(.*\)[0-9][0-9][0-9][.].*:\1:"`
       ffmpeg -i "$file" -ab "$rate"k "$out" &amp;&amp; rm "$file"
    done

    With the first one I converted many files. Other just get deleted. The ones deleted were always the same release (so, all tracks from a release). I can listen, and even convert them with Soundkonverter.

    Both of them produces "no such file of directory" and when this happens, everything get deleted.

    The partition where files are stored is a usb HDD ntfs, but also happens in my ext4 internal HD.
    Im under Xubuntu 14.04

    Here the script running with avconv (wich what i managed to convert some, but other get dissapeared) http://pastebin.com/w5weqEws and with ffmpeg (that didn’t convert any) http://pastebin.com/3QkaPzvW

    I can’t find differences between successfully and deleted original wma’s. But for example, while other progs like beets read and write the tags, puddletag and mp3tag (under wine) don’t, until I converted them with soundkonverter.

    As the person trying to help me there redirect me here on the original post http://askubuntu.com/questions/508278/how-to-use-ffmpeg-to-convert-wma-to-mp3-recursively-importing-from-txt-file/508304#508304
    Im here asking for any help to make run an script like this. Or any to use ffmpeg to convert recursively the audio files. My capacity of understanding is short for being able to make something working just reading the docs.

    So I ask a help to run this. If I miss any relevant information, just tell me.

    NOTE : I want to add that doing the conversion with

    for file in "${files[@]}"; do
       out=`echo "$file" | sed s:wma:mp3:`
       avconv -i "$file" -ab 192k "$out"
       rm "$file"
    done

    It works in the same files (the ones that are deleted with the other). Only that it makes everything to 192k, so not good if Im converting lower bitrate ones. And get this error "Application provided invalid, non monotonically increasing dts to muxer in stream 0" that seems something typical from avconv in 14.04. With ffmpeg I cant try becouse I don’t find the way how to use it, even out of the script. I really don’t understand the docs seems
    .

    NOTE2 : This is a mediainfo exit from :

    1- A typical wma that get dissapeared always with the script

    Audio
    ID                                       : 1
    Format                                   : WMA
    Format version                           : Version 2
    Codec ID                                 : 161
    Codec ID/Info                            : Windows Media Audio
    Description of the codec                 : Windows Media Audio 9 - 128 kbps, 44 kHz, stereo 1-pass CBR
    Duration                                 : 2mn 25s
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 KHz
    Bit depth                                : 16 bits
    Stream size                              : 2.21 MiB (99%)
    Language                                 : English (US)

    2- A Wma that got succesfully converted (yes Im using copies now, I cant risk specially some rares audios that I got on the road)

    Audio
    ID                                       : 1
    Format                                   : WMA
    Format version                           : Version 2
    Codec ID                                 : 161
    Codec ID/Info                            : Windows Media Audio
    Description of the codec                 : Windows Media Audio 9 - 128 kbps, 44 kHz, stereo 1-pass CBR
    Duration                                 : 4mn 35s
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 KHz
    Bit depth                                : 16 bits
    Stream size                              : 4.21 MiB (99%)
    Language                                 : English (US)

    So, as I don’t see difference, but maybe, I’m losing any data to look into ?