Recherche avancée

Médias (2)

Mot : - Tags -/kml

Sur d’autres sites (1907)

  • batch i need to encode hole folder files

    4 mai 2019, par jonedave

    I need one batch code for ffmpeg which can encode & zoom resolution of all videos inside folder to 110% & 125% of original using batch code.

    Here are some codes which I test not working :

    for %%a in ("*.*") do ffmpeg -i "%%a"  -vf scale=2*iw:-1, crop=iw/2:ih/2" "newfiles\%%~na.mp4"
    pause
    for %%a in ("*.*") do ffmpeg -i "%%a" -vf "zoompan=z='1+(1.4*in/300)':x='70*in/300':y='190*in/300':d=1"  "newfiles\%%~na.mp4"
    for %%a in ("*.*") do ffmpeg -i "%%a" -vf "zoompan=z='1+(1.4*in/300"  "newfiles\%%~na.mp4"
    pause

    error i getting

    C:\down\Compressed\DRIVER PACK FOR MOBILE PHONE\DRIVER PACK FOR MOBILE PHONE>ffm
    peg -i "avutil-ics-56.dll" -vf "zoompan=z='1+(1.4*in/300"  "newfiles\avutil-ics-
    56.mp4"
    ffmpeg version N-93461-g6e42021128 Copyright (c) 2000-2019 the FFmpeg developers

     built with gcc 8.2.1 (GCC) 20190212
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi
    g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libb
    luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --e
    nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable
    -libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 -
    -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enab
    le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --en
    able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --en
    able-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --e
    nable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 26.100 / 56. 26.100
     libavcodec     58. 47.105 / 58. 47.105
     libavformat    58. 26.101 / 58. 26.101
     libavdevice    58.  7.100 / 58.  7.100
     libavfilter     7. 48.100 /  7. 48.100
     libswscale      5.  4.100 /  5.  4.100
     libswresample   3.  4.100 /  3.  4.100
     libpostproc    55.  4.100 / 55.  4.100
    avutil-ics-56.dll: Invalid data found when processing input

    C:\down\Compressed\DRIVER PACK FOR MOBILE PHONE\DRIVER PACK FOR MOBILE PHONE>ffm
    peg -i "ffmpeg.exe" -vf "zoompan=z='1+(1.4*in/300"  "newfiles\ffmpeg.mp4"
    ffmpeg version N-93461-g6e42021128 Copyright (c) 2000-2019 the FFmpeg developers

     built with gcc 8.2.1 (GCC) 20190212
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi
    g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libb
    luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --e
    nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable
    -libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 -
    -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enab
    le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --en
    able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --en
    able-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --e
    nable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 26.100 / 56. 26.100
     libavcodec     58. 47.105 / 58. 47.105
     libavformat    58. 26.101 / 58. 26.101
     libavdevice    58.  7.100 / 58.  7.100
     libavfilter     7. 48.100 /  7. 48.100
     libswscale      5.  4.100 /  5.  4.100
     libswresample   3.  4.100 /  3.  4.100
     libpostproc    55.  4.100 / 55.  4.100
    ffmpeg.exe: Invalid data found when processing input
  • Anomalie #4328 : Depots inaccessibles

    7 mai 2019, par Armen Spidermian

    oui j’ai commencé par poser la question sur #spip
    ou l’on m’a invite a ouvrir un ticket ^^

    a écrit :

    La demande #4328 <https://core.spip.net/issues/4328#change-14931> a
    été mise à jour par b b.

    Dans ce cas je t’invite à poser la question sur la liste spip-zone ou
    passer sur http://irc.spip.net/ pour en discuter.


    Anomalie #4328 : Depots inaccessibles
    <https://core.spip.net/issues/4328#change-14931>

    • Auteur : Armen Spidermian
    • Statut : Fermé
    • Priorité : Normal
    • Assigné à :
    • Catégorie :
    • Version cible :
    • Resolution : invalid
    • Navigateur :

    Spip refuse de se connecter au dépot.

    2019-05-06 13:50:01 78.230.118.204 (pid 7481) :Pri:ERREUR : Erreur
    connexion
    2019-05-06 13:50:02 78.230.118.204 (pid 7481) :Pri:ERREUR : Erreur
    connexion
    2019-05-06 13:50:02 78.230.118.204 (pid 7481) :Pri : !INFO : copie_locale
     : Echec recuperation https://plugins.spip.net/depots/principal.xml sur
    ../IMG/distant/xml/principalxml2fdc.xml status : 0

    Je n’arrive pas a comprendre d’ou ca vient...

    Fichiers ErreurSpip.png
    <https://core.spip.net/attachments/download/1083/ErreurSpip.png> (84,9 ko)


    Vous recevez ce mail car vous êtes impliqués sur ce projet.
    Pour changer les préférences d’envoi de mail, allez sur
    http://core.spip.net/my/account

  • How to correctly calculate which segments are ready to be downloaded using MPEG-DASH

    24 avril 2019, par igal k

    What i’m trying to do ?

    Write a simple MPEG-DASH client using the SegmentTemplate pattern to calculate which segments are ready to be downloaded for a live source.

    A picture taken using chrome’s debugging tools at a moment X showing an mpd request(8af651fd747.....mpd) and the actual segments fetched respectfully to that request.

    enter image description here

    Given the following MPD

    <mpd availabilitystarttime="2019-04-24T06:43:32Z" maxsegmentduration="PT4.096S" minbuffertime="PT4.096S" minimumupdateperiod="PT15.835S" profiles="urn:mpeg:dash:profile:isoff-live:2011" publishtime="2019-04-24T11:14:01Z" suggestedpresentationdelay="PT11.878S" timeshiftbufferdepth="PT65.536S" type="dynamic" xmlns="urn:mpeg:dash:schema:mpd:2011">
     <location>https://content-aaps1.uplynk.com/channel/8af651fd7473474f86a05ffb0a1c8972.mpd?rmt=wv&amp;amp;cid=8af651fd7473474f86a05ffb0a1c8972&amp;amp;oid=600e5c27541344a1bf3818617ad712ce&amp;amp;prettydash=1&amp;amp;exp=1556091088&amp;amp;rn=4138683939&amp;amp;tc=1&amp;amp;ct=c&amp;amp;sig=5fb7f0c18f3f1d2ad4fdee53c02c1e1ed904bc5e8474f4ebf886d209ff7f21c9&amp;amp;pbs=05b6594bcf4b4728ac1094976a80194d</location>
     <period start="PT2826.240S">
       <adaptationset maxframerate="30" maxheight="720" maxwidth="1280" mimetype="video/mp4" segmentalignment="true" startwithsap="1">
         <representation bandwidth="2604473" codecs="avc1.64001e" framerate="30" height="360" scantype="progressive" width="640">
           <baseurl>https://x-default-stgec.uplynk.com/aapm/slices/8c1/600e5c27541344a1bf3818617ad712ce/8c1027496a964b049f1bd5895f8f0412/</baseurl>
           <segmenttemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/aapm/slices/8c1/600e5c27541344a1bf3818617ad712ce/8c1027496a964b049f1bd5895f8f0412/$RepresentationID$_init.mp4?pbs=05b6594bcf4b4728ac1094976a80194d&amp;amp;_jt=l&amp;amp;chid=8af651fd7473474f86a05ffb0a1c8972" media="$RepresentationID$$Number%08d$.m4f?pbs=05b6594bcf4b4728ac1094976a80194d&amp;amp;_jt=l&amp;amp;chid=8af651fd7473474f86a05ffb0a1c8972" presentationtimeoffset="254361599" startnumber="690" timescale="90000"></segmenttemplate>
         </representation>
       </adaptationset>
     </period>
     <utctiming schemeiduri="urn:mpeg:dash:utc:http-iso:2014" value="https://content-aaps1.uplynk.com/misc/utcservertime"></utctiming>
    </mpd>

    I see that the next segment request should be #3955

    What i have tried so far

       period.end = 1556104456;
       period.start = 2826;
       availability_start_time = 1556088212;
       max_segment_duration = 4;
       time_shift_buffer_depth = 65

    So, first of all, i read DASH-IF-IOP 4.3 section 4.3.4.2 page #82 and implemented the following code :

      int k1 = 1;
    int period_duration = period.end - (period.start + data_.availability_start_time);
    int k2 = ceil((float)period_duration / (float)data_.max_segment_duration);
    double duration = ((float)representation.duration / (float)representation.timeScale);
    size_t live_edge = std::min(
       (int)floor((float)((data_.publish_time - data_.availability_start_time - period.start) / duration)), k2);

    size_t oldest = std::max(k1, (int)floor((float)((data_.publish_time - data_.availability_start_time - period.start -
                                                       data_.time_shift_buffer_depth) /
                                                   duration)));

    after calculating everything : k1=1, k2=3355, live_edge=3272 and oldest=3256

    Also tried using ffmpeg’s dashdec.c

    for min_segment :

    if (c->is_live &amp;&amp; pls->fragment_duration)
       {
           num = pls->first_seq_no + (((get_current_time_in_sec() - c->availability_start_time) - c->time_shift_buffer_depth) * pls->fragment_timescale) / pls->fragment_duration;
       }

    for max_segment :

    num = pls->first_seq_no + (((get_current_time_in_sec() - c->availability_start_time)) * pls->fragment_timescale) / pls->fragment_duration;

    after a small modification :

    size_t pmax = (((data_.publish_time - data_.availability_start_time))) / duration;
    size_t pmin = ((data_.publish_time - data_.availability_start_time) - data_.time_shift_buffer_depth) / duration;

    pmin=3946 pmax=3961

    in the ffmpeg example, i had to manually remove the first_seq_no variable because it looked like i doubled added the SegmentTemplate@StartNumber.

    even after succeeding in this task, how do i exactly build the request list of Segment(NOW) ----> Segment(LIVE_EDGE)