Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (107)

  • La gestion des forums

    3 novembre 2011, par

    Si les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
    Accès à l’interface de modération des messages
    Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
    S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

Sur d’autres sites (11643)

  • How to parse ffmpeg info in PHP ?

    29 mai 2013, par Jizbo Jonez

    How does one go about getting specific pieces of information, like the 'duration' from the output of ffmpeg -i /var/thismovie.avi ?

    I need frame height, frame width, duration of movie and frame rate. All of these are in the out put of the above command but how do i get the bits i need individually and put them in a variable in PHP ?

    I've given up on trying to install ffmpeg-php which is what I used before this to do the same job.

    Thanks

    ffmpeg -i /var/thismovie.avi produce an output like this

    ffmpeg version N-43171-ga763caf Copyright (c) 2000-2012 the FFmpeg developers built on Aug 3 2012 07:56:19 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52) configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-pic --enable-libx264 --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC libavutil 51. 66.100 / 51. 66.100 libavcodec 54. 48.100 / 54. 48.100 libavformat 54. 22.100 / 54. 22.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 5.102 / 3. 5.102 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [avi @ 0x18e8e240] non-interleaved AVI [avi @ 0x18e8e240] max_analyze_duration 5000000 reached at 5000000 Input #0, avi, from '/var/www/vhosts/mysite.com/httpdocs/movie.avi': Duration: 00:00:10.76, start: 0.000000, bitrate: 5180 kb/s Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 128 kb/s At least one output file must be specified`
  • Write webcam video with avconv

    31 juillet 2012, par Jones

    Have problem to write video avi with avconv

    I try using

    avconv -v debug -f video4linux2 -i /dev/video1 frontal.avi

    but video not correct. I see this line [video4linux2 @ 0x8100b00] The v4l2 frame is 8160 bytes, but 614400 bytes are expected and I don't identify options to correct this.

    Output of debug

    avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
     built on Jun 12 2012 16:37:58 with gcc 4.6.3
     configuration: --extra-version='4:0.8.3-0ubuntu0.12.04.1' --arch=i386 --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static
     libavutil    51. 22. 1 / 51. 22. 1
     libavcodec   53. 35. 0 / 53. 35. 0
     libavformat  53. 21. 0 / 53. 21. 0
     libavdevice  53.  2. 0 / 53.  2. 0
     libavfilter   2. 15. 0 /  2. 15. 0
     libswscale    2.  1. 0 /  2.  1. 0
     libpostproc  52.  0. 0 / 52.  0. 0
    [video4linux2 @ 0x8100b00] [3]Capabilities: 4000001
    [video4linux2 @ 0x8100b00] Querying the device for the current frame size
    [video4linux2 @ 0x8100b00] Setting frame size to 640x480
    [video4linux2 @ 0x8100b00] The V4L2 driver set input_id: 0, input: Camera 1
    [video4linux2 @ 0x8100b00] The v4l2 frame is 8160 bytes, but 614400 bytes are expected
    [rawvideo @ 0x8102920] err{or,}_recognition separate: 1; 1
    [rawvideo @ 0x8102920] err{or,}_recognition combined: 1; 1
    [video4linux2 @ 0x8100b00] Estimating duration from bitrate, this may be inaccurate
    Input #0, video4linux2, from '/dev/video1':
     Duration: N/A, bitrate: 147456 kb/s
       Stream #0.0, 0, 1/1000000: Video: rawvideo, yuyv422, 640x480, 1/30, 147456 k
    File 'frontal.avi' already exists. Overwrite ? [y/N] y
    Incompatible pixel format 'yuyv422' for codec 'mpeg4', auto-selecting format 'yu
    [buffer @ 0x81020c0] w:640 h:480 pixfmt:yuyv422
    [avsink @ 0x81022a0] auto-inserting filter 'auto-inserted scaler 0' between the
    [scale @ 0x81026e0] w:640 h:480 fmt:yuyv422 -> w:640 h:480 fmt:yuv420p flags:0x4
    [mpeg4 @ 0x81019a0] err{or,}_recognition separate: 1; 1
    [mpeg4 @ 0x81019a0] err{or,}_recognition combined: 1; 1
    [mpeg4 @ 0x81019a0] detected 1 logical cores
    [mpeg4 @ 0x81019a0] Unsupported bit depth: 0
    [rawvideo @ 0x8102920] err{or,}_recognition separate: 1; 1
    [rawvideo @ 0x8102920] err{or,}_recognition combined: 1; 1
    Output #0, avi, to 'frontal.avi':
     Metadata:
       ISFT            : Lavf53.21.0
       Stream #0.0, 0, 1/30: Video: mpeg4, yuv420p, 640x480, 1/30, q=2-31, 200 kb/s
  • Converting video formats and copying tags with ffmpeg

    21 mai 2016, par Scott

    I’ve been trying to convert some videos I took on my camera to a compressed format in order to save some storage space. I figured out how to use ffmpeg to convert the videos to the format I want, but what I haven’t been able to figure out is how to copy the metadata. I’d like to copy the original metadata from when the video was taken (most importantly the creation time). I’ve tried running ffmpeg using the -map_meta_data 0:0 option, but that didn’t seem to work. Any ideas ?

    It looks like the data I want to copy in this case is in the format section of the video. Using ffprobe with the show_format option, I get this output :

    [FORMAT]
    filename=video.AVI
    nb_streams=2
    format_name=avi
    format_long_name=AVI format
    start_time=0.000000
    duration=124.565421
    size=237722700
    bit_rate=15267331
    TAG:creation_time=2012-02-07 12:15:27
    TAG:encoder=CanonMVI06
    [/FORMAT]

    I would like to copy the two tags to my new video.