-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.movies
116 lines (69 loc) · 4.22 KB
/
README.movies
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
The pygame movie player is used, which is based on SDL/SMPEG. It is
no where near as flexible a player as mplayer, for example. It plays
MPEG-1 video, and MPEG-2 audio ... and even then it is rather fussy.
Script
*******************
in ${SLITHY_SRC_DIR}/utils there is a to_pygame_movie.py script
for converting xvidcap
Notes:
1) xvidcap->settings->XDamage disabled for OpenGL capture
2) ${SLITHY_SRC_DIR}/utils/to_pygame_movie.py test-0000.mpg
-> generates "pygame_test-0000.mpeg_30fps.avi"
Manual
*******************
In short, encode mpegs for this module as the following example:
mencoder something_completely.flv -vf scale=320:240 -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \
-o test.mpg -srate 44100 -af lavcresample=44100 -oac twolame -twolameopts br=160 \
-ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2
mencoder rtf_cut.avi -vf scale=400:300 -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \
-o rtf_cut_pygame.mpg -srate 44100 -af lavcresample=44100 -oac copy \
-ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2
mencoder -really-quiet -lavdopts threads=4 "dv3d_waxholm_labels.mpeg" -ovc raw -nosound -vf scale,format=i420,harddup -ofps 30 -of rawvideo -o - | x264 --crf 18 --partitions none --me dia --merange 4 --mvrange 64 --subme 0 --no-chroma-me --aq-mode 0 --threads auto --no-cabac --no-deblock --no-psnr --no-ssim --progress --fps 30 --output "dv3d_30fps.avi" - 1380x758
mencoder dv3d_30fps.avi -vf scale=640:480 -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \
-o dv3d.mpg -srate 44100 -af lavcresample=44100 -oac copy \
-ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2
804x824
mencoder -really-quiet -lavdopts threads=4 "waxholm_cortex.mpeg" -ovc raw -nosound -vf scale,format=i420,harddup -ofps 30 -of rawvideo -o - | x264 --crf 18 --partitions none --me dia --merange 4 --mvrange 64 --subme 0 --no-chroma-me --aq-mode 0 --threads auto --no-cabac --no-deblock --fps 30 --output "waxholm_cortex_30fps.avi" - 804x824
mencoder waxholm_cortex_30fps.avi -vf scale=640:480 -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \
-o pygame_waxholm_cortex_30fps.avi -srate 44100 -af lavcresample=44100 -oac copy \
-ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2
For cutting:
Mencoder docs:
-endpos <[[hh:]mm:]ss[.ms]|size[b|kb|mb]> (also see -ss and -sb)
Stop at given time or byte position.
NOTE: Byte position is enabled only for MEncoder and will not be
accurate, as it can only stop at a frame boundary. When used in
conjunction with -ss option, -endpos time will shift forward by
seconds specified with -ss.
EXAMPLE:
-endpos 56
Stop at 56 seconds.
-endpos 01:10:00
Stop at 1 hour 10 minutes.
-ss 10 -endpos 56
Stop at 1 minute 6 seconds.
-endpos 100mb
Encode only 100 MB.
Example: start at 20 secons, take 50seconds
-ss 00:00:20 -endpos 00:00:50
Remove the current audio track:
mencoder -ovc copy -nosound video.avi -o video_nosound.avi
Place a new audio track:
mencoder -ovc copy -audiofile soundtrack.mp3 -oac copy \
video_nosound.avi -o video_new.avi
Blank time
ffmpeg -loop_input -f image2 -i image.jpeg -t 20 image-movie.mpeg
Join 2:
mencoder fishdance.mpg blank.mpg -of mpeg -mpegopts
format=mpeg1:tsaf:muxrate=2000 \
-o fishdance_postgrey.mpg -nosound -twolameopts br=160 \
-ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2
Cut
mencoder -ovc copy -nosound -o stomp.mpg -ss 37 test.mpg
For adjusting fps:
mencoder -really-quiet -lavdopts threads=4 "gumon.mpeg" -ovc raw -nosound -vf scale,format=i420,harddup -ofps 30 -of rawvideo -o - | x264 --crf 18 --partitions none --me dia --merange 4 --mvrange 64 --subme 0 --no-chroma-me --aq-mode 0 --threads auto --no-cabac --no-deblock --no-psnr --no-ssim --progress --fps 30 --output "gumon_30fps.mp4" - 1028x792
^^^^^^^^
this is the WxH of the gumon.mpeg input file
then run the above (top) command on gumon_30fps.mp4
More information at:
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-vcd-dvd.html