[FFmpeg-devel] [RFC] additinal desc_type for dtshd mpeg-ts demuxer

Andreas Öman andreas
Mon Jun 9 08:39:39 CEST 2008


M?ns Rullg?rd wrote:
> elupus <elupus at ecce.se> writes:
>> @@ -951,11 +974,15 @@
>>          codec_id = CODEC_ID_AAC;
>>          break;
>>      case STREAM_TYPE_AUDIO_AC3:
>> +    case STREAM_TYPE_AUDIO_HDMV_AC3_TRUE_HD:
>> +    case STREAM_TYPE_AUDIO_HDMV_AC3_PLUS:
>>          codec_type = CODEC_TYPE_AUDIO;
>>          codec_id = CODEC_ID_AC3;
>>          break;
>>      case STREAM_TYPE_AUDIO_DTS:
>>      case STREAM_TYPE_AUDIO_HDMV_DTS:
>> +    case STREAM_TYPE_AUDIO_HDMV_DTS_HD:
>> +    case STREAM_TYPE_AUDIO_HDMV_DTS_HD_MASTER:
>>          codec_type = CODEC_TYPE_AUDIO;
>>          codec_id = CODEC_ID_DTS;
>>          break;
> 
> Is it correct to use the same codec id?  Can AC3/DTS decoders in
> general handle all the variants?  Might an lavf-using app want to
> distinguish between them?

IEC958 (SPDIF) comes to mind.
You might want to configure AC3, DTS, etc to be sent directly to a AV
receiver, but such receiver might not be able to decode DTS HD and such,
so it is necessary to be able to distinguish between the variants.

Ether we could add more codec IDs or use sub_id. Dunno what's best
though.





More information about the ffmpeg-devel mailing list