Skip to content

Commit

Permalink
Fix #536 Fix youtube links
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeacom committed Apr 11, 2017
1 parent b2001d2 commit 13b51e5
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 20 deletions.
4 changes: 1 addition & 3 deletions docs/examples/compo_from_image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ So how do you do some complex compositing like this ?

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/1hdgNxX-tas&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/1hdgNxX-tas" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

It takes a lot of bad taste, and a segmenting tool

Expand All @@ -21,5 +21,3 @@ We will find the regions of this image and fit the different clips into these re


(note that some pictures are distorted here as their size has been modified without care for their aspect ratio. This could be changed with a few more lines.)


6 changes: 2 additions & 4 deletions docs/examples/dancing_knights.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ And now for something very silly...

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden;
margin-left: 5%;">
<iframe type="text/html" src="https://youtube.com/embed/Qu7HJrsEYFg?rel=0" frameborder="0"
style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;">
<iframe type="text/html" src="https://www.youtube.com/embed/Qu7HJrsEYFg" frameborder="0"
style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen>
</iframe>
</div>

.. literalinclude:: ../../examples/dancing_knights.py


2 changes: 1 addition & 1 deletion docs/examples/example_with_sound.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ An example of using MoviePy to assemble movie clips with sounds. Here are two sc

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/gtyFuIoH7W0&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/gtyFuIoH7W0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

Here is the code:

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/headblur.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tracking and blurring someone's face

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/FWCKYTRCrBI&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/FWCKYTRCrBI" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

First we will need to track the face, i.e. to get two functions ``fx`` and ``fy`` such that ``(fx(t),fy(t))`` gives the position of the center of the head at time ``t``. This will be easily done with
`manual_tracking`. Then we will need to blur the area of the video around the center of the head.
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/logo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ MoviePy logo with a moving shadow
=================================
.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/TG86KzL18NA&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/TG86KzL18NA" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

Here the logo is a picture, while the shadow is actually a black rectangle taking the whole screen, overlaid over the logo, but with a moving mask composed of a bi-gradient, such that only one (moving) part of the rectangle is visible.
Here the logo is a picture, while the shadow is actually a black rectangle taking the whole screen, overlaid over the logo, but with a moving mask composed of a bi-gradient, such that only one (moving) part of the rectangle is visible.
4 changes: 2 additions & 2 deletions docs/examples/masked_credits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Partially Hidden credits

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/NsTgBah6Ebk&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/NsTgBah6Ebk" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

Before seeing the code for this video, here is a tutorial video that explains the different steps (also made with MoviePy):

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/7tKABfc0Yzw&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/7tKABfc0Yzw" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>


And here is the code:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/moving_letters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ I think this example illustrates well the interest of script-based editing (imag

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/jj5qrHl5ZS0&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/jj5qrHl5ZS0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

Here is the code:

Expand Down
3 changes: 1 addition & 2 deletions docs/examples/painting_effect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ That's an effect that we have seen a lot in westerns and such.

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/aC5CifkacSI&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/aC5CifkacSI" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

The recipe used to make a photo look like a painting:

Expand All @@ -27,4 +27,3 @@ The part with the effect is obtained as follows:
Here you are for the code:

.. literalinclude:: ../../examples/painting_effect.py

2 changes: 1 addition & 1 deletion docs/examples/several_characters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Character duplication in a video

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/sZMyzzGlsc0&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/sZMyzzGlsc0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

So blabla
2 changes: 1 addition & 1 deletion docs/examples/star_worms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Let us also have a look at this tutorial which shows the different steps:

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/5euLdo8L0o0&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/5euLdo8L0o0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

And here you are for the code, and for the code of the tutorial.

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/the_end.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/sZMyzzGlsc0&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/sZMyzzGlsc0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

So let's explain this one: there is a clip with "The End" written in the middle, and *above* this
clip there is the actual movie. The actual movie has a mask which represents
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/ukulele_concerto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A simple music video

.. raw:: html

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://youtube.com/embed/AqGZ4JFkQTU&hl=en_US&fs=1&rel=0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;"></iframe></div>
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/AqGZ4JFkQTU" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>

This is an example, with no sound (lame for a music video), soon to be
replaced with a real music video example (the code will be 99% the same).
Expand Down

0 comments on commit 13b51e5

Please sign in to comment.