Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (111)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (8760)

  • Revert "lavc/nvenc : handle frame durations and AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE"

    16 juin 2023, par Timo Rothenpieler
    Revert "lavc/nvenc : handle frame durations and AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE"
    

    The implementation is flawed in that the frame opaque data is not in
    fact correctly reordered along with the packets, but is being output in
    packet input order, just like the dts are.

    This reverts commit 35538097038fd1e36577306d3165f38c8fa02466.

    • [DH] libavcodec/nvenc.c
    • [DH] libavcodec/nvenc.h
    • [DH] libavcodec/nvenc_av1.c
    • [DH] libavcodec/nvenc_h264.c
    • [DH] libavcodec/nvenc_hevc.c
  • 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;

  • FFmpeg - invalid argument on a creation of MP4 with .SRT - "Unable to parse option value "Link_to_the.srt" as image size...?

    20 mai 2023, par sKunZel

    I'm stuck for 2 weeks on same problem on developping a command that bring together a .mp4 file consisting on a fixed image & audio from a .mp3 and then burnt-in subtitle from a stylized .srt into a new MP4.

    &#xA;

    Here is my command :&#xA; command = f"""ffmpeg -report -i "input_video_arg_abs" -vf "subtitles='input_srt_arg_abs':original_size=816x1456:force_style='FontName=Open Sans Italic,FontSize=13,MarginR=10,MarginV=149'" -c:v libx264 -crf 18 -c:a copy -movflags +faststart "output_video" """

    &#xA;

    And you can see here the main script definitions of variables and call to fonction :

    &#xA;

    &#xA;

    input_srt = os.path.normpath(os.path.join(input_directory, srt_file))&#xA;print(f"Chemin du fichier SRT : input_srt")&#xA;reformat_srt(input_srt)&#xA;final_video_output=os.path.normpath(os.path.join(output_directory,&#xA;os.path.splitext(mp3_file)[0] + '.mp4'))&#xA;time.sleep(0.5)&#xA;create_final_video(temp_video_output, input_srt, final_video_output)

    &#xA;

    &#xA;

    This code generated an output file correctly named but 0 Ko. Every log i found indicated an error in the way of my .srt but when i print my input_srt it is correct.

    &#xA;

    Here i add up some logs :

    &#xA;

    [h264 @ 000002806874c340] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2&#xA;[Parsed_subtitles_0 @ 0000028068d97d00] Setting &#x27;filename&#x27; to value &#x27;E&#x27;&#xA;[Parsed_subtitles_0 @ 0000028068d97d00] Setting &#x27;original_size&#x27; to value &#x27;YouTubeMcKennaWe_Plants_Are_Happy_PlantsSRTSans_programmation_paralleleinputTerence_McKenna_The_Good_the_True_and_the_Beautiful.srt&#x27;&#xA;[subtitles @ 0000028068f0de40] Unable to parse option value "YouTubeMcKennaWe_Plants_Are_Happy_PlantsSRTSans_programmation_paralleleinputTerence_McKenna_The_Good_the_True_and_the_Beautiful.srt" as image size&#xA;[Parsed_subtitles_0 @ 0000028068d97d00] Setting &#x27;original_size&#x27; to value &#x27;816x1456&#x27;&#xA;[Parsed_subtitles_0 @ 0000028068d97d00] Setting &#x27;force_style&#x27; to value &#x27;FontName=Open Sans Italic,FontSize=13,MarginR=10,MarginV=149&#x27;&#xA;[Parsed_subtitles_0 @ 0000028068d97d00] Raster: FreeType 2.10.2&#xA;[Parsed_subtitles_0 @ 0000028068d97d00] Shaper: FriBidi 1.0.9 (SIMPLE)&#xA;[Parsed_subtitles_0 @ 0000028068d97d00] Initialized&#xA;[NULL @ 0000028068f0f480] Opening &#x27;E&#x27; for reading&#xA;[file @ 000002806bf2b800] Setting default whitelist &#x27;file,crypto&#x27;&#xA;[Parsed_subtitles_0 @ 0000028068d97d00] Unable to open E&#xA;[AVFilterGraph @ 0000028069044cc0] Error initializing filter &#x27;subtitles&#x27; with args &#x27;E:\YouTube\McKenna\We_Plants_Are_Happy_Plants\SRT\Sans_programmation_parallele\input\Terence_McKenna_The_Good_the_True_and_the_Beautiful.srt:original_size=816x1456:force_style=FontName=Open Sans Italic,FontSize=13,MarginR=10,MarginV=149&#x27;&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: No such file or directory&#xA;Error while processing the decoded data for stream #0:0&#xA;[AVIOContext @ 0000028068bbab80] Statistics: 0 seeks, 0 writeouts&#xA;[AVIOContext @ 0000028068693640] Statistics: 1370703 bytes read, 0 seeks&#xA;Conversion failed!&#xA;

    &#xA;

    I'm thinking of "E :" as the problem since on Windows it should be correct but with FFMPEG langage, i don't know...

    &#xA;

    I wish anyone can help me, and will be glad if it is a tricky solution. Else, sorry for my newbism...&#xA;Thanks&#xA;sKunZel

    &#xA;