Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Zcooger opened this issue Oct 10, 2019 · 0 comments

Comments

@Zcooger
Copy link
Contributor

Zcooger commented Oct 10, 2019

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

@Zcooger Zcooger changed the title Bitmap file in arguments for pattern generator (PNG goes endless loop) Bitmap/Vector file in arguments for pattern generator are going in endless loop Oct 10, 2019
@Zcooger Zcooger changed the title Bitmap/Vector file in arguments for pattern generator are going in endless loop Bitmap/Vector files in arguments for pattern generation are going in endless loop Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant