Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (83)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (8396)

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