- assigned_to: nobody --> jmaggard
I noticed that WDTV Live is unhappy with m2ts files containing vc-1 video and ac3/DTS audio when served up from minidlna. I put together a miserable hack (not a full blown implementation) to prove that this issue can be fixed with relative ease.
In metadata.c:
case CODEC_ID_VC1:
DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is VC1\n", video_stream, basename(path));
char profile[5]; profile[0] = '\0';
/* Hack for VC-1/WMV M2TS files */
/* -Chad */
/* asprintf(&m.mime, "video/x-ms-wmv"); */
asprintf(&m.mime, "video/vnd.dlna.mpeg-tts");
<snip>
else if( (ctx->streams[video_stream]->codec->width <= 1920) &&
(ctx->streams[video_stream]->codec->height <= 1080) &&
(ctx->bit_rate/8 <= 20000000) )
{
switch( audio_profile )
{
case PROFILE_AUDIO_AC3:
asprintf(&m.dlna_pn, "AVC_TS_MP_HD_AC3_ISO;%s", dlna_no_conv);
break;