Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (36)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5002)

  • Converting `webm` to `mov` format using ffmpeg loses transparency - how can I keep it ?

    10 mars 2023, par M.A Shahbazi

    I am trying to convert a webm video to mov format without losing quality and transparency using the following command :

    


    ffmpeg -c:v libvpx-vp9 -i input.webm ouput.mov


    


    The video gets converted, but it loses transparency and the background of video is black.

    


    I also tried the following command :

    


    ffmpeg -c:v png -i input.webm output.mov


    


    But it gives me the following error output :

    


      libavutil      58.  3.100 / 58.  3.100
  libavcodec     60.  4.100 / 60.  4.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  4.100 /  9.  4.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[png @ 0000028041ca7000] Invalid PNG signature 0x824983420031F031.
[matroska,webm @ 0000028041c91240] Could not find codec parameters for stream 0 (Video: png, none(pc, progressive), 800x800): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'hero.webm':
  Metadata:
    COMPATIBLE_BRANDS: qt
    creation_time   : 2023-02-23T10:43:46.703800Z
    MAJOR_BRAND     : qt
    MINOR_VERSION   : 537199360
    ENCODER         : Lavf59.35.100
  Duration: 00:00:09.00, start: 0.000000, bitrate: 1378 kb/s
  Stream #0:0: Video: png, none(pc, progressive), 800x800, SAR 1:1 DAR 1:1, 24 fps, 24 tbr, 1k tbn
    Metadata:
      alpha_mode      : 1
      ENCODER         : Lavc59.56.100 libvpx-vp9
      DURATION        : 00:00:09.000000000
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[png @ 0000028041ca7680] Invalid PNG signature 0x824983420031F031.
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!


    


    How can I maintain transparency when converting from webm to mov format ?

    


    Here's the video info in case it can be helpful :

    


    {
    "streams": [
        {
            "index": 0,
            "codec_name": "vp9",
            "codec_long_name": "Google VP9",
            "profile": "Profile 0",
            "codec_type": "video",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 800,
            "height": 800,
            "coded_width": 800,
            "coded_height": 800,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 0,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "1:1",
            "pix_fmt": "yuv420p",
            "level": -99,
            "color_range": "tv",
            "field_order": "progressive",
            "refs": 1,
            "r_frame_rate": "24/1",
            "avg_frame_rate": "24/1",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            },
            "tags": {
                "alpha_mode": "1",
                "ENCODER": "Lavc59.56.100 libvpx-vp9",
                "DURATION": "00:00:09.000000000"
            }
        }
    ],
    "format": {
        "filename": ".\\hero.webm",
        "nb_streams": 1,
        "nb_programs": 0,
        "format_name": "matroska,webm",
        "format_long_name": "Matroska / WebM",
        "start_time": "0.000000",
        "duration": "9.000000",
        "size": "1550466",
        "bit_rate": "1378192",
        "probe_score": 100,
        "tags": {
            "COMPATIBLE_BRANDS": "qt  ",
            "creation_time": "2023-02-23T10:43:46.703800Z",
            "MAJOR_BRAND": "qt  ",
            "MINOR_VERSION": "537199360",
            "ENCODER": "Lavf59.35.100"
        }
    }
}


    


  • Why is audio bitrate value of ffprobe output higher ?

    9 mars 2023, par 19xlr95

    When I check audio bitrate of my video via OS file details, media players or ffprobe -i my_video.mp4, I get the bitrate is 128 kbps. And I want to get more detailed meta information of the video by ffprobe -loglevel 0 -print_format json -show_format -show_streams my_video.mp4. However audio bitrate value of the output is 128615 bps.

    


    I thought it should be 128000 not 128615. Or 128 x 1024 = 131072. I wonder why it is not one of the values that I assumed. Also how can I safely say that this 128615 bps is 128 kbps ?

    


    Below is the detailed meta information for my video.

    


    {
    "streams": [
        {
            "index": 0,
            "codec_name": "aac",
            "codec_long_name": "AAC (Advanced Audio Coding)",
            "profile": "LC",
            "codec_type": "audio",
            "codec_tag_string": "mp4a",
            "codec_tag": "0x6134706d",
            "sample_fmt": "fltp",
            "sample_rate": "48000",
            "channels": 2,
            "channel_layout": "stereo",
            "bits_per_sample": 0,
            "initial_padding": 0,
            "id": "0x1",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/48000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 965760,
            "duration": "20.120000",
            "bit_rate": "128615",
            "nb_frames": "946",
            "extradata_size": 2,
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            },
            "tags": {
                "creation_time": "2023-02-20T09:00:58.000000Z",
                "language": "deu",
                "handler_name": "Core Media Audio",
                "vendor_id": "[0][0][0][0]"
            }
        },
        {
            "index": 1,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "High",
            "codec_type": "video",
            "codec_tag_string": "avc1",
            "codec_tag": "0x31637661",
            "width": 1080,
            "height": 1920,
            "coded_width": 1080,
            "coded_height": 1920,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 0,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "9:16",
            "pix_fmt": "yuv420p",
            "level": 42,
            "color_range": "tv",
            "color_space": "bt709",
            "color_transfer": "bt709",
            "color_primaries": "bt709",
            "chroma_location": "left",
            "field_order": "progressive",
            "refs": 1,
            "is_avc": "true",
            "nal_length_size": "4",
            "id": "0x2",
            "r_frame_rate": "50/1",
            "avg_frame_rate": "50/1",
            "time_base": "1/50000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 1006000,
            "duration": "20.120000",
            "bit_rate": "20958903",
            "bits_per_raw_sample": "8",
            "nb_frames": "1006",
            "extradata_size": 35,
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            },
            "tags": {
                "creation_time": "2023-02-20T09:00:58.000000Z",
                "language": "und",
                "handler_name": "Core Media Video",
                "vendor_id": "[0][0][0][0]"
            }
        }
    ],
    "format": {
        "filename": "my_video.mp4",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
        "format_long_name": "QuickTime / MOV",
        "start_time": "0.000000",
        "duration": "20.120000",
        "size": "53309460",
        "bit_rate": "21196604",
        "probe_score": 100,
        "tags": {
            "major_brand": "mp42",
            "minor_version": "1",
            "compatible_brands": "isommp41mp42",
            "creation_time": "2023-02-20T09:00:58.000000Z"
        }
    }
}


    


    I checked 1 kbps is 1000 bps and assumed 128 kbps of the audio bitrate should be 128000 bps. But it is 128615 bps when I run ffprobe.

    


  • Invalid frame dimension, invalid data found when processing input, muxing overhead : unknown when concatting old VOB files | FFMPEG

    9 mars 2023, par Victor Hartman

    I am dealing with multiple errors which I am not able to resolve. I am trying to concat 4 old VOB files to a mp4. Using command (already solved a 'pts has no value error') :

    


    .\ffmpeg.exe -fflags +genpts -f concat -i .\files.txt -c copy output.mp4


    


    files.txt looks like this :

    


    file 'VTS_01_1.VOB'
