Skip to content

Commit b1abcb2

Browse files
committed
add screen capture command
1 parent f2d786d commit b1abcb2

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

videorip/ffmpeg/ripffmpeg.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/sh
2+
ffmpeg -analyzeduration 100M -probesize 100M -i main.VOB -codec:v libx264 -b_strategy 2 -crf 18 -me_method umh -x264opts deblock=-4:subme=11:no-fast-pskip=1:no-dct-decimate=1 -tune grain main.264

videorip/ffmpeg/screencapture.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
Analyse video
2-
1+
With frame num and type:
32
```
4-
ffprobe main.VOB -select_streams v -show_frames | grep -E 'pict_type|coded_picture_number|pkt_pts_time' > allframes.txt
5-
3+
ffmpeg -analyzeduration 1024M -probesize 2048M -i demux/00001.track_4113.264 \
4+
-vf "drawtext=fontfile='/usr/share/fonts/urw-base35/NimbusSans-Regular.t1': \
5+
text='frame %{frame_num} pic type %{pict_type}^Lsource': \
6+
x=20:y=20: fontcolor=white: fontsize=30: box=1: boxcolor=black: boxborderw=5" -c:v libx264 -qp 0 srctemp.264
67
```
7-
Sometimes need offset frame num.
8-
9-
108

119
```
1210
ffmpeg -analyzeduration 100M -probesize 100M -i Ermo.1994.DVDRip.x264.AC3-psklf.mkv -f image2 -vf "select='eq(n\,20000)+eq(n\,30000)+eq(n\,40000)'",showinfo -vsync 0 -frames:v 3 encodenew%3d.png
@@ -18,5 +16,15 @@ With image size control
1816
ffmpeg -analyzeduration 100M -probesize 100M -i main.VOB -f image2 -vf "select='eq(n\,20000)+eq(n\,40000)+eq(n\,13613)',scale=1024:576",showinfo -vsync 0 -frames:v 3 source%3d.png
1917
2018
```
19+
Analyse video
20+
21+
```
22+
ffprobe main.VOB -select_streams v -show_frames | grep -E 'pict_type|coded_picture_number|pkt_pts_time' > allframes.txt
23+
24+
```
25+
Sometimes need offset frame num.
26+
27+
28+
2129

2230

0 commit comments

Comments
 (0)