Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (87)

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

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8443)

  • avcodec/sanm : support "StarWars - Making Magic" video

    1er mai, par Manuel Lauss
    avcodec/sanm : support "StarWars - Making Magic" video
    

    Videos of "StarWars - Making Magic" consist of 640x480 codec3 frames
    which establish a background, and a 320x240 codec48 video put on top
    at random left/top offsets.

    To support this, a new default buffer "fbuf", which holds the final
    image to be presented, is added, since codec37/47/48 need their 2/3 buffers
    to be private to themselves. The decoded result is then copied to the fbuf,
    honoring the left/top offsets if required.

    Signed-off-by : Manuel Lauss <manuel.lauss@gmail.com>

    • [DH] libavcodec/sanm.c
  • avcodec/mpegvideoencdsp : speed up draw_edges_8_c by inlining it for all used edge...

    21 août 2024, par Ramiro Polla
    avcodec/mpegvideoencdsp : speed up draw_edges_8_c by inlining it for all used edge widths
    

    This commit also restricts w to 4, 8, or 16.

    Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz :
    before after
    draw_edges_8_1724_4_c : 46796.5 7141.7 ( 6.55x)
    draw_edges_8_1724_8_c : 43584.5 7216.5 ( 6.04x)
    draw_edges_8_1724_16_c : 47007.2 10080.5 ( 4.66x)
    draw_edges_128_407_4_c : 11199.0 4185.0 ( 2.68x)
    draw_edges_128_407_8_c : 10660.2 4418.0 ( 2.41x)
    draw_edges_128_407_16_c : 11800.2 4634.5 ( 2.55x)
    draw_edges_1080_31_4_c : 1356.5 634.7 ( 2.14x)
    draw_edges_1080_31_8_c : 1972.0 1430.2 ( 1.38x)
    draw_edges_1080_31_16_c : 4621.0 4009.7 ( 1.15x)
    draw_edges_1920_4_4_c : 834.5 795.2 ( 1.05x)
    draw_edges_1920_4_4_negstride_c : 821.7 802.0 ( 1.02x)
    draw_edges_1920_4_8_c : 2782.2 2650.7 ( 1.05x)
    draw_edges_1920_4_8_negstride_c : 2724.7 2670.0 ( 1.02x)
    draw_edges_1920_4_16_c : 6437.5 6327.7 ( 1.02x)
    draw_edges_1920_4_16_negstride_c : 6395.2 6349.5 ( 1.01x)

    A55 :
    before after
    draw_edges_8_1724_4_c : 52540.4 19739.2 ( 2.66x)
    draw_edges_8_1724_8_c : 45386.9 19847.4 ( 2.29x)
    draw_edges_8_1724_16_c : 51995.4 23284.7 ( 2.23x)
    draw_edges_128_407_4_c : 13401.1 6988.2 ( 1.92x)
    draw_edges_128_407_8_c : 12218.4 7527.9 ( 1.62x)
    draw_edges_128_407_16_c : 13695.9 8207.2 ( 1.67x)
    draw_edges_1080_31_4_c : 3702.9 3110.4 ( 1.19x)
    draw_edges_1080_31_8_c : 6015.6 5643.2 ( 1.07x)
    draw_edges_1080_31_16_c : 12281.9 11901.4 ( 1.03x)
    draw_edges_1920_4_4_c : 3957.9 3970.2 ( 1.00x)
    draw_edges_1920_4_4_negstride_c : 3964.1 3825.2 ( 1.04x)
    draw_edges_1920_4_8_c : 7757.9 7676.4 ( 1.01x)
    draw_edges_1920_4_8_negstride_c : 7923.6 7812.4 ( 1.01x)
    draw_edges_1920_4_16_c : 14791.6 15143.9 ( 0.98x)
    draw_edges_1920_4_16_negstride_c : 14788.6 15163.4 ( 0.98x)

    A76 :
    before after
    draw_edges_8_1724_4_c : 39786.0 4968.5 ( 8.01x)
    draw_edges_8_1724_8_c : 32971.5 5069.5 ( 6.50x)
    draw_edges_8_1724_16_c : 40056.0 6017.2 ( 6.66x)
    draw_edges_128_407_4_c : 9517.2 1210.5 ( 7.86x)
    draw_edges_128_407_8_c : 8035.7 1346.2 ( 5.97x)
    draw_edges_128_407_16_c : 9946.5 1648.2 ( 6.03x)
    draw_edges_1080_31_4_c : 1308.0 660.7 ( 1.98x)
    draw_edges_1080_31_8_c : 1785.5 1270.7 ( 1.41x)
    draw_edges_1080_31_16_c : 3266.7 2591.5 ( 1.26x)
    draw_edges_1920_4_4_c : 1151.0 1090.7 ( 1.06x)
    draw_edges_1920_4_4_negstride_c : 1153.7 1096.5 ( 1.05x)
    draw_edges_1920_4_8_c : 2220.7 2186.5 ( 1.02x)
    draw_edges_1920_4_8_negstride_c : 2218.5 2193.5 ( 1.01x)
    draw_edges_1920_4_16_c : 4324.2 4230.0 ( 1.02x)
    draw_edges_1920_4_16_negstride_c : 4310.7 4233.0 ( 1.02x)

    • [DH] libavcodec/mpegvideoencdsp.c
  • Frame duration issues when trimming videos in MATLAB/ffmpeg ?

    18 septembre 2024, par twilightecologist

    I have two videos (A.MOV and B.MOV), that are supposed to be perfectly synced. However, Video A (3708 frames), has 5 more frames than Video B (3703 frames). When I look at the timestamps of these frames, the extra A frames are at the very end of the video. In addition, the last frame in each video is a "padded" frame, with a duration much longer (around 10 times) than that of the other frames.

    &#xA;

    I need my videos to be perfectly synced, with the same frame number. Since the extra frames are at the end of the video, I want to trim off the extra frames in A, as well as trim the "padded" long frame off of each video.

    &#xA;

    I currently am running the below MATLAB code to do so,

    &#xA;

    % Specify the input and output file names&#xA;inputVideoFile = &#x27;A.MOV&#x27;;&#xA;intermediateVideoFile = &#x27;A_trim_temp.mp4&#x27;; % Temporary file&#xA;finalOutputFile = &#x27;A_trim_mat.mp4&#x27;; % Final output file&#xA;% Create VideoReader object&#xA;videoReader = VideoReader(inputVideoFile);&#xA;% Get the total number of frames and other properties&#xA;numFrames = videoReader.NumFrames;&#xA;frameRate = videoReader.FrameRate;&#xA;videoHeight = videoReader.Height;&#xA;videoWidth = videoReader.Width;&#xA;% Create VideoWriter object&#xA;videoWriter = VideoWriter(intermediateVideoFile, &#x27;MPEG-4&#x27;);&#xA;videoWriter.FrameRate = frameRate;&#xA;open(videoWriter);&#xA;% Read and write frames except the last 5&#xA;for i = 1:(numFrames - 5)&#xA;    frame = read(videoReader, i);&#xA;    writeVideo(videoWriter, frame);&#xA;end&#xA;% Close the VideoWriter object&#xA;close(videoWriter);&#xA;% Handle audio extraction and trimming&#xA;% This requires an external tool like FFmpeg, as MATLAB does not handle audio directly&#xA;% Command to extract audio&#xA;audioExtractCommand = sprintf(&#x27;ffmpeg -i "%s" -q:a 0 -map a audio_original.wav&#x27;, inputVideoFile);&#xA;[status, cmdout] = system(audioExtractCommand);&#xA;if status ~= 0&#xA;    error(&#x27;Error extracting audio: %s&#x27;, cmdout);&#xA;end&#xA;% Command to trim audio (matching the length of the trimmed video)&#xA;audioTrimCommand = sprintf(&#x27;ffmpeg -i audio_original.wav -ss 0 -t %f -c copy audio_trimmed.wav&#x27;, (numFrames - 5) / frameRate);&#xA;[status, cmdout] = system(audioTrimCommand);&#xA;if status ~= 0&#xA;    error(&#x27;Error trimming audio: %s&#x27;, cmdout);&#xA;end&#xA;% Command to merge trimmed audio with the video&#xA;audioMergeCommand = sprintf(&#x27;ffmpeg -i "%s" -i audio_trimmed.wav -c:v copy -c:a aac -strict experimental "%s"&#x27;, intermediateVideoFile, finalOutputFile);&#xA;[status, cmdout] = system(audioMergeCommand);&#xA;if status ~= 0&#xA;    error(&#x27;Error merging audio and video: %s&#x27;, cmdout);&#xA;end&#xA;% Clean up temporary audio files&#xA;delete(&#x27;audio_original.wav&#x27;);&#xA;delete(&#x27;audio_trimmed.wav&#x27;);&#xA;delete(intermediateVideoFile); % Delete the intermediate file&#xA;

    &#xA;

    When I run the above code for Video B, I change

    &#xA;

    for i = 1:(numFrames - 5)&#xA;

    &#xA;

    to

    &#xA;

    for i = 1:(numFrames - 1)&#xA;

    &#xA;

    to remove the padded last frame.

    &#xA;

    When I run this for both videos, they both return the same frame number (yay !). The timestamps of every frame between A_trim_mat and B_trim_mat match, except for the timestamp of the last frame ( A_trim_mat = 30.8910, B_trim_mat = 30.8890), and perhaps most concerningly, the frame duration between the last two frames of each video is negative (A_trim_mat = -0.0063, B_trim_mat = -0.0083). The duration for all other frames is constant at 0.0083 for both videos.

    &#xA;

    Any suggestions for how to remedy this are much appreciated. Ideally, I want the timestamps for every frame to match between A and B, and I want the frame duration for each frame to match between A and B.

    &#xA;