DSPRelated.com
Forums

Need help inputting QVGA video to TMS320DM 642 EVM

Started by salm...@gmail.com July 6, 2007
Hello all,
I am new to programming on the TMS320DM642. I am currently doing an internship at a company and an initial job is to input a 320x240 QVGA input source to the EVM. I went through the supplied examples and I can input, manipulate, and display 720x480 frames that I am capturing from a regular analog video camera. However, I need to take a 320x240 .avi test sequence from my PC and feed it to my DSP board. Can someone please help me on this? One initial thought was to burn a CD with the 320x240 sequence and use a CD player as an input. Any thoughts on this, and what would I need to do on the DSP side?

As a side note, I have a bachelors and masters in electrical, and most of my current PhD research at Georgia Tech is on computer vision and image processing. Specifically, I am working on video tracking, and am now starting to get into embedded systems using the TMS320DM6x line of DSPs. If anyone has similar interests and would like to share information/experiences, please do contact me. My phone is +1.404.514.2206

Thanks a lot.

Best regards
Salman Aslam
Salman-

> I am new to programming on the TMS320DM642. I am currently doing an internship at a company and an initial job is to
> input a 320x240 QVGA input source to the EVM. I went through the supplied examples and I can input, manipulate, and
> display 720x480 frames that I am capturing from a regular analog video camera. However, I need to take a
> 320x240 .avi
> test sequence from my PC and feed it to my DSP board. Can someone please help me on this? One initial thought
> was to burn a CD with the 320x240 sequence and use a CD player as an input. Any thoughts on this, and what would
> I need to do on the DSP side?
>
> As a side note, I have a bachelors and masters in electrical, and most of my current PhD research at Georgia Tech is
> on computer vision and image processing. Specifically, I am working on video tracking, and am now starting to get
> into embedded systems using the TMS320DM6x line of DSPs. If anyone has similar interests and would like to share
> information/experiences, please do contact me. My phone is +1.404.514.2206

I believe the EVM DM642 comes with a PCI driver, why not use that to transfer .avi file data between your C/C++
programs and DM642 memory ?

-Jeff
Jeff Brower wrote:
> Salman-
>
>
>> I am new to programming on the TMS320DM642. I am currently doing an internship at a company and an initial job is to
>> input a 320x240 QVGA input source to the EVM. I went through the supplied examples and I can input, manipulate, and
>> display 720x480 frames that I am capturing from a regular analog video camera. However, I need to take a
>> 320x240 .avi
>> test sequence from my PC and feed it to my DSP board. Can someone please help me on this? One initial thought
>> was to burn a CD with the 320x240 sequence and use a CD player as an input. Any thoughts on this, and what would
>> I need to do on the DSP side?
>>
>> As a side note, I have a bachelors and masters in electrical, and most of my current PhD research at Georgia Tech is
>> on computer vision and image processing. Specifically, I am working on video tracking, and am now starting to get
>> into embedded systems using the TMS320DM6x line of DSPs. If anyone has similar interests and would like to share
>> information/experiences, please do contact me. My phone is +1.404.514.2206
>>
>
> I believe the EVM DM642 comes with a PCI driver, why not use that to transfer .avi file data between your C/C++
> programs and DM642 memory ?
>
> -Jeff
>
Thanks for your reply. Actually, the company needs the board to operate
in standalone mode. I looked into making a VCD but NTSC VCD format is
352x240 rather than 320x240. I have to work with 320x240 because nearly
all of the company's testing has been done on 320x240.

More suggestions would be appreciated. Thanks.

Salman
Salman-

