Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (103)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (13627)

  • avcodec/adpcm_ima_{apc, ssi, oki} : replace while() with for()

    18 avril 2020, par Zane van Iperen
    avcodec/adpcm_ima_apc, ssi, oki : replace while() with for()
    

    Per discussion at https://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/260854.html

    Signed-off-by : Zane van Iperen <zane@zanevaniperen.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/adpcm.c
  • How to expand bash array into arguments correctly

    12 avril 2022, par alvgarci

    I'm working on a script on Bash.

    &#xA;

    The objective is pass 36 arguments to a ffmpeg via command.

    &#xA;

    Steps here :

    &#xA;

      &#xA;
    1. I verified the command. This one works fine :

      &#xA;

      ffmpeg -i  "$f" -y -acodec aac -ab 128k  -vcodec copy  -f mp4 -movflags use_metadata_tags   -metadata MtsExifToolVersionNumber="12.30"  -metadata MtsFileName="00017.MTS"  -metadata MtsDirectory="."  -metadata MtsFileSize="59 MiB"  -metadata MtsFileModificationDate/Time="2020"  -metadata MtsFileAccessDate/Time="2021"  -metadata MtsFileInodeChangeDate/Time="2022"  -metadata MtsFilePermissions="-rwxr-xr-x"  -metadata MtsFileType="M2TS"  -metadata MtsFileTypeExtension="mts"  -metadata MtsMIMEType="video/m2ts"  -metadata MtsVideoStreamType="H.264 (AVC) Video"  -metadata MtsAudioBitrate="256 kbps"  -metadata MtsSurroundMode="Not indicated"  -metadata MtsAudioChannels="2"  -metadata MtsAudioStreamType="PGS Audio"  -metadata MtsImageWidth="1920"  -metadata MtsImageHeight="1080"  -metadata MtsDate/TimeOriginal="2020"  -metadata MtsApertureSetting="Auto"  -metadata MtsGain="0 dB"  -metadata MtsExposureProgram="Program AE"  -metadata MtsWhiteBalance="Auto"  -metadata MtsFocus="Auto (0.155)"  -metadata MtsImageStabilization="On (0x3f)"  -metadata MtsExposureTime="1/60"  -metadata MtsFNumber="3.4"  -metadata MtsMake="Sony"  -metadata MtsCameraModelName="HDR-CX405"  -metadata MtsWarning="[minor] The ExtractEmbedded option may find more tags in the video data"  -metadata MtsAudioSampleRate="48000"  -metadata MtsDuration="18.71 s"  -metadata MtsAperture="3.4"  -metadata MtsImageSize="1920x1080"  -metadata MtsMegapixels="2.1"  -metadata MtsShutterSpeed="1/60"  -metadata Offset="$Offset" -metadata creation_time="$DATE" "./$output/convert_exif_ok/$MP4_NAME"&#xA;

      &#xA;

    2. &#xA;

    &#xA;

    Now.. I created a bash array and I tried to expand it directly on the command :

    &#xA;

      ffmpeg -i  "$f" -y -acodec aac -ab 128k  -vcodec copy  -f mp4 -movflags use_metadata_tags  $(echo "${exif_2[@]}"  )   -metadata Offset="$Offset" -metadata creation_time="$DATE" "./$output/convert_exif_ok/$MP4_NAME"&#xA;

    &#xA;

    And.. this doesn't work..

    &#xA;

    Seems like it's taking one argument so long instead of 36 different arguments..

    &#xA;

    This is the output :

    &#xA;

        ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with Apple clang version 12.0.0 (clang-1200.0.32.29)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/5.0.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox&#xA;  libavutil      57. 17.100 / 57. 17.100&#xA;  libavcodec     59. 18.100 / 59. 18.100&#xA;  libavformat    59. 16.100 / 59. 16.100&#xA;  libavdevice    59.  4.100 / 59.  4.100&#xA;  libavfilter     8. 24.100 /  8. 24.100&#xA;  libswscale      6.  4.100 /  6.  4.100&#xA;  libswresample   4.  3.100 /  4.  3.100&#xA;  libpostproc    56.  3.100 / 56.  3.100&#xA;Input #0, mpegts, from &#x27;00017.MTS&#x27;:&#xA;  Duration: 00:00:18.72, start: 1.020000, bitrate: 26466 kb/s&#xA;  Program 1&#xA;  Stream #0:0[0x1011]: Video: h264 (High) (HDPR / 0x52504448), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn&#xA;  Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s&#xA;  Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080&#xA; -metadata MtsExifToolVersionNumber="12.30"  -metadata MtsFileName="00017.MTS"  -metadata MtsDirectory="."  -metadata MtsFileSize="59 MiB"  -metadata MtsFileModificationDate/Time="2020"  -metadata MtsFileAccessDate/Time="2021"  -metadata MtsFileInodeChangeDate/Time="2022"  -metadata MtsFilePermissions="-rwxr-xr-x"  -metadata MtsFileType="M2TS"  -metadata MtsFileTypeExtension="mts"  -metadata MtsMIMEType="video/m2ts"  -metadata MtsVideoStreamType="H.264 (AVC) Video"  -metadata MtsAudioBitrate="256 kbps"  -metadata MtsSurroundMode="Not indicated"  -metadata MtsAudioChannels="2"  -metadata MtsAudioStreamType="PGS Audio"  -metadata MtsImageWidth="1920"  -metadata MtsImageHeight="1080"  -metadata MtsDate/TimeOriginal="2020"  -metadata MtsApertureSetting="Auto"  -metadata MtsGain="0 dB"  -metadata MtsExposureProgram="Program AE"  -metadata MtsWhiteBalance="Auto"  -metadata MtsFocus="Auto (0.155)"  -metadata MtsImageStabilization="On (0x3f)"  -metadata MtsExposureTime="1/60"  -metadata MtsFNumber="3.4"  -metadata MtsMake="Sony"  -metadata MtsCameraModelName="HDR-CX405"  -metadata MtsWarning="[minor] The ExtractEmbedded option may find more tags in the video data"  -metadata MtsAudioSampleRate="48000"  -metadata MtsDuration="18.71 s"  -metadata MtsAperture="3.4"  -metadata MtsImageSize="1920x1080"  -metadata MtsMegapixels="2.1"  -metadata MtsShutterSpeed="1/60": File name too long&#xA;

    &#xA;

    Well.. I'm sure I'm doing something wrong on the way of passing the content of the array to the arguments..

    &#xA;

    Any help ?

    &#xA;

    Thanks

    &#xA;

  • Why is FFProbe (using fluent-ffmpeg) returning incomplete and inaccurate metadata ?

    18 avril 2024, par volume one

    I am returning metadata about a file using ffprobe. The file can be found here.

    &#xA;

    I am using fluent-ffmpeg in Node.js which shouldn't make any difference. Its just nicer to use than a command-line.

    &#xA;

    The code goes like this :

    &#xA;

    ffmpeg.ffprobe(&#x27;https://devxxx001.s3.amazonaws.com/vertical-hd_720_1280_30fps.mp4&#x27;), function (err, metadata) {&#xA; console.log(JSON.stringify(metadata));&#xA;});&#xA;

    &#xA;

    The metadata output I receive is this :

    &#xA;

    {&#xA;  "streams": [&#xA;    {&#xA;      "index": 0,&#xA;      "codec_name": "h264",&#xA;      "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",&#xA;      "profile": "High",&#xA;      "codec_type": "video",&#xA;      "codec_tag_string": "avc1",&#xA;      "codec_tag": "0x31637661",&#xA;      "width": 720,&#xA;      "height": 1280,&#xA;      "coded_width": 720,&#xA;      "coded_height": 1280,&#xA;      "closed_captions": 0,&#xA;      "film_grain": 0,&#xA;      "has_b_frames": 2,&#xA;      "sample_aspect_ratio": "N/A",&#xA;      "display_aspect_ratio": "N/A",&#xA;      "pix_fmt": "yuv420p",&#xA;      "level": 32,&#xA;      "color_range": "tv",&#xA;      "color_space": "bt709",&#xA;      "color_transfer": "bt709",&#xA;      "color_primaries": "bt709",&#xA;      "chroma_location": "left",&#xA;      "field_order": "progressive",&#xA;      "refs": 1,&#xA;      "is_avc": "true",&#xA;      "nal_length_size": 4,&#xA;      "id": "0x1",&#xA;      "r_frame_rate": "30/1",&#xA;      "avg_frame_rate": "30/1",&#xA;      "time_base": "1/30",&#xA;      "start_pts": 0,&#xA;      "start_time": 0,&#xA;      "duration_ts": 267,&#xA;      "duration": 8.9,&#xA;      "bit_rate": 2382497,&#xA;      "max_bit_rate": "N/A",&#xA;      "bits_per_raw_sample": 8,&#xA;      "nb_frames": 267,&#xA;      "nb_read_frames": "N/A",&#xA;      "nb_read_packets": "N/A",&#xA;      "extradata_size": 47,&#xA;      "tags": {&#xA;        "creation_time": "2020-05-19T10:09:46.000000Z",&#xA;        "language": "und",&#xA;        "handler_name": "L-SMASH Video Handler",&#xA;        "vendor_id": "[0][0][0][0]",&#xA;        "encoder": "AVC Coding"&#xA;      },&#xA;      "disposition": {&#xA;        "default": 1,&#xA;        "dub": 0,&#xA;        "original": 0,&#xA;        "comment": 0,&#xA;        "lyrics": 0,&#xA;        "karaoke": 0,&#xA;        "forced": 0,&#xA;        "hearing_impaired": 0,&#xA;        "visual_impaired": 0,&#xA;        "clean_effects": 0,&#xA;        "attached_pic": 0,&#xA;        "timed_thumbnails": 0,&#xA;        "captions": 0,&#xA;        "descriptions": 0,&#xA;        "metadata": 0,&#xA;        "dependent": 0,&#xA;        "still_image": 0&#xA;      }&#xA;    }&#xA;  ],&#xA;  "format": {&#xA;    "filename": "https:/devxxx001.s3.amazonaws.com/vertical-hd_720_1280_30fps.mp4",&#xA;    "nb_streams": 1,&#xA;    "nb_programs": 0,&#xA;    "format_name": "mov,mp4,m4a,3gp,3g2,mj2",&#xA;    "format_long_name": "QuickTime / MOV",&#xA;    "start_time": 0,&#xA;    "duration": 8.9,&#xA;    "size": 2654719,&#xA;    "bit_rate": 2386264,&#xA;    "probe_score": 100,&#xA;    "tags": {&#xA;      "major_brand": "mp42",&#xA;      "minor_version": "0",&#xA;      "compatible_brands": "mp42mp41isomavc1",&#xA;      "creation_time": "2020-05-19T10:09:46.000000Z"&#xA;    }&#xA;  },&#xA;  "chapters": []&#xA;}&#xA;

    &#xA;

    I need to know the aspect ratio of the video so that I can display it properly but ffprobe is returning "N/A" :

    &#xA;

     "sample_aspect_ratio": "N/A",&#xA; "display_aspect_ratio": "N/A",&#xA;

    &#xA;

    In addition, if I want to know the video container format (mp4 in this case), it is showing multiple formats instead of just one :

    &#xA;

     "format_name": "mov,mp4,m4a,3gp,3g2,mj2",&#xA; "format_long_name": "QuickTime / MOV",&#xA;

    &#xA;

    I believe it may be an issue with the ffprobe command but I am unable to pass it options like on the command-line. Even then I don't know what options need to be passed to get the correct metadata.

    &#xA;