Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (85)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

  • Using FFMPEG to add pillar bars

    10 février 2021, par Ewok BBQ

    I have transferred some film to video files from 16mm (native 4:3). The image looks great.

    


    When I scanned them, I scanned to a native 16:9. As I overscanned them, I got the entire height of the frame, which is what I want. But it also got the soundtrack and perforation. But I want to go just to the frame line on the sides as well.

    


    I can CROP the image down with FFMPEG to remove the information outside of the framing I want [-vf crop=1330:1080:00:00].
I know this will result in a non-standard aspect ratio.
This plays fine on a computer (vlc just adapts to the non-standard).

    


    But for standardized delivery, I would love to keep the native 1920x1080 pixels, but just make everything outside of the centered 1330:1080 black.

    


    Is there a way to specifically select where the pillar bars are ?

    


    I really want to re-encode the video as little as possible.

    


    In that vein, does anyone have a better tool than -vf crop as well ?

    


    thank you very very much.

    


  • Writing an MP4 file on the Mac with OpenCV ffmpeg

    31 décembre 2020, par Sameer Parekh

    I am using OpenCV with ffmpeg on a mac to write video. I've been able to successfully write .avi files using the codec/fourcc code, FMP4. I would like to write .mp4 files, however. When I try to write an .mp4 file using fourcc FMP4 I get this error :

    



    [mp4 @ 0x100b4ec00] Tag FMP4/0x34504d46 incompatible with output codec id '13' ( [0][0][0])


    



    When I use AVC1 I get the following error :

    



    [libx264 @ 0x104003000] broken ffmpeg default settings detected&#xA;[libx264 @ 0x104003000] use an encoding preset (e.g. -vpre medium)&#xA;[libx264 @ 0x104003000] preset usage: -vpre <speed> -vpre <profile>&#xA;[libx264 @ 0x104003000] speed presets are listed in x264 --help&#xA;[libx264 @ 0x104003000] profile is optional; x264 defaults to high&#xA;Could not open codec &#x27;libx264&#x27;: Unspecified error&#xA;</profile></speed>

    &#xA;&#xA;

    Does anyone here know the right codec to use with OpenCV and ffmpeg to write to an MP4 container on the Mac ?

    &#xA;&#xA;

    If AVC1 is the right codec, how do I install ffmpeg + OpenCV correctly ? I did

    &#xA;&#xA;

    brew install gpac&#xA;brew install ffmpeg&#xA;brew install opencv&#xA;

    &#xA;&#xA;

    The call I am using to open the videowriter :

    &#xA;&#xA;

    fourcc = cv2.cv.CV_FOURCC(&#x27;A&#x27;, &#x27;V&#x27;, &#x27;C&#x27;, &#x27;1&#x27;)   &#xA;video_out = cv2.VideoWriter(&#xA;    filename=output_filename,&#xA;    fourcc=fourcc,&#xA;    fps=video_fps,&#xA;    frameSize=(video_width,video_height),&#xA;    isColor=1)&#xA;

    &#xA;&#xA;

    When I run x264 --help I get

    &#xA;&#xA;

    % x264 --help&#xA;x264 core:125&#xA;Syntax: x264 [options] -o outfile infile&#xA;&#xA;Infile can be raw (in which case resolution is required),&#xA;  or YUV4MPEG (*.y4m),&#xA;  or Avisynth if compiled with support (no).&#xA;  or libav* formats if compiled with lavf support (no) or ffms support (no).&#xA;Outfile type is selected by filename:&#xA; .264 -> Raw bytestream&#xA; .mkv -> Matroska&#xA; .flv -> Flash Video&#xA; .mp4 -> MP4 if compiled with GPAC support (no)&#xA;Output bit depth: 8 (configured at compile time)&#xA;&#xA;Options:&#xA;&#xA;  -h, --help                  List basic options&#xA;      --longhelp              List more options&#xA;      --fullhelp              List all options&#xA;&#xA;Example usage:&#xA;&#xA;      Constant quality mode:&#xA;            x264 --crf 24 -o <output> <input />&#xA;&#xA;      Two-pass with a bitrate of 1000kbps:&#xA;            x264 --pass 1 --bitrate 1000 -o <output> <input />&#xA;            x264 --pass 2 --bitrate 1000 -o <output> <input />&#xA;&#xA;      Lossless:&#xA;            x264 --qp 0 -o <output> <input />&#xA;&#xA;      Maximum PSNR at the cost of speed and visual quality:&#xA;            x264 --preset placebo --tune psnr -o <output> <input />&#xA;&#xA;      Constant bitrate at 1000kbps with a 2 second-buffer:&#xA;            x264 --vbv-bufsize 2000 --bitrate 1000 -o <output> <input />&#xA;&#xA;Presets:&#xA;&#xA;      --profile <string>      Force the limits of an H.264 profile&#xA;                                  Overrides all settings.&#xA;                                  - baseline,main,high,high10,high422,high444&#xA;      --preset <string>       Use a preset to select encoding settings [medium]&#xA;                                  Overridden by user settings.&#xA;                                  - ultrafast,superfast,veryfast,faster,fast&#xA;                                  - medium,slow,slower,veryslow,placebo&#xA;      --tune <string>         Tune the settings for a particular type of source&#xA;                              or situation&#xA;                                  Overridden by user settings.&#xA;                                  Multiple tunings are separated by commas.&#xA;                                  Only one psy tuning can be used at a time.&#xA;                                  - psy tunings: film,animation,grain,&#xA;                                                 stillimage,psnr,ssim&#xA;                                  - other tunings: fastdecode,zerolatency&#xA;&#xA;Frame-type options:&#xA;&#xA;  -I, --keyint <integer or="or"> Maximum GOP size [250]&#xA;      --tff                   Enable interlaced mode (top field first)&#xA;      --bff                   Enable interlaced mode (bottom field first)&#xA;      --pulldown <string>     Use soft pulldown to change frame rate&#xA;                                  - none, 22, 32, 64, double, triple, euro (requires cfr input)&#xA;&#xA;Ratecontrol:&#xA;&#xA;  -B, --bitrate <integer>     Set bitrate (kbit/s)&#xA;      --crf <float>           Quality-based VBR (0-51) [23.0]&#xA;      --vbv-maxrate <integer> Max local bitrate (kbit/s) [0]&#xA;      --vbv-bufsize <integer> Set size of the VBV buffer (kbit) [0]&#xA;  -p, --pass <integer>        Enable multipass ratecontrol&#xA;                                  - 1: First pass, creates stats file&#xA;                                  - 2: Last pass, does not overwrite stats file&#xA;&#xA;Input/Output:&#xA;&#xA;  -o, --output <string>       Specify output file&#xA;      --sar width:height      Specify Sample Aspect Ratio&#xA;      --fps   Specify framerate&#xA;      --seek <integer>        First frame to encode&#xA;      --frames <integer>      Maximum number of frames to encode&#xA;      --level <string>        Specify level (as defined by Annex A)&#xA;      --quiet                 Quiet Mode&#xA;&#xA;Filtering:&#xA;&#xA;      --vf, --video-filter <filter0>/<filter1>/... Apply video filtering to the input file&#xA;&#xA;      Filter options may be specified in <filter>:<option>=<value> format.&#xA;&#xA;      Available filters:&#xA;      crop:left,top,right,bottom&#xA;      select_every:step,offset1[,...]&#xA;</value></option></filter></filter1></filter0></string></integer></integer></string></integer></integer></integer></float></integer></string></integer></string></string></string></output></output></output></output></output></output>

    &#xA;&#xA;

    Thanks,&#xA;-s

    &#xA;

  • FFMEPG crop : Invalid too big or non positive size for width '1920' or height '1040'

    12 février 2021, par NatePhysics

    I run into a strange issue with a particular file in FFMPEG. When I try and crop it down a little I get :

    &#xA;

    [Parsed_crop_0 @ 000002ad60c27980] Invalid too big or non positive size for width &#x27;1920&#x27; or height &#x27;1040&#x27;&#xA;[Parsed_crop_0 @ 000002ad60c27980] Failed to configure input pad on Parsed_crop_0&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:37&#xA;Conversion failed!&#xA;

    &#xA;

    This is odd to me because you can even see from the stream metadata that the resolution is much higher :

    &#xA;

    Metadata:&#xA;    encoder         : libebml v1.4.0 &#x2B; libmatroska v1.6.2&#xA;    creation_time   : 2021-02-09T22:45:47.000000Z&#xA;  Duration: 02:17:48.93, start: 0.000000, bitrate: 8548 kb/s&#xA;    Stream #0:0: Video: h264 (High), yuv420p(progressive), **1920x1080** [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)&#xA;

    &#xA;

    There's only 1 video stream. I'm running the following command :

    &#xA;

    ffmpeg -i "wedding.mkv" -filter:v "crop=1920:1040" -c:v libx264 -preset slow -tune film -profile:v high -level 4.1 -crf 19 -c:a copy -c:s copy -map 0 "wedding-cropped.mkv"&#xA;

    &#xA;

    I can preview the crop using the following command without any errors :

    &#xA;

    ffplay -i "wedding.mkv" -vf "crop=1920:960"&#xA;

    &#xA;

    I've cropped a few files before without issue. I'm a bit confused as to why I'm getting a resolution error in this case when the video file is clearly higher resolution. I've also tested lowering the cropped resolution and even when I lower both by several hundred pixels it still spits out the same error. Any thoughts or suggestions ?

    &#xA;