Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (48)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (4912)

  • I am able to create m3u8 file using ffmpeg from rtmp live but not able to play the file in html5 video tag & apple device

    3 janvier 2014, par Nikita

    I am able to create the m3u8 file by following steps :

    1.Execute ffmpeg -v verbose -i rtmp://<host>:<port>/<stream> -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 18 -profile:v baseline -maxrate 400k -bufsize 1835k -pix_fmt yuv420p -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 <pathtofolderyouwantto>/<streamname>.m3u8
    </streamname></pathtofolderyouwantto></stream></port></host>

    2.Make that folder you just mentioned on ffmpeg command () to be accessible by an http url.

    3.Create a simple html page to play :

    <video controls="controls" width="480" height="270" src="<streamName>.m3u8"></video>

    But not able to play using html5 video tag as well as in apple device.

    following is my ffmpeg console output :

    sending ctrl. type: 0x0003
    Invoking createStream
    FCSubscribe: livestream
    Invoking FCSubscribe
    RTMP_ClientPacket, received: invoke 29 bytes
    (object begin)
    Property:
    Property:
    Property: NULL
    Property:
    (object end)
    HandleInvoke, server invoking &lt;_result>
    HandleInvoke, received result for method call <createstream>
    SendPlay, seekTime=0, stopTime=0, sending play: livestream
    Invoking play
    sending ctrl. type: 0x0003
    RTMP_ClientPacket, received: invoke 21 bytes
    (object begin)
    Property:
    Property:
    Property: NULL
    Property: NULL
    (object end)
    HandleInvoke, server invoking &lt;_result>
    HandleInvoke, received result for method call <fcsubscribe>
    HandleChangeChunkSize, received: chunk size change to 1024
    Received FLV packet before play()! Ignoring.
    HandleCtrl, received ctrl. type: 0, len: 6
    HandleCtrl, Stream Begin 1
    RTMP_ClientPacket, received: invoke 160 bytes
    (object begin)
    Property:
    Property:
    Property: NULL
    Property:
    (object begin)
    Property:
    Property:
    Property:
    Property:
    Property:
    (object end)
    (object end)
    HandleInvoke, server invoking <onstatus>
    HandleInvoke, onStatus: NetStream.Play.Reset
    RTMP_ClientPacket, received: invoke 154 bytes
    (object begin)
    Property:
    Property:
    Property: NULL
    Property:
    (object begin)
    Property:
    Property:
    Property:
    Property:
    Property:
    (object end)
    (object end)
    HandleInvoke, server invoking <onstatus>
    HandleInvoke, onStatus: NetStream.Play.Start
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465657184
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465659184
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465661184
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465662184
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465663184
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465678183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465680183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465682183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465684183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465686183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465688183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465690183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465692183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465694183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465696183
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465698182
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465700182
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465702182
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465704182
    sending ctrl. type: 0x0007
    HandleCtrl, received ctrl. type: 6, len: 6
    HandleCtrl, Ping 1465706182
    sending ctrl. type: 0x0007
    [flv @ 0263ce00] Estimating duration from bitrate, this may be inaccurate
    Input #0, flv, from &#39;rtmp://serveripaddress/oflaDemo/livestream live=1&#39;:
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: vp6f, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
    [graph 0 input from stream 0:0 @ 03020420] w:320 h:240 pixfmt:yuv420p tb:1/1000 fr:1000/1 sar:0/1 sws_param:flags=2
    [libx264 @ 02833600] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
    [libx264 @ 02833600] profile Constrained Baseline, level 4.2
    [mpegts @ 038c1180] muxrate VBR, pcr every 100 pkts, sdt every 200, pat/pmt every 40 pkts
    Output #0, hls, to &#39;C:/Program Files/Apache Software Foundation/apache-tomcat-6.0.35/webapps/mediaplayer/stream.m3u8&#39;:
     Metadata:
       encoder         : Lavf54.37.100
       Stream #0:0: Video: h264, yuv420p, 320x240, q=-1--1, 90k tbn, 1k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (vp6f -> libx264)
    Press [q] to stop, [?] for help
    Error while decoding stream #0:0: Error number -1 occurred
       Last message repeated 2 times
    *** 192 dup!
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 1 times
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=0.0 q=28.0 size=       0kB time=00:00:00.56 bitrate=   0.0kbits/s dup=601 drop=0
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 3 times
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 47 dup! fps=1129 q=47.0 size=       0kB time=00:00:01.17 bitrate=   0.0kbits/s dup=1199 drop=0
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 1 times
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=1164 q=40.0 size=       0kB time=00:00:01.82 bitrate=   0.0kbits/s dup=1844 drop=0
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=1181 q=57.0 size=       0kB time=00:00:02.48 bitrate=   0.0kbits/s dup=2489 drop=0
       Last message repeated 1 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 1 times
    *** 64 dup!
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 46 dup! fps=1181 q=44.0 size=       0kB time=00:00:03.09 bitrate=   0.0kbits/s dup=3088 drop=0
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
    *** 64 dup!
    *** 62 dup!
    *** 63 dup!
    *** 47 dup!
    *** 64 dup!
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 62 dup! fps=1190 q=49.0 size=       0kB time=00:00:03.74 bitrate=   0.0kbits/s dup=3733 drop=0
    *** 63 dup!
    *** 48 dup!
    *** 62 dup!
    *** 64 dup!
    *** 62 dup!
    *** 48 dup!
    *** 62 dup!
    *** 64 dup!
    *** 62 dup!
    *** 47 dup!
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=1201 q=32.0 size=       0kB time=00:00:04.40 bitrate=   0.0kbits/s dup=4377 drop=0
       Last message repeated 2 times
    *** 48 dup!
    *** 63 dup!
       Last message repeated 1 times
    *** 62 dup!
    *** 48 dup!
    *** 63 dup!
       Last message repeated 1 times
    *** 62 dup!
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 48 dup! fps=1214 q=57.0 size=       0kB time=00:00:05.07 bitrate=   0.0kbits/s dup=5038 drop=0
    *** 63 dup!
    *** 62 dup!
    *** 63 dup!
    *** 48 dup!
    *** 62 dup!
    *** 63 dup!
       Last message repeated 1 times
    *** 47 dup!
    *** 64 dup!
    *** 63 dup!
       Last message repeated 1 times
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 47 dup! fps=1226 q=52.0 size=       0kB time=00:00:05.79 bitrate=   0.0kbits/s dup=5747 drop=0
    *** 63 dup!
       Last message repeated 3 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 1 times
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=1232 q=57.0 size=       0kB time=00:00:06.51 bitrate=   0.0kbits/s dup=6455 drop=0
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 1 times
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=1240 q=57.0 size=       0kB time=00:00:07.23 bitrate=   0.0kbits/s dup=7163 drop=0
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 1 times
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=1243 q=44.0 size=       0kB time=00:00:07.95 bitrate=   0.0kbits/s dup=7871 drop=0
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 3 times
    *** 47 dup!
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=1245 q=52.0 size=       0kB time=00:00:08.61 bitrate=   0.0kbits/s dup=8516 drop=0
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 2 times
    *** 47 dup!
    Bitrate not available, avio_tell() failed: Error number -22 occurred
    *** 63 dup! fps=1250 q=49.0 size=       0kB time=00:00:09.33 bitrate=   0.0kbits/s dup=9224 drop=0
       Last message repeated 2 times
    *** 47 dup!
    *** 63 dup!
       Last message repeated 1 times
    </onstatus></onstatus></fcsubscribe></createstream>
  • Is it possible using FFMPEG to replace one ".ts" file in a HLS ts file collection with another ".ts" file ?

    27 juillet 2019, par Vadim

    There is a video, actually an HLS stream (sequence of TS files)
    I would like to take out one TS chunk and replace it with another.
    Another chunk will be encoded using same FFMPEG encoding settings.

    In case you wonder why i need this :
    There is a five hours HLS stream. One of TS has a wrong title on the video. I need to change that TS without re-encoding the whole HLS stream.

    Currently i tried :

    1. Take TS and convet it using FFMPEG into mp4
    2. Edit mp4 video (change title) and save as new mp4
    3. Convert new mp4 into new TS (using FFMPEG, same settings as was used for original video)
    4. Replace original TS with the new TS.

    But it doesn’t work, player shows loading in progress icon. (in the network console i see that this new TS is loaded normally, with status 200)

    As soon as i replace new TS with original one, player plays it normally.

    Both TS files start with I-frame, both have audio. There’s only a slight difference in the sequence of P and B frames.

    old new
    I   I
    P   P
    B   B
    B   B
    P   P
    B   B
    B   B
    B   B
    P   P
    B   B
    B   P
    B   B
    P   B
    P   B
    B   P

    How can i get new TS chunk working in original TS sequence ?

    Update :

    As per szatmary advice (below) i tried to include "-copyts" flag during all ts>mp4>ts conversions. Also tried "-copytb" flag with all 3 options -1, 0, and 1. However result still the same - player doesn’t play HLS TS sequence (m3u8) with new TS chunk.

    Adding "#EXT-X-DISCONTINUITY" tag after replaced TS in the M3U8 list, doesn’t fix the situation.

    Without "#EXT-X-DISCONTINUITY" tag, player gives error :

    VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) There appears to be a playback issue.

    code: 4
    message: "There appears to be a playback issue."

    __proto__:
    MEDIA_ERR_ABORTED: 1
    MEDIA_ERR_CUSTOM: 0
    MEDIA_ERR_DECODE: 3
    MEDIA_ERR_ENCRYPTED: 5
    MEDIA_ERR_NETWORK: 2
    MEDIA_ERR_SRC_NOT_SUPPORTED: 4
    code: 0
    message: ""
    status: null

    With "#EXT-X-DISCONTINUITY" tag, player gives error :

    VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) There appears to be a playback issue.

    code: 3
    message: "error"

    __proto__:
    MEDIA_ERR_ABORTED: 1
    MEDIA_ERR_CUSTOM: 0
    MEDIA_ERR_DECODE: 3
    MEDIA_ERR_ENCRYPTED: 5
    MEDIA_ERR_NETWORK: 2
    MEDIA_ERR_SRC_NOT_SUPPORTED: 4
    code: 0
    message: ""
    status: null

    Both TS files (old one and new one) have video and audio streams.

    Looks like something else should be done. I think solution will be similar to ad insertion.

  • converting mp4 file to zero KB .png file : FFmpeg

    6 novembre 2017, par muskan

    Used below command for converting 2,981kb of file1.mp4 to file1.png :

    "ffmpeg.exe -i file1.mp4 -ss 00:00:10.00 -s "315"x"210"-f image2 -vframes 1 file1.png"

    using following code to execute the command :

    public int ProcessRun(string filename, string arguments, int waitTimeSeconds)
    {
       if (!System.IO.File.Exists(filename))
       {
           var Message = $"Converter file not found.";
           DialogResult result = DisplayError(Message);
       }
       int returnVal = 0;
       try
       {
           using (Process process = new Process())
           {
               process.StartInfo.FileName = filename;
               process.StartInfo.Arguments = arguments;
               process.StartInfo.UseShellExecute = false;
               process.StartInfo.RedirectStandardOutput = true;
               process.StartInfo.RedirectStandardError = true;

               StringBuilder output = new StringBuilder();
               StringBuilder error = new StringBuilder();

               using (AutoResetEvent outputWaitHandle = new AutoResetEvent(false))
               using (AutoResetEvent errorWaitHandle = new AutoResetEvent(false))
               {
                   process.OutputDataReceived += (sender, e) =>
                   {
                       if (e.Data == null)
                       {
                           outputWaitHandle.Set();
                       }
                       else
                       {
                           output.AppendLine(e.Data);
                       }
                   };
                   process.ErrorDataReceived += (sender, e) =>
                   {
                       if (e.Data == null)
                       {
                           errorWaitHandle.Set();
                       }
                       else
                       {
                           error.AppendLine(e.Data);
                       }
                   };

                   process.Start();

                   process.BeginOutputReadLine();
                   process.BeginErrorReadLine();

                   if (process.WaitForExit((int)TimeSpan.FromSeconds(waitTimeSeconds).TotalMilliseconds) &amp;&amp;
                        outputWaitHandle.WaitOne((int)TimeSpan.FromSeconds(waitTimeSeconds).TotalMilliseconds) &amp;&amp;
                        errorWaitHandle.WaitOne((int)TimeSpan.FromSeconds(waitTimeSeconds).TotalMilliseconds))
                   {
                      returnVal = process.ExitCode;
                   }
                   returnVal = process.ExitCode;
               }
           }
       }
       catch (Exception ex)
       {
           throw ex;
       }
       finally { }
       return returnVal;
    }

    where filename is filepath of my "ffmpeg.exe"
    arguments is "-i file1.mp4 -ss 00:00:10.00 -s "315"x"210"-f image2 -vframes 1 file1.png"
    waittimeseconds 60000

    But this always return me the file1.png of size 0kb.
    Getting following errorlog :

    ffmpeg version N-66289-gb76d613 Copyright (c) 2000-2014 the FFmpeg developers
    built on Sep 15 2014 22:02:10 with gcc 4.8.3 (GCC)
    configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-libfreetype —enable-libgme —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs —enable-libxvid —enable-decklink —enable-zlib
    libavutil 54. 7.100 / 54. 7.100
    libavcodec 56. 1.100 / 56. 1.100
    libavformat 56. 4.101 / 56. 4.101
    libavdevice 56. 0.100 / 56. 0.100
    libavfilter 5. 1.100 / 5. 1.100
    libswscale 3. 0.100 / 3. 0.100
    libswresample 1. 1.100 / 1. 1.100
    libpostproc 53. 0.100 / 53. 0.100
    file1.mp4 : Permission denied

    How can I fix it ?