Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (67)

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

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (6401)

  • 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 !