Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (24)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

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

  • avformat/matroskaenc : Remove unnecessary headers

    10 avril 2020, par Andreas Rheinhardt
    avformat/matroskaenc : Remove unnecessary headers
    

    subtitles.h has been included in order to use ff_subtitles_next_line()
    to help parsing srt subtitles which at that time had their timing as
    part of the payload and not as part of the AVPacket fields. When this
    changed (in 55180b32) it has been forgotten to remove this header.

    libavcodec/internal.h meanwhile has been added in bb47aa5850c and has
    never been used at all.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/matroskaenc.c
  • smart encoding of h264 with ffmpeg library fails

    6 avril 2017, par cuttingJoe

    I try to do smart encoding of a cut out of a h264 video with the help of ffmpeg library.
    The target is to make an efficient cut of an existing video being not forced to begin at an I-frame.
    For the first part of the video I decode the frames from the preceeding I-Frame till the upcoming I-Frame.
    When the intended start of the snippet comes, I encode the frames with AVCodecContext data close to the original video stream. From the second I-Frame onwards I simply copy the packets from the source to the destination stream.
    The resulting video throws errors when played with ffplay at the beginning of the second (the copied) part.
    Playing the same video with MPC-HC the second part is played, but not the first one :-)

    The errors thrown by ffplay are

    [h264 @ 0xa8a70480] top block unavailable for requested intra mode  
    [h264 @ 0xa8a70480] error while decoding MB 0 0, bytestream 30156
    [h264 @ 0xa8a70480] concealing 8160 DC, 8160 AC, 8160 MV errors in I frame
    [h264 @ 0xa8a565a0] reference count overflow121KB sq=    0B f=0/0  
    [h264 @ 0xa8a565a0] decode_slice_header error
    ...

    So I asume that something on bitstream level doesn’t work.
    I started to dig into topic of extradata of h264, SPS and PPS but didn’t get very far.

    I could post the code and the video, if it helps, but I don’t expect to get the thing solved, but rather some hints, how to go on :

    • Should there be a new header written before the second part ?
    • How can I figure out, what leads to the error messages "top block
      unavailable for requested intra mode" ?
    • What is the best tool to analyze the resulting video (on bitstream
      level ?) ?

    Thanks a lot for help !!

    After some long nights, I came to a solution, which might not be perfect, but it works.
    As tools for analyzing the video I used MediaInfo and the tool isoviewer, which crashes sometimes, if the video is broken, but its of great help anyway.
    The idea is following the comand line approch, what you can find in some forums :

    ffmpeg -i "cut1-26.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
    ffmpeg -i "cut1-26.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
    ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc out-conc.mp4

    In my code the merging of two video streams looks somehow like that :

    for (int i=1; i/loop over several videos
    ...
    while (!finalPacketWritten)
    {
       ...
       av_read_frame(i_fmt_ctx, &amp;i_pkt)
       do {
           if (!finalPktRead) {
               ret = av_bsf_send_packet(bsfCtx, &amp;i_pkt);
               if (ret &lt; 0)
                   return -1;
           } else {
               ret = av_bsf_send_packet(bsfCtx, NULL); //flush BSF
               if (ret &lt; 0)
                   return -1;
           }
           while ((ret = av_bsf_receive_packet(bsfCtx, &amp;o_pkt)) == 0) {
               av_interleaved_write_frame(o_fmt_ctx, &amp;o_pkt);
               numbPacket++;
           }
           if ((ret !=0) &amp;&amp; finalPktRead) {
               finalPacketWritten = 1;
           }
       } while (finalPktRead &amp;&amp; !finalPacketWritten);
    }

    The conversion with the bitstreamFilter to AnnexB packets, leads to a structure of the VCL NALUs like that (MP4 container) :

    SEI SPS PPS IDR (first reencoded video part)
    NON_IDR
    NON_IDR
    NON_IDR
    ....
    SEI SPS PPS IDR (second copied video part with different SPS and PPS data)
    NON_IDR
    NON_IDR
    NON_IDR
    ....

    SPS and PPS in avcC NALU is there as well.
    This video plays fine on ffplay, Parole, MPC-HC (windows). On VLC there are artefacts.
    So it looks like most players recognise the new SPS and PPS, when the second part starts and pass the information to the decoder.

    Of course there are other options like

    • reencoding the first part of the video with encoding settings extremely close to the original video and using just one set of SPS and PPS - might this be achievable ?
    • adding a second SPS and PPS information in the header part of the video and the VCL NALUs referencing the matching one.
    • any other idea ?

    Please share your suggestions on it.
    Thanks.

  • How to Fade in Fade out Audio (mp3) of a video file (.avi or .mp4) with FFMPEG

    13 octobre 2015, par Nahid Kunnath

    I have a video file name input.mp4 , i want to add fade in and fade out effect to audio part only while keeping video part with out re-encoded (copy).

    i have.
    1nput.mp4 file with unknown length, without fade in/ out effect.

    i want ?
    input.mp4 file with 5 sec fade in beginning and 5 sec fade out at end (here length of video is unknown)

    How can i achieve this through ffmpeg. please give command.
    Any help appreciated.