Recherche avancée

Médias (0)

Mot : - Tags -/configuration

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (70)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6078)

  • ffmpeg universal audio decoder failing on certain wma files

    6 septembre 2016, par Steve M

    I’m trying to build a small universal audio decoding library that decodes the file a frame at a time. I’ve built a command line static ffmpeg that I can exec that works on every file format I have tested. Now I am trying to build a shared library version, so I can directly decode frame by frame. I seem to have success, except it is failing on certain WMA files. FFprobe of a file that is failing (file plays on every music player, and command line ffmpeg with same build configuration shows no problems) :

    Input #0, asf, from 'a.wma':
     Metadata:
       WM/Track        : 0
       track           : 1
       WM/MediaPrimaryClassID: {D1607DBC-E323-4BE2-86A1-48A42A28441E}
       WM/EncodingTime : 2139839136
       WMFSDKVersion   : 11.0.5721.5145
       WMFSDKNeeded    : 0.0.0.0000
       AverageLevel    : 10107
       PeakValue       : 32673
       IsVBR           : 0
       DeviceConformanceTemplate: M0
       WM/WMADRCPeakReference: 32766
       WM/WMADRCPeakTarget: 32766
       WM/WMADRCAverageReference: 12733
       WM/WMADRCAverageTarget: 12733
     Duration: 00:00:29.94, start: 0.000000, bitrate: 50 kb/s
       Stream #0:0: Audio: wmapro (b[1][0][0] / 0x0162), 44100 Hz, stereo, fltp, 48 kb/s

    Here’s my code for initializing and opening file and the decode function :

    FFMpegAudioDecoder::FFMpegAudioDecoder(int samplerate) : len(0), index(0), samplerate(samplerate)
    {
       av_register_all();
       avformat_network_init();
       pFormatCtx = avformat_alloc_context();
    }
    const char* FFMpegAudioDecoder::open(const char *path, bool metaOnly, int offset, int length)
    {
       const char* error = "File could not be opened";
       //this->path = path;
       if(avformat_open_input(&pFormatCtx,path,NULL,NULL)!=0){
               return error;
       }
       if(avformat_find_stream_info(pFormatCtx,NULL)<0){
               return error;
       }
       // Dump valid information onto standard error
       //av_dump_format(pFormatCtx, 0, path, false);

       // Find the best audio stream
       audioStream = av_find_best_stream(pFormatCtx, AVMEDIA_TYPE_AUDIO, -1, -1, nullptr, 0);

       if(audioStream < 0){
           return error;
       }
       pCodecCtx=pFormatCtx->streams[audioStream]->codec;

       // Find the decoder for the audio stream
       pCodec=avcodec_find_decoder(pCodecCtx->codec_id);
       if(pCodec==NULL){
           return error;
       }

       // Open codec
       if(avcodec_open2(pCodecCtx, pCodec,NULL)<0){
          return error;
       }
       packet=(AVPacket *)av_malloc(sizeof(AVPacket));
       av_init_packet(packet);

       //Out Audio Param
       out_channel_layout=AV_CH_LAYOUT_STEREO;
       //nb_samples: AAC-1024 MP3-1152
       out_nb_samples=pCodecCtx->frame_size;
       out_sample_fmt=AV_SAMPLE_FMT_S16;
       out_sample_rate=samplerate;
       out_channels=av_get_channel_layout_nb_channels(out_channel_layout);
       //Out Buffer Size
       out_buffer_size=av_samples_get_buffer_size(NULL,out_channels ,out_nb_samples,out_sample_fmt, 1);

       out_buffer=(uint8_t *)av_malloc(MAX_AUDIO_FRAME_SIZE*3);
       pFrame=av_frame_alloc();

       //FIX:Some Codec's Context Information is missing
       in_sample_fmt = pCodecCtx->sample_fmt;
       in_channel_layout=av_get_default_channel_layout(pCodecCtx->channels);
       //Swr
       initConverter();

       timeBase = (int64_t(pCodecCtx->time_base.num) * AV_TIME_BASE) / int64_t(pCodecCtx->time_base.den);

       LOGI("Opened file");
       return nullptr;
    }
    void FFMpegAudioDecoder::initConverter()
    {
        au_convert_ctx = swr_alloc();
        au_convert_ctx=swr_alloc_set_opts(au_convert_ctx,out_channel_layout, out_sample_fmt, out_sample_rate,
               in_channel_layout,in_sample_fmt, pCodecCtx->sample_rate,0, NULL);
        swr_init(au_convert_ctx);
    }
    unsigned char FFMpegAudioDecoder::decode(short int *pcmOutput, unsigned int *samples)
    {
       unsigned int samplesWritten = 0;
       //LOGI("BEFORE FRAME");
       int read = av_read_frame(pFormatCtx, packet);
       //LOGI("AFTER FRAME");
       if (read < 0)
       {
           char msg[101];
           av_strerror(read, msg, 100);
           LOGI("EOF, %s", msg);
           return AUDIODECODER_EOF;
       }

       if(packet->stream_index==audioStream)
       {
           //LOGI("BEFORE DECODE");
           ret = avcodec_decode_audio4( pCodecCtx, pFrame, &got_picture, packet);
           const char* msg1 = av_get_sample_fmt_name((AVSampleFormat)pFrame->format);
           const char* msg2 = av_get_sample_fmt_name(in_sample_fmt);
           LOGI("samples formats, pFrame->format: %s, in_sample_fmt: %s", msg1, msg2);
           if (pFrame->format != in_sample_fmt)
           {
               LOGI("FORMAT CHANGED!@!!!!!, decode return value: %d", ret);
               in_sample_fmt = (AVSampleFormat) pFrame->format;
               swr_free(&au_convert_ctx);
               initConverter();
           }
           LOGI("Decode return value: %d, packet->size: %d", ret, packet->size);
           //LOGI("AFTER DECODE");

           if ( ret < 0 ) {
               char msg[101];
               av_strerror(ret, msg, 100);
               LOGI("decoder return value error, %s", msg);
               //return AUDIODECODER_ERROR;
           }
           else if ( got_picture > 0 ){
               //LOGI("BEFORE CONVERT");
               int converted = swr_convert(au_convert_ctx,&out_buffer, MAX_AUDIO_FRAME_SIZE,(const uint8_t **)&pFrame->data , pFrame->nb_samples);
              // LOGI("AFTER CONVERT");
               if ( converted < 0 ) {
                   LOGI("CONVERT ERROR");
                   return AUDIODECODER_ERROR;
               }
               for (int i = 0; i < converted * 4; i += 2)
               {
                   pcmOutput[i / 2] = (short int)(out_buffer[i+1]<<8 | (out_buffer[i] & 0xFF));
               }
               samplesWritten = (unsigned int) converted;
               //LOGI("after write");
               //LOGI("index:%5d\t pts:%lld\t packet size:%d\t samples written:%d",index,packet->pts,packet->size,samplesWritten);
               index++;

           }
       }

       av_packet_unref(packet);
       //LOGI("after free, writte:%u", samplesWritten);
       *samples = samplesWritten;
       return AUDIODECODER_OK;
    }

    The file reaches EOF after only 1-2 seconds and there is no audio. On a sample run with the WMA file the packet->format is set to null and there are strange return values from the decode4 function, here is the log with some redundancy cut :

    09-05 16:21:51.839 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: fltp
    09-05 16:21:51.839 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: FORMAT CHANGED!@!!!!!, decode return value: 2
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 2, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 682, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 206, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 194, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 26, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 100, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.880 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 68, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 2230, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 49, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 65, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 216, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 123, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 146, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.881 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 24, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 162, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 90, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 15, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 290, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 220, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 118, packet->size: 2230
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.882 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 135, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 171, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 267, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 56, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: 90, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: Decode return value: -1094995529, packet->size: 2230
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: decoder return value error, Invalid data found when processing input
    09-05 16:21:51.883 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: samples formats, pFrame->format: (null), in_sample_fmt: (null)
    09-05 16:21:51.885 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: EOF, End of file
    09-05 16:21:51.885 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: DECODELOOP EOF 2
    09-05 16:21:51.886 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: EOF, End of file
    09-05 16:21:51.887 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: DECODELOOP EOF 2
    09-05 16:21:51.888 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: EOF, End of file
    09-05 16:21:51.888 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: DECODELOOP EOF 2
    09-05 16:21:51.916 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: EOF, End of file
    09-05 16:21:51.916 5116-5332/com.smp.musicspeed I/SOUNDPROCESS: DECODELOOP EOF 2
  • avdevice : Give names to anonymously typedeffed structs

    17 juillet 2014, par Diego Biurrun
    avdevice : Give names to anonymously typedeffed structs
    

    Anonymous structs can cause trouble in header files, so try to
    avoid them altogether as a matter of good style.

    • [DH] libavdevice/bktr.c
    • [DH] libavdevice/fbdev.c
    • [DH] libavdevice/jack_audio.c
    • [DH] libavdevice/oss_audio.c
  • ffmpeg concat failing with dts timing error

    14 septembre 2020, par mrsass

    I have some videos that I am trying to concat with ffmpeg, they all work just fine by themselves but trying to concat them with this command :

    


    ffmpeg -f concat -safe 0 -fflags flush_packets -fflags discardcorrupt -i ./videos.txt -c copy -an 1.mp4


    


    This isn't a live stream or mpeg-dash, it's just standalone mp4's that I would like to join into one longer video.

    


    It's just a constant stream of errors like this :

    


    [mp4 @ 0x5560664a1780] Non-monotonous DTS in output stream 0:0; previous: 72811593, current: 4396274; changing to 72811594. This may result in incorrect timestamps in the output file.
