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.

PROCESSOR-SDK-J722S: [TDA4AEN] There is no v4l2-enc driver

Part Number: PROCESSOR-SDK-J722S

Tool/software:

Hi. TI experts.

I want to use v4l2-enc in PSDK RTOS 10.0.0.5 and PSDK Linux 10.0.0.8.

It looks like there is no driver for v4l2-enc as of now.

Once I put 'v4l2-ctl --list-devices' on uart console, I couldn't find any encoder driver.

root@j722s-evm:/sd/svnet# v4l2-ctl --list-devices
wave5-dec (platform:30210000.video-codec):
        /dev/video0
        /dev/video1

e5010 (platform:fd20000.e5010):
        /dev/video2

root@j722s-evm:/sd/svnet#
Post

Do you have an idea to use v4l2-enc driver?

Best regards

Yongsig

  • Hi Yongsig,

    Because of this I assume you are not able to run any GStreamer pipeline to confirm functionality, is that correct? I will create an out of box Vision Apps image and see if I can replicate your results.

    Can you try this simple pipeline and let me know your results:
    gst-launch-1.0 videotestsrc pattern=ball num-buffers=700 ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! v4l2h264enc ! h264parse ! fakesink

    Thank you,
    Sarabesh S.

  • Hi Sarabesh

    Thanks for your help.

    I'll use v4l2-enc directly with ioctt(), not GStreamer.

    Sarabesh

    --> It doesn't work. I'll share the log as below.

    root@j722s-evm:~# v4l2-ctl --list-devices
    wave5-dec (platform:30210000.video-codec):
            /dev/video0
            /dev/video1
    
    e5010 (platform:fd20000.e5010):
            /dev/video2
    
    root@j722s-evm:~# gst-launch-1.0 videotestsrc pattern=ball num-bufrs=700 ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! v4l2h264enc ! h264parse ! fakesink
    WARNING: erroneous pipeline: no property "num-bufrs" in element "videotestsrc"
    

    Best regards

    Yongsig

  • Hello,

    Not sure if your pipeline is copied correctly because "num-buffers" is spelled incorrectly. Although, I will check on 10.0 Linux+RTOS to confirm. Please give me a day to test this. 

    Thanks,
    Sarabesh S.

  • Hi Sarabesh

    Sorry, I don't know if there is a typo.

    I tried again, and it looks like it works.

    root@j722s-evm:~# gst-launch-1.0 videotestsrc pattern=ball num-buffers=700 ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! v4l2h264enc ! h264parse ! fakesink
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    Redistribute latency...
    Redistribute latency...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    Redistribute latency...
    New clock: GstSystemClock
    Got EOS from element "pipeline0".
    Execution ended after 0:01:12.211142555
    Setting pipeline to NULL ...
    Freeing pipeline ...
    

    But I want to use wave5-enc in PSDK10.0 as I used in PSDK 9.2.

    Best regards

    Yongsig

  • It appears functionality wise, the encoder is working on your setup. If you're able to run gstreamer pipelines using hardware acceleration with the v4l2h264enc element then you are using the wave521CL encoder.

    Thanks,
    Sarabesh S.

  • Hi Sarabesh

    I'm sorry I don't understand that I can use the wave521CL encoder.

     

    It looks like the only driver that is registered in Linux is wave5-dec as of now.

    root@j722s-evm:~# v4l2-ctl --list-devices
    wave5-dec (platform:30210000.video-codec):
            /dev/video0
            /dev/video1
    
    e5010 (platform:fd20000.e5010):
            /dev/video2

    Also, I know e5010 is for JPEG, not H264.

    What driver name should I put instead of 'device_name'?

    int32 fd = open(device_name, O_RDWR | O_NONBLOCK, 0);

    Best regards

    Yongsig

  • Let me look into this and try to replicate. Haven't had a chance to build the 10.0 Vision Apps image yet.

    Thanks,
    Sarabesh S.

  • Hi Sarabesh

    OK. I appreciate your help.

    If you have an update, please let me know.

    Best regards

    Yongsig

  • Hi Yongsig, 

    Yes, I will let you know. 

    Regards,
    Sarabesh S.