[ 
https://issues.apache.org/jira/browse/TIKA-2888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853398#comment-16853398
 ] 

ASF GitHub Bot commented on TIKA-2888:
--------------------------------------

avendasora commented on pull request #272: TIKA-2888 Add wmv2 codec detection 
for WMV files
URL: https://github.com/apache/tika/pull/272
 
 
   Changes to enable correct detection of .wmv files (ASF Container files) with 
video tracks encoded using the "wmv2" codec. Previously, their MediaType was 
incorrectly detected as `audio/x-ms-wma` instead of `video/x-ms-wmv`.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Add wmv2 codec detection to ASF container
> -----------------------------------------
>
>                 Key: TIKA-2888
>                 URL: https://issues.apache.org/jira/browse/TIKA-2888
>             Project: Tika
>          Issue Type: Improvement
>          Components: detector
>    Affects Versions: 1.21
>            Reporter: David Avendasora
>            Priority: Major
>              Labels: codec, container, easyfix, video
>         Attachments: Video1.WMV, sample.wmv
>
>
> Attached file are .wmv file (ASF Container) with a video tracks encoded using 
> the {{WMV2}} codec. They are incorrectly detected as audio 
> ({{audio/x-ms-wma}}) file instead of video ({{video/x-ms-wmv}}) file. 
> Adding the following line to the {{tiki-mimetypes.xml}} file fixes the issue:
> {{    <match value="wmv2" type="unicodeLE" offset="0:8192" />}}
> Test Files:
>  * [http://techslides.com/demos/samples/sample.wmv]
>  * [http://www.lehman.edu/faculty/hoffmann/itc/techteach/video/Video1.WMV] 
> Related to TIKA-939
> I will submit a pull request with the above changes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to