Forums

Overhead of a system call.

  • Hi.

    Is the overhead very high when doing something like the following:

    system("

    gst-launch -e v4l2src always-copy=true chain-ipipe=true num-buffers=300 ! 'video/x-raw-yuv,format=(fourcc)NV12,width=640,height=480' ! dmaiaccel !\
    dmaienc_h264 encodingpreset=2 ratecontrol=2 intraframeinterval=23 idrinterval=46 targetbitrate=3000000 !dmaiperf ! qtmux ! filesink location=test8003.h264\
    sync=false enable-last-buffer=false&

    ");

     

     

     

     

  • You might look at using GStreamer Daemon (gstd) since it was designed to allow you to develop an A/V control application and let gstd handle the actual A/V work.  With gstd you can play and pause the pipeline (and lots of other cool things too), so you don't need to use things like num-buffers=300.

    gstd can be found at http://ridgerun.github.com

    Todd

  • Thanks Todd.

    Is there a way to turn off the messages coming from gstreamer? I would like to communicate with a GSM module using the UART and would like to only have certain commands(messages) going out on it.

  • Hi,

    Messages coming from gstreamer are coming out from UART0, console itself works over UART0, if you try to use UART0 for communications you will loose console (which is no good). One possible solution is to use UART1 wich is muxed with CPU.TX_EN and goes to the KS800L chip (ethernet functions) you could use UART1 for comunications, but in that case you will loose ethernet functions.

    In the last case you will need to use an SD to store bootloader, kernel and file system. Console will be working fine.

     

    In order to know which devices are connected to certain DM365 ports, please look at the LeopardBoard schematics available at:

    http://designsomething.org/leopardboard/uploads/dm365_leopard_board_ver1.3.pdf

     

    Carlos Aguero
    Embedded Software Engineer
    RidgeRun

  • Justin,

    Do you know how to redirect stdout and stderr?  I think by "turn off the messages coming from gstreamer" you are referring to the what is being put out to stdout and stderr.  Please search the Internet for stdout redirection to get your answers.

    Todd

  • Hi

    How do I install PPPD or WVDIAL on the board?

  • make config:

    Networking  --->

    Networking options  --->

     <*> Unix domain sockets

     [*] TCP/IP networking

    Device Drivers  --->

    Network device support  --->

     [*] Network device support

     <*> PPP (point-to-point protocol) support

     <*>   PPP support for async serial ports

     <*>   PPP support for sync tty ports

     <*>   PPP Deflate compression

     <*>   PPP BSD-Compress compression

    But how do I install pppd?

  • Hi Carlos

    How do I activate UART1? Do I set CPU.TX_EN low or high and how do I actually do that?

    Will the RX GND and TX be on pin 5 (RXD_CT), 8 (GND) and 4 (TXD-CT) of the RJ45?

  • Hi Justin,

    The Evaluation SDK dont have support for UART1. Please refer to the DM365 documentation (like the DM365 datasheet, ARM subsystem guide and others) also Linux documentation is very useful. Once you have UART1 working, please post instructions on how you solved the problem so other community members can learn from your experience.

    Thank you

    Carlos Aguero
    Embedded Software Engineer
    RidgeRun

  • Hi

    How can I create a new user?

    I need to open an SSH terminal with putty but it needs a username and password.

    / # useradd                                                                    

    -/bin/sh: useradd: not found  

    So how can this be done?