Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (56)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7773)

  • 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

    


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


    


    here is my cli

    


    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


    


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

    


    How can I fix

    


    Output file #0 does not contain any stream

    


    EDIT :

    


    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
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers

Input #0, x11grab, from ':0.0':
  Duration: N/A, start: 1606679309.355016, bitrate: N/A
    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1680x1050, 25 fps, 24.92 tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default':
  Duration: N/A, start: 1606679310.190079, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #1:0 -> #0:0 (pcm_s16le (native) -> mp2 (native))
  Stream #0:0 -> #0:1 (rawvideo (native) -> mpeg1video (native))
  Stream #0:0 -> #0:2 (rawvideo (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
[x11grab @ 0x561e2391da00] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[mpeg1video @ 0x561e23968400] bitrate tolerance 21333 too small for bitrate 64000, overriding
[mpeg1video @ 0x561e23968400] MPEG-1/2 does not support 3/1 fps
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
[alsa @ 0x561e23926c40] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
Conversion failed!


    


  • 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".

    


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

    


    ffmpeg -i /tmp/input.any -acodec aac -b:a 256000 /tmp/output.aac


    


    On the client I am creating a SourceBuffer like this :

    


    this.sourceBuffer = this.mediaSource.addSourceBuffer('audio/mp4; codecs="mp4a.40.2"');


    


    The errors are :

    


    Chrome :

    


    NotSupportedError: Failed to load because no supported source was found.


    


    Firefox :

    


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


    


    Here comes the fun part :

    


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

    


    this.sourceBuffer = this.mediaSource.addSourceBuffer('audio/aac');


    


    the audio gets played correctly on Chrome but Firefox says :

    


    MediaSource.addSourceBuffer: Type not supported in MediaSource


    



    


    Update

    


    After changing the command to

    


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


    


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

    



    


    See

    


    


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