output video transmission

output video transmission

  • I want to do a video transmission.

    In order to see if my soft is good, can I use my screen (on which I work) by opening an other window with the output? How can I open an other window?

    I work with LeopardBoard 365 and the camera board LI-5M03.

    Thanks in advance.

  • If I use a graphic library like SDL, is it possible?

  • I have tried to use the X11 library to open a window, but when I put : include <X11/Xlib.>, it doesn't find it. What I must to write in the Config in order to can use this library? I have also tried with include </usr/include/X11/Xlib.h>, it finds it but as Xlib.h include other .h in the X11 repertory, it doesn't work. Must I create a link ?

  • (the problem is that I don't want to use the composite output, because I have no screen with composite input, I would prefer to see the output via my PC without a composite cable, just with the serial cable)

  • The RidgeRun SDK doesn't include X11.  You need to use a different distribution if you want to use X11.

  • And there are no other possibilities in order to use as output your own PC without the composite output, via the ethernet or via the serial port?

  • We have used VLC in the past.  I don't think VLC is part of the eval SDK.

  • Is it possible to transmit the audio and the video signal via IP to an other Computer?

  • try gstreamer (gst-launch) or vlc as posted above, but vlc options are annoyling complicated. also, mencoder, ffserve (ffmpeg) work too.

    gstreamer is the most straight forward

    try a google search for "gstreamer gst-launch rtp" for example

    remember to use a "non cpu intensive" codec, or use TI's codecs which are DSP accelerated.

    gst-inspect should give you the list of available components including the TI's codecs if installed

  • thanks

    I wanted to run gst-hello-app (in /usr/local/bin) but I have this mistake:

    CMEM Error: init: Failed to open /dev/cmem: 'No such device or address'

    VICP Error: init: Failed to open /dev/irqk: 'No such file or directory'

    VICP Error: init: Failed to open /dev/irqk: 'No such file or directory'

    What is the problem?

  • (I have connected a HP at the audio output of the board)

  • I ran "loadmodules", and choose /usr/local/bin as directory to insall bbb.ogg but I have this error when I want run gst-hello-app

    /usr/local/bin # ./gst-hello-app bbb.ogg

    Now playing: bbb.ogg

    Running...

    Error : Could not demultiplex stream.

    Returned, stopping playback

    Deleting pipeline

    /usr/local/bin #

    thanks

  • I have tried with an other file .ogg but I have nothing on output.

    Is someone succeed in runing this demo ???

  • On your host computer, you can try

    cd $DEVDIR/myapps/gst-hello-app

    gst-launch filesrc location=bbb.ogg ! oggdemux ! vorbisdec ! audioconvert ! autoaudiosink

    This will run the same pipeline as is created by the gst-hello-app example application.

    Then on the Leopardboard, try

    gst-launch filesrc location=/usr/local/media/bbb.ogg ! oggdemux ! vorbisdec ! audioconvert ! autoaudiosink

    Then you can try

    gst-hello-app /usr/local/media/bbb.ogg

    Todd

  • Hello Todd

    Thank you for your help.

     

                  I. In my host computer:

     

    1. When I connect the speaker to my host PC, it works:

    stephane@tamara:~/DM365SDK844703/myapps/gst-hello-app$ gst-launch filesrc location=bbb.ogg ! oggdemux ! vorbisdec ! audioconvert ! autoaudiosink
    Définition du pipeline à PAUSED...
    Le pipeline est en phase de PREROLL...
    Le pipeline a terminé la phase PREROLL...
    Passage du pipeline à la phase PLAYING...
    New clock: GstPulseSinkClock
    EOS reçu de l'élément « pipeline0 ».
    Execution ended after 6501093020 ns.
    Définition du pipeline à PAUSED...
    Définition du pipeline à READY (prêt)...
    Définition du pipeline à NULL...
    Libération du pipeline...

    2. When I connect the speaker to the LéopardBoard, it doesn't work (no output):

    stephane@tamara:~/DM365SDK844703/myapps/gst-hello-app$ gst-launch filesrc location=bbb.ogg ! oggdemux ! vorbisdec ! audioconvert ! autoaudiosink
    Définition du pipeline à PAUSED...
    Le pipeline est en phase de PREROLL...
    Le pipeline a terminé la phase PREROLL...
    Passage du pipeline à la phase PLAYING...
    New clock: GstPulseSinkClock
    EOS reçu de l'élément « pipeline0 ».
    Execution ended after 6500808677 ns.
    Définition du pipeline à PAUSED...
    Définition du pipeline à READY (prêt)...
    Définition du pipeline à NULL...
    Libération du pipeline...

    -> it's the same output, but I heard nothing. I have tried the same thing (speaker to the board and to the PC) with a .wav and wavparse, I noticed the same problem

    I have tested in usr/local/bin directory and it doesn't work on my pc and in the board:

    stephane@tamara:~/DM365SDK844703/fs/fs/usr/local/bin$ ls
    bbb.ogg  ddcmon  decode-dimms  decode-edid  decode-vaio  diff_msg  gst-hello-app  wat.ogg  wat.wav
    stephane@tamara:~/DM365SDK844703/fs/fs/usr/local/bin$ gst-launch filesrc location=bbb.ogg ! oggdemux ! vorbisdec ! audioconvert ! autoaudiosink
    Définition du pipeline à PAUSED...
    Le pipeline est en phase de PREROLL...
    ERREUR : de l'élément /GstPipeline:pipeline0/GstOggDemux:oggdemux0 : Impossible de démultiplexer le flux.
    Information de débogage supplémentaire :
    gstoggdemux.c(2743): gst_ogg_demux_find_chains (): /GstPipeline:pipeline0/GstOggDemux:oggdemux0:
    can't get first chain
    ERREUR : le pipeline refuse de passer en phase de préparation.
    Définition du pipeline à NULL...
    Libération du pipeline...

    and with the .wav: it work (only on the host PC):

    stephane@tamara:~/DM365SDK844703/fs/fs/usr/local/bin$ gst-launch filesrc location=wat.wav ! wavparse ! autoaudiosink
    Définition du pipeline à PAUSED...
    Le pipeline est en phase de PREROLL...
    Le pipeline a terminé la phase PREROLL...
    Passage du pipeline à la phase PLAYING...
    New clock: GstPulseSinkClock
    EOS reçu de l'élément « pipeline0 ».
    Execution ended after 13937496173 ns.
    Définition du pipeline à PAUSED...
    Définition du pipeline à READY (prêt)...
    Définition du pipeline à NULL...
    Libération du pipeline...

     

                     II. On the board:

     

    When I connect the speaker to my host PC or when I connect the speaker to the LeopardBoard (it is the same output)

    / # gst-launch filesrc location=/usr/local/media/bbb.ogg ! oggdemux ! vorbisdec
    ! audioconvert ! autoaudiosink
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    ERROR: from element /GstPipeline:pipeline0/GstOggDemux:oggdemux0: Could not demultiplex stream.
    Additional debug info:
    ../../../src/ext/ogg/gstoggdemux.c(2768): gst_ogg_demux_find_chains (): /GstPipeline:pipeline0/GstOggDemux:oggdemux0:
    can't get first chain
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to NULL ...
    Freeing pipeline ...

    with the .wav:

    / # gst-launch filesrc location=/usr/local/bin/wat.wav ! wavparse ! autoaudiosink                                
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstAudioSinkClock
    -> blocked here and no output

     

    with an other .ogg:(same problem)

    / # gst-launch filesrc location=/usr/local/bin/wat.ogg ! oggdemux ! vorbisdec !
    audioconvert ! autoaudiosink  
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstAudioSinkClock

     

    with the application:

    /usr/local/bin # ./gst-hello-app bbb.ogg
    Now playing: bbb.ogg
    Running...
    Error : Could not demultiplex stream.
    Returned, stopping playback
    Deleting pipeline
    /usr/local/bin # ./gst-hello-app wat.ogg
    Now playing: wat.ogg
    Running...
    Dynamic pad created, linking demuxer/decoder   (blocked here)

     

    Notice that when I connect the speaker to the LeopardBoard I can heard a strange noise like two short consecutive beeps.

     

     

    Thanks in advance.