Recherche avancée

Médias (91)

Autres articles (37)

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (9723)

  • Issue while opening a .mp4 file - CPU shoots up 100%

    16 juillet 2014, par AnilJ

    I am using IMediaWriter, to write out about 20 video frames into an independent .mp4 file and creating a new writer to write a new file. This is a logic (not so efficient one), I’ve used to chunk the web-cam feed into chunks. I am able to successfully able to create multiple .mp4 video files and when opened then in a VLC player, they can be played back.

    However, when I try to open one of the chunked file into a new IContainer object (see below code snippet), my program :

    • Gets stuck at the container.open() call ( see * below), and the CPU
      utilization shoots above 100%.
    • Sometimes it throws an error "moov atom not found", and hence can not open the file.

    In both the cases, my program does not work.

    <code snippet="snippet">
           String file = BASE_PATH + File.separator + "output" + File.separator + "output.mp4";  // This is one of the chunk.
           IContainer container = IContainer.make();
           FileChannel channel = null;

           try {
               @SuppressWarnings("resource")
               RandomAccessFile inFile = new RandomAccessFile(chunkFile, "r");
               channel = inFile.getChannel();
           } catch (FileNotFoundException e) {
               e.printStackTrace();
           }

           // Open up the container
    ***        int retval = container.open(channel, IContainer.Type.READ, null);
           if (retval &lt; 0) {
               // This little trick converts the non friendly integer return value into
               // a slightly more friendly object to get a human-readable error name
               IError error = IError.make(retval);
               throw new IllegalArgumentException("could not open file: " + mInputFileChannel + "; Error: " + error.getDescription());
           }
    <code snippet="snippet">

    Subsequently, I ran the AtomicParsley tool to dump the file content, and it prints following. I am not aware of video file internals and seeking help to know the issue here and potential solution.

    Atom ftyp @ 0 of size: 28, ends @ 28
    Atom free @ 28 of size: 8, ends @ 36
    Atom mdat @ 36 of size: 45175, ends @ 45211
    Atom moov @ 45211 of size: 1052, ends @ 46263
        Atom mvhd @ 45219 of size: 108, ends @ 45327
        Atom trak @ 45327 of size: 839, ends @ 46166
            Atom tkhd @ 45335 of size: 92, ends @ 45427
            Atom edts @ 45427 of size: 36, ends @ 45463
                Atom elst @ 45435 of size: 28, ends @ 45463
            Atom mdia @ 45463 of size: 703, ends @ 46166
                Atom mdhd @ 45471 of size: 32, ends @ 45503
                Atom hdlr @ 45503 of size: 45, ends @ 45548
                Atom minf @ 45548 of size: 618, ends @ 46166
                    Atom vmhd @ 45556 of size: 20, ends @ 45576
                    Atom dinf @ 45576 of size: 36, ends @ 45612
                        Atom dref @ 45584 of size: 28, ends @ 45612
                            Atom url  @ 45600 of size: 12, ends @ 45612
                    Atom stbl @ 45612 of size: 554, ends @ 46166
                        Atom stsd @ 45620 of size: 198, ends @ 45818
                            Atom mp4v @ 45636 of size: 182, ends @ 45818
                                Atom esds @ 45722 of size: 96, ends @ 45818
                        Atom stts @ 45818 of size: 176, ends @ 45994
                        Atom stss @ 45994 of size: 24, ends @ 46018
                        Atom stsc @ 46018 of size: 28, ends @ 46046
                        Atom stsz @ 46046 of size: 100, ends @ 46146
                        Atom stco @ 46146 of size: 20, ends @ 46166
        Atom udta @ 46166 of size: 97, ends @ 46263
            Atom meta @ 46174 of size: 89, ends @ 46263
                Atom hdlr @ 46186 of size: 33, ends @ 46219
                Atom ilst @ 46219 of size: 44, ends @ 46263
                    Atom ©too @ 46227 of size: 36, ends @ 46263
                        Atom data @ 46235 of size: 28, ends @ 46263
    ------------------------------------------------------
    Total size: 46263 bytes; 31 atoms total. AtomicParsley from svn built on Jul 15 2014 (utf8)
    Media data: 45175 bytes; 1088 bytes all other atoms (2.352% atom overhead).
    Total free atom space: 8 bytes; 0.017% waste.
    ------------------------------------------------------

    I am not sure if there is anything wrong with the file itself. Can you please help me understand this ?

  • merge audio stream with video

    16 juillet 2014, par Ranjith KR

    I have a video file with a video and audio stream on it (6.flv)
    I need to merge an audio with with the video file that is already having an audio.
    But I am getting an error "Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argument"

    # ffmpeg -i 6.flv
    Stream #0:0: Video: flv1, yuv420p, 426x240, 279 kb/s, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3, 22050 Hz, stereo, s16p, 65 kb/s[/color]

    And an audio mp3 file(2.mp3).

    # ffmpeg -i 2.mp3
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s

    And i need to mix (add) this mp3 file to the video file. So inshort the new video file should have two audio streams from video and mp3. I am trying to do this with the below command

    # ffmpeg -i 6.flv -i 2.mp3 -map 0:0 -map 0:1 -map 1:0 -codec copy -shortest output_video.flv

    But I am getting the following error , Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument . Any idea how to fix this?

    Please find the complete command output. I am trying to run this on a centos machine.

    ]# ffmpeg -i 6.flv -i 2.mp3 -map 0:0 -map 0:1 -map 1:0 -codec copy -shortest output_video.flv
    ffmpeg version N-64525-g7cb8f7d Copyright (c) 2000-2014 the FFmpeg developers
    built on Jul 8 2014 23:41:20 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54)

    purl :
    pmsg :
    encoder : Lavf55.45.100
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 426x240, q=2-31, 279 kb/s, 23.98 fps, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 22050 Hz, stereo, 65 kb/s
    Stream #0:2: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, 128 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Stream #0:1 -> #0:1 (copy)
    Stream #1:0 -> #0:2 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
  • FFmpeg : NetStream.Play.StreamNotFound on RMTP stream

    22 juillet 2014, par user2957378

    I want to take snapshots periodically of a RTMP live video stream.
    I can see the rtmp video stream using VLC. This is the rtmp url :

    rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1

    I’m using the following command to capture the snapshots, according to the official FFmpeg site here :

    ffmpeg -i rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1 -f image2 -vf fps=fps=1 out%d.png

    The command produces the following output :

    ffmpeg version N-64667-gd595361 Copyright (c) 2000-2014 the FFmpeg developers
     built on Jul 14 2014 22:09:48 with gcc 4.8.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzl
    libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amr
    enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --ena
     libavutil      52. 92.100 / 52. 92.100
     libavcodec     55. 69.100 / 55. 69.100
     libavformat    55. 47.100 / 55. 47.100
     libavdevice    55. 13.102 / 55. 13.102
     libavfilter     4. 10.100 /  4. 10.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 19.100 /  0. 19.100
     libpostproc    52.  3.100 / 52.  3.100
    HandShake: client signature does not match!
    Closing connection: NetStream.Play.StreamNotFound
    rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1: Unknown error occurred

    I’ve tried it with another rmtp streams, but I’m still getting the exact same error.

    What could be the problem ?
    Thank you !