Recherche avancée

Médias (91)

Autres articles (87)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

  • wrong play audio sasamples

    7 août 2014, par Ivan Lisovich

    I have a problem with a ffmpeg and NAudio libs.
    I worked with the old ffmpeg library and there the audio plays correctly.
    read video in manage c++

    // Read frames and save to list audio frames
    while(av_read_frame(pFormatCtx, &packet) >= 0)
    {
       if(packet.stream_index == videoStream)
       {
           // reade image
       }
       else if(packet.stream_index == audioStream)
       {
           int b = av_dup_packet(&packet);
           if(b >= 0) {
               int audio_pkt_size = packet.size;
               libffmpeg::uint8_t* audio_pkt_data = packet.data;
               while(audio_pkt_size > 0)
               {
                   int got_frame = 0;
                   int len1 = libffmpeg::avcodec_decode_audio4(aCodecCtx, &frame, &got_frame, &packet);
                   if(len1 < 0)
                   {
                       /* if error, skip frame */
                       audio_pkt_size = 0;
                       break;
                   }
                   audio_pkt_data += len1;
                   audio_pkt_size -= len1;
                   if (got_frame)
                   {
                       int data_size = libffmpeg::av_samples_get_buffer_size ( NULL, aCodecCtx->channels, frame.nb_samples, aCodecCtx->sample_fmt, 1 );
                       array<byte>^ managedBuf = gcnew array<byte>(data_size);
                       System::IntPtr iptr = System::IntPtr( frame.data[0] );
                       System::Runtime::InteropServices::Marshal::Copy( iptr, managedBuf, 0, data_size );
                       audioData->Add(managedBuf);
                   }
               }
           }
       }
       // Free the packet that was allocated by av_read_frame
       libffmpeg::av_free_packet(&amp;packet);
    }
    </byte></byte>

    I return audioData to c# code and play in NAudio library
    play in c#

    var recordingFormat = new WaveFormat(reader.SampleRate, 16, reader.Channels);
    var waveProvider = new BufferedWaveProvider(recordingFormat) { DiscardOnBufferOverflow = true, BufferDuration = TimeSpan.FromMilliseconds(10000) };
    var waveOut = new DirectSoundOut();
    waveOut.Init(waveProvider);
    waveOut.Play();
    foreach (byte[] data in audioData)
    {
       waveProvider.AddSamples(data, 0, data.Length);
    }

    but audio not playing.
    what am I doing wrong ?

  • I can’t play HEVC encoded Flv format video files with ffplay

    25 décembre 2023, par 1337zzz

    I could not decode a video file

    &#xA;

    I have a video file in FLV format. Someone told me that the encoding format of this video is HEVC, so I tried to play this video with ffplay. But I found that native ffplay cannot play HEVC encoded files in flv format, so I found relevant information to decode HEVC encoded files in FLV format, but this file still cannot be played.

    &#xA;

    The following is the error message, the content is that the NAL part of the analysis failed

    &#xA;

    [hevc @ 0x7fba4800fc00] Invalid NAL unit size in extradata.&#xA;[flv @ 0x7fba4800f000] Could not find codec parameters for stream 0 (Video: hevc, none, 5494 kb/s): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;&#xA;

    &#xA;

    I tried to use ffplay to play other HEVC encoded videos in FLV format, and the result was no problem. So I use a hexadecimal editor to view the file that cannot be played normally. Below is the data of the first frame of video.

    &#xA;

    000003a0: xx xx xx xx xx xx xx 09 00 00 4E 00 00 00 00 00    ..........N.....&#xA;000003b0: 00 00 1E 00 00 00 00 01 00 00 00 FF E2 00 17 40    ............b..@&#xA;000003c0: 01 0C 01 FF FF 01 00 01 00 00 B0 00 00 03 00 00    ..........0.....&#xA;000003d0: 03 00 96 1D 94 09 00 1E 42 01 01 01 00 01 00 00    ........B.......&#xA;000003e0: B0 00 00 03 00 00 03 00 96 A0 01 E0 20 02 1C 5A    0..........`...Z&#xA;000003f0: 1D 96 49 0A 40 A2 01 00 07 44 01 C0 13 18 21 20    ..I.@"...D.@..!.&#xA;

    &#xA;

    We can see that 09 represents the video type, 4E represents the length of TAG data, and 1C represents the key frame of HEVC, but I can’t judge whether the following data is HEVC encoded data, so I suspect that the latter data may not be encoded by HEVC.

    &#xA;

    Question

    &#xA;

    Is there any way to detect the encoding format of the video based on the hexadecimal data, or who can tell me which video encoding format the following data is ?

    &#xA;

    Thank you very much !

    &#xA;

  • Not able to play video file in Qt5 based Web browser on Linux ARM machine

    20 février 2016, par user3436349

    I am using Yocto Buildsystem to generate customized Linux Image with Qt5.4
    support in it for TI AM335x based ARM platform, here in Yocto I have selected
    components those are required for Qt5 based Webbrowser so as to play HTML5 audio
    and video files such as :
    - qtmultimedia
    - gstreamer (1.0)
    - qtscript
    - qtwebsockets
    - qtimageformats
    - libgles-omap3
    - lighttpd
    - gst-ffmpeg
    - gst-fluendo-mp3
    - gstreamer (0.10)

    Here after building the final image. I found that there are
    both gstreamer and gstreamer-1.0 directories in /usr/lib, also the
    required ffmpeg libs are located in /usr/lib/gstreamer directory.
    But I suspect the webkit by default links to /usr/lib/gstreamer-1.0
    directory and hence cannot find required libs.

    When I tried the manually copy the ffmepg related libs in /usr/lib/gstreamer-1.0
    directory from /usr/lib/gstreamer, then I got the libav related version error.

    Please guide me regarding who to configure webkit or webcore .bb file so that
    it links to both the gstreamer directories in /usr/lib and can thus play
    HTML5 audio and video files in qt5 based web-browser.