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
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
video2chars-0.5.4.tar.gz
(83.6 kB
view hashes)
Built Distribution
Close
Hashes for video2chars-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d3a33f72aba3366996115800288d7b3660e1a2a881d1c4bfc2659c0fc553e4 |
|
MD5 | 160945da65d50cb9ecdfee04072c77cd |
|
BLAKE2b-256 | 7d9e74e088e3212a974ba5af355b0e5e5ec864a8028b3dc52c45a7062a10a108 |