Recherche avancée

Médias (91)

Autres articles (41)

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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (7755)

  • "Could not demultiplex stream" in loading Video recorded by Opencv's VideoWriter

    21 novembre 2020, par batuman

    My program is

    



    int main(){&#xA;    cout &lt;&lt; "Start the process" &lt;&lt; endl;&#xA;    cv::VideoCapture vcap("rtsp://root:pass@192.168.0.90/axis-media/media.amp?camera=1");&#xA;    cout &lt;&lt; "Camera connection done!" &lt;&lt; endl;&#xA;    cv::Mat image, small;&#xA;    //Output video&#xA;    cv::Size S = cv::Size((int) vcap.get(CV_CAP_PROP_FRAME_WIDTH), (int) vcap.get(CV_CAP_PROP_FRAME_HEIGHT));&#xA;    int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));&#xA;    int fps = vcap.get(CV_CAP_PROP_FPS);&#xA;    cout &lt;&lt; "fps " &lt;&lt; fps &lt;&lt; " ex " &lt;&lt; ex &lt;&lt; endl;&#xA;    cv::VideoWriter outputVideo;&#xA;    outputVideo.open("TEST.avi", ex/*CV_FOURCC(&#x27;X&#x27;, &#x27;2&#x27;, &#x27;6&#x27;, &#x27;4&#x27;)*/, vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;    if(!outputVideo.isOpened()){&#xA;        cout &lt;&lt; "Could not open the output video for write" &lt;&lt; endl;&#xA;        return -1;&#xA;    }&#xA;&#xA;    for(;;){&#xA;        if(!vcap.read(image)){&#xA;            std::cout &lt;&lt; "No frame" &lt;&lt; std::endl;&#xA;            cv::waitKey(0);&#xA;        }&#xA;&#xA;        cv::resize(image, small, image.size()/2, 0, 0 , cv::INTER_LINEAR);&#xA;        cv::imshow("Display", small);&#xA;        cv::waitKey(1);&#xA;        outputVideo.write(small);&#xA;        if(getkey() == &#x27;\n&#x27;)&#xA;            break;&#xA;    }&#xA;    cout &lt;&lt; "Camera release" &lt;&lt; endl;&#xA;    outputVideo.release();&#xA;    vcap.release();&#xA;    image.release();&#xA;    small.release();&#xA;    return 0;&#xA;}&#xA;</int>

    &#xA;&#xA;

    int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));</int> ex is 0 here.

    &#xA;&#xA;

    I can record the TEST.avi, but can't be read by cv::VideoCapture vcap("TEST.avi") ; or VLC player or Videos in Ubuntu.&#xA;The error is "Could not demultiplex stream".

    &#xA;&#xA;

    If I changed to

    &#xA;&#xA;

    outputVideo.open("TEST.avi", CV_FOURCC(&#x27;X&#x27;, &#x27;2&#x27;, &#x27;6&#x27;, &#x27;4&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;outputVideo.open("TEST.avi", CV_FOURCC(&#x27;P&#x27;,&#x27;I&#x27;,&#x27;M&#x27;,&#x27;1&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;outputVideo.open("TEST.avi", CV_FOURCC(&#x27;M&#x27;, &#x27;P&#x27;, &#x27;4&#x27;, &#x27;2&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;etc.&#xA;

    &#xA;&#xA;

    all have same problem.

    &#xA;&#xA;

    If I set

    &#xA;&#xA;

    outputVideo.open("TEST.avi", CV_FOURCC(&#x27;i&#x27;, &#x27;Y&#x27;, &#x27;U&#x27;, &#x27;V&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;

    &#xA;&#xA;

    I have error as Opencv: FFMPEG iYUV is not supported with codec id 14

    &#xA;&#xA;

    For

    &#xA;&#xA;

    outputVideo.open("TEST.avi", CV_FOURCC(&#x27;M&#x27;, &#x27;J&#x27;, &#x27;P&#x27;, &#x27;G&#x27;), vcap.get(CV_CAP_PROP_FPS), S, true);&#xA;&#xA;&#xA;OpenCV Error: Assertion failed (img.cols == width &amp;&amp; img.rows == height &amp;&amp; chann&#xA;els == 3) in write, file /home/Softwares/opencv/opencv/modules/videoio/src/&#xA;cap_mjpeg_encoder.cpp, line 829&#xA;terminate called after throwing an instance of &#x27;cv::Exception&#x27;&#xA;  what():  /home/Softwares/opencv/opencv/modules/videoio/src/cap_mjpeg_enco&#xA;der.cpp:829: error: (-215) img.cols == width &amp;&amp; img.rows == height &amp;&amp; channels =&#xA;= 3 in function write&#xA;

    &#xA;&#xA;

    What could be wrong ? Is that my FFMPEG has problem ?

    &#xA;

  • audio/mp4 ; codecs="mp4a.40.2" not playing in Chrome and Firefox

    19 octobre 2020, par Stefan Falk

    It seems I want to convert audios, which I want to stream on my website, to audio/mp4; codecs="mp4a.40.2".

    &#xA;

    Using ffmpeg-cli-wrapper, I am converting my uploaded audio files with this command here :

    &#xA;

    ffmpeg -i /tmp/input.any -acodec aac -b:a 256000 /tmp/output.aac&#xA;

    &#xA;

    On the client I am creating a SourceBuffer like this :

    &#xA;

    this.sourceBuffer = this.mediaSource.addSourceBuffer(&#x27;audio/mp4; codecs="mp4a.40.2"&#x27;);&#xA;

    &#xA;

    The errors are :

    &#xA;

    Chrome :

    &#xA;

    NotSupportedError: Failed to load because no supported source was found.&#xA;

    &#xA;

    Firefox :

    &#xA;

    NotSupportedError: The media resource indicated by the src attribute or assigned media provider object was not suitable.&#xA;

    &#xA;

    Here comes the fun part :

    &#xA;

    If I create the SourceBuffer using audio/aac as mime-type :

    &#xA;

    this.sourceBuffer = this.mediaSource.addSourceBuffer(&#x27;audio/aac&#x27;);&#xA;

    &#xA;

    the audio gets played correctly on Chrome but Firefox says :

    &#xA;

    MediaSource.addSourceBuffer: Type not supported in MediaSource&#xA;

    &#xA;


    &#xA;

    Update

    &#xA;

    After changing the command to

    &#xA;

    ffmpeg -i /tmp/input.any -acodec aac -b:a 256000 /tmp/output.mp4&#xA;                                                             ^^^ &#xA;

    &#xA;

    Chrome/Firefox do not give an error when using audio/mp4; codecs="mp4a.40.2", but the audio is not being played.

    &#xA;


    &#xA;

    See

    &#xA;

    &#xA;

  • When I run ffmpeg Im getting "output file #0 does not contain any stream" [duplicate]

    29 novembre 2020, par 0 day

    Im trying to feed live stream from ffmpeg to ffserver but Im getting this error

    &#xA;

      libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;Input #0, x11grab, from &#x27;:0.0&#x27;:&#xA;  Duration: N/A, start: 1606657336.654899, bitrate: N/A&#xA;    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1680x1050, 25 fps, 24.92 tbr, 1000k tbn, 1000k tbc&#xA;Output #0, alsa, to &#x27;http://localhost:8090/feed.ffm&#x27;:&#xA;Output file #0 does not contain any stream&#xA;

    &#xA;

    here is my cli

    &#xA;

    ffmpeg -probesize 1000M -framerate 25 -video_size 1680x1050 -f x11grab -i :0.0 -f alsa -c:a aac -vf format=yuv420p http://localhost:8090/feed1.ffm&#xA;

    &#xA;

    I'v looked at this and this but it did not helped

    &#xA;

    How can I fix

    &#xA;

    Output file #0 does not contain any stream

    &#xA;

    EDIT :

    &#xA;

    ffmpeg -probesize 1000M -framerate 25 -video_size 1680x1050 -f x11grab -i :0.0 -f alsa -i default -c:a aac -vf format=yuv420p http://localhost:8090/feed1.ffm&#xA;ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers&#xA;&#xA;Input #0, x11grab, from &#x27;:0.0&#x27;:&#xA;  Duration: N/A, start: 1606679309.355016, bitrate: N/A&#xA;    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1680x1050, 25 fps, 24.92 tbr, 1000k tbn, 1000k tbc&#xA;Guessed Channel Layout for Input Stream #1.0 : stereo&#xA;Input #1, alsa, from &#x27;default&#x27;:&#xA;  Duration: N/A, start: 1606679310.190079, bitrate: 1536 kb/s&#xA;    Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s&#xA;Stream mapping:&#xA;  Stream #1:0 -> #0:0 (pcm_s16le (native) -> mp2 (native))&#xA;  Stream #0:0 -> #0:1 (rawvideo (native) -> mpeg1video (native))&#xA;  Stream #0:0 -> #0:2 (rawvideo (native) -> vp8 (libvpx))&#xA;Press [q] to stop, [?] for help&#xA;[x11grab @ 0x561e2391da00] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)&#xA;[mpeg1video @ 0x561e23968400] bitrate tolerance 21333 too small for bitrate 64000, overriding&#xA;[mpeg1video @ 0x561e23968400] MPEG-1/2 does not support 3/1 fps&#xA;Error initializing output stream 0:1 -- Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;[alsa @ 0x561e23926c40] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)&#xA;Conversion failed!&#xA;

    &#xA;