Feature Request: BWF-files and markers

Started by linuxuser, March 07, 2014, 04:26:01 PM

Previous topic - Next topic

linuxuser

Could you please show markers in the metadata of BWF-files? Thanks"

Phil Harvey

BWF files?  Do you have the format specification and/or some sample files?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

linuxuser

Please see:

http://en.wikipedia.org/wiki/Broadcast_Wave_Format
https://tech.ebu.ch/docs/tech/tech3285.pdf
https://tech.ebu.ch/docs/tech/tech3285s6.pdf
http://www.digitizationguidelines.gov/guidelines/digitize-embedding.html

Exiftool shows something like this:

[RIFF]          0x0000 Description                     :
[RIFF]          0x0100 Originator                      : TASCAM Linear PCM Recoder DR-40
[RIFF]          0x0120 Originator Reference            :
[RIFF]          0x0140 Date/Time Original              : 2014:02:25 22:07:38
[RIFF]          0x0152 Time Reference                  : 3232775552
[RIFF]          0x015a BWF Version                     : 1
[RIFF]          0x025a Coding History                  :
[RIFF]          0x0000 Encoding                        : Microsoft PCM
[RIFF]          0x0001 Num Channels                    : 2
[RIFF]          0x0002 Sample Rate                     : 96000
[RIFF]          0x0004 Avg Bytes Per Sec               : 576000
[RIFF]          0x0007 Bits Per Sample                 : 24
[Composite]          - Duration                        : 0:20:43

Please let me know, which sample I should create, how long, how many markers, a.s.o.

Phil Harvey

Thanks for the references.  As for the samples, just a small sample that contains the metadata you are interested in extracting.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

linuxuser

#4
Edit:
I have trouble to upload a file with 8,7M, so I post this _without_ the file and try to add it in an own posting.
Edit2:
The upload doesn't work, a mail has been sent to you.

ATTENTION: The sample is very loud at the end, sorry, I didn't notice it.

sox test_20140316-011213_48k16b2c_0h0m47s_1cl0.0db_dr40.wav -n stats
             Overall     Left      Right
DC offset  -0.000292 -0.000050 -0.000292
Min level  -1.000000 -1.000000 -1.000000
Max level   0.999969  0.999969  0.999969
Pk lev dB       0.00      0.00      0.00
RMS lev dB    -25.81    -25.86    -25.77
RMS Pk dB      -3.89     -4.84     -3.89
RMS Tr dB     -58.56    -57.79    -58.56
Crest factor       -     19.64     19.42
Flat factor    39.74     38.73     40.23
Pk count       1.38k       943     1.83k
Bit-depth      16/16     16/16     16/16
Num samples    2.26M
Length s      47.112
Scale max   1.000000
Window s       0.050


This is the output of the sample of exiftool and wavecut, which shows the markers.

exiftool -G -H -a test_20140316-011213_48k16b2c_0h0m47s_1cl0.0db_dr40.wav
[ExifTool]           - ExifTool Version Number         : 9.53
[File]               - File Name                       : test_20140316-011213_48k16b2c_0h0m47s_1cl0.0db_dr40.wav
[File]               - Directory                       : .
[File]               - File Size                       : 8.6 MB
[File]               - File Modification Date/Time     : 2014:03:16 01:12:12+01:00
[File]               - File Access Date/Time           : 2014:03:16 01:12:47+01:00
[File]               - File Inode Change Date/Time     : 2014:03:16 01:12:17+01:00
[File]               - File Permissions                : rw-r--r--
[File]               - File Type                       : WAV
[File]               - MIME Type                       : audio/x-wav
[RIFF]          0x0000 Description                     :
[RIFF]          0x0100 Originator                      : TASCAM Linear PCM Recoder DR-40
[RIFF]          0x0120 Originator Reference            :
[RIFF]          0x0140 Date/Time Original              : 2014:03:16 01:12:13
[RIFF]          0x0152 Time Reference                  : 205630848
[RIFF]          0x015a BWF Version                     : 1
[RIFF]          0x025a Coding History                  :
[RIFF]          0x0000 Encoding                        : Microsoft PCM
[RIFF]          0x0001 Num Channels                    : 2
[RIFF]          0x0002 Sample Rate                     : 48000
[RIFF]          0x0004 Avg Bytes Per Sec               : 192000
[RIFF]          0x0007 Bits Per Sample                 : 16
[Composite]          - Duration                        : 0:00:47


Here you see the markers:

wavecut -n test_20140316-011213_48k16b2c_0h0m47s_1cl0.0db_dr40.wav
-- wavecut Version 0.22 (12/03/2014) --

File: test_20140316-011213_48k16b2c_0h0m47s_1cl0.0db_dr40.wav
File length: 9046276
chunk type: "bext" len: 636
  Description:   
  Originator:    TASCAM Linear PCM Recoder DR-40
  OriginatorRef:
  Date:          2014-03-16
  Time:          01:12:13
  TimeReference :205630848
  BWF Version:   1
  UMID:         
  CodingHistory:
chunk type: "fmt " len: 16
  Format:             PCM
  Channels:           2
  Samples per second: 48000
  Avg. bytes per sec: 192000
  Block align:        4
  Bits per sample:    16
chunk type: "data" len: 9045504
  running time 0:00:47.11
chunk type: "cue " len: 76
diff: 50

  Track   Start        Stop           Duration
    1:    0:00:00.00   0:00:03.65     0:00:03.65  < 5 sec !
    2:    0:00:03.65   0:00:13.22     0:00:09.58
    3:    0:00:13.22   0:00:21.31     0:00:08.09
    4:    0:00:21.31   0:00:47.11     0:00:25.80


I use a developer version with work in progress of wavecut!