fsphil / hacktv

Analogue TV transmitter for the HackRF
GNU General Public License v3.0
671 stars 80 forks source link

Bitmap/Vector files in arguments for pattern generation are going in endless loop #50

Open Zcooger opened 4 years ago

Zcooger commented 4 years ago

I created/collected some images of pattern generators I tried to use with HackTV. But I have to compose for each of them a single AVI file (in VirtualDub for example) and have to deal with "seeking video" flashing screen. Formats I tried are BMP, JPG, PNG, SVG and TIFF. About SVG I will not complain but I see even that format is handled by FFMpeg. That's the native format for my patterns :P

For the files with -r switch command line opens the file with endless loop (capture card sees only flashing VBI pulse), without it it is never displayed and the program ends.

Example CL:

./hacktv -o fl2k '/home/zcooger/Desktop/rca.jpg' -r -m pal Video: 832x576 25.00 fps (full frame 1024x625) Sample rate: 16000000 Allocating 6 zero-copy buffers libusb: error [op_dev_mem_alloc] alloc dev mem failed errno 12 Failed to allocate zero-copy buffer for transfer 4 Falling back to buffers in userspace UUURequested sample rate 16000000 not possible, using 15999998.000000, error is -2.000000 Opening '/home/zcooger/Desktop/rca.jpg'... Input #0, image2, from '/home/zcooger/Desktop/rca.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 49958 kb/s Stream #0:0: Video: mjpeg, gray(bt470bg/unknown/unknown), 768x576 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc Using video stream 0. No audio streams found. Opening '/home/zcooger/Desktop/rca.jpg'... Input #0, image2, from '/home/zcooger/Desktop/rca.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 49958 kb/s Stream #0:0: Video: mjpeg, gray(bt470bg/unknown/unknown), 768x576 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc Using video stream 0. No audio streams found. Opening '/home/zcooger/Desktop/rca.jpg'... Input #0, image2, from '/home/zcooger/Desktop/rca.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 49958 kb/s Stream #0:0: Video: mjpeg, gray(bt470bg/unknown/unknown), 768x576 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc Using video stream 0. No audio streams found.

SVG:

./hacktv -o fl2k '/media/zcooger/TOSHIBA 750/KATALOG GLOWNY/Obrazy/Plansze Testowe/EBU 75 RGB/ORIGINAL/EBU 75 RGB.svg' -r -m pal Video: 832x576 25.00 fps (full frame 1024x625) Sample rate: 16000000 Allocating 6 zero-copy buffers libusb: error [op_dev_mem_alloc] alloc dev mem failed errno 12 Failed to allocate zero-copy buffer for transfer 4 Falling back to buffers in userspace UUURequested sample rate 16000000 not possible, using 15999998.000000, error is -2.000000 Opening '/media/zcooger/TOSHIBA 750/KATALOG GLOWNY/Obrazy/Plansze Testowe/EBU 75 RGB/ORIGINAL/EBU 75 RGB.svg'... Input #0, svg_pipe, from '/media/zcooger/TOSHIBA 750/KATALOG GLOWNY/Obrazy/Plansze Testowe/EBU 75 RGB/ORIGINAL/EBU 75 RGB.svg': Duration: N/A, bitrate: N/A Stream #0:0: Video: svg, bgra, 768x576, 25 tbr, 25 tbn, 25 tbc Using video stream 0. No audio streams found. Opening '/media/zcooger/TOSHIBA 750/KATALOG GLOWNY/Obrazy/Plansze Testowe/EBU 75 RGB/ORIGINAL/EBU 75 RGB.svg'... Input #0, svg_pipe, from '/media/zcooger/TOSHIBA 750/KATALOG GLOWNY/Obrazy/Plansze Testowe/EBU 75 RGB/ORIGINAL/EBU 75 RGB.svg': Duration: N/A, bitrate: N/A Stream #0:0: Video: svg, bgra, 768x576, 25 tbr, 25 tbn, 25 tbc Using video stream 0. No audio streams found. Opening '/media/zcooger/TOSHIBA 750/KATALOG GLOWNY/Obrazy/Plansze Testowe/EBU 75 RGB/ORIGINAL/EBU 75 RGB.svg'... Input #0, svg_pipe, from '/media/zcooger/TOSHIBA 750/KATALOG GLOWNY/Obrazy/Plansze Testowe/EBU 75 RGB/ORIGINAL/EBU 75 RGB.svg': Duration: N/A, bitrate: N/A Stream #0:0: Video: svg, bgra, 768x576, 25 tbr, 25 tbn, 25 tbc Using video stream 0. No audio streams found.

For interested: Test Patterns.7z.zip