Monday, May 9, 2011

More Fun with FFFMPEG-Week 16

Cropping a video:

66 cd Test2
67 ls
68 ffplay new.VOB
69 ffplay newcolor.VOB
70 ffplay newcolor2.VOB
71 ls

72 ffmpeg -i letter1.VOB -vf crop=500:200:0:0 crop.VOB
# I took the input file and crop it with a width of 500 and height of 200 starting at the coordinate (0,0).

73 ffplay crop.VOB




74 ffmpeg -i letter1.VOB -vf crop=700:400:100:100 crop2.VOB
# I took the input file and crop it with a width of 700 and height of 400 starting at the coordinate (100,100).

75 ffplay crop2.VOB




76 ffmpeg -i letter1.VOB -vf crop=600:300:200:200 crop3.VOB
# I took the input file and crop it with a width of 600 and height of 300 starting at the coordinate (200,200).

77 ffplay crop3.VOB



78 history > funffmpeg.txt

Flip Video horizontally:

79 ffmpeg -i letter1.VOB -vf "hflip" flip.VOB
#give ffmpeg a video and horizontally flip it and name the ouput file.

80 ffplay flip.VOB


Scale a Video:

81 ffmpeg -i letter1.VOB -vf "scale=200:100" scale.VOB
# scale selected video using the width of 200 and height of 100, which is the output into a new video.

82 ffplay scale.VOB




83 ffmpeg -i letter1.VOB -vf "scale=1000:100" scale.VOB
# scale selected video using the width of 1000 and height of 100, which is the output into a new video. The above video belongs to this line.

84 ffmpeg -i letter1.VOB -vf "scale=1000:100" scale2.VOB
# scale selected video using the width of 1000 and height of 100, which is the output into a new video.

85 ffplay scale2.VOB







86 ffmpeg -i letter1.VOB -vf "scale=600:100" scale3.VOB
# scale selected video using the width of 600 and height of 100, which is the output into a new video.

87 ffmplay scale3.VOB
88 ffplay scale3.VOB






89 ffmpeg -i letter1.VOB -vf "scale=600:10" scale4.VOB
# scale selected video using the width of 600 and height of 10, which is the output into a new video.

90 ffplay scale4.VOB
#This last one wouldn't load into blogger.

91 history >> funffmpeg.txt

UnSharp a video:

92 ffplay flip.VOB
93 ls

94 ffmpeg -i twosides2.VOB -vf "unsharp" unsharp.VOB
#unnsharp a video using the default settings with ffmpeg. No specified time-all 3minutes of the film.

95 ffmpeg -i unsharp2.VOB -t 00:00:15 -vf "unsharp" unsharp2.VOB
96 ffplay unsharp2.VOB


97 ffmpeg -i twosides2.VOB -t 00:00:20 -vf "unsharp=13:13:5:13:13:5" unsharp3.VOB
# 20 seconds of the input video which the maximum amount of luma and chroma on it. It is saved to a new
# video file.

98 ffplay unsharp3.VOB



More Unsharp Video:

104 ffmpeg -i twosides2.VOB -t 00:00:20 -vf "unsharp=3:3:-2:3:3:-2" unsharp4.VOB
# Put the input video at the lowest unsharp setting and save to a new filename.

105 ffplay unsharp4.VOB


 Vertically Flip a video:

99 ffmpeg -i unsharp3.VOB -vf "vflip" vflip.VOB
#I vertically flip the last video I created along the y-axis, and then create a new video filename.

100 ffpplay vflip.VOB
101 ffplay vflip.VOB


102 history >> funffmpeg.txt


All of these tricks are located in the FFMPEG Documentation. http://ffmpeg.org/ffmpeg-doc.html

106 history >> funffmpeg.txt

No comments:

Post a Comment