Convert video to character art animation.
Project description
Video to chars
Convert video to character art animation.
Install
p.s. Tested only on linux
First you need to make sure that you can use ffmpeg in shell. eg:
PS C:\> ffmpeg
ffmpeg version N-91693-g3aacb0d196 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20180813
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 19.100 / 56. 19.100
libavcodec 58. 25.100 / 58. 25.100
libavformat 58. 17.103 / 58. 17.103
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
If it returns error or not found etc. install ffmpeg and add its bin directory to PATH first.
then install video2chars:
pip install video2chars
Usage
video2chars --duration 30 --width 120 path_of_video_file
you will see a file named output.mp4 in your current path when it completes, have fun ~
p.s. if it's a bit slow, turn down the width and duration, to speed up the conversion.
check video2chars --help for more information.
Demonstration
Older version
Article
Shell Version(in Chinese): 视频转字符动画-Python-60行代码
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file video2chars-0.5.6.tar.gz.
File metadata
- Download URL: video2chars-0.5.6.tar.gz
- Upload date:
- Size: 83.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b17396bd58643ee438708d2f7b5063e02300e14acb479032ee203e993a15139
|
|
| MD5 |
174e8ac696d3e7870b106aa428263995
|
|
| BLAKE2b-256 |
4529604ee90960c8d1842422397dab36bf885c00bd56457cd97fe6d37948175a
|
File details
Details for the file video2chars-0.5.6-py3-none-any.whl.
File metadata
- Download URL: video2chars-0.5.6-py3-none-any.whl
- Upload date:
- Size: 82.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bee1a597eafafaad51e3026d8b5edabe8cb44f13517064847bb67d9bb96f926
|
|
| MD5 |
b6561e37ad7deebce61306f712bb8d3a
|
|
| BLAKE2b-256 |
c54715406cb72807c18e42ed7e6a4f766034a82e9b6e00fd3fd320e8fee5b007
|