* Some additions to REAMDE and sample configuration.
* Removed unused entry in cfg[].
## Configuration
-All options available from the command line (see below) as well as the
-invocations used to start external programs can be specified in the
-configuration file, see `ffpreview.conf.sample`.
+With few exceptions all options available from the command line (see
+below) plus the invocations to start external programs can be specified
+in the configuration file, for details see the `ffpreview.conf.sample`
+example configuration.
## Usage
Alt+Enter open the context menu
```
### Examples
+
+#### Start ffpreview with file open dialog:
+```
+$ ./ffpreview.py
+$ ./ffpreview.py /path/to/some/directory
```
-$ ./ffpreview.py my_video.mp4
+#### Start ffpreview and show thumbnails for a single file:
+```
+$ ./ffpreview.py my_video.mp4
$ ./ffpreview.py -t ~/scratch -w 256 -g 8x4 -N 10 some_movie.mkv
```
+#### Run ffpreview in batch mode:
+```
+$ ./ffpreview.py -b movie1.mkv movie2.mp4 another.mpg
+```
+
## License
Ffpreview is distributed under the Modified ("3-clause") BSD License.
time_skip=60
# Custom ffmpeg filter string for method 'customvf'.
+# For more information on filter expressions refer to the ffmpeg man page.
customvf=scdet=s=1:t=12
# EOF
def configure():
# set defaults
cfg = {
- 'home': expanduser("~"),
'conffile': 'ffpreview.conf',
'vid': '',
'outdir': '',
' Shift+Enter play video starting at selected position\n'
' Alt+Enter open the context menu\n'
)
- parser.add_argument('filename', nargs='+', default=os.getcwd(), help='input video file')
+ parser.add_argument('filename', nargs='*', default=os.getcwd(), help='input video file')
parser.add_argument('-b', '--batch', action='count', help='batch mode, do not draw window')
parser.add_argument('-c', '--config', metavar='F', help='read configuration from file F')
parser.add_argument('-g', '--grid', metavar='G', help='set grid geometry in COLS[xROWS] format')