Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New video for version 4 #242

Closed
4 tasks done
donkirkby opened this issue Oct 21, 2019 · 2 comments
Closed
4 tasks done

New video for version 4 #242

donkirkby opened this issue Oct 21, 2019 · 2 comments

Comments

@donkirkby
Copy link
Owner

donkirkby commented Oct 21, 2019

I don't think the current video includes the matplotlib stuff, and it definitely doesn't include Sublime Text support, Pyglet, or the command-line version. Possibly separate videos for each version with links between?

Notes on tools to use and settings are in issue #90.

@donkirkby donkirkby added this to the Near future milestone Oct 21, 2019
@donkirkby donkirkby modified the milestones: Near future, 4.1 Jan 29, 2020
@donkirkby donkirkby modified the milestones: 4.1 - Browser back, 4.2 Jun 23, 2020
@donkirkby
Copy link
Owner Author

donkirkby commented Jul 11, 2020

Here are the settings and tools that I found useful this time.

Here's a command line for launching recordMyDesktop at 720p resolution:

recordmydesktop -x 350 -y 100 --width 1280 --height 720  --delay 5 -o live-py.ogv

Stop recording with Ctrl+C, and edit sections together with a moviepy script.

To check the position of the window, use xwininfo. I was using these coordinates:

Emacs or Space Tracer in terminal:
Absolute upper-left X:  322
Absolute upper-left Y:  63
Width: 1340
Height: 791

PyCharm:
Absolute upper-left X:  343
Absolute upper-left Y:  99
Width: 1295
Height: 727

Sublime:
Absolute upper-left X:  343
Absolute upper-left Y:  130
Width: 1291
Height: 690

@donkirkby donkirkby pinned this issue Jul 11, 2020
@donkirkby donkirkby changed the title New video for version 3 New video for version 4 Jul 11, 2020
@donkirkby
Copy link
Owner Author

donkirkby commented Jul 13, 2020

  • Next time, the Emacs display might be easier to see with Solarized light colour scheme.
  • YouTube has a feature for labelling chapters by including time stamps in the description text.
  • export PS1="$ "
  • Clear the terminal screen with Ctrl+L.

Here's the moviepy script I used to splice all the video clips together.

from pathlib import Path

from moviepy.audio.fx.volumex import volumex
from moviepy.editor import VideoFileClip, concatenate_videoclips, afx

raw_path = Path.home() / 'Videos' / 'live-py'
raw_clips = [VideoFileClip(str(raw_path / 'emacs01-intro.ogv')).subclip(5, 24),
             VideoFileClip(str(raw_path / 'emacs02a-outline.ogv')).subclip(5, 39),
             VideoFileClip(str(raw_path / 'emacs02b-trivial.ogv')).subclip(5, 9),
             ]

mv = max(clip.audio.max_volume() for clip in raw_clips)
final_clip = concatenate_videoclips([volumex(clip, 1 / mv)
                                     for clip in raw_clips])
final_clip.write_videofile(str(raw_path / 'final.mp4'),
                           fps=15,
                           bitrate='3000k')
print('Done.')

@donkirkby donkirkby unpinned this issue Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant