DATV-Express Project - July update report

Digital ATV - The latest generation, cutting edge ATV - Please discuss it all here.
Forum rules
This forum is run by the BATC (British Amateur Television Club), it is service made freely available to all interested parties, please do not abuse this privilege.

Thank you
KenW6HHC
Posts: 309
Joined: Mon Jun 01, 2009 4:20 pm

DATV-Express Project - July update report

Post by KenW6HHC » Sat Aug 01, 2015 10:32 pm

Ken W6HHC completed a large amount of effort towards finishing up the release of v2.04 for DATV-Express software.

Testing the UDP feature without using Express_Server
The first set of tests sent UDP packets with video stream over WiFi from a Windows PC to ODROID configured for UDP video source. I could NOT get this set-up to work. Charles G4GUO encouraged me to abandon this configuration for now and start testing the Express_Server code installed on ODROID

Testing the UDP feature using the Express_Server
Figure 1 shows a block diagram for testing the Express_Server software. The Logitech web camera is connected to a Windows PC that at first was running vMix, GraphStudioNext and Major-UDP-Sender…see Figure 2.
Image
Figure 1 – Block Diagram for sending LogiTech web camera video by UDP packets to ODROID running Express_Server

Image
Figure 2 - vMix manages the C920 video and GraphStudioNext allows MPEG2 encoding was tried first

The first web camera I used, the Logitech 920, sends out H.264 encoded video. I had could receive video but the latency was terrible…I measured more than 10 seconds of video delay. Jean-Pierre F6DZP pointed out that I was actually having to first decoding H.264 video compression back to non-encoded video then finally encoding this to the intended MPEG-2 video compression for transmission. I replaced the C920 camera with my older Logitech C615 web camera that does not encode the video output and then changed the configuration of Direct Show filters to look like Fig 3.

Image
Figure 3 - Configuration of DirectShow filters using GraphStudioNext filter for using C615 webcam on Windows


With the C615, the latency was much improved (perhaps less than using Hauppauge video capture), but the video would freeze after a minute or two while using a WiFi configuration between the two computers. I suspected perhaps buffer overflow somewhere? G4GUO encouraged me to switch to an ethernet “cable” connection…Charles pointed out he also had poor results with WiFi even though he had “line of sight”. I chose to use a “cross-over ethernet” cable between the two computers. The only tricky part of the “cross-over ethernet” cable installation is that you have to configure both computers for static IP addresses. Setting Windows for a static IP adr was straight forward through the Win Control Panel. But setting a static IP address on the ODROID was difficult to sort out…I had to “Google For IT” and sort through adding some code to the INTERFACES system file in the NETWORK folder. The static IP addresses connection worked perfectly and was stable in testing lasting more than 8 hours. Figure 4 shows the first DVB-S video received on my SatLink analyzer receiver.
Image
Figure 4 – First stable video received using express_server and cross-over Ethernet cable for UDP packets

G4GUO points out that although I tested on an ODROID U3 (see Figure 1), the Express_Server software will run on any linux system.

Testing DatvExpressServerApp on Windows (no linux used)
I then tested the software that Charles G4GUO had written called the DatvExpressServerApp, that allows the DATV-Express board to be connected directly to a windows computer running Win7 or Win8.1. Figure 5 shows the block diagram for my testing set-up.
Image
Figure 5 – The DatvExpressServerApp software runs completely on a Windows machine and connects to DATV-Express board

This configuration uses the same GraphStudioNext set of filters that had been used in Figure 1 and Figure 3. The only difference is that the Major-UDP-Sender software now aims UDP packets to the internal loopback IP address on the Windows PC, 127.0.0.1.
I did have to sort through installing libusb and driver for the DATV-Express board onto the Windows computer. Figure 6 shows the simple GUI that DatvExpressServerApp provides on Windows.
Image
Figure 6 – Windows running GraphStudioNext filters and simple GUI for DatvExpressServerApp


The remaining task before releasing v2.04 for ODROID is:
1) Update User Guide for ODROID


"project is set to slow speed"....de Ken W6HHC
Last edited by KenW6HHC on Mon Aug 24, 2015 1:17 pm, edited 5 times in total.

G4KLB
Posts: 251
Joined: Wed May 28, 2008 10:46 am

Re: DATV-Express Project - July update report

Post by G4KLB » Sun Aug 02, 2015 10:26 am

Hi Ken,

What changes did you make to the Mainconcept filter property's?
I have it running on the default setting, but am dropping frames and audio.
Assume I don't have the bitrate etc. set correctly, What settings do you have in your encoder bitrate control?

I guess the settings would change depending on what symbol rate and FEC are being used.

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

Re: DATV-Express Project - July update report

Post by G4GUO » Sun Aug 02, 2015 10:52 am

Colin, I believe the default bitrate in the Mainconcept encoder is 6 MS/s

