Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (87)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (5852)

  • Scale with scale_vaapi and than pad, got error. Seems ok without "pad"

    24 mai 2023, par huangda1982

    My computer : customized Linux, haswell
I am trying to scale 1280x720 video to 640x450 in 640x480 frame with black borders. To do so, I run this command :

    


    ffmpeg -v warning -hide_banner -init_hw_device vaapi=vaapi0:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device vaapi0 -filter_hw_device vaapi0 -i 'my_video.mp4' -vf 'scale_vaapi=640:450,pad=640:480:0:14' -c:v h264_vaapi -q:v 18 -profile:v main -level 3.1 -c:a aac -q:a 3 -f mp4 out.mp4 -loglevel verbose


    


    And I got this error :

    


    Impossible to convert between the formats supported by the filter &#x27;Parsed_scale_vaapi_0&#x27; and the filter &#x27;auto_scaler_0&#x27;<br />&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Function not implemented&#xA;Error while processing the decoded data for stream #0:0&#xA;

    &#xA;

    When I removed the ",pad=640:480:0:14" part, the command continued. I pressed ctrl-c, and did not check the result.

    &#xA;

    "-q:v 18", "-level 3.1" and "-q:a" options seem not work.

    &#xA;

    Full message :

    &#xA;

    [h264 @ 0x55dfeb529340] Reinit context to 1280x720, pix_fmt: yuv420p&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;my_video.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: mp41&#xA;    creation_time   : 1970-01-01T00:00:00.000000Z&#xA;    encoder         : PotEncoder&#xA;  Duration: 00:22:45.01, start: 0.000000, bitrate: 3264 kb/s&#xA;  Stream #0:0(und): Video: h264 (Constrained Baseline), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 3068 kb/s, 23.98 fps, 23.98 tbr, 1199 tbn, 47.96 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 1970-01-01T00:00:00.000000Z&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 1970-01-01T00:00:00.000000Z&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;File &#x27;out.mp4&#x27; already exists. Overwrite? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))&#xA;  Stream #0:1 -> #0:1 (mp3 (mp3float) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[h264 @ 0x55dfeb553e40] Reinit context to 1280x720, pix_fmt: vaapi_vld&#xA;[graph_1_in_0_1 @ 0x55dfeb6b7580] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3&#xA;[graph 0 input from stream 0:0 @ 0x55dfebb4d000] w:1280 h:720 pixfmt:vaapi_vld tb:1/1199 fr:1199/50 sar:1/1&#xA;[auto_scaler_0 @ 0x55dfebb4f940] w:iw h:ih flags:&#x27;bicubic&#x27; interl:0&#xA;[Parsed_pad_1 @ 0x55dfebb4c700] auto-inserting filter &#x27;auto_scaler_0&#x27; between the filter &#x27;Parsed_scale_vaapi_0&#x27; and the filter &#x27;Parsed_pad_1&#x27;&#xA;Impossible to convert between the formats supported by the filter &#x27;Parsed_scale_vaapi_0&#x27; and the filter &#x27;auto_scaler_0&#x27;&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Function not implemented&#xA;Error while processing the decoded data for stream #0:0&#xA;[AVIOContext @ 0x55dfeb5522c0] Statistics: 0 seeks, 0 writeouts&#xA;[aac @ 0x55dfeb551600] Qavg: 354.000&#xA;[aac @ 0x55dfeb551600] 2 frames left in the queue on closing&#xA;[AVIOContext @ 0x55dfeb530500] Statistics: 1144787 bytes read, 2 seeks&#xA;Conversion failed!&#xA;

    &#xA;

  • avutil/bfin : remove dead code

    4 juillet 2023, par Zhao Zhili
    avutil/bfin : remove dead code
    

    The code is unused for a decade since bf6c84d7eb27b.

    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>

    • [DH] libavutil/bfin/bswap.h
    • [DH] libavutil/bfin/timer.h
  • How can I add chapters to a mp4 file using bash script and ffmpeg

    17 septembre 2023, par Rick T

    I'm trying to add chapters to an mp4 file using bash and ffmpeg. The chapters are located in a file called chapters.txt. When the bash script is run which is called add_chapters.sh it reads the chapters.txt file and creates a file called chapters.ffmetadata. The issue is that the START and END times in the file chapters.ffmetadata aren't being created correctly. How can I fix this ?

    &#xA;

      &#xA;
    1. I have a file called chapters.txt that has the chapters in it.

      &#xA;

      00:00:00=Intro&#xA;00:02:12=What are selections&#xA;00:03:19=Booleans&#xA;

      &#xA;

    2. &#xA;

    3. The bash file I run is add_chapters.sh

      &#xA;

      The code in it is :

      &#xA;

      #!/bin/bash&#xA;&#xA;input_file="chapters.txt"&#xA;output_file="chapters.ffmetadata"&#xA;&#xA;# Create the FFmetadata chapter file&#xA;echo ";FFMETADATA1" > "$output_file"&#xA;&#xA;previous_seconds=0&#xA;&#xA;while IFS="=" read -r timestamp chapter_name; do&#xA;    # Convert start time to seconds&#xA;    seconds=$(date -u -d "1970-01-01 $timestamp" &#x2B;"%s")&#xA;&#xA;    # Calculate the end time (previous chapter&#x27;s start time)&#xA;    end_seconds=$previous_seconds&#xA;&#xA;    # Update previous_seconds for the next iteration&#xA;    previous_seconds=$seconds&#xA;&#xA;    echo "[CHAPTER]" >> "$output_file"&#xA;    echo "TIMEBASE=1/1000" >> "$output_file"&#xA;    echo "START=${end_seconds}000" >> "$output_file"&#xA;    echo "END=${seconds}000" >> "$output_file"&#xA;    echo "title=$chapter_name" >> "$output_file"&#xA;done &lt; "$input_file"&#xA;&#xA;echo "Chapter file &#x27;$output_file&#x27; created successfully."&#xA;&#xA;# Run FFmpeg to add chapters to the video&#xA;ffmpeg -i input_video.mp4 -i chapters.ffmetadata -map_metadata 1 -c:v copy -c:a copy -y output_video.mp4&#xA;

      &#xA;

    4. &#xA;

    5. It creates a file called chapters.ffmetadata

      &#xA;

      ;FFMETADATA1&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=0000&#xA;title=Intro&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=132000&#xA;title=What are selections&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=132000&#xA;END=199000&#xA;title=Booleans&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=199000&#xA;END=0000&#xA;title=&#xA;

      &#xA;

      The START and END times aren't being calculated correctly. How can I fix this ?

      &#xA;

    6. &#xA;

    &#xA;


    &#xA;

    UPDATE #1

    &#xA;

    I'm almost there thanks to @Freeman code / answer.

    &#xA;

    The issues in the generated&#xA;chapters.ffmetadata file are just.

    &#xA;

      &#xA;
    1. The first START= and END= are 0000

      &#xA;

    2. &#xA;

    3. The Intro Chapter doesn't show up (most likely caused by the first START= and END= being 0000)

      &#xA;

    4. &#xA;

    5. The Chapters seem to be shifted down by one timecode line (most likely caused by the first START= and END= being 0000)

      &#xA;

       ;FFMETADATA1&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=0000&#xA;title=Intro&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=132000&#xA;title=What are selections ?&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=132000&#xA;END=199000&#xA;title=Booleans&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=199000&#xA;END=0000&#xA;title=&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=4459000&#xA;title=

      &#xA;

    6. &#xA;

    &#xA;


    &#xA;

    UPDATE #2

    &#xA;

    Strange ; I tried the changes @Freeman suggested but an error comes up now.

    &#xA;

    Chapter end time 0 before start 199000&#xA;chapters.ffmetadata : Cannot allocate memory

    &#xA;

    ;FFMETADATA1&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=0000&#xA;title=Intro&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=132000&#xA;title=What are selections?&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=132000&#xA;END=199000&#xA;title=Booleans&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=199000&#xA;END=0000&#xA;title=&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=4459000&#xA;title=&#xA;

    &#xA;


    &#xA;

    UPDATE #3 using his awk changes

    &#xA;

    ;FFMETADATA1&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=0000&#xA;title=Intro&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0000&#xA;END=132000&#xA;title=What are selections?&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=132000&#xA;END=199000&#xA;title=Booleans&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=199000&#xA;END=0000&#xA;title=&#xA;

    &#xA;