Commit Graph

50 Commits

Author SHA1 Message Date
Theelgirl a13bdf72b9 Add H.265 codec support 2021-02-24 09:17:03 -08:00
Theelgirl 701b78ddac rename variables, more comments, misc other stuff 2021-02-22 19:39:27 -08:00
Theelgirl 09cf719b76 zfec 2021-02-22 18:45:33 -08:00
AlfredoSequeida 363a9c108b replaced pickle logic with json to avoid possible vulnerability 2021-02-20 11:52:12 -08:00
AlfredoSequeida 074d77c053 documented code, formatted using PEP 8 style guide, and made use of type hinting 2021-02-19 17:07:36 -08:00
AlfredoSequeida b09428be60 changed version to reflect with the changelog 2021-01-17 00:13:16 -08:00
Theelgirl 43eeb25fab
Attempt syntax error fix 2021-01-15 21:28:20 -05:00
Theelgirl 6b72c034a7
Bring up-to-date with the .pyx 2020-10-29 01:02:02 +00:00
Wisketchy Dobrov a384470ab5
minor patch, _temp.mp4 video quality (#28) 2020-10-29 01:00:57 +00:00
Theelgirl a75952fad2
Remove unnecesary logic
This results in a nearly 20% speedup for the get_bits_from_image function. Cython is now only 40% faster than Python, and FFmpeg is now the major bottleneck in code. I have reason to believe this function is close to maximal optimization, unless it is rewritten to scan multiple pixels at a time (which might not work because bits need to be in sequential order) or use a different method to load pixels.
2020-10-28 14:56:17 +00:00
Theelgirl 5b84efd9d1
Remove unnecessary logic
Tiny speedup for Cython, but it'll be a huge speed for the Python version.
2020-10-28 14:49:09 +00:00
Theelgirl 2e06b5bf42
Bump version to 1.0.1 2020-10-28 14:00:12 +00:00
Wisketchy Dobrov 7b5113dda1
Youtube videos framerate fix (#26) 2020-10-28 13:51:33 +00:00
Theelgirl bd658aa539
Update version to 1.0.0
Password commits make it incompatible with 0.0.2 and 0.0.1.
2020-10-25 22:54:54 +00:00
Theelgirl 87532695ca
Revert broken tuning for ffmpeg 2020-10-25 22:53:18 +00:00
Theelgirl 0e2f6681f8
Massive Python and ffmpeg speedups
More than doubled the python decoding speed for get_bits_from_image, and sped up ffmpeg about 33-50% by tuning for zerolatency.
2020-10-25 19:09:50 +00:00
Theelgirl 1385b0a987
Update fvid_cython.c 2020-10-25 18:04:31 +00:00
Theelgirl 5ccd42cbc6
Type more stuff for a 2% speedup 2020-10-25 18:04:04 +00:00
Theelgirl 29374fe7f6
Speedup 35-40% over the previous speedup
Removing a python call to all(), which forced conversion of a ctuple to a python tuple, and removing white_diff and black_diff ctuple creation because I can fit all of their use cases into a single if statement.
2020-10-25 02:00:36 +00:00
Theelgirl c27314bba6
Update and rename fvid_cython.cpp to fvid_cython.c 2020-10-17 15:34:01 +00:00
Theelgirl 53be012df9
Speedup by 40-45% 2020-10-17 15:33:12 +00:00
Theelgirl ba3475f61e
Remove unneeded imports 2020-10-17 14:51:52 +00:00
Theelgirl c0d267b80a
New method for importing main
Leaving the old method in there in case this doesn't work
2020-10-16 17:46:07 +00:00
Theelgirl b6e86c0d3f
Remove numpy from imports 2020-10-16 14:38:40 +00:00
Theelgirl a8d6f04d79
Add comments and fix Artix Linux 2020-10-15 20:07:09 +00:00
Theelgirl b429f2c080
Rename fvid_python.py to fvid.py 2020-10-13 14:33:48 +00:00
Theelgirl 2453d6b442
Update __main__.py 2020-10-13 14:33:33 +00:00
Theelgirl af170def78
Update __main__.py 2020-10-13 14:17:36 +00:00
Theelgirl 1c2d681789
Rename fvid.py to fvid_python.py 2020-10-13 14:17:04 +00:00
Theelgirl e076abdfbf
Create fvid_cython.cpp 2020-10-13 13:40:09 +00:00
Theelgirl 024543cccd
Create cythonizer.py 2020-10-13 12:20:00 +00:00
Theelgirl c426f23107
Create fvid_cython.pyx 2020-10-13 12:15:56 +00:00
Theelgirl a4ec504c82
Add Cython and Password Support
This combines the password and Cython PRs into one.
2020-10-13 12:14:39 +00:00
Theelgirl 8641979cfa
Forgot import 2020-10-09 18:13:06 +00:00
Theelgirl acd7e101a6
Forgot a function 2020-10-09 17:22:40 +00:00
Theelgirl d04e6a66e3
4x speed of 2 bottleneck lines by removing numpy
Also double the speed of one more bottleneck line by removing numpy. tuple(map()) is amazing!
2020-10-09 16:45:14 +00:00
Theelgirl ff226db1fc
Major optimization by removing calls to tuple()
This brought the time taken by get_bits_from_image from 6.35 seconds to 4.9 seconds on my processor!
2020-10-08 14:45:08 +00:00
Theelgirl 744ad0bbb0
Make pixel_bin_rep a string with literals
That way we don't have to call str() on pixel_bin_rep when adding bits, as literal constructions are faster than function calls iirc.
2020-10-08 13:59:24 +00:00
Theelgirl 38aad1cc7e
Fix type error 2020-10-08 13:38:31 +00:00
Theelgirl 9e5f902222
Merge branch 'master' into patch-2 2020-10-08 13:26:17 +00:00
AlfredoSequeida 02900aee3c
Merge pull request #10 from dtaivpp/master
fixed output file naming issue
2020-10-08 05:33:01 -07:00
David Tippett 50904e477f
Updated function definition for save bits to file 2020-10-07 19:47:50 -04:00
Theelgirl 3b9de67fde
Prevent negative fractions also 2020-10-07 18:19:58 +00:00
Theelgirl 3e4e2802a3
Prevent negative and decimal framerates 2020-10-07 18:13:52 +00:00
Theelgirl 64b01d45a7
Allow a user to set framerate for encoding with -f
You might want to format line 203 over two lines. Also I made make_video's new framerate argument default to 1/5 in case it's ever called by a function besides main.
2020-10-07 16:05:21 +00:00
AlfredoSequeida 6aa533ae19
Merge pull request #11 from Theelgirl/patch-1
Define white and black outside the loops
2020-10-07 08:08:43 -07:00
AlfredoSequeida f63a1230ee updated version 2020-10-07 07:59:32 -07:00
Theelgirl f828dbf0f9
Define white and black outside the loops 2020-10-07 14:56:09 +00:00
David Tippett 3be8f6b7a5 Merge remote-tracking branch 'upstream/master' 2020-10-07 10:24:31 -04:00
AlfredoSequeida 31a63fc5c1 structured setup.py 2020-10-07 07:14:32 -07:00