Recherche avancée

Médias (0)

Mot : - Tags -/tags

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (58)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (6590)

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