Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (52)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7414)

  • fresh ffmpeg on 10.04 Could Not Find Codec Parameters

    26 juillet 2012, par Dmitry Kharlamov
     ffmpeg version git-2012-07-24-93342de Copyright (c) 2000-2012 the FFmpeg developers
     built on Jul 24 2012 23:55:41 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
     configuration: --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-vdpau --enable-version3 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab
     libavutil      51. 65.100 / 51. 65.100
     libavcodec     54. 44.100 / 54. 44.100
     libavformat    54. 20.100 / 54. 20.100
     libavdevice    54.  2.100 / 54.  2.100
     libavfilter     3.  3.100 /  3.  3.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2a1b240] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), 1280x720): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    /path/to/video.mp4: could not find codec parameters


    ffmpeg command line:
    /usr/local/bin/ffmpeg -i /path/to/video.mp4
  • FFMPEG failing to convert to ogv [closed]

    25 juillet 2012, par Todd R

    I have several videos I'm trying to convert to mp4, swf and ogv. I've got the mp4 and swf's working, but ogv is failing and I'm not sure why. I understand all the arguments you can pass to ffmpeg, but feel like getting the correct ones is a huge guessing game. Any suggestions on what I can change to get this to work would be much appreciated.

    Here's the command I'm using :

    ffmpeg -i /private/var/tmp/phpU5KPR7 -y -s 330X240 -acodec libvorbis -vcodec libtheora outputpath/Videos/1.ogv 2>&1

    And here are the results :

    2012-07-24T19:05:11-07:00 INFO (6): Creating ogv for 1 returned 1:
    2012-07-24T19:05:11-07:00 INFO (6): Array
    (
       [0] => ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
       [1] =>   built on Nov 16 2011 19:56:59 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
       [2] =>   configuration: --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libvorbis --enable-nonfree --disable-yasm
       [3] =>   libavutil    51.  9. 1 / 51.  9. 1
       [4] =>   libavcodec   53.  7. 0 / 53.  7. 0
       [5] =>   libavformat  53.  4. 0 / 53.  4. 0
       [6] =>   libavdevice  53.  1. 1 / 53.  1. 1
       [7] =>   libavfilter   2. 23. 0 /  2. 23. 0
       [8] =>   libswscale    2.  0. 0 /  2.  0. 0
       [9] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/private/var/tmp/phpU5KPR7':
       [10] =>   Metadata:
       [11] =>     major_brand     : 3gp4
       [12] =>     minor_version   : 768
       [13] =>     compatible_brands: 3gp43gp6
       [14] =>   Duration: 00:00:03.17, start: 0.000000, bitrate: 433 kb/s
       [15] =>     Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
       [16] =>     Stream #0.1(eng): Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 411 kb/s, 13.87 fps, 15 tbr, 15k tbn, 15 tbc
       [17] => WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
       [18] => Incompatible sample format 'flt' for codec 'libfaac', auto-selecting format 's16'
       [19] => [buffer @ 0x101001480] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
       [20] => [scale @ 0x101002560] w:352 h:288 fmt:yuv420p -> w:330 h:240 fmt:yuv420p flags:0x4
       [21] => Output #0, mp4, to 'outputpath/Videos/1.mp4':
       [22] =>   Metadata:
       [23] =>     major_brand     : 3gp4
       [24] =>     minor_version   : 768
       [25] =>     compatible_brands: 3gp43gp6
       [26] =>     encoder         : Lavf53.4.0
       [27] =>     Stream #0.0(eng): Video: mpeg4, yuv420p, 330x240 [PAR 8:9 DAR 11:9], q=2-31, 300 kb/s, 20 tbn, 20 tbc
       [28] =>     Stream #0.1(eng): Audio: libfaac, 44100 Hz, 1 channels, s16, 0 kb/s
       [29] => Stream mapping:
       [30] =>   Stream #0.1 -> #0.0
       [31] =>   Stream #0.0 -> #0.1
       [32] => Press [q] to stop, [?] for help
       [33] => Warning, using s16 intermediate sample format for resampling
       [34] => frame=   62 fps=  0 q=6.4 Lsize=     253kB time=00:00:03.08 bitrate= 670.6kbits/s dup=18 drop=0
       [35] => video:238kB audio:12kB global headers:0kB muxing overhead 1.096923%
       [36] => ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
       [37] =>   built on Nov 16 2011 19:56:59 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
       [38] =>   configuration: --enable-libmp3lame --enable-libfaac --enable-libtheora --enable-libvorbis --enable-nonfree --disable-yasm
       [39] =>   libavutil    51.  9. 1 / 51.  9. 1
       [40] =>   libavcodec   53.  7. 0 / 53.  7. 0
       [41] =>   libavformat  53.  4. 0 / 53.  4. 0
       [42] =>   libavdevice  53.  1. 1 / 53.  1. 1
       [43] =>   libavfilter   2. 23. 0 /  2. 23. 0
       [44] =>   libswscale    2.  0. 0 /  2.  0. 0
       [45] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/private/var/tmp/phpU5KPR7':
       [46] =>   Metadata:
       [47] =>     major_brand     : 3gp4
       [48] =>     minor_version   : 768
       [49] =>     compatible_brands: 3gp43gp6
       [50] =>   Duration: 00:00:03.17, start: 0.000000, bitrate: 433 kb/s
       [51] =>     Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s
       [52] =>     Stream #0.1(eng): Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 411 kb/s, 13.87 fps, 15 tbr, 15k tbn, 15 tbc
       [53] => Incompatible sample format 'flt' for codec 'libvorbis', auto-selecting format 's16'
       [54] => [buffer @ 0x1010021a0] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
       [55] => [scale @ 0x101002520] w:352 h:288 fmt:yuv420p -> w:330 h:240 fmt:yuv420p flags:0x4
       [56] => [libvorbis @ 0x101801e00] oggvorbis_encode_init: init_encoder failed
       [57] => Output #0, ogg, to 'outputpath/Videos/1.ogv':
       [58] =>     Stream #0.0(eng): Video: libtheora, yuv420p, 330x240 [PAR 8:9 DAR 11:9], q=2-31, 200 kb/s, 90k tbn, 15 tbc
       [59] =>     Stream #0.1(eng): Audio: libvorbis, 8000 Hz, 1 channels, s16, 64 kb/s
       [60] => Stream mapping:
       [61] =>   Stream #0.1 -> #0.0
       [62] =>   Stream #0.0 -> #0.1
       [63] => Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
    )
  • Lossless avi encoding on linux

    31 août 2012, par JohnSavage

    I am trying to write video using opencv. It is important for me to do this precisely - so it has to be a lossless codec. I am working with OpenCV 2.4.1 on Ubuntu 12.04

    Previously, I was using the fourcc code 0. This gave me the exact result I wanted, and I was able to recover the images perfectly.

    I am not sure what happened, but as of a recent update (around Jul 20th 2012), something went wrong and I am no longer able to write files with this fourcc code. I really don't remember what it was, but it could have come from doing an update, removing some software from my software center, and some other things I did during general cleaning...

    When I check an older file with mediainfo (http://www.fourcc.org/identifier/) I see the following result :

    Complete name                            : oldsample.avi
    Format                                   : AVI
    Format/Info                              : Audio Video Interleave
    Format profile                           : OpenDML
    File size                                : 1.07 GiB
    Duration                                 : 41s 467ms
    Overall bit rate                         : 221 Mbps
    Writing application                      : Lavf53.5.0
    Video
    ID                                       : 0
    Format                                   : RGB
    Codec ID                                 : 0x00000000
    Codec ID/Info                            : Basic Windows bitmap format. 1, 4 and 8 bpp     versions are palettised. 16, 24 and 32bpp contain raw RGB samples
    Duration                                 : 41s 467ms
    Bit rate                                 : 221 Mbps
    Width                                    : 640 pixels
    Height                                   : 4294966 816 pixels
    Display aspect ratio                     : 0.000
    Frame rate                               : 30.000 fps
    Bit depth                                : 8 bits
    Stream size                              : 1.07 GiB (100%)

    Now, I see that when I write using the 0 fourcc codec, the program actually defaults to the i420 codec. Here is the output from one of the files I try to write now :

    Complete name                            : newsample.avi
    Format                                   : AVI
    Format/Info                              : Audio Video Interleave
    File size                                : 73.0 MiB
    Duration                                 : 5s 533ms
    Overall bit rate                         : 111 Mbps
    Writing application                      : Lavf54.6.100
    Video
    ID                                       : 0
    Format                                   : YUV
    Codec ID                                 : I420
    Codec ID/Info                            : 8 bit Y plane followed by 8 bit 2x2 subsampled U and V planes.
    Duration                                 : 5s 533ms
    Bit rate                                 : 111 Mbps
    Width                                    : 640 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 30.000 fps
    Compression mode                         : Lossless
    Bits/(Pixel*Frame)                       : 12.000
    Stream size                              : 72.9 MiB (100%)

    This format, and other formats I try to use (like huffyuv HFYU), do not work for me because I end up with effects like this http://imgur.com/a/0OC4y - you see the bright artifacts coming in due to what I assume is either lossy compression or chroma subsampling in the case of HFYU which is supposed to be lossless. What you are looking at is the red channel from one of my videos. The perceptual effect is negligible when you look at all 3 channels simultaneously but it is essential that I reconstruct the images exactly.

    Furthermore, while I am able to play my old files in media players like vlc, I suddenly find them to be completely incompatible with opencv. When I try to open the older files with a videocapture, the open step works fine, but trying to do a read operation results in a segfault. Furthermore, When I try to write with either :

    CV_FOURCC(0,0,0,0)
    0

    Opencv defaults to I420 for some reason.

    Next, I tried using some alternate codecs. 'DIB ' seems like something that should work for me, and on the opencv website (http://opencv.willowgarage.com/wiki/VideoCodecs) it is listed as a 'recommended' codec. However, trying to use this results in the following message :

    OpenCV-2.4.1/modules/highgui/src/cap_gstreamer.cpp:483: error: (-210) Gstreamer Opencv backend doesn't support this codec acutally. in function CvVideoWriter_GStreamer::open

    Aborted (core dumped)

    I checked the opencv source for this codec, and stumbled across the following :

    cd OpenCV-2.4.1/modules
    grep -i -r "CV_FOURCC" ./*
    ...
    ./highgui/src/cap_qt.cpp:    /*if( fourcc == CV_FOURCC( 'D', 'I', 'B', ' ' ))
    ./highgui/include/opencv2/highgui/highgui_c.h:#define CV_FOURCC_DEFAULT CV_FOURCC('I', 'Y', 'U', 'V') /* Use default codec for specified filename (Linux only) */

    I tried installing qt4 and reconfiguring with the WITH_QT flag, but that did not change anything. I also tried uncommenting that part of the code and reinstalling opencv, but that also did not work.

    My ultimate goal is for any way to efficiently store and retrieve a video stream with 16 bits for every pixel (like 32float would work fine, and then it wouldn't need to be perfect). Right now I am unpacking the 16 bits into the red and green channels, which is why I need it to be perfect - since an error of 1 in the red channel is multiplied by 256 in the final result. I am not having success with any of the fourcc codes available to me.