Recherche avancée

Médias (91)

Autres articles (32)

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

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (4539)

  • Ffmpeg burnt in subtitles out of sync when converting to hls

    19 mai 2020, par user1503606

    I have a file that has subtitles burn into it and they are perfectly in sync.

    



    Here is the file. https://983yqbz442.s3.amazonaws.com/little-mermaid-captions.mp4

    



    I run this command to convert to hls and it creates the .ts files and the .vtt files.

    



    ffmpeg -i little-mermaid-captions.mp4 -profile:v baseline -level 3.0 -s 640x360 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls index.m3u8


    



    I also then create a master.m3u8 file in the same folder with the following.

    



    #EXTM3U
#EXT-X-VERSION:3
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360,SUBTITLES="subtitles"
index.m3u8
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitles",NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="ENG",URI="index_vtt.m3u8"


    



    Now if I play the master.m3u8 file the subtitles are now out of sync and are about 1 sec to quick. I understand this is probably a setting I am missing through FFmpeg but really stuck on this and would appreciate any insight.

    



    Thanks

    



    More info.

    



    Here is a link to the direct .m3u8 this can be opened in Safari.

    



    https://983yqbz442.s3.amazonaws.com/hlstests/master.m3u8

    



    The generated vtt file is here.

    



    https://983yqbz442.s3.amazonaws.com/hlstests/subs-0.vtt

    



    If you look at the start of the .vtt file you will see this.

    



    WEBVTT

00:06.840 --> 00:10.320
once long ago in the deep blue below


    



    It should start at 00:06.840 but when playing the .m3u8 file in Safari you should see it starts at around 5 seconds not 6 about a second too early.

    


  • Transcoding rtsp over http

    24 novembre 2016, par NikiDon

    Before I explain my problem : Sorry for bad English and if you want you can help me on my spelling too.

    I have a low cost IP camera who give only a RTSP link :
    192.168.x.x/onvif2
    It doesn’t need authentication to see video... my router doesn’t have open ports^^

    I want to trancode rtsp ( because of html can’t play it) with FFMPEG to send it on a server node.js ( express ) and in index.html play stream in video tag :

    Server.js :

    <code class="echappe-js">&lt;script&gt;<br />
       var express = require('express');<br />
       var path = require('path');<br />
       var app = express();<br />
       var server = require('http').Server(app);<br />
       var io = require('socket.io')(server);<br />
    <br />
       app.use(express.static(path.join(__dirname, 'public')));<br />
    <br />
       app.get('/', function (req, res) {<br />
           res.sendFile(__dirname + '/index.html');<br />
       });<br />
    <br />
       server.listen(8080);<br />
       console.log(&quot;server run at 127.0.0.1:8080&quot;);<br />
    <br />
       io.on('connection',function(socket){<br />
           socket.emit('hello','hello user');<br />
       });<br />
    &lt;/script&gt;

    and index.html :

       <video style="background-color: black;" width="480" height="270" autoplay="autoplay">
       <source src="http://127.0.0.1:8080/vid2.mp4" type="video/mp4" codecs="avc1.42E01E, mp4a.40.2">
       </source></video>

       <code class="echappe-js">&lt;script&gt;<br />
           var socket = io.connect();<br />
           socket.on('hello',function(data){<br />
               console.log(data);<br />
           });<br />
    <br />
       &lt;/script&gt;

    ffmpeg -i rtsp ://192.168.x.x/onvif2 -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -r 25 -b:v 500k -f flv http://127.0.0.1:xx/vid2.mp4

    The camera starts but I can’t find vid2.mp4

    How can I replace ffserver with a node server (http? udp ?...)

  • looking for Settings for FFmpeg, xTeVe, Plex [closed]

    3 août 2022, par Chris

    I am not sure if I am in the right place. But maybe someone can help me.

    &#xA;

    Sorry for my bad english.

    &#xA;

    I have a Qnap NAS, on this is insalled FFmepg, xTeVe and Plex.&#xA;I try to see IPTV Streams on Plex.

    &#xA;

    Here the log file from xTeVe :

    &#xA;


    &#xA;

    2022-02-28 21:57:42 [xTeVe] Buffer : true [ffmpeg]

    &#xA;

    2022-02-28 21:57:42 [xTeVe] Buffer Size : 4096 KB

    &#xA;

    2022-02-28 21:57:42 [xTeVe] Channel Name : VIP SW : SRF 1 FHD

    &#xA;

    2022-02-28 21:57:42 [xTeVe] Client User-Agent : Lavf/58.65.101

    &#xA;

    2022-02-28 21:57:43 [xTeVe] Streaming Status : Playlist : Schweiz Neu - Tuner : 1 / 1

    &#xA;

    2022-02-28 21:57:43 [xTeVe] FFMPEG path : /usr/bin/ffmpeg

    &#xA;

    2022-02-28 21:57:43 [xTeVe] Streaming URL : http://tunestream.me:8080/XXXXXXX&#xA;/XXXXXXXX/9165

    &#xA;

    2022-02-28 21:57:43 [xTeVe] FFMPEG : Processing data

    &#xA;

    2022-02-28 21:57:43 [xTeVe] Streaming Status : Receive data from FFMPEG

    &#xA;

    2022-02-28 21:57:43 [xTeVe] FFMPEG log : [mpegts @ 0x55e0732fe560] dimensions&#xA;not set

    &#xA;

    2022-02-28 21:57:43 [xTeVe] [ERROR] FFMPEG error (Streaming was stopped by third party&#xA;transcoder (FFmpeg / VLC)) - EC : 1204

    &#xA;

    2022-02-28 21:57:43 [xTeVe] FFMPEG log : Could not write header for output file&#xA;#0 (incorrect codec parameters ?) : Invalid argument

    &#xA;

    2022-02-28 21:57:43 [xTeVe] FFMPEG log :

    &#xA;

    2022-02-28 21:57:43 [xTeVe] Streaming Status : Client has terminated the connection

    &#xA;

    2022-02-28 21:57:43 [xTeVe] Streaming Status : Channel : VIP SW : SRF 1 FHD (Clients : 0)

    &#xA;

    2022-02-28 21:57:44 [xTeVe] Streaming Status : Channel : VIP SW : SRF 1 FHD - No client&#xA;is using this channel anymore. Streaming Server connection has ended

    &#xA;

    2022-02-28 21:57:44 [xTeVe] Streaming Status : Playlist : Schweiz Neu - Tuner : 0 / 1

    &#xA;


    &#xA;

    on xTeVe i set this settings :

    &#xA;

    Buffer Size : 5 MB

    &#xA;

    Timeout for new client connections : 500

    &#xA;

    FFmpeg Options : -hide_banner -loglevel error -i [URL] -c copy -f mpegts pipe:1

    &#xA;

    If i put the Streaming URL on VLC is working.&#xA;But not with FFmpeg, xTeVe and Plex.

    &#xA;

    Thanks for your help.

    &#xA;

    Greetings&#xA;Chris

    &#xA;