file 'VTS_01_2.VOB'
file 'VTS_01_3.VOB'
file 'VTS_01_4.VOB'


    


    Output looks like this :

    


    ffmpeg version 2023-03-05-git-912ac82a3c-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      58.  3.100 / 58.  3.100
  libavcodec     60.  6.100 / 60.  6.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  4.100 /  9.  4.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
Input #0, concat, from '.\files.txt':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Data: dvd_nav_packet
  Stream #0:1: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn
    Side data:
      cpb: bitrate max/min/avg: 7000000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
File 'output.mp4' already exists. Overwrite? [y/N] y
[mp4 @ 00000211b44d0900] track 1: codec frame size is not set
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf60.4.100
  Stream #0:0: Video: mpeg2video (Main) (mp4v / 0x7634706D), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn
    Side data:
      cpb: bitrate max/min/avg: 7000000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 448 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpeg2video @ 00000211b44a5f00] Invalid frame dimensions 0x0. bitrate=5521.6kbits/s speed= 643x
    Last message repeated 3 times
[concat @ 00000211b449b500] DTS 137507370 < 137525388 out of order
[mp4 @ 00000211b44d0900] Non-monotonous DTS in output stream 0:0; previous: 137525388, current: 137507370; changing to 137525389. This may result in incorrect timestamps in the output file.
[mp4 @ 00000211b44d0900] Non-monotonous DTS in output stream 0:0; previous: 137525389, current: 137510250; changing to 137525390. This may result in incorrect timestamps in the output file.
[mp4 @ 00000211b44d0900] Non-monotonous DTS in output stream 0:0; previous: 137525390, current: 137510250; changing to 137525391. This may result in incorrect timestamps in the output file.
[mp4 @ 00000211b44d0900] Non-monotonous DTS in output stream 0:0; previous: 137525391, current: 137513130; changing to 137525392. This may result in incorrect timestamps in the output file.
[mp4 @ 00000211b44d0900] Non-monotonous DTS in output stream 0:0; previous: 137525392, current: 137516010; changing to 137525393. This may result in incorrect timestamps in the output file.
[mp4 @ 00000211b44d0900] Non-monotonous DTS in output stream 0:0; previous: 137525393, current: 137518890; changing to 137525394. This may result in incorrect timestamps in the output file.
[mp4 @ 00000211b44d0900] Non-monotonous DTS in output stream 0:0; previous: 137525394, current: 137521770; changing to 137525395. This may result in incorrect timestamps in the output file.
[mp4 @ 00000211b44d0900] Non-monotonous DTS in output stream 0:0; previous: 137525395, current: 137524650; changing to 137525396. This may result in incorrect timestamps in the output file.
av_interleaved_write_frame(): Invalid data found when processing input
[out#0/mp4 @ 00000211b44f96c0] Error muxing a packet
[out#0/mp4 @ 00000211b44f96c0] Error writing trailer: Invalid data found when processing input
frame=45815 fps=19808 q=-1.0 Lsize= 1027328kB time=00:25:29.51 bitrate=5502.3kbits/s speed= 661x
video:943791kB audio:83556kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!