Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (77)

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

  • ffmpeg droping session when there is no input , need to wait for an input

    25 mars 2019, par Hovo

    I am trying to live stream to facebook from an application, which is writing frames into image sequence of XXX_Frame.jpg inside a folder.

    I am using a ffmpeg with these commands

    ffmpeg -y -r 15 -f image2 -start_number 0 -i "%0d_Frame.jpg" -i "test.mp3" -muxdelay 1 -preset slow -flush_packets 1 -ar 44100 -b:a 128k -profile:v baseline -acodec aac -vf scale=1280x720 -vcodec libx264 -crf 15 -r 50 -pix_fmt yuvj420p -minrate 50k -maxrate 150k -bufsize 8192k -g 1 -b:v 1200 -f flv "rtmp ://live-api-s.facebook.com:80/rtmp/xxxxxx"

    It is starting to stream faster than 15 frames per second and whenever it finishes up streaming of the available frames it is killing the process and returning error.
    It would be perfect if it was possible to slow down the mux’s read from the input to frame rate speed.

    [flv @ 000001f34347cf00] Failed to update header with correct duration.
    [flv @ 000001f34347cf00] Failed to update header with correct filesize.
    Error writing trailer of rtmp ://live-api-s.facebook.com:80/rtmp/xxxxxx : Error number -10053 occurred

    Any help would be appreciated.

    Expected result is to stream continuously without losing the connection , even sending the last available image continuously.

  • Broadcast webcamer over ffserver and ffmpeg

    8 février 2019, par AkBako

    I setup the ffserver on Ubuntu 16.04 UPU. I did some streami from a .webm video fileы to the site. Now I can’t start streaming from the webcam of my laptop and show it on the website. Please need help.

    Technical info :

    Client-site:Windows 10

    WebCamera : YUV 4:2:2 640x480 fps 30.0

    Server-site : VPS Server Ubuntu 16.04

    ffserver.conf

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 500000
    CustomLog -
    NoDaemon
    RTSPPort 7654
    RTSPBindAddress 0.0.0.0
    <feed>               # This is the input feed where FFmpeg will send
      File ./feed1.ffm            # video stream.
      FileMaxSize 1G              # Maximum file size for buffering video
    </feed>

    <stream>
       Feed feed1.ffm
       Format webm
       # Audio settings
       AudioCodec vorbis
       AudioBitRate 64             # Audio bitrate

       # Video settings
       VideoCodec libvpx
       VideoSize 640x480          # Video resolution
       VideoFrameRate 30           # Video FPS
       AVOptionVideo flags +global_header  # Parameters passed to encoder
                                          # (same as ffmpeg command-line parameters)
       AVOptionVideo cpu-used 0
       AVOptionVideo qmin 10
       AVOptionVideo qmax 42
       AVOptionVideo quality good
       AVOptionAudio flags +global_header
       PreRoll 15
       StartSendOnKey
       VideoBitRate 400
    </stream>

    <stream>
     Format status
     # Only allow local people to get the status
     ACL allow localhost
     ACL allow 192.168.0.0 192.168.255.255
    </stream>

    <redirect>    # Just an URL redirect for index
      # Redirect index.html to the appropriate site
      URL http://XX.XXX.XXX.XXX
    </redirect>

    Run code on Windows :

    ffmpeg -f dshow -i video="USB2.0 HD UVC WebCam" -video_size 640x480 -rtbufsize 702000k -framerate 30 -pixel_format yuyv422 -f mpegts http://XXX.XXX.XX.XX:8090/feed1.ffm

    Error message on Windows :

    Input #0, dshow, from 'video=USB2.0 HD UVC WebCam':
     Duration: N/A, start: 5326.566000, bitrate: N/A
       Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 30 fps, 30 tbr, 10000k tbn, 10000k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg2video (native))
    Press [q] to stop, [?] for help
    [swscaler @ 06e5a000] deprecated pixel format used, make sure you did set range correctly
    Output #0, mpegts, to 'http://95.183.11.180:8090/feed1.ffm':
     Metadata:
       encoder         : Lavf58.24.101
       Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 1280x720, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc
       Metadata:
         encoder         : Lavc58.42.103 mpeg2video
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    av_interleaved_write_frame(): Unknown error
    Error writing trailer of http://95.183.11.180:8090/feed1.ffm: Error number -10054 occurred
    frame=    3 fps=0.0 q=1.6 Lsize=      46kB time=00:00:00.00 bitrate=34318545.5kbits/s speed=9.07e-05x
    video:84kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    [http @ 06dd5c00] URL read error:  -10054
    Conversion failed!

    FFserver log :

    Fri Feb  8 03:14:58 2019 178.88.140.182 - - [POST] "/feed1.ffm HTTP/1.1" 200 4096
  • How can i mux H264 stream into MP4 file via libavformat

    14 août, par Brian

    I want to realize an application that firstly decode a multi-media file(such as test.mp4 file, video codec id is H264), get a video stream and an audio stream, then make some different in the audio stream, at last encode the video stream (use libx264) and audio stream into a result file (result.mp4). To promote the efficiency, I omitted the decode and encode of video stream, i get the video packet via function av_read_frame, then output it directly into the result file via function av_write_frame. But there is no picture in the output file, and the size of output file is fairly small.

    &#xA;

    I tracked the ffmpeg code and found that in the function av_write_frame->mov_write_packet->ff_mov_write_packet, it will call function ff_avc_parse_nal_units to obtain the size of nal unit, but the return value is very small (such as 208 bytes).

    &#xA;

    I find that the H264 stream in the MP4 file is not stored in Annex-B format, so it can't find start code (0x000001).

    &#xA;

    Now my problem is how can I change the H264 stream to Annex-B format, and make it work ?

    &#xA;

    I added start code at the beginning of every frame manually, but it still not work.

    &#xA;

    Following is the codes similar with my :

    &#xA;

    // write the stream header, if any&#xA;av_write_header(pFormatCtxEnc);&#xA;&#xA;.........&#xA;/**&#xA;* Init of Encoder and Decoder&#xA;*/&#xA;&#xA;bool KeyFlag = false;&#xA;bool KeyFlagEx = false;&#xA;// Read frames and save frames to disk&#xA;int iPts = 1;&#xA;av_init_packet(&amp;packet);&#xA;while(av_read_frame(pFormatCtxDec, &amp;packet)>=0)&#xA;{&#xA;        if (packet.flags == 1)&#xA;                KeyFlag = true;&#xA;&#xA;        if (!KeyFlag)&#xA;                continue;&#xA;&#xA;        if (m_bStop)&#xA;        {&#xA;                break;&#xA;        }&#xA;&#xA;        // Is this a packet from the video stream?&#xA;        if(packet.stream_index == videoStream)&#xA;        {&#xA;                currentframeNum &#x2B;&#x2B;;&#xA;                if (progressCB != NULL &amp;&amp; currentframeNum%20 == 0)&#xA;                {&#xA;                        float fpercent = (float)currentframeNum/frameNum;&#xA;                        progressCB(fpercent,m_pUser);&#xA;                }&#xA;&#xA;                if (currentframeNum >= beginFrame &amp;&amp; currentframeNum &lt;= endFrane)&#xA;                {&#xA;                        if (packet.flags == 1)&#xA;                                KeyFlagEx = true;&#xA;&#xA;                        if (!KeyFlagEx)&#xA;                                continue;&#xA;                        packet.dts = iPts &#x2B;&#x2B;;&#xA;                        av_write_frame(pFormatCtxEnc, &amp;packet);&#xA;&#xA;                }&#xA;        }&#xA;        // Free the packet that was allocated by av_read_frame&#xA;}&#xA;&#xA;// write the trailer, if any&#xA;av_write_trailer(pFormatCtxEnc);&#xA;&#xA;/**&#xA;* Release of encoder and decoder&#xA;*/&#xA;&#xA;return true;&#xA;

    &#xA;