[RESOLVED] Encoding from HDMI Rx

Post Reply
vsavu
Posts: 13
Joined: Tue Jan 08, 2019 1:16 pm
4kOpen Owner: Yes
[RESOLVED] Encoding from HDMI Rx

Post by vsavu » Mon Jan 14, 2019 7:50 am

When executing the hdmirx-capture command from the wiki

Code: Select all

hdmirx-capture --dec-id=0 --dvp-start --vid-capture-profile=2 --debug --encode /tmp/video.ts
I get the following output

Code: Select all

Configure for DVP capture
Configure Audio capture
hdmirx_configure_decoder(): failed to set control
hdmirx-capture: unrecognized option '--encode'
main(): invalid argument
hdmirx-capture version-1.0
Last modified (03 June 2014)
Compile info:- DATE(Oct  4 2018), TIME(14:13:03)
Usage: hdmirx-capture [OPTIONS]
Configure and start hdmirx capture.

  -d, --dec-id
     The decoder id to use, it is used for audio/video

  --start
     Start the hdmirx capture, this will start both audio and video capture

  --dvp-fmt
     Set the user defined capture format for video (DVP) capture

  --vid-capture-profile
     Configure the mode of video decoder, 0 -> Disabled, 1 -> No audio decoding, no video FRC, 2 ->  audio decoding, video FRC,  
     3 -> No audio decoding, video FRC,  4 -> audio decoding, no video FRC 
     NOTE: since, audio and video are in same playback, so, setting only once the capture policy is suffice.
     Two separate options are given, so, as to realize the single stream playback with specific policy

  --aud-capture-profile
     Configure the mode of audio decoder, 0 -> Disabled, 1 -> No audio decoding, no video FRC, 2 ->  audio decoding, video FRC,
 3 -> No audio decoding, video FRC,  4 -> audio decoding, no video FRC 
  --dvp-start
     Configure and start dvp capture

  --aud-start
     Configure and start hdmirx audio capture

  --edid-read
     Do an edid read test, and dump the contents in a file (edid.dump)
     (start_block = 0, blocks = 2; start_block = 1, blocks = 2
     This is a test only option and must not be used in conjuction with any other

  --edid-write
     Do an edid write test, 0 for no exit and 1 for exit after the test
     (start_block = 0, blocks = 2
     This is a test only option with 1 value, else, it can be used in conjuction with any other

  --edid-file
     Write an EDID from a file. The file must follow the syntax of edid.conf

  --edid-repeater
     Read the HDMITx EDID, take the physical address and modify the HDMIRx EDID

  --debug
    Starts printing more debug information such as the input coming in to hdmirx and output of dvp

     -----------------------------------------------------------------------------------------------
     NOTE: This app is now supporting resize of the output window after the application is started.
     The app follows the following syntax, for example: resize<enter>. Enter the plane name.
     App will read resize.conf file placed in /root/ and will resize based on the params provided
     -----------------------------------------------------------------------------------------------
We are running raspbian. Is there a different version of hdmirx-capture?

nick
Posts: 1
Joined: Fri Jan 11, 2019 2:22 pm
4kOpen Owner: Yes
Re: Encoding from HDMI Rx

Post by nick » Mon Jan 14, 2019 12:45 pm

As you say, the version in the latest release doesn't support the encode flag, but this should not be the case. Let me speak to my colleague tomorrow (he is out today) and see what has happened and get the correct version to you.

Apologies,

vsavu
Posts: 13
Joined: Tue Jan 08, 2019 1:16 pm
4kOpen Owner: Yes
Re: Encoding from HDMI Rx

Post by vsavu » Wed Jan 16, 2019 1:22 pm

Do you have any new information about this issue?

MattMunro
Posts: 13
Joined: Mon Oct 08, 2018 10:49 am
4kOpen Owner: Yes
Re: Encoding from HDMI Rx

Post by MattMunro » Wed Jan 16, 2019 1:54 pm

Hi,
The patch for fixing this is currently available on the Bitbucket, available here https://bitbucket.org/4kopen/starkl, you can apply it manually by building the Raspbian branch of it and moving across the required modules. The alternative is waiting for the Raspbian download on the Software page to be updated, unfortunately I'm not able to give an ETA on this happening but I'll test whats currently available and ask around to see if I can get one.
Thanks for your time,
Matt

User avatar
attie
Posts: 23
Joined: Thu May 17, 2018 11:40 am
4kOpen Owner: Yes
Re: Encoding from HDMI Rx

Post by attie » Thu Jan 17, 2019 2:12 pm

Hi vsavu,

Thanks for your patience here.

As MattMunro indicated, you can re-build the stlinuxtv package that is provided as part of the starkl release.
The specific patch required is 0005-integrated-HDMI-Rx-encode.patch, once built you will need to incorporate various parts of the stlinuxtv package into your system.

Alternatively, we are working to release an updated Raspbian image (and package), so if you are able to wait, then you should be able to update using apt upgrade in due course.

I have also updated the Wiki with some additional steps that you must take during setup and teardown for capture, as well as the stfbset command that you must run to manage the graphics plane (Raspbian desktop). Please see the Encoding from HDMI Rx page.

Attie

User avatar
Pete
Posts: 14
Joined: Thu May 17, 2018 4:43 pm
Location: Bristol
4kOpen Owner: Yes
Contact:
Re: Encoding from HDMI Rx

Post by Pete » Mon Jan 21, 2019 2:01 pm

Hi,

Please find a compiled binary of the test application.

Cheers
Pete
Attachments
encode_test_app.tar
(60 KiB) Downloaded 197 times

vsavu
Posts: 13
Joined: Tue Jan 08, 2019 1:16 pm
4kOpen Owner: Yes
Re: Encoding from HDMI Rx

Post by vsavu » Thu Jan 24, 2019 8:30 am

Do you have an example for the usage of v4lEncodeTestApp? The included help is not very clear and the given examples fails.

User avatar
Pete
Posts: 14
Joined: Thu May 17, 2018 4:43 pm
Location: Bristol
4kOpen Owner: Yes
Contact:
Re: Encoding from HDMI Rx

Post by Pete » Mon Feb 11, 2019 3:23 pm

Hi Vasvu,

The example is at the top of the post:

Code: Select all

hdmirx-capture --dec-id=0 --dvp-start --vid-capture-profile=2 --debug --encode /tmp/video.ts
Though we also recommend:

Code: Select all

mkfifo /tmp/video.ts
Then you can read the other side of the pipe using cat or gstreamer to stream the TS file.

vsavu
Posts: 13
Joined: Tue Jan 08, 2019 1:16 pm
4kOpen Owner: Yes
Re: Encoding from HDMI Rx

Post by vsavu » Thu Feb 14, 2019 7:17 am

Output:

Code: Select all

hdmirx-capture: unrecognized option '--encode'
I have updated v4lEncodeTestApp, but there is no new version of hdmirx-capture in the provided archive.

User avatar
attie
Posts: 23
Joined: Thu May 17, 2018 11:40 am
4kOpen Owner: Yes
Re: Encoding from HDMI Rx

Post by attie » Thu Feb 14, 2019 1:55 pm

Hi vsavu,

Please download the latest release of Raspbian and follow the steps on the wiki.


Post Reply