Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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)

  • How to merge two ffmpeg queries to one pipe ?

    19 mai 2021, par Aleksey Timoshchenko

    I have a sequence (100 images) (image ex : https://drive.google.com/file/d/1V8HwOuIo9PBX3ix0eKFQFGimskU_H0mN/view?usp=sharing) of Bayer images, what I need to do is

    


      

    1. debayer them
    2. 


    3. compress the result in the .h264 file
    4. 


    


    So, there are two queries that I use

    


    for debayer

    


    ffmpeg -y -i D:\Buffer\Bayer\Time%7d_img.bmp -vf format=gray -f rawvideo pipe: -hide_banner | ffmpeg -y -f rawvideo -pixel_format bayer_rggb8 -video_size 4104x3006 -i pipe: -frames 100 D:\Buffer\res\result%7d.png -hide_banner


    


    and for compression

    


    ffmpeg -framerate 30 -i D:\Buffer\res\result%7d.png -c:v hevc_nvenc -qp 0 D:\Buffer\res264\test5.h264 -hide_banner


    


    I need to merge these two queries into one, I tried to do it like this

    


    ffmpeg -y -i D:\Buffer\Bayer\Time%7d_img.bmp -vf format=gray -f rawvideo pipe: -hide_banner | ffmpeg -y -f rawvideo -pixel_format bayer_rggb8 -video_size 4104x3006 pipe: -hide_banner | ffmpeg -c:v hevc_nvenc -qp 0 -i pipe D:\Buffer\res264\test5.h264 -hide_banner


    


    but I get an error here

    


    Input #0, image2, from 'D:\Buffer\Bayer\Time%7d_img.bmp':
Output #0, rawvideo, to 'pipe:':  Duration:
00:00:40.0Output file #0 does not contain any stream0
, start: 0.000000, bitrate: N/AUnknown decoder 'hevc_nvenc'

    Stream #0:0: Video: bmp, pal8, 2464x2056, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, rawvideo, to 'pipe:':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0: Video: rawvideo (Y800 / 0x30303859), gray, 2464x2056, q=2-31, 1013196 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.54.100 rawvideo
av_interleaved_write_frame(): Invalid argument
Error writing trailer of pipe:: Invalid argument
frame=    1 fps=0.0 q=-0.0 Lsize=    4947kB time=00:00:00.04 bitrate=1013196.8kbits/s speed=   2x
video:4947kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
Conversion failed!


    


    What am I doing wrong here ?

    


  • Conversion failed ! FFMpeg with custom exe in a pipe

    17 juin 2021, par Aleksey Timoshchenko

    I need to use a batch file with FFmpeg pipe query. I have a set of images (img0.bmp, img1.bmp, img2.bmp) and I need FFmpeg to iterate through them and pass raw data to my custom .exe.

    


    So, the query looks like this

    


    ffmpeg -y -hide_banner -i img%01d.bmp -vf format=gray -f rawvideo pipe: | MY_CUSTOM_EXE


    


    and code of the custom exe is really simple like this

    


    int main()
{
    return 0;
}


    


    The trick of this story is that if I pass to FFmpeg exe just one image like this ... -i img0.bmp ... it works, but if there is a set ... -i img%01d.bmp ..., so I get such an error after the very first interaction :

    


    Input #0, image2, from 'img%01d.bmp':
  Duration: 00:00:00.12, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: bmp, pal8, 4096x3000, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, rawvideo, to 'pipe:':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0: Video: rawvideo (Y800 / 0x30303859), gray, 4096x3000, q=2-31, 2457600 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.54.100 rawvideo
av_interleaved_write_frame(): Invalid argument
Error writing trailer of pipe:: Invalid argument
frame=    1 fps=0.0 q=-0.0 Lsize=   12000kB time=00:00:00.04 bitrate=2457600.0kbits/s speed=0.999x
video:12000kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
Conversion failed!
Press any key to continue . . .


    


    In addition if I use this query like this

    


    ffmpeg -y -hide_banner -i img%01d.bmp -vf format=gray -f rawvideo pipe :

    


    or with other ffmpeg pipe commands

    


    ffmpeg -y -hide_banner -i %input% -vf format=gray -f rawvideo pipe : | ffmpeg -hide_banner -y -framerate 30 ...

    


    it also works perfectly.

    


    So the problem in the MY_CUSTOM_EXE, but what could it be if it has only one line of code ?

    


  • "connection reset by peer" error when streaming from ffmpeg to ffserver

    7 juillet 2021, par g Kishore

    I'm trying to stream a static video file using ffmpeg to ffserver in androidv7.1.2 embedded board.

    


      

    1. Started ffserver with command "ffserver -d /etc/ffserver.conf &"
    2. 


    3. ffmpeg command used to stream :
ffmpeg -i ./sample_960x400_ocean_with_audio.3gp -f flv http://192.168.47.174:8090/feed1.ffm
    4. 


    


    ffserver.conf file content

    


    HTTPPort 8090&#xA;HTTPBindAddress 192.168.47.174&#xA;MaxHTTPConnections 2000&#xA;MaxClients 1000&#xA;MaxBandwidth 100000&#xA;&#xA;#NoDaemon&#xA;#UseDefaults&#xA;#NoDefaults&#xA;&#xA;<feed>&#xA;File /data/local/tmp/feed1.ffm&#xA;FileMaxSize 5M&#xA;</feed>&#xA;&#xA;<stream>&#xA;Feed feed1.ffm&#xA;Format flv&#xA;&#xA;VideoCodec libx264&#xA;VideoFrameRate 24&#xA;VideoBufferSize 80000&#xA;VideoBitRate 512&#xA;VideoQMin 1&#xA;VideoQMax 5&#xA;VideoSize 960x418&#xA;PreRoll 0&#xA;Noaudio&#xA;</stream>&#xA;

    &#xA;

    Error :

    &#xA;

    Thu Jan  1 00:20:04 2015 192.168.47.174 - - [POST] "/feed1.ffm HTTP/1.1" 200 415&#xA;av_interleaved_write_frame(): Connection reset by peer&#xA;    Last message repeated 1 times&#xA;[flv @ 0x41be1d40] Failed to update header with correct duration.&#xA;[flv @ 0x41be1d40] Failed to update header with correct filesize.&#xA;Error writing trailer of http://192.168.47.174:8090/feed1.ffm: Connection reset by peer&#xA;frame=    1 fps=0.0 q=1.6 Lsize=       0kB time=00:00:00.09 bitrate=  33.0kbits/s speed=1.68x    &#xA;video:10kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Conversion failed!&#xA;

    &#xA;

    Any help is greatly appreciated.

    &#xA;