>>> I am new to programming on the TMS320DM642. I am currently doing an internship at a company and an initial job is
>>> to
>>> input a 320x240 QVGA input source to the EVM. I went through the supplied examples and I can input, manipulate,
>>> and
>>> display 720x480 frames that I am capturing from a regular analog video camera. However, I need to take a
>>> 320x240 .avi
>>> test sequence from my PC and feed it to my DSP board. Can someone please help me on this? One initial thought
>>> was to burn a CD with the 320x240 sequence and use a CD player as an input. Any thoughts on this, and what would
>>> I need to do on the DSP side?
>>>
>>> As a side note, I have a bachelors and masters in electrical, and most of my current PhD research at Georgia Tech
>>> is
>>> on computer vision and image processing. Specifically, I am working on video tracking, and am now starting to get
>>> into embedded systems using the TMS320DM6x line of DSPs. If anyone has similar interests and would like to share
>>> information/experiences, please do contact me. My phone is +1.404.514.2206
>>> I believe the EVM DM642 comes with a PCI driver, why not use that to transfer .avi file data between your C/C++
>> programs and DM642 memory ?
>>
>> -Jeff
>>
> Thanks for your reply. Actually, the company needs the board to operate
> in standalone mode. I looked into making a VCD but NTSC VCD format is
> 352x240 rather than 320x240. I have to work with 320x240 because nearly
> all of the company's testing has been done on 320x240.

Ok, so what's wrong with Ethernet (10/100)? That's on the EVM DM642 board, right?

-Jeff
Jeff Brower wrote:
> Salman-
>
>
>>>> I am new to programming on the TMS320DM642. I am currently doing an internship at a company and an initial job is
>>>> to
>>>> input a 320x240 QVGA input source to the EVM. I went through the supplied examples and I can input, manipulate,
>>>> and
>>>> display 720x480 frames that I am capturing from a regular analog video camera. However, I need to take a
>>>> 320x240 .avi
>>>> test sequence from my PC and feed it to my DSP board. Can someone please help me on this? One initial thought
>>>> was to burn a CD with the 320x240 sequence and use a CD player as an input. Any thoughts on this, and what would
>>>> I need to do on the DSP side?
>>>>
>>>> As a side note, I have a bachelors and masters in electrical, and most of my current PhD research at Georgia Tech
>>>> is
>>>> on computer vision and image processing. Specifically, I am working on video tracking, and am now starting to get
>>>> into embedded systems using the TMS320DM6x line of DSPs. If anyone has similar interests and would like to share
>>>> information/experiences, please do contact me. My phone is +1.404.514.2206
>>>>
>>>>
>>> I believe the EVM DM642 comes with a PCI driver, why not use that to transfer .avi file data between your C/C++
>>> programs and DM642 memory ?
>>>
>>> -Jeff
>>>
>>>
>> Thanks for your reply. Actually, the company needs the board to operate
>> in standalone mode. I looked into making a VCD but NTSC VCD format is
>> 352x240 rather than 320x240. I have to work with 320x240 because nearly
>> all of the company's testing has been done on 320x240.
>>
>
> Ok, so what's wrong with Ethernet (10/100)? That's on the EVM DM642 board, right?
>
> -Jeff
>
I think I should have been clearer in my post. I apologize. The input
has to be through the video port. Any ideas please.

Thanks.
Salman-

>>> Thanks for your reply. Actually, the company needs the board to operate
>>> in standalone mode. I looked into making a VCD but NTSC VCD format is
>>> 352x240 rather than 320x240. I have to work with 320x240 because nearly
>>> all of the company's testing has been done on 320x240.
>>
>> Ok, so what's wrong with Ethernet (10/100)? That's on the EVM DM642 board, right?
>>
>> -Jeff
>>
> I think I should have been clearer in my post. I apologize. The input
> has to be through the video port. Any ideas please.

Could you use another EVM DM642 to output the PC .avi file, and feed it to the DM642 board you're using for development?

This method would turn the second PC into sort of a "cheap video signal generator" and allow you to use a range of
test signals, changing them as needed, automating a series of tests over time, etc.