I don't know what symbol rate you are using but if you are using 4M 1/2
then the encoder is way too high.

- Charles

KenW6HHC
Posts: 309
Joined: Mon Jun 01, 2009 4:20 pm

Re: DATV-Express Project - July update report

Post by KenW6HHC » Sun Aug 02, 2015 2:29 pm

Hi Colin G4KLB,

I configured the video bit rate to 1.500 Mbps for my testing so far, since I want to use a Symbol Rate of 2.20 MSymb/sec to achieve an "allocated RF bandwidth" of 3 MHz on 1.2 GHz band. See the properties screen below for my MainConcepts MPEG-2 video encoder filter in the JPEG below.
Image

I have not played with the video bit rate settings too much...normally when running only on ODROID and Hauppauge video-capture, the DATV-Express software GUI shows that the video rate is 1.520 Mbps...so I set it a bit lower to not overflow buffers or other settings that I have not noticed yet. I must be honest that I have not spent too much time on audio encoder settings, so far. When doing testing in my lab, the audio is a bit of a nuisance, either producing echoes or hearing myself in the headset gets annoying and tiring very quickly. I plan to spend more time on playing with MainConcepts video and audio bit rates, now that I have the testing set-up is stable.

Other settings are:
FEC = 1/2
Frame Rate = 30 FPS

I did experience one other settings problem that you are not currently experiencing. The MainConcepts multiplexor filter sets VideoPID to 1001 and AudioPID to 1002 as default. It is a pain since it appears that you can NOT save these two PID values to other default values. The result was initially my SatLink receiver would get a LOCK on my signal but a blank screen (perhaps a "no signal" message?). Charles recommended doing a "blind scan" on the SatLink receiver and the video immediately appeared.

I hope this helps...de Ken W6HHC

G4KLB
Posts: 251
Joined: Wed May 28, 2008 10:46 am

Re: DATV-Express Project - July update report

Post by G4KLB » Sun Aug 02, 2015 3:44 pm

Thanks both, will try those settings, They are fairly close to what I had tried before except I had the bit rate mode set to fixed at that time.
Have also been running Express Server on the PiPo mini PC with good results but not added audio yet. ( just using a basic web cam on UDP).
Am using graphedit on the PC and not GraphStudioNext, have changed my PIDs to 256 257, it remembers them most of the time!
Thought I would ask as not spent very long on this so far.

PA1KW
Posts: 16
Joined: Tue Dec 17, 2013 9:27 pm

Re: DATV-Express Project - July update report

Post by PA1KW » Mon Aug 03, 2015 1:41 pm

Very good overview! Can I download the DatvExpressServerApp executable somewhere?
Thanks.
73 Koert PA1KW

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

Re: DATV-Express Project - July update report

Post by G4GUO » Mon Aug 03, 2015 2:13 pm

Hi Koert.

This is highly experimental at the moment, so it comes with no warranty.
https://www.dropbox.com/s/351b82sqj4sq9 ... r.zip?dl=0
I have not sought permission to use the signed driver yet but as it is publicly
available and comes from another Amateur Radio project (HPSDR) I have
included it.

- Charles G4GUO

PA1KW
Posts: 16
Joined: Tue Dec 17, 2013 9:27 pm

Re: DATV-Express Project - July update report

Post by PA1KW » Mon Aug 03, 2015 2:26 pm

Thanks Charles! I assume the source is on your Github.
73 Koert PA1KW

G4GUO
Posts: 729
Joined: Tue Feb 16, 2010 12:51 pm

Re: DATV-Express Project - July update report

Post by G4GUO » Mon Aug 03, 2015 2:39 pm

Not yet, it is a Visual Studio project, needs cleaning up (removal of the intermediate files).
I will put it on the to do list.

- Charles

F6DZP
Posts: 217
Joined: Fri May 27, 2011 9:59 am

Re: DATV-Express Project - July update report

Post by F6DZP » Mon Aug 03, 2015 5:51 pm

Bit rate Variable ? we should never use this, only Constant bite rate (CBR)
" Some transmission schemes, such as those in ATSC and DVB, impose strict constant bitrate requirements on the transport stream.. "
(wikipedia about Mpeg Transport stream)
and your setup says: data rate between 1500 and 8000 kbps(max).
I think that it is impossible to work well like that. You must chose CBR. If you can't, you must lower the max data rate near or equal to the
data rate.

This is also why it is very difficult to use most of H264 webcam or camera that give only VBR not CBR.

And there is also a strange result : you ask to encode 30 fps and you get only 15.02 fps. you are dropping half of the pictures acquired.

another error : you say your pictured are interlaced, No, with a webcam you are always in progressive mode

There are many things to change in your graph and your setup.

Jean-Pierre F6DZP

Post Reply

Return to “DATV - Digital ATV”