Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (50)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (8401)

  • Revision 34801 : Suivre la version 1.1.6 de Markitup. ...

    30 janvier 2010, par marcimat@… — Log
  • hls error after change in ts file with ffmpeg

    9 août 2019, par Mohsen Rahnamaei

    I want to manipulate ts file separately with ffmpeg command, for example, I want to write something in each ts file in ordet to do that first i get m3u8 and other ts file with ffmpeg command and after that i can play it correctly
    after that i am trying to write something o all ts file with this command

    ffmpeg -i stream0.ts -vf  "drawbox=y=ih/PHI:color=black@0.4:width=iw:height=48:t=fill,  drawtext=text='Title of this Video':fontcolor=white" -c:v libx264 -c:a copy    ../video6/stream0.ts
    ffmpeg -i stream1.ts -vf  "drawbox=y=ih/PHI:color=black@0.4:width=iw:height=48:t=fill,  drawtext=text='Title of this Video':fontcolor=white" -c:v libx264 -c:a copy    ../video6/stream1.ts
    ffmpeg -i stream2.ts -vf  "drawbox=y=ih/PHI:color=black@0.4:width=iw:height=48:t=fill,  drawtext=text='Title of this Video':fontcolor=white" -c:v libx264 -c:a copy    ../video6/stream2.ts
    ffmpeg -i stream3.ts -vf  "drawbox=y=ih/PHI:color=black@0.4:width=iw:height=48:t=fill,  drawtext=text='Title of this Video':fontcolor=white" -c:v libx264 -c:a copy    ../video6/stream3.ts
    ffmpeg -i stream4.ts -vf  "drawbox=y=ih/PHI:color=black@0.4:width=iw:height=48:t=fill,  drawtext=text='Title of this Video':fontcolor=white" -c:v libx264 -c:a copy    ../video6/stream4.ts
    ffmpeg -i stream5.ts -vf  "drawbox=y=ih/PHI:color=black@0.4:width=iw:height=48:t=fill,  drawtext=text='Title of this Video':fontcolor=white" -c:v libx264 -c:a copy    ../video6/stream5.ts
    ...

    and then iam trying to play these new ts file withe old m3u8
    but i get this error in console and hls player get stuck

         Dropping 1 audio frame @ 6.037s due to 6037 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 6015 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 5994 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 5973 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 5952 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 5930 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 5909 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 5888 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 5866 ms overlap.
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remuxAudio @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.remux @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.append @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.pushDecrypted @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     e.push @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     (anonymous) @ blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1
     blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to 5845 ms overlap.



           log] > AVC:4755 ms overlapping between fragments detected
       blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [log] > Video/PTS/DTS adjusted: 4755/4755,delta:-4755 ms
       hls.js@latest:1 [log] > Parsed video,PTS:[4.755,5.881],DTS:[4.755/5.797],nb:141,dropped:0
       hls.js@latest:1 [warn] > negative duration computed for frag 3,level 0, there should be some duration drift between playlist and fragment!
       (anonymous) @ hls.js@latest:1
       a @ hls.js@latest:1
       n @ hls.js@latest:1
       r.onFragParsingData @ hls.js@latest:1
       e.onEventGeneric @ hls.js@latest:1
       e.onEvent @ hls.js@latest:1
       l.emit @ hls.js@latest:1
       t.trigger @ hls.js@latest:1
       t.onWorkerMessage @ hls.js@latest:1
       hls.js@latest:1 [warn] > negative duration computed for frag 1,level 0, there should be some duration drift between playlist and fragment!
       (anonymous) @ hls.js@latest:1
       a @ hls.js@latest:1
       n @ hls.js@latest:1
       r.onFragParsingData @ hls.js@latest:1
       e.onEventGeneric @ hls.js@latest:1
       e.onEvent @ hls.js@latest:1
       l.emit @ hls.js@latest:1
       t.trigger @ hls.js@latest:1
       t.onWorkerMessage @ hls.js@latest:1
       hls.js@latest:1 [log] > main stream:PARSING->PARSED
       hls.js@latest:1 [log] > main buffered : [0.000,6.006]
       hls.js@latest:1 [log] > latency/loading/parsing/append/kbps:20/7/83/5/189565
       hls.js@latest:1 [log] > main stream:PARSED->IDLE
       hls.js@latest:1 [log] > Loading 5 of [0 ,5],level 0, currentTime:0.347,bufferEnd:6.006
       hls.js@latest:1 [log] > main stream:IDLE->FRAG_LOADING
       hls.js@latest:1 [log] > Loaded 5 of [0 ,5],level 0
       hls.js@latest:1 [log] > Parsing 5 of [0 ,5],level 0, cc 0
       hls.js@latest:1 [log] > main stream:FRAG_LOADING->PARSING
       blob:null/d1ca8bf8-cdfc-4b21-bd28-0d0871f7d4bd:1 [warn] > Dropping 1 audio frame @ 6.037s due to

    and after that, I try to analyse new and old with : https://github.com/epiclabs-io/hls-analyzer
    and i get this for a correct and old version of my process :

    ***** Analyzing variant (0) *****

    ** Generic information **
    Version: 3
    Start Media sequence: 0
    Is Live: False
    Encrypted: False
    Number of segments: 6
    Playlist duration: 30.073711

    ** Downloading http://localhost:8182/streams/stream0.ts, Range: None **
    ** Tracks and Media formats **
    Track #0 - Type: video/avc, Format: Video (H.264) - Profile: High, Level: 0, Resolution: 1920x1080, Encoded aspect ratio: 1/1, Display aspect ratio: 16/9
    Track #1 - Type: audio/mp4a-latm, Format: Audio (AAC) - Sample Rate: 48000, Channels: 6

    ** Timing information **
    Segment declared duration: 6.089822
    Track #0 - Duration: 1.126123 s, First PTS: 6.321588 s, Last PTS: 7.447711 s
    Track #1 - Duration: 1.216332 s, First PTS: 6.228255 s, Last PTS: 7.444587 s
    Duration difference (declared vs real): 4.963699s (440.78%)

    ** Frames **
    Track #0 - Frames:  I P B B B P B B B P B B B P P P P P P P P P P P P P B B     AA: 0, BB: 0

       Good! Track starts with a keyframe
       Keyframes count: 1

    Track #1 - Frames:  I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I

    and this for new ts file :

    ***** Analyzing variant (0) *****

    ** Generic information **
    Version: 3
    Start Media sequence: 0
    Is Live: False
    Encrypted: False
    Number of segments: 6
    Playlist duration: 30.073711

    ** Downloading http://localhost:8182/streams/stream0.ts, Range: None **
    ** Tracks and Media formats **
    Track #0 - Type: video/avc, Format: Video (H.264) - Profile: 0, Level: 0, Resolution: 0x0, Encoded aspect ratio: 1/1, Display aspect ratio: 1
    Track #1 - Type: audio/mp4a-latm, Format: Audio (AAC) - Sample Rate: 48000, Channels: 6

    ** Timing information **
    Segment declared duration: 6.089822
    Track #0 - Duration: 0.0 s, First PTS: 7.406011 s, Last PTS: 7.406011 s
    Track #1 - Duration: 0.063999 s, First PTS: 7.392922 s, Last PTS: 7.456921 s
    Duration difference (declared vs real): 6.025823s (9415.50%)

    ** Frames **
    Track #0 - Frames:      AA: 0, BB: 0

       Keyframes count: 0
       Warning: there are no keyframes in this track! This will cause a bad playback experience

    Track #1 - Frames:  I I I I I I

    what should I do ?
    my final target is to write something in ts file and see the correct effect of that on hls playing

  • Discord Music Bot interrupts music playback on Heroku

    29 mars 2023, par denisnumb

    I have a music discord bot written in Python. Bot plays music from YouTube using the yt-dlp library and ffmpeg.

    


    Everything worked fine, but a couple of days ago the bot began to interrupt the playback of any tracks for ~80% duration, crashing with an error :

    


    [tls @ 0x6e3b440] Error in the pull function.
[tls @ 0x6e3b440] IO error: Connection reset by peer
[https @ 0x6e37900] Will reconnect at 720896 in 0 second(s), error=Connection reset by peer.


    


    I have the latest version of py-cord=2.4.1 and yt-dlp==2023.3.4 installed. When the bot is launched on my computer, the bot plays all the tracks to the end, so the problem is clearly not in the code and not in the libraries.

    


    I suspect something is wrong with ffmpeg, so I tried installing different buildpacks, but that didn't solve the problem.

    


    At the moment I have the following installed :

    


    https://github.com/xrisk/heroku-opus.git
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git


    


    What could be the problem and how to solve it ? Why did this problem appear only on hosting ? Why didn't this happen before ?