Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (58)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (11181)

  • How can ffmpeg concat MP3s with full metadata incl. cover art ?

    13 décembre 2022, par TEN

    Audio books inconveniently split into dozens of MP3s (with spaces in their names) should be merged into one MP3 in a subdirectory (in which ffmpeg version 4.2.7-0ubuntu0.1 is invoked), without time-consuming and possibly degrading conversions, reliably preserving all metadata incl. cover art (present and similar in all MP3s of a title, their differences being significant only in lengths and track numbers).

    


    However, rather than picking the latter from the first input MP3, the https://trac.ffmpeg.org/wiki/Concatenate#protocol loses the cover art, the https://trac.ffmpeg.org/wiki/Concatenate#demuxer documented as more flexible even loses all metadata :

    


    ffmpeg -v verbose -f concat -safe 0 -i <(printf "file '$PWD/%s'\n" ../in\ track*.mp3) -c copy "out.mp3"
...
Input #0, concat, from '/dev/fd/63':
Duration: N/A, start: 0.000000, bitrate: 192 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
Stream #0:1: Video: png, 1 reference frame, rgba(pc), 300x300, 90k tbr, 90k tbn, 90k tbc
Metadata:
title           : 12ae3b8152eaf255ae0315c59400c540.png
comment         : Cover (front)
...
Output #0, mp3, to 'out.mp3':
Metadata:
TSSE            : Lavf58.29.100
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
...
[AVIOContext @ 0x561459f3dac0] Statistics: 1958050 bytes read, 0 seeks
[mp3 @ 0x561459f3f900] Skipping 0 bytes of junk at 110334.
[mp3 @ 0x561459f3f900] Estimating duration from bitrate, this may be inaccurate
No more output streams to write to, finishing.
size=   75793kB time=00:53:03.12 bitrate= 195.1kbits/s speed= 636x
video:0kB audio:75793kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000865%
Input file #0 (/dev/fd/63):
Input stream #0:0 (audio): 121847 packets read (77611658 bytes);
Input stream #0:1 (video): 40 packets read (4358440 bytes);
Total: 121887 packets (81970098 bytes) demuxed
Output file #0 (out.mp3):
Output stream #0:0 (audio): 121847 packets muxed (77611658 bytes);
Total: 121847 packets (77611658 bytes) muxed
[AVIOContext @ 0x561459ef6700] Statistics: 2 seeks, 298 writeouts
[AVIOContext @ 0x561459f39e40] Statistics: 2006324 bytes read, 0 seeks
[AVIOContext @ 0x561459ee0300] Statistics: 5040 bytes read, 0 seek


    


    The metadata incl. cover PNG as detected (as single-frame "video") should end up in the output MP3, but doesn't (even when adding -movflags use_metadata_tags possibly intended for other formats).

    


    -metadata track="1/1" (or without the /1 ?) may be required as the first input MP3 sometimes wrongly starts at a higher number.

    


    How do I make sure no metadata (incl. image) other than track numbers is lost when concatenating MP3s (by protocol or demuxer, from a set of input files with spaces in their names and a wildcard to match across track numbers) ?

    


  • avfilter/vf_blackdetect : support full-range YUV

    8 décembre 2022, par Niklas Haas
    avfilter/vf_blackdetect : support full-range YUV
    

    This filter currently makes the distinction between limited and full
    range by testing for the deprecated YUVJ pixel formats at link setup
    time. This is deprecated and should be improved to perform the detection
    based on the per-frame metadata.

    Rewrite it to calculate the black pixel threshold at the time of
    filtering a frame, when metadata about the frame's color range is known.
    Doing it this way has the small side benefit of being able to handle
    streams with variable metadata, and is not a meaningful performance
    cost.

    Signed-off-by : Niklas Haas <git@haasn.dev>

    • [DH] libavfilter/vf_blackdetect.c
  • Capture full-range/lossless rgb frame from capture card that supports NV12 and YUYV output

    13 janvier 2023, par kunal joshi

    I am trying to make a program which captures an image, then i need to compare captured image and the input data which i displayed, both should matc pixel by pixel

    &#xA;

    Here are the details of my capture card

    &#xA;

    $ v4l2-ctl —list-formats-ext -d /dev/video0

    &#xA;

    ioctl: VIDIOC_ENUM_FMT&#xA;        Type: Video Capture&#xA;&#xA;        [0]: &#x27;NV12&#x27; (Y/CbCr 4:2:0)&#xA;                Size: Discrete 3840x2160&#xA;                        Interval: Discrete 0.033s (30.000 fps)&#xA;                Size: Discrete 2560x1440&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 1920x1080&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 1280x720&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 640x480&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;        [1]: &#x27;YUYV&#x27; (YUYV 4:2:2)&#xA;                Size: Discrete 2560x1440&#xA;                        Interval: Discrete 0.020s (50.000 fps)&#xA;                Size: Discrete 1920x1080&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 1280x720&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;                Size: Discrete 640x480&#xA;                        Interval: Discrete 0.017s (60.000 fps)&#xA;        [2]: &#x27;&#x27; (30313050-0000-0010-8000-00aa003)&#xA;        [3]: &#x27;&#x27; (e436eb7e-524f-11ce-9f53-0020af0)&#xA;&#xA;

    &#xA;

    $ v4l2-ctl —all

    &#xA;

    Driver Info:&#xA;        Driver name      : uvcvideo&#xA;        Card type        : ITE HDMI 4K&#x2B; Bridge: ITE HDMI 4&#xA;        Bus info         : usb-0000:00:14.0-6&#xA;        Driver version   : 5.18.0&#xA;        Capabilities     : 0x84a00001&#xA;                Video Capture&#xA;                Metadata Capture&#xA;                Streaming&#xA;                Extended Pix Format&#xA;                Device Capabilities&#xA;        Device Caps      : 0x04200001&#xA;                Video Capture&#xA;                Streaming&#xA;                Extended Pix Format&#xA;Priority: 2&#xA;Video input : 0 (Camera 1: ok)&#xA;Format Video Capture:&#xA;        Width/Height      : 1920/1080&#xA;        Pixel Format      : &#x27;YUYV&#x27; (YUYV 4:2:2)&#xA;        Field             : None&#xA;        Bytes per Line    : 3840&#xA;        Size Image        : 4147200&#xA;        Colorspace        : sRGB&#xA;        Transfer Function : Rec. 709&#xA;        YCbCr/HSV Encoding: Rec. 709&#xA;        Quantization      : Default (maps to Limited Range)&#xA;        Flags             :&#xA;Crop Capability Video Capture:&#xA;        Bounds      : Left 0, Top 0, Width 1920, Height 1080&#xA;        Default     : Left 0, Top 0, Width 1920, Height 1080&#xA;        Pixel Aspect: 1/1&#xA;Selection Video Capture: crop_default, Left 0, Top 0, Width 1920, Height 1080, Flags:&#xA;Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:&#xA;Streaming Parameters Video Capture:&#xA;        Capabilities     : timeperframe&#xA;        Frames per second: 60.000 (60/1)&#xA;        Read buffers     : 0&#xA;&#xA;&#xA;

    &#xA;

    I have tried using various methods opencv but ffmpeg came the closest

    &#xA;

    With below command i am able to get good results but not what i want

    &#xA;

    ffmpeg -y -f v4l2 -pix_fmt NV12 -video_size 1920x1080 -i /dev/video0 -pix_fmt bgra -frames:v 10 webcam%03d.bmp&#xA;

    &#xA;

    Reference Image

    &#xA;

    RGB of Reference image

    &#xA;

    RGB of captured image

    &#xA;

    Note :- I am able to capture fine with Aforge on windows, but not with ffmpeg on linux.&#xA;Would like to know if anyone has already got solution to this.

    &#xA;

    Thanks in advance.

    &#xA;