Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (61)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (6186)

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

    


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


    


    tasks.py

    


    import os
from demo.celery import app

@app.task(name = "change_video_extension")
def change_video_extension(input_file, width, height):
    output_file = "abc123.mp4"
    os.system(f"ffmpeg -i {input_file} -s {width}x{height} {output_file}")
    return output_file


    


    TypeError

    


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

    


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

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

    &#xA;

    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&#xA;

    &#xA;

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

    &#xA;

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

    &#xA;

    and then debug this message :

    &#xA;

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

    &#xA;

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

    &#xA;

    Error: "Invalid argument"

    &#xA;

    class MediaPlayer : public QObject&#xA;{&#xA;    Q_OBJECT&#xA;public:&#xA;    MediaPlayer (QObject* parent = nullptr) : QObject(parent)&#xA;    {&#xA;        player = new QMediaPlayer;&#xA;        player->setSource(QUrl("rtsp://....129:8554/stream"));&#xA;        connect(player, &amp;QMediaPlayer::errorOccurred, this, [this](QMediaPlayer::Error error, const QString&amp; errorString)&#xA;        {&#xA;            qDebug() &lt;&lt; "Error:" &lt;&lt; errorString;&#xA;        });&#xA;&#xA;        videoWidget = new QVideoWidget;&#xA;        player->setVideoOutput(videoWidget);&#xA;&#xA;        videoWidget->show();&#xA;        player->play();&#xA;    }&#xA;&#xA;private:&#xA;    QMediaPlayer* player;&#xA;    QVideoWidget* videoWidget;&#xA;};&#xA;

    &#xA;

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

    &#xA;

    How I could debug this ?

    &#xA;