[mp4 @ 0x5560664a1780] Non-monotonous DTS in output stream 0:0; previous: 72811594, current: 4396786; changing to 72811595. This may result in incorrect timestamps in the output file.
[mp4 @ 0x5560664a1780] Non-monotonous DTS in output stream 0:0; previous: 72811595, current: 4397298; changing to 72811596. This may result in incorrect timestamps in the output file.
[mp4 @ 0x5560664a1780] Non-monotonous DTS in output stream 0:0; previous: 72811596, current: 4397810; changing to 72811597. This may result in incorrect timestamps in the output file.

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55e9b217ab40] Dropped corrupted packet (stream = 0)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55e9b217ab40] stream 1, offset 0x402a6: partial file
./videos.txt: Invalid data found when processing input


    


    Just to be clear these aren't .ts videos but mp4 videos.

    


    Here's an example of ffprobe from
      Metadata:
        minor_version   : 512
        major_brand     : isom
        compatible_brands: isomiso2avc1mp41
        comment         : vid:v09044820000brpbed8biap950ufpcr0
        encoder         : Lavf58.20.100
      Duration: 00:00:14.70, start: 0.000000, bitrate: 901 kb/s
        Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 576x1024 [SAR 1:1 DAR 9:16], 830 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default)
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
        Metadata:
          handler_name    : SoundHandler


    


    another of the video file

    


      Metadata:
    minor_version   : 512
    major_brand     : isom
    compatible_brands: isomiso2avc1mp41
    comment         : vid:v090447e0000bo8lplu9uukrbn9qbupg
    encoder         : Lavf58.20.100
  Duration: 00:00:12.12, start: 0.000000, bitrate: 791 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 576x1024, 718 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
    Metadata:
      handler_name    : SoundHandler