Recherche avancée

Médias (91)

Autres articles (98)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9099)

  • ffplay - how to have video and audio waveform [duplicate]

    19 février 2018, par francis

    This question already has an answer here :

    I’ve been trying out various commands trying to figure out how to have a stack of video and audio waveform according to : https://trac.ffmpeg.org/wiki/FancyFilteringExamples#waveform

    Video only :

    ffplay -i abc.mp4 -vf "split[a][b];[a]waveform=e=1,split=1[c];[c]crop=in_w:16:0:0,lutyuv=y=val:v=180[high]; [b][high]vstack=2"

    Audio only :

    ffplay -f lavfi 'amovie=april.flac,asplit=2[out1][a]; [a]showwaves=s=640x240[waves]; [waves] vstack[out0]'

    But there isn’t any that combines and shows the top half as video and bottom half as the audio waveform. Is it possible ?

  • ffmpeg generate overlay complex filter for audio with background image

    8 janvier 2016, par user1793606

    I am experimenting with ffmpeg and would like to generate overlay complex filter for audio with background image. The code normally works, except for when adding -filter_complex "[0:a]showwaves=s=1280x720:mode=line,format=yuv420p[v]" -map "[v]" -map 0:a
    it crashes. I found the example code at https://trac.ffmpeg.org/wiki/Waveform Any help is appreciated.

    Command '['c:/ffmpeg/bin\\ffmpeg.exe', '-y', '-loop', '1', '-r', '1', '-i', 'temp\\bg.png', '-i', 'test.mp3', '-filter_complex', '[0:a]showwaves=s=1280x720:mode=line,format=yuv420p[v]', '-map', '[v]', '-map', '0:a', '-c:v', 'libx264', '-preset', 'ultrafast', '-tune', 'stillimage', '-crf', '15', '-pix_fmt', 'yuv420p', '-strict', 'experimental', '-c:a', 'aac', '-b:a', '256k', '-shortest', '-threads', '0', 'done/test.mp4']'

    EDIT 1 :

    I tested this with the new verson : ffmpeg -y -i input.mp3 -i background.png -filter_complex "[0:a]showwaves=s=1280x720:mode=line,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -c:a copy output.mp4

    It generates an output file, but only the waveform, no background included. My end goal is to generate the waveform over the background.

  • OpenCV : FFMPEG : tag is not supported with codec id 12 and format 'mp4 / MP4

    30 septembre 2023, par Tina J

    I was trying to run a repo located HERE. Basically, just targeting SimpleVideoSummarizer.cc which uses OpenCV for some basic video processing. I'm using Ubuntu 14.04. Following is the save part of the code :

    



    void SimpleVideoSummarizer::playAndSaveSummaryVideo(char* videoFileSave) {&#xA;    cv::VideoCapture capture(videoFile);&#xA;    cv::Mat frame;&#xA;    capture.set(CV_CAP_PROP_POS_FRAMES, 0);&#xA;    cv::VideoWriter videoWriter;&#xA;    if (videoFileSave != "") {&#xA;        videoWriter = cv::VideoWriter(videoFileSave, CV_FOURCC(&#x27;M&#x27;, &#x27;J&#x27;, &#x27;P&#x27;, &#x27;G&#x27;), static_cast<int>(capture.get(CV_CAP_PROP_FPS)), cv::Size(capture.get(CV_CAP_PROP_FRAME_WIDTH), capture.get(CV_CAP_PROP_FRAME_HEIGHT)));&#xA;    }&#xA;    for (std::set<int>::iterator it = summarySet.begin(); it != summarySet.end(); it&#x2B;&#x2B;) {&#xA;        capture.set(CV_CAP_PROP_POS_FRAMES, segmentStartTimes[*it] * frameRate);&#xA;        for (int i = segmentStartTimes[*it]; i &lt; segmentStartTimes[*it &#x2B; 1]; i&#x2B;&#x2B;) {&#xA;            for (int j = 0; j &lt; frameRate; j&#x2B;&#x2B;) {&#xA;                capture >> frame;&#xA;                cv::putText(frame, "Time: " &#x2B; IntToString(i) &#x2B; " seconds", cvPoint(30, 30),&#xA;                            cv::FONT_HERSHEY_COMPLEX_SMALL, 0.8, cvScalar(200, 200, 250), 1, CV_AA);&#xA;                if (frame.data) {&#xA;                    cv::imshow("Summary Video", frame);&#xA;                }&#xA;                if (videoFileSave != "") {&#xA;                    videoWriter.write(frame);&#xA;                }&#xA;                // Press  ESC on keyboard to exit&#xA;                char c = static_cast<char>(cv::waitKey(25));&#xA;                if (c == 27) {&#xA;                    break;&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;    capture.release();&#xA;}&#xA;</char></int></int>

    &#xA;&#xA;

    I pass an input.mp4 file and specify a out.mp4 as well. Unfortunately, when the example is trying to save the output video file, it throws errors on the FOURCC :

    &#xA;&#xA;

    OpenCV: FFMPEG: tag 0x44495658/&#x27;XVID&#x27; is not supported with codec id 12 and format &#x27;mp4 / MP4 (MPEG-4 Part 14)&#x27;&#xA;OpenCV: FFMPEG: fallback to use tag 0x7634706d/&#x27;mp4v&#x27;&#xA;

    &#xA;&#xA;

    or another one :

    &#xA;&#xA;

    OpenCV: FFMPEG: tag 0x3234504d/&#x27;MP42&#x27; is not supported with codec id 15 and format &#x27;mp4 / MP4 (MPEG-4 Part 14)&#x27;&#xA;[mp4 @ 0x16bc700] Could not find tag for codec msmpeg4v2 in stream #0, codec not currently supported in container&#xA;

    &#xA;&#xA;

    I tried to change the FOURCC in this part of the code which writes the video, and applied XVID, MJPG, X264, MP42, MP4V. None worked and threw similar errors.

    &#xA;&#xA;

    What is the problem ? How to fix it ?

    &#xA;