Skip to content

Commit 1e28de4

Browse files
authored
add log file locations and information about envars (#378)
### Summarize your change. Add some information about the RV logger: - Where the log files are stored - What envars are available ### Describe the reason for the change. With the now implemented logger, the documentation was missing information about where the logs are stored, and how to control the logger with envars. This PR solves this issues. Signed-off-by: Martin Chesnay <[email protected]>
1 parent a6011ac commit 1e28de4

File tree

1 file changed

+47
-32
lines changed

1 file changed

+47
-32
lines changed

docs/rv-manuals/rv-user-manual/rv-user-manual-chapter-three.md

Lines changed: 47 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,25 @@ which is identical to this:
7777
shell> rv -gamma 0.454545454545
7878
```
7979

80-
### Troubleshooting Open RV
80+
## Troubleshooting Open RV
8181

8282
Launching RV from the command line is the best way to troubleshoot RV by giving you access to error messages or crash dumps.
8383

84+
You can also access the logs at the following locations:
85+
86+
| OS | Logs location |
87+
| --- | --- |
88+
| Linux | ~/.local/share/Autodesk/RV/RV.log |
89+
| macOS | ~/Library/Logs/Autodesk/RV.log |
90+
| Windows | %AppData%\Roaming\Autodesk\RV\RV.log |
91+
92+
These logs contain anything that is written in the RV Console.
93+
94+
You can control the size and number of log files kept by RV with the following environment variables:
95+
96+
- `RV_FILE_LOG_SIZE`: Sets the maximum size of each log file. When that maximum size is reached, RV creates a new log file. Default value is 5 MB.
97+
- `RV_FILE_LOG_NUM_FILES`: Sets the number of log files to keep. If there are a number of log files equal to `RV_FILE_LOG_NUM_FILES`, then RV deletes the oldest log file before creating a new one. Default value is 2.
98+
8499
### Command-Line Options
85100

86101
| | |
@@ -211,27 +226,27 @@ Launching RV from the command line is the best way to troubleshoot RV by giving
211226

212227
Table 3.1: Per-Source Command Line Options <a id="per-source-command-line-options"></a>
213228

214-
### 3.1 Image Sequence Notation
229+
## 3.1 Image Sequence Notation
215230

216231
RV has a special syntax to describe image sequences as source movies. Sequences are assumed to be files with a common base name followed by a frame number and an image type extension. For example, the filenames foo.1.tif and foo.0001.tif would be interpreted as frame 1 of the TIFF sequence foo. RV sorts images by frame numbers in numeric order. It sorts image base names in lexical order. What this means is that RV will sort images into sequences the way you expect it to. Padding tricks are unnecessary for RV to get the image order correct; image order will be interpreted correctly.
217232

218-
```
233+
```sh
219234
foo.0001.tif foo.0002.tif foo.0003.tif foo.0004.tif
220235
foo.0005.tif foo.0006.tif foo.0007.tif foo.0008.tif
221236
foo.0009.tif foo.0010.tif
222237
```
223238

224239
To play this image sequence in RV from the command line, you could start RV like this:
225240

226-
```
241+
```sh
227242
shell> rv foo.\*.tif
228243
```
229244

230245
and RV will automatically attempt to group the files into a logical movie. ( **Note** : this will only work on Linux or Mac OS, or some other Unix-like shell, like cygwin on Windows.)
231246

232247
When you want to play a subset of frames or audio needs to be included, you can specify the sequence using the \`\`#'' or \`\`@'' notation (similar to Shake's) or the printf-like notation using \`\`%'' similar to Nuke.
233248

234-
```
249+
```sh
235250
rv foo.#.tif
236251
rv foo.2-8#.tif
237252
rv foo.2-8@@@@.tif
@@ -246,64 +261,64 @@ The next two examples use the printf-like syntax accepted by nuke. In the first
246261

247262
Sometimes, you will encounter or create an image sequence which is purposefully missing frames. For example, you may be rendering something that is very expensive to render and only wish to look at every tenth frame. In this case, you can specify the increment using the \`\`x'' character like this:
248263

249-
```
264+
```sh
250265
rv foo.1-100x10#.tif
251266
```
252267

253268
or alternately like this using the \`\`@'' notation for padding to four digits:
254269

255-
```
270+
```sh
256271
rv foo.1-100x10@@@@.tif
257272
```
258273

259274
or if the file was padded to three digits like foo.001.tif:
260275

261-
```
276+
```sh
262277
rv foo.1-100x10@@@.tif
263278
```
264279

265280
In these examples, RV will play frames 1 through 100 by tens. So it will expect frames 1, 11, 21, 31, 41, on up to 91.
266281

267282
If there is no obvious increment, but the frames need to be group into a sequence, you can list the frame numbers with commas:
268283

269-
```
284+
```sh
270285
rv foo.1,3,5,7,8,9#.tif
271286
```
272287

273288
In many cases, RV can detect file types automatically even if a file extension is not present or is mis-labeled.
274289

275290
**NOTE** : Use the same format for exporting multiple annotated frames.
276291

277-
#### 3.1.1 Negative Frame Numbers
292+
### 3.1.1 Negative Frame Numbers
278293

279294
RV can handle negative frames in image sequences. If the frame numbers are zero padded, they should look like so:
280295

281-
```
296+
```sh
282297
foo.-012.tif
283298
foo.-001.tif
284299
```
285300

286301
To specify in and out points on the command line in the presence of negative frames, just include the minus signs:
287302

288-
```
303+
```sh
289304
foo.-10-20#.tif
290305
foo.-10--5#.tif
291306
```
292307

293308
The first example uses frames -10 to +20. The second example uses frames -10 to -5. Although the use of the \`\`-'' character to specify ranges can make the sequence a bit visually confusing, the interpretation is not ambiguous.
294309

295-
#### 3.1.2 Stereo Notation
310+
### 3.1.2 Stereo Notation
296311

297312
RV can accept stereo notation similar to Nuke's \`\`%v'' and \`\`%V'' syntax. By default, RV can only recognize left, right, Left, and Right for %V and for %v it will try L, R, or l and r. You can change the substitutions by setting the environment variables RV_STEREO_NAME_PAIRS and RV_STEREO_CHAR_PAIRS. These should be set to a colon separated list of values (even on windows). For example, the defaults would look like this:
298313

299-
```
314+
```sh
300315
RV_STEREO_NAME_PAIRS = left:right:Left:Right
301316
RV_STEREO_CHAR_PAIRS = L:R:l:r
302317
```
303318

304319
So for example, if you have two image sequences:
305320

306-
```
321+
```sh
307322
foo.0001.left.exr
308323
foo.0002.left.exr
309324
foo.0001.right.exr
@@ -312,79 +327,79 @@ foo.0002.right.exr
312327

313328
you could refer to the entire stereo sequence as:
314329

315-
```
330+
```sh
316331
foo.%04d.%V.exr
317332
```
318333

319-
### 3.2 Source Layers from the Command Line
334+
## 3.2 Source Layers from the Command Line
320335

321336
You can create source material from multiple audio, image, and movie files from the command line by enclosing them in square brackets. The typical usage looks something like this:
322337

323-
```
338+
```sh
324339
shell> rv [ foo.#.exr soundtrack.aiff ]
325340
```
326341
327342
Note that there are spaces around the brackets: they must be completely separated from subsequent arguments to be interpreted correctly. You cannot nest brackets and the brackets must be matched; for every begin bracket there must be an end bracket.
328343
329-
#### 3.2.1 Associating Audio with Image Sequences or Movie Files
344+
### 3.2.1 Associating Audio with Image Sequences or Movie Files
330345
331346
Frequently a movie file or image sequence needs to be viewed with one or more separate audio files. When you have multiple layers on the command line and one or more of the layers are audio files, RV will play back the all of the audio files mixed together along with the images or movies. For example, to play back a two wav files with an image sequence:
332347
333-
```
348+
```sh
334349
shell> rv [ foo.#.exr first.wav second.wav ]
335350
```
336351
337352
If you have a movie file which already has audio you can still add additional audio files to be played:
338353
339-
```
354+
```sh
340355
shell> rv [ movie_with_audio.mov more_audio.aiff ]
341356
```
342357
343-
#### 3.2.2 Dual Image Sequences and/or Movie Files as Stereo
358+
### 3.2.2 Dual Image Sequences and/or Movie Files as Stereo
344359
345360
It's not unusual to render left and right eyes separately and want to view them as stereo together. When you give RV multiple layers of movie files or image sequences, it uses the first two as the left and right eyes.
346361
347-
```
362+
```sh
348363
shell> rv [ left.#.exr right.#.exr ]
349364
```
350365
351366
It's OK to mix and match formats with layers:
352367
353-
```
368+
```sh
354369
shell> rv [ left.mov right.100-300#.jpg ]
355370
```
356371
357372
if you want audio too:
358373
359-
```
374+
```sh
360375
shell> rv [ left.#.exr right.#.exr soundtrack.aiff ]
361376
```
362377
363378
As with the mono case, any number of audio files can be added: they will be played simultaneously.
364379
365-
#### 3.2.3 Per-Source Arguments
380+
### 3.2.3 Per-Source Arguments
366381
367382
There are a few arguments which can be applied with in the square brackets (See Table [3.1](#per-source-command-line-options) ). The range start sets the first frame number to its argument; so for example to set the start frame of a movie file with or without a time code track so that it starts at frame 101:
368383
369-
```
384+
```sh
370385
shell> rv [ -rs 101 foo.mov ]
371386
```
372387
373388
You must use the square brackets to set per-source arguments (and the square brackets must be surrounded by spaces).
374389
375390
The -in and -out per-source arguments are an easy way to create an EDL on the command line, even when playing movie files.
376391
377-
#### 3.2.4 A note on the -fps per-source argument
392+
### 3.2.4 A note on the -fps per-source argument
378393
379394
The point of the -fps arg is to provide a scaling factor in cases where the frame rate of the media cannot be determined and you want to play an audio file with it. For example, if you want to play "[foo.#.dpx foo.wav]" in the same session with "[bar.#.dpx bar.wav]" but the "native frame rate of foo is 24fps and the native frame rate of bar is 30fps, then you might want to say:
380395
381-
```
396+
```sh
382397
shell> rv [foo.#.dpx foo.wav -fps 24 ] [ bar.#.dpx bar.wav -fps 30 ]
383398
```
384399
385400
This will ensure that the video and audio are synced properly no matter what frame rate you use for playback. To clarify further, the per-source -fps flag has no relation to the frame rate that is used for playback, and in general RV plays media (all loaded media) at whatever single frame rate is currently in use.
386401
387-
#### 3.2.5 Source Layer Caveats and Capabilities
402+
### 3.2.5 Source Layer Caveats and Capabilities
388403
389404
There are a number of things you should be aware of when using source layers. In most cases, RV will attempt to do something with what you give it. However, if your input is logically ambiguous the result may be different than what you expect. Here are some things you should avoid using in layers of a single source:
390405
@@ -403,11 +418,11 @@ Here are some things that are OK to do with layers:
403418
- A movie with audio for one eye and a movie without audio for the other
404419
- Audio files with no imagery
405420
406-
### 3.3 Directories as Input
421+
## 3.3 Directories as Input
407422
408423
If you give RV the name of a directory instead of a single file or an image sequence it will attempt to interpret the contents of the directory. RV will find any single images, image sequences, or single movie files that it can and present them as individual source movies. This is especially useful with the directory \`\`.'' on Linux and macOS. If you navigate in a shell to a directory that contains an image sequence for example, you need only type the following to play it:
409424
410-
```
425+
```sh
411426
rv .
412427
```
413428

0 commit comments

Comments
 (0)