This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Where do encoded files go from Demo in Matrix Launcher?

Hi

I am using DM816x-EVM, and I see there are following options when I clicked Multimedia Demos button on Matrix launcher.

1. 1080p60 Encode+Decode(requires Daughter card)
2. 1080p60 Decode and Display on HDMI
3. 1080p60 Capture and Encode(requires Daughter card)
4. GStreamer 1080p60 Decode and Display  on HDMI

Q1 Could you tell me where the encoded file is saved for number 3 option? And what codec is it using? One more important question is, how can I stop capture-encoding once I click Run button?

Q2 When I clicked the option 1, it shows some video pipeline diagram. The one thing I don't understand on the diagram is, after the Encode block. Could you tell me what happens after the encode block? If it is saved into a file, where is it saved?

Your reply would be much appreciated. Thanks,

  • Hi P.W.

    The answer to 1 query is

    It dump the encoded (h264) stream at /usr/share/ti/ti-omx with the name of sample.h264.

    When you launch the number third option it runs the runCaptureEncode

    It is present at  file system /targetfs/usr/bin/runCaptureEncode

    Open this file you can find the below command to excute the ILclient for capture.

    “ cd /usr/share/ti/ti-omx

        ./capture_encode_a8host_debug.xv5T -o sample.h264 -m 1080p -f 60 -b 1000000 -n 1000 -d 1

    The answer to 2nd query is

    When you click on first icon it calls runOMTB. It is present at same path /targetfs/usr/bin/runOMTB.

    “execute_omtb()

        cd /usr/share/ti/ti-omtb

        ./omtb_dm81xxbm_a8host.xv5T dual_display_encode_decode.oms

    Right now the output of encode is disable, if you want to enable the output. Open the dual_display_encode_decode.oms which is present at /usr/share/ti/ti-omtb. Un comment the below line.

    omx setp 0 h264venc data_opmode file

    #To enable write to SD card change mode to file

    omx setp 0 h264venc data_opmode file

    omx setp 0 h264venc outfile /usr/share/ti/data/videos/dm816x_1080p60_encode.264

    It will encode the file and dump it at /usr/share/ti/data/videos/dm816x_1080p60_encode.264.

    Thanks and regards

    Sachin Kumar

  • Thanks for your replies. Sachin. You answered most of my questions.

    But is there a way to stop encoding when I used 3rd option? (Capture + Encode) Since now if I start the option3, I don't see any button to stop encoding.

    Thanks~!

  • Hi,

    You can reduce or increase the number of frames in runCaptureEncode file. You can not stop the demo in between from GUI.

    It is present at  file system /targetfs/usr/bin/runCaptureEncode

    Open this file you can find the below command to excute the ILclient for capture.

    “ cd /usr/share/ti/ti-omx

        ./capture_encode_a8host_debug.xv5T -o sample.h264 -m 1080p -f 60 -b 1000000 -n 1000 -d 1

    Thanks and regards

    Sachin Kumar