Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (58)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • 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

Sur d’autres sites (5972)

  • FFmpeg record live stream and make mp4 file closer to now to play at html5 video and should updated quickly

    17 novembre 2016, par Angel

    Now I am developing video clipping system with PHP and FFMpeg.
    Recording live stream from media server with rtmp protocol.
    Let’s suppose we are recording football and I want make highlight soon.
    so I can see live streams and also able to clip video.
    Please help me if anyone have idea.

    Reference URL : https://www.youtube.com/watch?v=x61rge3Q3mw

    Thank you.
    Angel

  • Play mp3 data with audiotrack with ffmpeg

    1er février 2014, par Ichigo Kurosaki

    I am designing an android app where i receive live mp3 data as stream from Red5 server and i need to play it.

    I cant play it using media player class as i don't have any url for the stream, nor i cant use files. Another option is to use Audio track class, but requires PCM data only. So need to convert mp3 to pcm, so using ffmpeg.

    My code for conversion is

    AVCodec *codec;
    AVCodecContext *c= NULL;
    int out_size, len;
    uint8_t *outbuf;

    int iplen=(*env)->GetArrayLength(env, mp3buf);
    int16_t inbuf[AUDIO_INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
    AVPacket avpkt;
    av_init_packet(&avpkt);
    av_register_all();
    avcodec_register_all();

    codec = avcodec_find_decoder(CODEC_ID_MP3);
    if(!codec){
       __android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "Codec not found");
    }
    c = avcodec_alloc_context();
    outbuf = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
    avpkt.data = (*env)->GetByteArrayElements(env,mp3buf,NULL);

    avpkt.size = (*env)->GetArrayLength(env, mp3buf);
    out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
    int ao=avcodec_open(c, codec);
       if (ao < 0) {
           __android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "avcodec not open");
       }
       len = avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);

    The Problem is avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt); returns -1 always.

    Cant figure out whats wrong.

    Any help appreciated.

  • Play RTMP video stream on Android using JavaCV+FFmpeg

    6 février 2014, par 0_ll_0

    I know I can use FFmpeg+JavaCV for live rtmp streaming from Android to Wowza or Red5 server. Now I want to do the opposite.
    I found out that I can grab video from file using FFmpeg like this

    FFmpegFrameGrabber frameGrabber =
               new FFmpegFrameGrabber(file.getAbsolutePath());

       IplImage captured_frame = null;

       FrameRecorder recorder = null;
       recorder = new FFmpegFrameRecorder("/mnt/sdcard/external_sd/videosteste/primeiroteste.mp4", 300, 300);
       recorder.setVideoCodec(13);
       recorder.setFrameRate(30);
       recorder.setFormat("mp4");
       try {
           recorder.start();
           frameGrabber.start();
           while (true) {
               try {
                   captured_frame = frameGrabber.grab();

                   if (captured_frame == null) {
                       System.out.println("!!! Failed cvQueryFrame");
                       break;
                   }
                   recorder.record(captured_frame);
               } catch (Exception e) {
               }
           }
           recorder.stop();
           recorder.release();
       } catch (Exception e) {
           e.printStackTrace();
       }

    My aim is to play a video from live rtmp stream ("rtmp ://.../live/channelname/broadcast") on Android using FFmpeg, VideoView and also with audio output. Is it possible ? I found solution like this but I do not want to use webview. Also I found a lot of other questions here, at stackoverflow, but they are mostly unanswered and I still do not have clear solution.
    Code samples are preferable. Thanks !