Changes between Initial Version and Version 1 of Ticket #1398, comment 22


Ignore:
Timestamp:
Apr 23, 2014, 8:08:30 AM (6 years ago)
Author:
goodthanks
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1398, comment 22

    initial v1  
    14140x82 plays fine.
    1515
     16edit: Ok pretty sure I have found the problem.
     17In libavformat\mpegtsenc.c
    1618
     19Line 288 is the start of a switch function. Inside that function there is no case for DTS so it gets defaulted to Stream_Type_Private_Data. Based on line 50 in libavformat\mpegts.h Stream_Type_Private_Data results in 0x06 being the stream ID used in the output file.
     20
     21The following needs to inserted into that switch function
     22<code>case AV_CODEC_ID_DTS:
     23            stream_type = STREAM_TYPE_AUDIO_DTS;
     24            break;
     25</code>
     26This will result in the output file having a stream ID of 0x8a which should work. If not line 61 of libavformat\mpegts.h probably needs to be changed to
     27<code>#define STREAM_TYPE_AUDIO_DTS       0x82</code>
     28from
     29<code>#define STREAM_TYPE_AUDIO_DTS       0x8a</code>
     30
     31Got no idea how to compile ffmpeg on windows so hopefully someone else can confirm.