Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (68)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (7184)

  • Output a video to a file

    3 novembre 2011, par EagleEye

    I am working on a very CPU intensive legacy application on windows which captures video frames from camera and displays it on the screen. Now I need to add a feature to it to save this video feed to an output file. And I have a raw image data as an input. I need to make this process as efficient as possible so that it doesn't affect the performance of my application.

    So what are the best available API's in C++ that I can use to create an output video file. And moreover what should be the most efficient encoding format that I must use so that I get the maximum throughput. Also I may have to use some compression techniques. So what should be the best approach.

    Moreover can I use GPU acceleration for this process and how ?

    Uptil now I have encountered following tools that I may use :

    1. OpenCV
    2. Microsoft Media Foundation LIbrary or DirectShow
    3. ffmpeg
  • RGB to YUV422 conversion with ffmpeg, incorrect colors

    22 janvier 2016, par user3578571

    I’m trying to convert an 8bit RGB uncompressed to an mpeg2 mxf file (xdcam 422 HD 1080 50i) which is YUV422. With info from the FFMpeg docs and various websites i made the following command :

    ./ffmpeg -y -i test_lines.mov  -pix_fmt yuv422p -vcodec mpeg2video -non_linear_quant 1 -flags +ildct+ilme -top 1 -dc 10 -intra_vlc 1 -qmax 2 -vtag xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -g 12 -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 8000k -acodec pcm_s24le -ar 48000 -bf 2 -ac 2 lines_HD.mxf

    This gave me a result with the colors much brighter than the original.

    So i tried adding the options -color_range 1 -colorspace 1 -color_primaries 1 -color_trc 1 but this didn’t seem to do anything.

    After adding colormatrix=bt601:bt709 i got a way better image, but slightly darker than the original and it also feels weird specifying this option cause the source is also in the REC709 colorspace, so why specify it differently ?

    Next i regenerated my source image to an YUV codec (prores) and rerun FFMpeg on it with the colors coming out just fine. Therefore i think it has to be an RGB -> YUV problem.
    Does somebody have an idea how to this properly ? I can provide screenshots of the different results on a videoscope as soon as i’m back at the office, if anybody is interested.

    Last, i know there are various topics touching this subject but either they go way over my head FFmpeg wise or bring me to the stage where i already am.

  • Using OpenCV 2.4.4 with FFmpeg in Windows

    22 décembre 2015, par aardvarkk

    I know there are other questions dealing with FFmpeg usage in OpenCV, but most of them appear to be outdated.

    By opening up the makefiles in CMake, I can verify that I’ve got the WITH_FFMPEG flag on. My output folder for the OpenCV build contains a bin folder, within which are Debug and Release folders, each containing a copy of a .dll file entitled opencv_ffmpeg244.dll. I can step into the source code of OpenCV when I create a VideoWriter and verify that the function pointers to the .dll get filled correctly. That much appears to be working.

    If I use the FOURCC code of CV_FOURCC_PROMPT, the following codecs work properly :

    • Microsoft Video 1
    • Intel IYUV codec
    • Logitech Video (I420)
    • Cinepak Codec by Radius
    • Full Frames (Uncompressed)

    The following codecs do not work properly (ie. produce a 0kb video file) :

    • Microsoft RLE

    If my understanding is correct, using FFMPEG should allow for encoding video using a whole bunch of new codecs (x264, DIVX, XVID, and so on). However, none of these appear in the prompt. Manually setting them by their FOURCC codes using the macro CV_FOURCC(...) also doesn’t work. For instance, using this : CV_FOURCC('X','2','6','4') produces the message :

    Could not find encoder for codec id 28: Encoder not found

    and makes a video file of size 0kb.

    Using this : CV_FOURCC('X','V','I','D') produces no error message, and makes a video file of 6kb that will not play in Windows Media Player or VLC.

    I tried manually downloaded the Xvid codec from Xvid.org. Once that was installed, it appeared under the VFW selection in the prompt, and the encoding worked properly. So it’s close to a solution, but if I try to set the FOURCC code directly, it still fails as above ! I have to pick it from the prompt every time. Isn’t FFmpeg supposed to include a whole bunch of codecs ? If so, why am I manually downloading the codec instead of using the one built into FFmpeg ?

    What am I missing here ? Is there a way to check that FFMPEG is "enabled" ? It seems like the only codecs available in the prompt are VFW codecs, not the FFMPEG ones. The .dll has been built and is sitting in the same folder as the executable, but it appears it’s not being used in any way.

    Lots of related questions here. Hoping to find somebody knowledgeable about the FFmpeg implementation in OpenCV and with some knowledge of how all of these pieces fit together.