-Jeff
Jeff Brower wrote:
> Salman-
>
>
>>>> Thanks for your reply. Actually, the company needs the board to operate
>>>> in standalone mode. I looked into making a VCD but NTSC VCD format is
>>>> 352x240 rather than 320x240. I have to work with 320x240 because nearly
>>>> all of the company's testing has been done on 320x240.
>>>>
>>> Ok, so what's wrong with Ethernet (10/100)? That's on the EVM DM642 board, right?
>>>
>>> -Jeff
>>>
>>>
>> I think I should have been clearer in my post. I apologize. The input
>> has to be through the video port. Any ideas please.
>>
>
> Could you use another EVM DM642 to output the PC .avi file, and feed it to the DM642 board you're using for development?
>
> This method would turn the second PC into sort of a "cheap video signal generator" and allow you to use a range of
> test signals, changing them as needed, automating a series of tests over time, etc.
>
> -Jeff
>
I can use a PC as a signal generator. Actually, I want to do this, but
how can I use my PC to output 320x240. I have an S-video out on my
Toshiba Tecra A3 laptop, but the output is 800x600 or 1024x768. If I
could output 320x240 NTSC video from my laptop, that would be ideal.

Thanks.
Salman-

>>> I can use a PC as a signal generator. Actually, I want to do this, but
>>> how can I use my PC to output 320x240. I have an S-video out on my
>>> Toshiba Tecra A3 laptop, but the output is 800x600 or 1024x768. If I
>>> could output 320x240 NTSC video from my laptop, that would be ideal.
>>> Another EVM DM642 board, in PCI slot of the signal generator PC.
>>
>> -Jeff
>>
> No, that is not an option. There are only 2 options: either use a
> PC/laptop, or use a CD/DVD player. I think we've really narrowed down
> our choices. Do you think something can be done under this constraint?

Why is a 2nd DM642 card not an option? It's the fastest way to get going and the most flexible for ongoing testing.
The methods you're proposing take too much time to figure out -- as you've already demonstrated -- and they would end
up being limited.

-Jeff
Salman-

>> Could you use another EVM DM642 to output the PC .avi file, and feed it to the DM642 board you're using for
>> development?
>>
>> This method would turn the second PC into sort of a "cheap video signal generator" and allow you to use a range of
>> test signals, changing them as needed, automating a series of tests over time, etc.
>>
>> -Jeff
>>
> I can use a PC as a signal generator. Actually, I want to do this, but
> how can I use my PC to output 320x240. I have an S-video out on my
> Toshiba Tecra A3 laptop, but the output is 800x600 or 1024x768. If I
> could output 320x240 NTSC video from my laptop, that would be ideal.

Another EVM DM642 board, in PCI slot of the signal generator PC.

-Jeff
Jeff Brower wrote:
> Salman-
>
>
>>>> I can use a PC as a signal generator. Actually, I want to do this, but
>>>> how can I use my PC to output 320x240. I have an S-video out on my
>>>> Toshiba Tecra A3 laptop, but the output is 800x600 or 1024x768. If I
>>>> could output 320x240 NTSC video from my laptop, that would be ideal.
>>>>
>>>>
>>> Another EVM DM642 board, in PCI slot of the signal generator PC.
>>>
>>> -Jeff
>>>
>>>
>>>
>>>
>> No, that is not an option. There are only 2 options: either use a
>> PC/laptop, or use a CD/DVD player. I think we've really narrowed down
>> our choices. Do you think something can be done under this constraint?
>>
>
> Why is a 2nd DM642 card not an option? It's the fastest way to get going and the most flexible for ongoing testing.
> The methods you're proposing take too much time to figure out -- as you've already demonstrated -- and they would end
> up being limited.
>
> -Jeff
>
Actually, I just don't have another card. The company I am working for
is just exploring the possibility of porting their stuff to a DSP
platform. So we just have one EVM for now. We would like to use
existing resources if possible. It seems very unfortunate to me that
although we have such powerful machines like PCs, DVD players etc, we
still can't generate a 320x240 signal.