Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (85)

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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (9482)

  • #/bin/sh in one line

    27 juillet 2012, par GoodGuyGreg

    I'm working on some Haskell project using FFmpeg. I need to batch create from a media folder with MP4 files and create screenshots from all of them. I got the code and am using it on a terminal in Unix. It works, but how do I make it in one line to be executed in system "xxxx" in Haskell ?

    If not using several system"xx"...

    #/bin/sh
    for i in $(ls *.mp4)
    do
       ffmpeg -i $i -vframes 7 -y -ss 10 -s 150x150 -an -sameq -f image2 -r 1/5  $i%1d.jpg
    done

    I tried :

    import System.Cmd
    function = do{system "#/bin/sh";
    system "for i in $(ls *.mp4)";
    system "do";
    system "ffmpeg -i $i -vframes 7 -y -ss 10 -s 150x150 -an -sameq -f image2 -r 1/5  $i%1d.jpg";
    system "done";}

    but it gives a error :

    -vframes: No such file or directory
    /bin/sh: Syntax error: "done" unexpected
  • Xuggler Error : Could Not Open

    22 septembre 2012, par MalTec

    I am using xuggler API to transcode Video from one format to another.

    Following the example, provided by

    http://wiki.xuggle.com/MediaTool_Introduction & http://www.javacodegeeks.com/2011/02/xuggler-tutorial-transcoding-media.html

    public void convertVideo(){

        String sourceUrl=getResourceDirectory()+"/in/AV36_1.AVI";
        String destUrl=getResourceDirectory()+"/out/output.mp4";

        IMediaReader reader = ToolFactory.makeReader(sourceUrl);

           // add a viewer to the reader, to see progress as the media is
           // transcoded
           reader.addListener(ToolFactory.makeViewer(true));

        // create a writer which receives the decoded media from
        // reader, encodes it and writes it out to the specified file
        IMediaWriter writer = ToolFactory.makeWriter(destUrl, reader);

        // add a debug listener to the writer to see media writer events
        writer.addListener(ToolFactory.makeDebugListener());


    ////
    ////        // create the media writer
           reader.addListener(ToolFactory.makeWriter(destUrl, reader));

           // read packets from the source file, which dispatch events to the
           // writer, this will continue until


           while (reader.readPacket() == null)
             do {} while(false);
       }

    Provides Could Not Open Exception :

     Exception in thread "main" java.lang.RuntimeException: could not open: D:\Malhar\project_works\VideoConvertter/resources/in/AV36_1.AVI
       at com.xuggle.mediatool.MediaReader.open(MediaReader.java:637)
       at com.xuggle.mediatool.MediaReader.readPacket(MediaReader.java:434)
       at util.VideoEncoder.convertVideo(VideoEncoder.java:38)
       at ConvertVideo.main(ConvertVideo.java:12)

    Have tried with different file to.. But, the result is same.

  • Convert H.264 Annex B to MPEG-TS

    4 juin 2014, par Lane

    SO...

    I have RAW H.264 video data captured via RTSP in a local file and I am attempting to playback the video in a Java FX application. In order to do this, I need to use Http Live Streaming.

    I have successfully prototyped a Java FX architecture that can play a video via HLS with a local server using a local folder containing a .m3u8 (HLS index) file and collection of .ts (MPEG-TS) files. The last piece for me is to replace the .ts files with .264 / .h264 files and in the local server, perform the conversion / wrapping of the H.264 Annex B data into MPEG-TS.

    I am having trouble figuring out what is required to get H.264 Annex B into MPEG-TS. I have found the following information...

    "Annex B is commonly used in live and streaming formats such as
    transport streams..."

    szatmary.org/blog/25

    "Annex B of of the document specifies one such format, which wraps NAL
    units in a format resembling a traditional MPEG video elementary
    stream, thus making it suitable for use with containers like MPEG
    PS/TS unable to provide the required framing..."

    wiki.multimedia.cx/ ?title=H.264

    "Java FX supports a number of different media types. A media type is
    considered to be the combination of a container format and one or more
    encodings. In some cases the container format might simply be an
    elementary stream containing the encoded data."

    docs.oracle.com/javafx/2/api/javafx/scene/media/package-summary.html

    "Use the CODECS attribute of the EXT-X-STREAM-INF tag. When this
    attribute is present, it must include all codecs and profiles required
    to play back the stream..."

    developer.apple.com/library/ios/documentation/networkinginternet/conceptual/streamingmediaguide/FrequentlyAskedQuestions/FrequentlyAskedQuestions.html

    It seems like I am missing something simple around Elementary and Transport Streams. I have used ffmpeg to convert my H.264 file into a TS file and try to understand the differences. I have an idea of the approximate format differences, but I am still lacking on the details to do it. Does anyone have a link showcasing this or know something simple about how to serve H.264 Annex B data over MPEG-TS ?

    I am not looking to use a tool, I need to have a custom file format locally where I parse out the H.264 Annex B data and perform the format change in memory, on the fly. I know of a way to use ffmpeg with pipes to accomplish this, but I do not want to have any dependencies and performance is important.