Using Python snd FFMPEG to Convert AVI and MOV and merge MP4
Posted: 17 May 2014, 14:48
I'm using TVPaint 64 bit on Windows 8.1. But as discussed in this thread http://forum.tvpaint.com/viewtopic.php?f=10&t=5888
is it not possible to export and import MOV and MP4 files to TVPaint 64 bit, only in the 32 bit version of TVPaint.
Therefor I have developed a workflow where I use Python Script and Command Line FFMPEG to convert my files.
It is a workflow I like, so I thought maybe others will and therefor I am sharing it here.
The Scripts is only tested on Windows and the install is only covered on Windows.
To make it work You first have to have FFMPEG and Python installed on your computer.
1) Install FFMPEG
You can get FFMPEG from here http://www.ffmpeg.org/download.html
I have made a video how I install FFMPEG on my windows machine http://youtu.be/3saGdWxV23c
When installing FFMPEG you have to add the path to to ffmpeg.exe to the Windows Environment Variables. This is explained in the Video.
2) Install Python
You can get Pythonfrom here https://www.python.org/downloads/
I have made a video how I install Python on my windows machine http://youtu.be/1apTEuy_lMw
Then You need to Download the 5 python scripts. I attached them to this post in a ZIP archive
So download the Zip archive on extract them into a folder of your choice
The Zip archive contains 5 Python scripts
1) "MJ_ffmpeg_AVI_to_MOV_v02.py" I made a video how to use it here http://youtu.be/GvAVxCzW79o
The codec of the output mov file should be Lossless Aniation. I think I forgot to mentione this in the video.
2) "MJ_ffmpeg_AVI_to_MP4_v02.py" I made a video how to use it here http://youtu.be/Dt_-8-AHUb4
3) "MJ_ffmpeg_MERGE_ALL_MP4_v02" I made a video how to use it here http://youtu.be/92cy54UXNEQ
please notice this script. If I'm working on a feature movie and all the individual sequences saved as mp4 files. I can collect them all to one file under 4 minutes with this script.
4) "MJ_ffmpeg_MOV_and_MP4_to_AVI_v02" I made a video how to use it here http://youtu.be/G1WaEsmEOc8
Please noticed this script also convert MP4. In the video it is only MP4
5) "MJ_ffmpeg_video_to_WAV_v01" I made a video how to use it here http://youtu.be/9Z_W4j5KYRE
I hope they will be usefull for others
Kind Regards Mads
is it not possible to export and import MOV and MP4 files to TVPaint 64 bit, only in the 32 bit version of TVPaint.
Therefor I have developed a workflow where I use Python Script and Command Line FFMPEG to convert my files.
It is a workflow I like, so I thought maybe others will and therefor I am sharing it here.
The Scripts is only tested on Windows and the install is only covered on Windows.
To make it work You first have to have FFMPEG and Python installed on your computer.
1) Install FFMPEG
You can get FFMPEG from here http://www.ffmpeg.org/download.html
I have made a video how I install FFMPEG on my windows machine http://youtu.be/3saGdWxV23c
When installing FFMPEG you have to add the path to to ffmpeg.exe to the Windows Environment Variables. This is explained in the Video.
2) Install Python
You can get Pythonfrom here https://www.python.org/downloads/
I have made a video how I install Python on my windows machine http://youtu.be/1apTEuy_lMw
Then You need to Download the 5 python scripts. I attached them to this post in a ZIP archive
So download the Zip archive on extract them into a folder of your choice
The Zip archive contains 5 Python scripts
1) "MJ_ffmpeg_AVI_to_MOV_v02.py" I made a video how to use it here http://youtu.be/GvAVxCzW79o
The codec of the output mov file should be Lossless Aniation. I think I forgot to mentione this in the video.
2) "MJ_ffmpeg_AVI_to_MP4_v02.py" I made a video how to use it here http://youtu.be/Dt_-8-AHUb4
3) "MJ_ffmpeg_MERGE_ALL_MP4_v02" I made a video how to use it here http://youtu.be/92cy54UXNEQ
please notice this script. If I'm working on a feature movie and all the individual sequences saved as mp4 files. I can collect them all to one file under 4 minutes with this script.
4) "MJ_ffmpeg_MOV_and_MP4_to_AVI_v02" I made a video how to use it here http://youtu.be/G1WaEsmEOc8
Please noticed this script also convert MP4. In the video it is only MP4
5) "MJ_ffmpeg_video_to_WAV_v01" I made a video how to use it here http://youtu.be/9Z_W4j5KYRE
I hope they will be usefull for others
Kind Regards Mads