Skip to content

Commit 1d1f037

Browse files
committed
Purge final
1 parent 7c11f31 commit 1d1f037

File tree

10 files changed

+18
-21
lines changed

10 files changed

+18
-21
lines changed

fdm-devito-notebooks/01_vib/slides-vib/vib_undamped.do.txt

-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ Generates frames `tmp_vib%04d.png` in files. Can make movie:
235235
!bc sys
236236
Terminal> ffmpeg -r 12 -i tmp_vib%04d.png -c:v flv movie.flv
237237
!ec
238-
Can use `avconv` instead of `ffmpeg`.
239238

240239
|---------------------------------------|
241240
| Format | Codec and filename |

fdm-devito-notebooks/01_vib/src-vib/comparison_movies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Compare four simulations with different time step in the
33
same movie.
4-
Problem: ffmpeg/avconv will only make a movie of the first
4+
Problem: ffmpeg will only make a movie of the first
55
8 periods. scitools movie can make html player that plays
66
all 30 periods.
77
"""

fdm-devito-notebooks/01_vib/vib_undamped.ipynb

+1-4
Original file line numberDiff line numberDiff line change
@@ -1216,9 +1216,6 @@
12161216
"cell_type": "markdown",
12171217
"metadata": {},
12181218
"source": [
1219-
"The `ffmpeg` program can be replaced by the `avconv` program in\n",
1220-
"the above command if desired (but at the time of this writing it seems\n",
1221-
"to be more momentum in the `ffmpeg` project).\n",
12221219
"The `-r` option should come first and\n",
12231220
"describes the number of frames per second in the movie (even if we\n",
12241221
"would like to have slow movies, keep this number as large as 25,\n",
@@ -8663,4 +8660,4 @@
86638660
},
86648661
"nbformat": 4,
86658662
"nbformat_minor": 4
8666-
}
8663+
}

fdm-devito-notebooks/03_diffu/slides-diffu/diffu_fd1.do.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ How to make movie file in modern formats:
276276
!bc sys
277277
Terminal> name=tmp_frame%04d.png
278278
Terminal> fps=8 # frames per second in movie
279-
Terminal> avconv -r $fps -i $name -vcodec flv movie.flv
280-
Terminal> avconv -r $fps -i $name -vcodec libx64 movie.mp4
281-
Terminal> avconv -r $fps -i $name -vcodec libvpx movie.webm
282-
Terminal> avconv -r $fps -i $name -vcodec libtheora movie.ogg
279+
Terminal> ffmpeg -r $fps -i $name -vcodec flv movie.flv
280+
Terminal> ffmpeg -r $fps -i $name -vcodec libx64 movie.mp4
281+
Terminal> ffmpeg -r $fps -i $name -vcodec libvpx movie.webm
282+
Terminal> ffmpeg -r $fps -i $name -vcodec libtheora movie.ogg
283283
!ec
284284

285285
!split

gitstatus.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"""List files that should be in repo. Must be run from root dir."""
22

3-
import commands, os
3+
import subprocess
4+
import os
45
# Get all files not in repo
5-
failure, output = commands.getstatusoutput('git status')
6+
failure, output = subprocess.getstatusoutput('git status')
67

78
# Find the relevant files
89
src_extensions_fig = ['.pdf', '.png']
9-
src_extensions_src = ['.py', '.f', '.c', '.cpp', '.pyx',]
10+
src_extensions_src = ['.py', '.f', '.c', '.cpp', '.pyx', ]
1011
src_extensions_txt = ['.do.txt', '.dict4spell.txt']
1112
src_extensions = src_extensions_fig + src_extensions_src + \
1213
src_extensions_txt
@@ -32,4 +33,4 @@
3233

3334
# git add doc/pub is never wrong...
3435

35-
print '\n'.join(files)
36+
print('\n'.join(files))

src/diffu/demo_osc.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ def make_movie(self):
122122
"""Go to plot directory and make movie files."""
123123
orig_dir = os.getcwd()
124124
os.chdir(self.plotdir)
125-
cmd = 'avconv -r 1 -i frame_%04d.png -vcodec libvpx movie.webm'
126-
cmd = 'avconv -r 1 -i frame_%04d.png -vcodec flv movie.flv'
127-
cmd = 'avconv -r 1 -i frame_%04d.png -vcodec libtheora movie.ogg'
125+
cmd = 'ffmpeg -r 1 -i frame_%04d.png -vcodec libvpx movie.webm'
126+
cmd = 'ffmpeg -r 1 -i frame_%04d.png -vcodec flv movie.flv'
127+
cmd = 'ffmpeg -r 1 -i frame_%04d.png -vcodec libtheora movie.ogg'
128128
os.system(cmd)
129129
cmd = 'scitools movie output_file=index.html frame*.png'
130130
os.system(cmd)

src/vib/comparison_movies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Compare four simulations with different time step in the
33
same movie.
4-
Problem: ffmpeg/avconv will only make a movie of the first
4+
Problem: ffmpeg will only make a movie of the first
55
8 periods. scitools movie can make html player that plays
66
all 30 periods.
77
"""

src/wave/wave1D/wave1D_dn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def plot_u(u, x, t, n):
223223
libtheora='ogg')
224224
fps = 6
225225
filespec = 'frame_%04d.png'
226-
movie_program = 'ffmpeg' # or 'avconv'
226+
movie_program = 'ffmpeg'
227227
for codec in codec2ext:
228228
ext = codec2ext[codec]
229229
cmd = '%(movie_program)s -r %(fps)d -i %(filespec)s '\

src/wave/wave1D/wave1D_dn_vc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def make_movie_file(self):
432432
codec2ext = dict(flv='flv', libx264='mp4', libvpx='webm',
433433
libtheora='ogg')
434434
filespec = 'frame_%04d.png'
435-
movie_program = 'ffmpeg' # or 'avconv'
435+
movie_program = 'ffmpeg'
436436
for codec in codec2ext:
437437
ext = codec2ext[codec]
438438
cmd = '%(movie_program)s -r %(fps)d -i %(filespec)s '\

src/wave/wave1D/wave1D_u0.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def __call__(self, u, x, t, n):
185185
codec2ext = dict(flv='flv', libx264='mp4', libvpx='webm',
186186
libtheora='ogg') # video formats
187187
filespec = 'tmp_%04d.png'
188-
movie_program = 'ffmpeg' # or 'avconv'
188+
movie_program = 'ffmpeg'
189189
for codec in codec2ext:
190190
ext = codec2ext[codec]
191191
cmd = '%(movie_program)s -r %(fps)d -i %(filespec)s '\

0 commit comments

Comments
 (0)