TVP5150 (i.MX31)

Aus BECOM Systems Support
Version vom 22. August 2023, 20:35 Uhr von en>Peter (1 Version importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Enabling the TVP5150

To enable the TVP5150, place the jumper onto its position (or solder in R13) , so the levelshifter will be activated. To activate the chip itself, you will need to set GPO2 to high. Take care. The pin labeled GPO2 is actually GPO3 when looked up in the Atlas manual. So you will need to run the following command

/* Set bit 10 to 1 to drive the output high */
atlas-regs -s 0x22=0x00018400

Tests

Kurzzusammenfassung (getestet mit BSP rel. 132):

HW: Jumper am VideoIn Board muss gesteckt sein

Kernel Config Einstellungen:

* Drivers -> Multimedia Devices
   * Enable Video For Linux API 1 -> N (!) (2x)
   * Video Capture Adapters
     * Autoselect ... -> Y
     * MXC Video for Linux Camera -> M
        * TI TVP5150 video Decoder Support -> M
           ITU-R ... -> Y
           TI TVP5150 debugging -> Y
           Allocate ... -> Y
        * Pre Processor VF SDC library -> Y
        * Pre Processor Encoder Library -> Y
        * alle anderen: -> N
     * MXC Video for Linux Video Output -> M
     * alle anderen: -> N 

Reboot Target, Signal anlegen, z.B. VCR

Folgende Commands für Raw video:

atlas-regs -s 0x22=0x00018400     /* aktiviert GPO2 */
modprobe mxc_v4l2_in              /* V4L IF */
modprobe tvp5150_capture          /* TVP Treiber */
/unit_tests/mxc_v4l2_test/mxc_v4l2_capture.out -w 320 -h 240 -c 100 file.yuv /* record 320x240 px, 100 frames, yuv420 format */


Folgende Commands für MPEG4 Video:

atlas-regs -s 0x22=0x00018400 
modprobe tvp5150_capture
modprobe mxc_v4l2_in
insmod /unit_tests/modules/memalloc.ko
/tmp/cam2mpeg4/cam2mpeg4 320 240 900 30 file.mp4es &
/tmp/live/testProgs/testMPEG4VideoStreamer

/tmp/live/testProgs/testMPEG4VideoStreamerF