DVRescue Documents
In order to facilitate capturing, analyzing, and merging of DV, DVRescue utilize a few internally-defined documents to describe data and events.
DVRescue XML Schema Documentation
The schema used in DVRescue can be found here
creator:
References the name and versioning of libraries used by the application listed as creator.
- program: name of program
- version: version of program
- library: version of library
media:
A media element refers to an input to dvrescue, commonly a file which includes dv data or a piped input.
- ref: Reference to the original file path.
- format: Format of the file, for example DV, AVI, MPEG-4.
- size: File size, in bytes.
- error: Provides an error message is there is an issue parsing the file.
frames:
As the qualities of a dv stream can change from frame to frame, the frames element groups together frames of like qualities. If a dv frame contains a specific quality that is different than that of the previous frame (such as a change from 4/3 aspect ratio to 16/9 or a change from 48000 Hz audio to 32000 Hz audio), then a new frames element will start.
-
scan_type: String representing the interlacement pattern of the frame. Options are:
T: top, TT: top field only, B: bottom, BB: bottom field only, P: progressive
- count: Frame count within the current frames sequence.
- pts: Presentation timestamp for start of sequence.
- end_pts: Presentation timestamp for end of sequence.
- size: Dimensions of frame represented as width x height in pixels.
- video_rate: Frame rate.
- chroma_subsampling: Chroma subsampling value represented in three part ratio notation.
- aspect_ratio: Frame aspect ratio represented in fractional notation.
- audio_rate: Frame audio rate represented in full integer notation.
-
channels: Number of audio channels, between 0-8.
DV25: 0-2 DV50: 0-4 DV100: 0-8
- captions: Values of ‘y’ and ‘n’ indicate whether there is or is not the presence of EIA-608 closed captioning packs with the VAUX section of the DV frames. ‘p’ when some but not all frames have captions; in that case frame/@cap contains information about begin and end of the closed captioning packs presence.
- no_sourceorcontrol_aud: Boolean that indicates if no audio source and no audio source control pack is present in audio but at least 1 pack
frame
A frame element holds notable information about frames that have been identified to include errors.
- n: The number of the DIF sequence within the frame starting from zero.
- pos: Position (byte offset) of the frame.
- pts: Presentation timestamp for frame element.
- abst: The Absolute Track number for frame element, which references its corresponding tape position.
- abst_r: Boolean that indicates if absolute track number is repeating.
- abst_nc: Boolean that indicates if absolute track number is non-consecutive.
- tc: Timecode.
- tc_r: Boolean that indicates if timecode is repeating.
-
tc_nc: A value indicating if timecode is non-consecutive.
1: The timecode is non-continuous and the current value is greater than the previous value. 2: The timecode is non-continuous and the current value is less than the prev value.
- rdt: Recorded Date Time.
- rdt_r: Boolean that indicates if recorded date time is repeating.
-
rdt_nc: A value indicating if recorded date time is non-consecutive.
1: The recorded date time is non-continuous and the current value is greater than the previous value. 2: The recorded date time is non-continuous and the current value is less than the prev value.
- rec_start: Recording start.
- rec_end: Recording end.
- seqn: Sequence number. DVRescue represents this four bit value in hexadecimal. For 525-60 systems values of 0, 2, 4, 6, 8, and A imply the frame is a colour frame A and values of 1, 3, 5, 7, 9, and B imply the frame is a colour frame B. For 625-50 systems values of 0, 4, and 8 imply the frame is field 1 and field 2, values of 1, 5, and 9 imply the frame is field 3 and field 4, values of 2, 6, and A imply the frame is field 5 and field 6, and values of 3, 7, and B imply the frame is field 7 and field 8. Values of C, D, and E are not used and a value of F implies that there is no sequence number information. Generally sequence numbers are recorded in a repeating pattern of 0 through B sequentially.
- seqn_r: Boolean that indicates if the sequence number is repeating.
- seqn_nc: Boolean that indicates if the sequence number is non-consecutive.
- caption-parity: A value of ‘mismatch’ indicates that a EIA-608 closed captioning pack is present within the VAUX section of the frame, but that at least one of the contained captioning values fails its parity check.
- no_pack: Boolean that indicates if no pack is present in subcode/video/audio.
- no_pack_sub: Boolean that indicates if no pack is present in subcode but at least 1 pack is present is video or audio.
- no_pack_vid: Boolean that indicates if no pack is present in video but at least 1 pack is present is subcode or audio.
- no_pack_aud: Boolean that indicates if no pack is present in audio but at least 1 pack is present in subcode or video.
- no_sourceorcontrol_vid: Boolean that indicates if no video source and no video source control pack is present in video but at least 1 pack is present in video.
- no_sourceorcontrol_aud: Boolean that indicates if no audio source and no audio source control pack is present in audio but at least 1 pack is present in audio.
- full_conceal: Boolean that indicates that all video information in frame consists of error concealment, and all audio information consists of audio error codes.
- full_conceal_vid: Boolean that indicates that all video information in frame consists of error concealment.
- full_conceal_aud: Boolean that indicates that all audio information in frame consists of error codes.
- conceal_aud_type: See audType@t.
- conceal_aud_value: See audType@v.
-
captionType: When frames/@captions is ‘p’ (partial), contains information about closed captioning packs presence.
'on' at the first (in this 'frames' element) frame starting a closed captioning packs stream. 'off' at the first frame without captioning packs when previous frames have it.
dseq
- n: The number of the DIF sequence within the frame starting from zero. An NTSC DV25 frame will have ten DIF sequences (0-9) and a PAL DV25 frame will have twelve (12) DIF sequences (0-11).
sta
-
t: Documents a type of non-zero STA value present in the frame (see table 26 of s314m). For convenience:
0 = No error, what a nice DV macroblock. 2 = Replaced a macroblock with the one of the same position of the previous frame (guaranteed continuity). 4 = Replaced a macroblock with the one of the same position of the next frame (guaranteed continuity). 6 = A concealment method is used but not specified (guaranteed continuity). 7 = Error with an error code within the macro block. O_O 10 = Same as 2 but continuity is not guaranteed. 12 = Same as 4 but continuity is not guaranteed. 14 = Same as 6 but continuity is not guaranteed. 15 = Error with unknown position.
- n: A count of this particular type of STA value within the frame or dseq. Since STA values only apply to video DIF blocks, the maximum value for a DV25 NTSC frame is 1350 (135 video-DIF-blocks * (10 DIF-sequences / NTSC-frame)) and the maximum value for a DV25 is 1620 (135 video-DIF-blocks * (12 DIF-sequences / PAL-frame)).
- n_even: A count of this particular type of STA value within the even-numbered DIF sequences of the frame. @n minus @n_even would provide the count of this particular type of STA value within the odd-numbered DIF sequences of the frame. A discrepancy between the counts within even and odd DIF sequences can indicate that the associated error is from the playback device of the source tape rather than damage to the source tape. The range is 0-675 for NTSC DV25 and 0-810 for PAL DV25.
aud
-
t: Documents the type of audio errors within the frame.
1 = An audio DIF block is filled with 0x8000 which indicates an invalid audio sample. 2 = An audio DIF block is filled with identical value not 0x8000 which indicates an invalid audio sample (not standard).
- v: In case @t is 2, the repeated values, separated by a space; as the test is per block, there may be several values; values may be in hexadecimal (in that case, they are prepended with 0x).
- n: A count of this particular type of audio error within the frame or DIF sequence number (dseq). The maximum value for a DV25 NTSC frame is 90 (9 audio-DIF-blocks * (10 DIF-sequences / NTSC-frame)) and the maximum value for a DV25 is 108 (9 audio-DIF-blocks * (12 DIF-sequences / PAL-frame)).
- n_even: A count of this particular type of audio error within the even-numbered DIF sequences of the frame. @n minus @n_even would provide the count of this particular type of audio error within the odd-numbered DIF sequences of the frame. A discrepancy between the counts within even and odd DIF sequences can indicate that the associated error is from the playback device of the source tape rather than damage to the source tape. The range is 0-45 for NTSC DV25 and 0-54 for PAL DV25.
DVRescue CSV
The DVRescue CSV describes frames and events occurring as one or many DV inputs are processed through the DVRescue utility. The CSV is primarily designed as a document to communicate information between the DVRescue CLI and the DVRescue GUI but can also be useful for debugging.
Each row in the DVRescue document refers to one DV frame read as an input. Note that the Frame Filter feature may filter out some frames before being represented in the CSV. Also note that if some instances, such as between the processes involving merging multiple input files, the number of output frames may differ from the number of input frames.
The CSV is comprised for the following columns:
Name | Definition |
---|---|
FramePos | An incremental frame counter, starting from 0. |
abst | The Absolute Track Number of the frame. |
abst_r | A flag to say if the abst value is repeated. |
abst_nc | A flag to say if the abst value is not-consecutive. |
tc | The timecode value. |
tc_r | A flag to say if the tc value is repeated. |
tc_nc | A flag to say if the tc value is non-consecutive. |
rdt | The recording date-time value. |
rdt_r | A flag to say if the recording date-time value is repeated. |
rdt_nc | A flag to say if the recording date-time value is non-consecutive. |
rec_start | A flag set by the recording device to indicate that the frame is the start of a recording. |
rec_end | A flag set by the recording device to indicate that the frame is the end of a recording. |
Used | The index of the input used to select the output frame (for example, this shall be ‘0’ if the frame of the first input is transmitted to the output, or ‘2’ if the third input) |
Status | The status value will be equal in length to the number of inputs. For each position in the status value, a letter will represent the status of that corresponding input. ‘T’ indicates that the timecode is missing, ‘P’ indicates the frame has an error (such as video error concealment or audio dropouts), ‘M’ indicates that the frame is missing from that input. |
Comments | If the output frame has a problem, this Comments value will summarize that status of the output frame. |
BlockErrors | The number of DIF Blocks with an error transmitted to the output. |
BlockErrors_Even | The number of BlockErrors from even-numbered DIF Sequences. |
IssueFixed | The number of DIF block errors corrected in the merging process. |
SourceSpeed | The speed of the deck noted via deck control. 1 indicates standard playback, >1 is fast-forward, 0 is stopped, <0 indicates rewinding. |
FrameSpeed | The speed of the playback as noted within the DV frames. Standard playback is usually 31 or 32. |
InputPos | A pipe-delimited list of the byte offsets of the synchronized input frames within their corresponding files. |
OutputPos | The byte offset of the corresponding output frame in the output file. |