[FFmpeg-devel] [PATCH v2 0/3] DTS Express (LBR) decoder

James Almer jamrial at gmail.com
Sun May 1 20:30:27 CEST 2016


On 5/1/2016 12:27 PM, foo86 wrote:
> This adds decoder for DTS Express (LBR) format that is typically used for
> secondary audio tracks on BDs.
> 
> Changes since the previous version:
>   - dropped merged patches
>   - changed avpriv_ prefix to ff_ on inline function in a header
>   - replaced LOCAL_ALIGNED(32, ...) with LOCAL_ALIGNED_32(...)
>   - moved first stage of LBR filterbank to dcadsp
>   - changed several inline constants to float from double
>   - reduced number of grid 2 subbands allocated in structure (3 vs 6)
> 
> Sample files that can be added to FATE: https://0x0.st/NsN.zip

The mono and stereo samples are detected with a score of 1. The 5.1 sample
is not detected at all, but works if you force the usage of the DTS demuxer.
Its probe function will have to be updated at some point.

> 
> foo86 (3):
>   avcodec/dca: move huffman data into separate object file
>   avcodec/dca: move channel counter utility into dca.h
>   avcodec/dca: add DTS Express (LBR) decoder

With the samples you shared and with a random lbr-in-wav mono sample i found
in the wild i get the following when i try to do a codec copy.
Core and every other DTS extension in contrast seem to set timestamps just
fine.

#tb 0: 1/90000
#media_type 0: audio
#codec_id 0: dts
#sample_rate 0: 48000
#channel_layout 0: 60f
Output #0, framecrc, to 'pipe:':
    Stream #0:0: Audio: dts (DTS Express), 48000 Hz, 5.1(side), 505 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[framecrc @ 0000000000670100] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
0,          0,          0,        0,     5440, 0xdc73e46d
0,          0,          0,        0,     5440, 0x7f66bd99
0,          0,          0,        0,     5440, 0x116f2d31
0,          0,          0,        0,     5440, 0x37a82646
0,          0,          0,        0,     5440, 0xcc294e39
0,          0,          0,        0,     5440, 0x2293455d
0,          0,          0,        0,     5440, 0xbd9b25d3
0,          0,          0,        0,     5440, 0xf9331333
0,          0,          0,        0,     5440, 0xb96d5581
0,          0,          0,        0,     5440, 0x56f55088
0,          0,          0,        0,     5440, 0x32f81f50
0,          0,          0,        0,     5440, 0x8a0c986d
0,          0,          0,        0,     5440, 0x21615dea
0,          0,          0,        0,     5440, 0x5adc77e9
0,          0,          0,        0,     5440, 0x228e5088
0,          0,          0,        0,     5440, 0xd0029e27
0,          0,          0,        0,     5440, 0x472d4f33
0,          0,          0,        0,     5440, 0xdaff4ac1
size=       1kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:96kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown



More information about the ffmpeg-devel mailing list