"
]
},
"metadata": {
"tags": []
}
}
]
},
{
"metadata": {
"id": "k8yl5IN2o8Zl",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
},
"base_uri": "https://localhost:8080/",
"height": 125
},
"outputId": "ccce5bac-a40b-4e16-c5ee-b9c6d8eed40e",
"executionInfo": {
"status": "ok",
"timestamp": 1533314789392,
"user_tz": -120,
"elapsed": 15403,
"user": {
"displayName": "Alexander Mordvintsev",
"photoUrl": "//lh4.googleusercontent.com/-n1VSNn_ErxQ/AAAAAAAAAAI/AAAAAAAAFpk/BCURumES134/s50-c-k-no/photo.jpg",
"userId": "108092561333339272254"
}
}
},
"cell_type": "code",
"source": [
"clip = mvp.VideoClip(lambda t: render_frame(2.0+t*2.0), duration=6.0)\n",
"clip.write_videofile('out.mp4', fps=60)"
],
"execution_count": 33,
"outputs": [
{
"output_type": "stream",
"text": [
"[MoviePy] >>>> Building video out.mp4\n",
"[MoviePy] Writing video out.mp4\n"
],
"name": "stdout"
},
{
"output_type": "stream",
"text": [
"100%|█████████▉| 360/361 [00:13<00:00, 26.93it/s]\n"
],
"name": "stderr"
},
{
"output_type": "stream",
"text": [
"[MoviePy] Done.\n",
"[MoviePy] >>>> Video ready: out.mp4 \n",
"\n"
],
"name": "stdout"
}
]
},
{
"metadata": {
"id": "1sRBDcTOpYQV",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
},
"base_uri": "https://localhost:8080/",
"height": 500
},
"outputId": "81b9c55f-6854-477d-d4b9-e5929413afc7",
"executionInfo": {
"status": "ok",
"timestamp": 1533314791690,
"user_tz": -120,
"elapsed": 2265,
"user": {
"displayName": "Alexander Mordvintsev",
"photoUrl": "//lh4.googleusercontent.com/-n1VSNn_ErxQ/AAAAAAAAAAI/AAAAAAAAFpk/BCURumES134/s50-c-k-no/photo.jpg",
"userId": "108092561333339272254"
}
}
},
"cell_type": "code",
"source": [
"mvp.ipython_display('out.mp4')"
],
"execution_count": 34,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/html": [
""
],
"text/plain": [
""
]
},
"metadata": {
"tags": []
},
"execution_count": 34
}
]
},
{
"metadata": {
"id": "Xw4u_uX5rrs3",
"colab_type": "code",
"colab": {
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
"cell_type": "code",
"source": [
""
],
"execution_count": 0,
"outputs": []
}
]
}