Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (44)

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

  • working ffmpeg command fails when using in nginx with rtmp module

    7 juin 2017, par Rafael Linux User

    I have a tested code I did in a "bash" file. It works perfect on shell. I change only params to get it to work with nginx rtmp module, but ffmpeg says always and understandable error. This is the code :

    exec_push ffmpeg -re -y -i rtmp://localhost:1935/live/$name  \
                               -c:v libx264 -c:a aac  \
                               -g 24 -keyint_min 24   -preset veryfast -tune zerolatency -movflags +faststart -vsync passthrough  \
                               -filter_complex '[0:v]format=pix_fmts=yuv420p,split=3[in1][in2][in3];[in1]scale=320:-2[320x];[in2]scale=640:-2[HQ640x];[in3]scale=1280:-2[HD1280x];[0:a]aresample=44100[audio]'  \
                               -map '[320x]'       -profile:v baseline -level 3.0 -crf 31 -maxrate 170k -bufsize 170k      -f mp4 rtmp://localhost:1935/rtmp_hls/$name_320x  \
                               -map '[HQ640x]'     -profile:v baseline -level 3.1 -crf 25 -maxrate 1000k -bufsize 1000k    -f mp4 rtmp://localhost:1935/rtmp_hls/$name_HQ640x  \
                               -map '[HD1280x]'    -profile:v main -level 3.1 -crf 19 -maxrate 4000k -bufsize 4000k        -f mp4 rtmp://localhost:1935/rtmp_hls/$name_HD1280x  \
                               -map '[audio]'      -b 128k                                                                 -f mp4 rtmp://localhost:1935/rtmp_hls/$name_audio 2>>/var/www/html/ffmpeg-live-output-$name.log;

    And this is the error launched by mmpeg

    ffmpeg version 3.2.4-1~bpo8+1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --prefix=/usr --extra-version='1~bpo8+1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --disable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    [flv @ 0x55e430547740] video stream discovered after head already parsed
    [flv @ 0x55e430547740] audio stream discovered after head already parsed
    Input #0, flv, from 'rtmp://localhost:1935/live/directo':
     Metadata:
       Server          : NGINX RTMP (github.com/sergey-dryabzhinsky/nginx-rtmp-module)
       displayWidth    : 1280
       displayHeight   : 720
       fps             : 24
       profile         :
       level           :
     Duration: 00:00:00.00, start: 26.023000, bitrate: N/A
       Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 24.42 fps, 24 tbr, 1k tbn, 48 tbc
       Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp
    [NULL @ 0x55e4305e0b40] Unable to find a suitable output format for '
    '

    : Invalid argument

    Does anyone could help me ?

    Thank you

  • Install ffmpeg in MAMP

    19 juin 2017, par David Liu

    I’m trying to use this : https://www.youphptube.com/ to create a video sharing website.

    I’m developing locally using MAMP on macOS Sierra and have installed both ffmpeg and exiftool on the system, but how do I make it work from within the server ? Under "Advanced Configuration" what do I put in "Path to FFMPEG" and "Path to exiftool" ? What is the folder this path is relative to ? I guess this is why the videos I try to upload never start encoding. In "Leave blank for native ffmpeg" what does "native ffmpeg" mean ?

    I already tried putting the absolute paths but it doesn’t work either. I’m getting this error log :

    [19-Jun-2017 13:59:13 America/Panama] "status" :"error", "msg" :["sh : ffprobe : command not found"] ,"return_val":127, "where" :"getDuration", "cmd" :"ffprobe -i /Applications/MAMP/tmp/php/phpq2j0pt -sexagesimal -show_entries format=duration -v quiet -of csv=’p=0’"
    [19-Jun-2017 13:59:13 America/Panama] Duration founded : EE:EE:EE
    [19-Jun-2017 18:59:14 UTC] rm -f /Applications/MAMP/htdocs/platea-3/videos/video2_59481f01ed6179.69459230.jpg && ffmpeg -ss 5 -i /Applications/MAMP/htdocs/platea-3/videos/original_video2_59481f01ed6179.69459230 -qscale:v 2 -vframes 1 -y /Applications/MAMP/htdocs/platea-3/videos/video2_59481f01ed6179.69459230.jpg
    Array
    (
    [0] => sh : ffmpeg : command not found
    )

    So basically I think the server doesn’t find neither ffmpeg nor ffprobe.

    I would appreciate it if someone could take the time to install it as well and take a look. Thanks !

  • Java Xuggler Metadata List of Chapters MP4/M4V Video

    27 juin 2017, par MrSax

    I’m trying to use Xuggler like FFMPEG Metadata Wrapper (I just need the list of Chapters of MP4/M4V Video).

    So far I have not been able to find a solution.
    Can anyone help me ?

    I was only able to get the following information :

       final String filename = "...path...";
       IContainer container = IContainer.make();
       int result = container.open(filename, IContainer.Type.READ, null);
       if (result < 0)
           throw new RuntimeException("Failed to open media file");
       int numStreams = container.getNumStreams();
       long duration = container.getDuration();
       long fileSize = container.getFileSize();
       long bitRate = container.getBitRate();
       System.out.println("Number of streams: " + numStreams);
       System.out.println("Duration (ms): " + duration);
       System.out.println("File Size (bytes): " + fileSize);
       System.out.println("Bit Rate: " + bitRate);
       for (int i = 0; i < numStreams; i++) {
           IStream stream = container.getStream(i);
           IStreamCoder coder = stream.getStreamCoder();
           System.out.println("*** Start of Stream Info ***");
           System.out.printf("stream %d: ", i);
           System.out.printf("type: %s; ", coder.getCodecType());
           System.out.printf("codec: %s; ", coder.getCodecID());
           System.out.printf("duration: %s; ", stream.getDuration());
           System.out.printf("start time: %s; ", container.getStartTime());
           System.out.printf("timebase: %d/%d; ", stream.getTimeBase().getNumerator(),
                   stream.getTimeBase().getDenominator());
           System.out.printf("coder tb: %d/%d; ", coder.getTimeBase().getNumerator(),
                   coder.getTimeBase().getDenominator());
           System.out.println();
           if (coder.getCodecType() == ICodec.Type.CODEC_TYPE_AUDIO) {
               System.out.printf("sample rate: %d; ", coder.getSampleRate());
               System.out.printf("channels: %d; ", coder.getChannels());
               System.out.printf("format: %s", coder.getSampleFormat());
           } else if (coder.getCodecType() == ICodec.Type.CODEC_TYPE_VIDEO) {
               System.out.printf("width: %d; ", coder.getWidth());
               System.out.printf("height: %d; ", coder.getHeight());
               System.out.printf("format: %s; ", coder.getPixelType());
               System.out.printf("frame-rate: %5.2f; ", coder.getFrameRate().getDouble());
           }
           System.out.println();
           System.out.println("*** End of Stream Info ***");

    UPDATE 07.06.2017
    I just tried it with VLCJ, but still I can not get the list of chapters.

       File file = new File("ia_ISL_13_r720P.m4v");

       NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), "vlc64/");
       Native.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), LibVlc.class);

       MediaPlayerFactory mpf = new MediaPlayerFactory();
       EmbeddedMediaPlayer emp = mpf.newEmbeddedMediaPlayer();

       MediaMeta mediaMeta = mpf.getMediaMeta(file.getAbsolutePath(), true);
       MediaMetaData asMediaMetaData = mediaMeta.asMediaMetaData();
       System.out.println(asMediaMetaData.getAlbum());
       System.out.println(asMediaMetaData.getArtist());
       System.out.println(asMediaMetaData.getTitle());

       emp.prepareMedia(file.getAbsolutePath());
       emp.play();
       emp.nextChapter(); // -> GO NEXT CHAPTER - SUCCESS

       List> allChapterDescriptions = emp.getAllChapterDescriptions();

       for (List<string> list : allChapterDescriptions) {
           for (String string : list) {
               System.out.println(string);
           }
       }
    </string>