Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (81)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (7446)

  • C api on capturing video stream from webcam using ffmpeg

    14 juillet 2013, par Tanjim Hossain Sifat

    I am a new user of ffmpeg. Ffmpeg has a good documentation on using it in command-line, but i am looking for some C API code.

    I want to make a software using C, that would capture video stream from webcam and give me the video stream in raw format, that I would encode in a codec later.

    I have visited this given link, but it provided only the command-line use, not the use of libraries provided by ffmpeg :
    http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20capture%20a%20webcam%20input

    I also visited this link, which gave me good idea on using the libavcodec, but no other tutorial is available :
    ffmpeg C API documentation/tutorial

    Please someone help me finding C api on video stream capturing from webcam using ffmpeg's library. Thanks in advance.

  • How to record from webcam using ffmpeg with precise time information of when it was taken ?

    27 février 2021, par Trac3rZ

    I need to record from my 2 webcams and output each frame recorded into images. An additional requirement is I need the time when the image is captured (it has to be precise up to around 10 milliseconds)

    


    Things I've tried :

    


    ffmpeg -y -f video4linux2 -r $frame_rate -i /dev/video0 -vframes 100 -strftime 1 cam0_"%H-%M-%S".png &
ffmpeg -y -f video4linux2 -r $frame_rate -i /dev/video1 -vframes 100 -strftime 1 cam1_"%H-%M-%S".png


    


    This is only good up to a second, so if 2 images are taken within 1 second, 1 is overwritten.

    


    for i in [1..100]
    ffmpeg -y -f video4linux2 -r $frame_rate -i /dev/video0 -vframes 1 -strftime 1 cam0_%5d.png
    date +%s%3N >> time.txt


    


    Then 2 scripts are run in parallel. The timing is now precise up to a millisecond but this degrades the performance a lot since ffmpeg has to be initialized again each time I call the script.

    


    I also tried this

    


    ffmpeg -f video4linux2 -pixel_format yuv420p -timestamps abs -copyts \
   -i /dev/video0 -vf setpts=PTS-STARTPTS -vsync 0 -vframes 10 \
   camera0-%5d.jpeg -c copy -vsync 0 -vframes 10 -f mkvtimestamp_v2 timings.txt


    


    And here's timings.txt

    


    1614427227518
1614427227718
1614427227818
1614427227918
1614427228018
1614427228118
1614427228218
1614427228318
1614427228418
1614427228518


    


    This is good up to 100ms.

    


    Is there any better way to do this ?

    


  • ffmpeg : recommended bitrate vs resolution [duplicate]

    15 octobre 2016, par Santhosh Yedidi

    This question already has an answer here :

    I have high resolution video

     Duration: 00:06:28.80, start: 0.000000, bitrate: 15968 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 15809 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
       Metadata:
         creation_time   : 2016-10-11 05:35:02
         handler_name    : Alias Data Handler
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 157 kb/s (default)
       Metadata:
         creation_time   : 2016-10-11 05:35:02
         handler_name    : Alias Data Handler

    Its 6+min video.

    I am ok with resolution of 240p (because i want to send it on whatsapp)

    In order my video to look good quality what is the recommended bitrate for 240p. Also is what is the minimum bitrate below which the chances of pixelating will be there in the video.

    I dont want to go for high bitrate also. Because ultimately i want the size to be not more than 240p.

    I use mpv to see the video. I scale the original video to 240p, the quality after conversion should match the quality visible in mpv. That will give me first hand idea of how good is the conversion.

    I expect a good amount of reduction in size(MB : where original is 740mb) of the file when reduced from 1920x1080 to 240p

    I have found some information regarding this.

    enter image description here

    How much is this true