Raspberry encode camera and output IQ

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
G4KLB
Posts: 251
Joined: Wed May 28, 2008 10:46 am

Re: Raspberry encode camera and output IQ

Post by G4KLB » Sat Nov 29, 2014 4:48 am

Had better results with IQ Mode.
Attachments
ugly DATV.png
ugly DATV.png (906.42 KiB) Viewed 9297 times
ugly2000 2.png
ugly2000 2.png (215.9 KiB) Viewed 9297 times

f5oeo
Posts: 70
Joined: Mon Mar 10, 2014 5:46 pm

Re: Raspberry encode camera and output IQ

Post by f5oeo » Sat Nov 29, 2014 10:23 am

Great Colin...
For Tutioune, as the camera encode only video, it helps to set a PID audio by hand to a random value..1000 for example.
I think you have plug you IQ in your modulator as is. For fine tuning, there is surely some level to adapt to obtain a better MER.

I am curious to know why Ugly mode doesn't work well...Can you make a snaphot of Tutioune with Ugly mode ?

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

Re: Raspberry encode camera and output IQ

Post by G4KLB » Sat Nov 29, 2014 12:33 pm

I am sure I can obtain a better MER. The modulator had Nyquist filters for 4000Ms/S anyway! as well as some other wrong components, but was fine for a quick test.
Need to find Nyquist filter values for 250 and 500Ms/S for next tests.

Will have another look at ugly mode, I'm sure I haven't set it up correctly, must have missed out a step somewhere.
Perhaps some step by step instructions for each mode would help others trying this for the first time, especially those new to Linux :?
Thanks for the tip about the audio in Tutioune.

M0DTS
Posts: 684
Joined: Sun Feb 24, 2008 9:03 pm

Re: Raspberry encode camera and output IQ

Post by M0DTS » Sat Nov 29, 2014 5:07 pm

I see up to 18dB MER using the DigiLite modulator and 250Ks (ish) IQ filter. With Ugly mode it's about 14dB max.

The reason i was not seeing anything on tutioune video is because i was impatient, it takes upto 20sec for it to 'see' the video appear sometimes on low SR.

Today i've been testing 250Ks mode some more, checked the modified script was correct and it looks ok, attached is a screen grab of live transmission in Ugly mode!
The video content effects the dts/pcr timing error quite a lot at low sr, the video data must be more variable....
Reducing the raspicam video bit rate to 250kb/s when the mux rate is 400kb/s stops it happening and works very well.

Rob
M0DTS
Attachments
250Ks test.jpg
250Ks test.jpg (522.22 KiB) Viewed 9282 times

f5oeo
Posts: 70
Joined: Mon Mar 10, 2014 5:46 pm

Re: Raspberry encode camera and output IQ

Post by f5oeo » Sun Nov 30, 2014 2:27 pm

Excelent Rob...
Yes, H264 coming from camera is not constant bit rate right now. Reducing the bitrate of the video to get margin is the solution right now, but we loose video quality. I work right now on parameters of H264 encoder, and it seems now to be quiet CBR. However, there is some drop frame sometimes which is not well handle by the TS encapsulator. Still need some time to fix that. Target is also to reduce latency.

Just a question : on your screenshot you use 1.291.66 GHz : Normaly it is on 1.0625GHz.. Have you set a particular frequency on Ugly to do that ?

M0DTS
Posts: 684
Joined: Sun Feb 24, 2008 9:03 pm

Re: Raspberry encode camera and output IQ

Post by M0DTS » Sun Nov 30, 2014 5:52 pm

Yes as the frequency i put 1280 in UglyDATV commandline, i guess it just gives some nearby harmonic?

Rob

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

Re: Raspberry encode camera and output IQ

Post by G4KLB » Sun Nov 30, 2014 7:03 pm

DATV from a Raspberry Pi, with no hardware, just a short wire on a GPIO pin!!!!!!!!!!!!! :D
Crazy but it works :o
Attachments
ugly 500 7.png
ugly 500 7.png (757.13 KiB) Viewed 9251 times

g8gtz
Posts: 1777
Joined: Wed Apr 07, 2010 6:26 pm

Re: Raspberry encode camera and output IQ

Post by g8gtz » Sun Nov 30, 2014 7:37 pm

Success :-)

Ugly mode

437.5MHz (via SUP2400), 1 Msymbol, 7/8 FEC, 17 dB MER
RPI.png
RPI.png (364.49 KiB) Viewed 9251 times

PA3CGN
Posts: 1
Joined: Tue Dec 02, 2014 8:17 pm

Re: Raspberry encode camera and output IQ

Post by PA3CGN » Wed Dec 03, 2014 2:15 pm

Hello Evariste.
I'm carefully following this topic, and i am curious if there is also the possibility in using an usb capure device for inputting video ,to be more flexible in using other camera's etc
I would like to test this also on 23 cm but i have to change the 62.5 Mhz. to have an odd harmonic in the 23 cm band isn't it ?

thanks in advance from PA3CGN Hans :D

f5oeo
Posts: 70
Joined: Mon Mar 10, 2014 5:46 pm

Re: Raspberry encode camera and output IQ

Post by f5oeo » Sun Dec 07, 2014 8:28 pm

Hi Hans,

Capturing a composite input through USB is in the pipe. I tested a Ezcap and have to work to use the video input to work with the hardware H264 encoder. This will be possible in a near future I guess.
For 23 CM, in the current version you could only have main frequency an integer divider of 62.5. So harmonic on 23 cm is about 1.0625GHz. With the future release you could choose a non integer divider which make a larger choice of frequencies, thus harmonics to suit in the 23cm band.
Stay tuned !

73's Evariste F5OEO

Post Reply

Return to “DATV - Digital ATV”