Recherche avancée

Médias (91)

Autres articles (74)

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

  • How to use the QMediaPlayer module to connect to a rtsp stream ?

    19 juin 2023, par Daniela

    I'm creating an RTSP stream using FFmpeg :

    


    ffmpeg -f gdigrab -framerate 30 -probesize 100M -i title="" -c:v libx264 -preset veryfast -maxrate 1000k -bufsize 1000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 128k -f rtsp -rtsp_transport udp rtsp://...129:8554/stream


    


    and trying to connect to it using the Qt module QMediaPlayer.

    


    It stuck for many seconds when it read the line
player->setSource(QUrl("rtsp://....129:8554/stream"));

    


    and then debug this message :

    


    qt.multimedia.ffmpeg.mediadataholder: AVStream duration -9223372036854775808 is invalid. Taking it from the metadata


    


    Also, connect(player, &QMediaPlayer::errorOccurred print :

    


    Error: "Invalid argument"

    


    class MediaPlayer : public QObject
{
    Q_OBJECT
public:
    MediaPlayer (QObject* parent = nullptr) : QObject(parent)
    {
        player = new QMediaPlayer;
        player->setSource(QUrl("rtsp://....129:8554/stream"));
        connect(player, &QMediaPlayer::errorOccurred, this, [this](QMediaPlayer::Error error, const QString& errorString)
        {
            qDebug() << "Error:" << errorString;
        });

        videoWidget = new QVideoWidget;
        player->setVideoOutput(videoWidget);

        videoWidget->show();
        player->play();
    }

private:
    QMediaPlayer* player;
    QVideoWidget* videoWidget;
};


    


    Testing the exactly same streamUrl on vlc does work correctly.
I'm using Qt 6.6, and Win10. ffmpeg 6.0

    


    How I could debug this ?

    


  • AttributeError : module 'ffmpeg' has no attribute 'load'

    23 avril 2023, par az-purplepen

    I'm having difficulty with ffmpeg. I've installed it properly (I think) but still get AttributeErrors.

    


    I used the online guide (https://ffmpeg.org/download.html), and doing pip install ffmpeg-python instead of pip install ffmpeg. I've verified the installation with pip show. I've also made sure to not name my files ffmpeg.py.

    


    However, when I try running the following commands in terminal, I get an Attribute Error. Any tips ? I've seen this question pop up before, but none of the tips have worked.

    


    >>> import ffmpeg&#xA;>>> ffmpeg.load(&#x27;cover.wav&#x27;)&#xA;Traceback (most recent call last):&#xA;  File "<stdin>", line 1, in <module>&#xA;AttributeError: module &#x27;ffmpeg&#x27; has no attribute &#x27;load&#xA;</module></stdin>

    &#xA;

  • TypeError at /api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/ 'module' object is not callable

    16 avril 2023, par Olyx

    Please help me, I'm writing a patch request that should change the video resolution, but I can't get the file back from celery&#xA;views.py

    &#xA;

    def patch(self, request, id = None):&#xA;    file = File.objects.get(id = id)&#xA;    width =  request.data.get(&#x27;width&#x27;)&#xA;    height = request.data.get(&#x27;height&#x27;)&#xA;    file.width = width&#xA;    file.height = height &#xA;   &#xA;    file.video = change_video_extension.delay(file.video.path, width, height).get()&#xA;    file.save()&#xA;    return Response({&#x27;width&#x27;:width, &#x27;height&#x27;:height})&#xA;

    &#xA;

    tasks.py

    &#xA;

    import os&#xA;from demo.celery import app&#xA;&#xA;@app.task(name = "change_video_extension")&#xA;def change_video_extension(input_file, width, height):&#xA;    output_file = "abc123.mp4"&#xA;    os.system(f"ffmpeg -i {input_file} -s {width}x{height} {output_file}")&#xA;    return output_file&#xA;

    &#xA;

    TypeError

    &#xA;

    TypeError at /api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/&#xA;'module' object is not callable&#xA;Request Method : PATCH&#xA;Request URL : http://127.0.0.1:8000/api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/&#xA;Django Version : 4.2&#xA;Exception Type : TypeError&#xA;Exception Value :
    &#xA;'module' object is not callable

    &#xA;