Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (59)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (5946)

  • Avplayer can not play streaming link from youtune on ios 7

    12 septembre 2015, par thaitujim

    I have a problem. Im trying to play audio streamming from youtube response.
    When i fecth youtube to get real Stream audio. And then i get real link

    example in this case is : "https://r6---sn-8qj-nbol.googlevideo.com/videoplayback?id=3c9bf82a23c991cb&itag=140&source=youtube&requiressl=yes&mv=m&ms=au&mm=31&gcr=vn&ratebypass=yes&mime=audio/mp4&gir=yes&clen=3662991&lmt=1394274529113749&dur=230.574&signature=232B6692726E12E9CFAEAC0C3990648710FCAE04.733EBD94E30ED230299CFA2E993577D656E18457&sver=3&fexp=907259,930666,932404,943909,947209,947215,948124,952302,952605,952901,953745,953913,957103,957105,957201&key=dg_yt0&upn=_bm8tftRoZM&mt=1415673491&ip= XXX.XXX.XXX.XXX &ipbits=0&expire=1415695122&sparams=ip,ipbits,expire,id,itag,source,requiressl,mv,ms,mm,gcr,ratebypass,mime,gir,clen,lmt,dur"

    with itag = 140, this link contain only audio format.

    and this problem here.
    when i handle it by Avplayer, i work well on IOS 8 device. but on IOS 7 device. it’s not working. Does Anybody can help me fix it or give me any solution.

    my code is very simple.

    self.mSongPlayer = [[AVPlayer alloc] initWithURL:urlAudio] ;
    self.mSongPlayer play] ;

    with urlAudio link is this link above.

    i tried with normal Stream link. example is : http://www.abstractpath.com/files/audiosamples/sample.mp3
    and it work normaly on same ios7 and ios8.

    thanks everybody.

  • how play ogg/ape/wv/wma using ffmpeg

    25 novembre 2013, par user2361120

    I'm trying decode ogg,ape,wma,wv file formats
    I have posted the code below, but I'm having too much noise at the output

    av_init_packet(&packet);
           fmt_ctx = avformat_alloc_context();

           if ((ret = avformat_open_input(&fmt_ctx, szfile, NULL, NULL)) < 0)
           {
               LOGE("Cannot open input file\n");
           }
           if ((ret = avformat_find_stream_info(fmt_ctx, NULL)) < 0)
           {
               LOGE("Cannot find stream information\n");
           }

           /* select the audio stream */
           ret = av_find_best_stream(fmt_ctx, AVMEDIA_TYPE_AUDIO, -1, -1, &dec, 0);
           if (ret < 0)
           {
               LOGE("Cannot find a audio stream in the input file\n");
           }

           audio_stream_index = ret;
           dec_ctx = fmt_ctx->streams[audio_stream_index]->codec;

           LOGE(" ogg code %d codec id%d\n",AV_CODEC_ID_VORBIS,dec_ctx->codec_id);

           LOGE("avcodec_find_decoder\n");


           dec = avcodec_find_decoder(dec_ctx->codec_id);
                           if (!dec) {

                 __android_log_print(ANDROID_LOG_INFO, "BroovPlayer", "avcodec_find_decoder failed %d Name:%s\n", dec_ctx->codec_id, dec_ctx->codec_name);


                           }


           if ((ret = avcodec_open2(dec_ctx, dec, NULL)) < 0)
           {
               LOGE("Cannot open audio decoder\n");
           }




           //dec_ctx->sample_fmt = AV_SAMPLE_FMT_S16P;
           LOGS("Stage 5 sample fmt %d",dec_ctx->sample_fmt);
           LOGE("Stage 5");
           LOGD("........%d", packet.size);
           while (1)
           {

                  if ((ret = av_read_frame(fmt_ctx, &packet)) < 0)
                  {
                      //LOGE("Stage........... %d",ret);
                      break;
                  }
                  if (packet.stream_index == audio_stream_index)
                  {
                          avcodec_get_frame_defaults(frame);
                          got_frame = 0;
                         // LOGE("file size=%d packet_index=%d",packet.size,packet.dts);


                          ret = avcodec_decode_audio4(dec_ctx, frame, &got_frame, &packet);
                        //  LOGE("len=%d",ret);
                          if (ret < 0)
                          {
                              LOGE("Error decoding audio\n");
                              continue;
                          }

                          if (!got_frame) {
                                       /* stop sending empty packets if the decoder is finished */
                                       if (!packet.data && dec->capabilities & CODEC_CAP_DELAY)
                                           //flush_complete = 1;
                                       continue;
                                   }

                          if (got_frame)
                          {
                              // LOGE("begin frame decode\n");
                               int data_size = av_samples_get_buffer_size(NULL, dec_ctx->channels,frame->nb_samples,dec_ctx->sample_fmt, 1);
                              // LOGE("after frame decode\n");

                               jbyte *bytes = (*env)->GetByteArrayElements(env, array, NULL);
                               memcpy(bytes, frame->data[0], data_size); //
                               (*env)->ReleaseByteArrayElements(env, array, bytes, 0);
                               (*env)->CallVoidMethod(env, obj,play, array, data_size);

                          }
                          packet.size -= ret;
                          packet.data += ret;
                          packet.pts = AV_NOPTS_VALUE;


                    }
             }

                  av_free_packet(&packet);



               when ,i am playing ogg/ape/wv audio file format .



             please help me to minimize the noise, as less as possible

    or if any other approach is there to decode these file formats then please let me know

    thanks

  • FFmpeg using complex filter amerge doesn't play on iOS

    11 juillet 2018, par SilenceKit

    I am using 2 different FFmpeg commands to add audio to a video :
    This adds audio and replace video’s existing audio :

    ffmpeg -i "inputVideo.wmv" -i "inputAudio.mp3" -map 0:v -map 1:a -shortest -vcodec libx264 -preset ultrafast -crf 22 -pix_fmt yuv420p -r 30 "outputVideo.mp4"

    It works fine.

    The problem comes when I try to mix the new audio with the video’s existing audio :

    ffmpeg -i "inputVideo.wmv" -i "inputAudio.mp3" -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map 0:v -map "[a]" -shortest -vcodec libx264 -preset ultrafast -crf 22 -pix_fmt yuv420p -r 30 "outputVideo.mp4"

    The video plays fine everywhere but on iOS. I’ve tried adding -profile:v main -level 3.1 and -profile:v baseline -level 3.1 but no luck either.

    ffmpeg -i "inputVideo.wmv" -i "inputAudio.mp3" -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map 0:v -map "[a]" -shortest -vcodec libx264 -profile:v baseline -level 3.1 -preset ultrafast -crf 22 -pix_fmt yuv420p -r 30 "outputVideo.mp4"

    WHat do I need to do to make the output video play on iOS ?