Page 1 of 1

"The data type is not supported"

PostPosted: Thu Sep 29, 2011 10:42 pm
by LLoyd
I am receiving the following error while playing the "Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv" file:

"The data type is not supported"

If I change the playstation profile to the following, the .MKV" file plays with no errors:

From:
<Video targetContainer="mpegts" targetACodec="ac3">

To:
<Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">

The problem is: I really do not want to transcode the file from x264 to MPEG2, because the movie is unwatchable (choppy), due to it stopping every three seconds. I want to play x264 ".MKV" files natively on the Playstation. Today, I downloaded a few more ".MKV" files and they play natively and do not require transcoding. Why do these .MKV" files play x264 natively and most of my other ".MKV" files need to be transcoded to MPEG2?

Is there something I'm missing (other than my brain - LOL)?

The following is my "Serviio.log" file (in DEBUG mode) after playing the "Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv" file:

--------------------------------------------------------------------------------------------------------------------
2011-09-29 16:40:45,963 DEBUG [WebServer] Incoming connection from /192.168.1.123:57221
2011-09-29 16:40:45,967 DEBUG [ResourceTransportRequestHandler] GET /resource/1028/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO$0 HTTP/1.1, headers = [Host: 192.168.1.247:8895,User-Agent: PLAYSTATION 3,Connection: Keep-Alive,Accept-Encoding: identity,transferMode.dlna.org: Streaming,TimeSeekRange.dlna.org: npt=0.000-]]
2011-09-29 16:40:45,967 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.123
2011-09-29 16:40:45,968 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.123, Profile=Playstation 3'
2011-09-29 16:40:45,968 DEBUG [ResourceTransportRequestHandler] Request for resource 1028 and type 'MEDIA_ITEM' received
2011-09-29 16:40:45,968 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1028)
2011-09-29 16:40:45,969 DEBUG [VideoDAOImpl] Reading a Video (id = 1028)
2011-09-29 16:40:45,970 DEBUG [VideoDeliveryEngine] Delivering item '1028' for client 'IPAddress=/192.168.1.123, Profile=Playstation 3'
2011-09-29 16:40:45,970 DEBUG [VideoDeliveryEngine] Delivering file 'Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv' using transcoding
2011-09-29 16:40:45,988 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file '/mnt/Media/var/tmp/Serviio/transcoding-temp-1042-MPEG2TS.stf'
2011-09-29 16:40:45,988 DEBUG [ProcessExecutor] Stopping external process: Thread[Thread-1331,5,main]
2011-09-29 16:40:45,988 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2011-09-29 16:40:45,990 WARN [OutputTextReader] Error reading output of an external command:Bad file descriptor
2011-09-29 16:40:45,994 DEBUG [AbstractTranscodingDeliveryEngine] Deleted temp file '/mnt/Media/var/tmp/Serviio/transcoding-temp-1042-MPEG2TS.stf': true
2011-09-29 16:40:45,994 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.123, Profile=Playstation 3'
2011-09-29 16:40:45,994 DEBUG [MediaItemDAOImpl] Getting file of media item 1028
2011-09-29 16:40:45,996 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /mnt/Media/Movies/DTS/Core (1.5Mbps)/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv
2011-09-29 16:40:45,997 DEBUG [ProcessExecutor] Starting ffmpeg -i /mnt/Media/Movies/DTS/Core (1.5Mbps)/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /mnt/Media/var/tmp/Serviio/transcoding-temp-1028-MPEG2TS.stf
2011-09-29 16:40:46,848 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface em0 (em0) and address 192.168.1.247, timeout = 0
2011-09-29 16:40:46,849 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 7e77d808-59f9-342a-8af9-5da50f774213
2011-09-29 16:40:47,647 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv: AVC_TS_MP_HD_AC3_ISO
2011-09-29 16:40:47,648 DEBUG [AbstractTranscodingDeliveryEngine] Sending transcoding stream
2011-09-29 16:40:47,648 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 1028) as read
2011-09-29 16:40:48,028 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2011-09-29 16:40:48,029 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 9000000000
2011-09-29 16:40:48,029 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2011-09-29 16:40:48,029 DEBUG [ResourceTransportRequestHandler] Sending file back
2011-09-29 16:40:48,029 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,TimeSeekRange.dlna.org: npt=0.0-6697.0/6697,Date: Thu, 29 Sep 2011 16:40:48 GMT,Server: FreeBSD, UPnP/1.0 DLNADOC/1.50, Serviio/0.5.2,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2011-09-29 16:40:48,515 DEBUG [WebServer] I/O error: Broken pipe
2011-09-29 16:40:48,708 DEBUG [WebServer] Incoming connection from /192.168.1.123:57220
2011-09-29 16:40:48,709 DEBUG [DeviceDescriptionRequestHandler] DeviceDescription request received for device 7e77d808-59f9-342a-8af9-5da50f774213 from 192.168.1.123 (headers = [Host: 192.168.1.247:8895,Date: Thu, 29 Sep 2011 16:44:24 GMT,User-Agent: UPnP/1.0,X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";])
2011-09-29 16:40:48,709 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.123
2011-09-29 16:40:48,710 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.123
2011-09-29 16:40:48,714 DEBUG [DeviceDescriptionRequestHandler] Sending DeviceDescription XML back using profile 'Playstation 3'
2011-09-29 16:40:48,827 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:01:25
--------------------------------------------------------------------------------------------------------------------

The following are the results of a manually executed "ffmpeg" against the "Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv" file.

ffmpeg -i "/mnt/Media/Movies/DTS/Core (1.5Mbps)/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi"
ffmpeg version 0.7.1, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 5 2011 08:24:08 with gcc 4.2.1 20070719 [FreeBSD]
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --disable-libdirac --disable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --disable-libmp3lame --enable-libopencv --disable-libopenjpeg --disable-librtmp --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.122. 0 / 52.122. 0
libavformat 52.110. 0 / 52.110. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
/mnt/Media/Movies/DTS/Core (1.5Mbps)/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi: Invalid data found when processing input

Note: The "Core (1.5Mbps)" directory has spaces in it, so the path is encapsulated in quotes (above)
--------------------------------------------------------------------------------------------------------------------

Re: "The data type is not supported"

PostPosted: Thu Sep 29, 2011 10:57 pm
by Cerberus
corrupt files or they have header compression.

Re: "The data type is not supported"

PostPosted: Thu Sep 29, 2011 11:10 pm
by LLoyd
How could I check for header compression. Is there any way I could resolve it? I have transcoded and re-muxed video and audio files, but I am a rookie concerning header compression. Is there anything I could do to alleviate the problem?

Re: "The data type is not supported"

PostPosted: Thu Sep 29, 2011 11:13 pm
by zip
I think your ffmpeg -i command is missing the .mkv extension of the file name, that's why it's giving the error message

Re: "The data type is not supported"

PostPosted: Thu Sep 29, 2011 11:40 pm
by LLoyd
zip,

Your right! Big mistake by "dummy" me. The following are the results of a manually executed "ffmpeg" against the "Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv" file:

--------------------------------------------------------------------------------------------------------------------
ffmpeg -i "/mnt/Media/Movies/DTS/Core (1.5Mbps)/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv"
ffmpeg version 0.7.1, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 5 2011 08:24:08 with gcc 4.2.1 20070719 [FreeBSD]
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --disable-libdirac --disable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --disable-libmp3lame --enable-libopencv --disable-libopenjpeg --disable-librtmp --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.122. 0 / 52.122. 0
libavformat 52.110. 0 / 52.110. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 0x29c15010] max_analyze_duration 5000000 reached at 5002000
[matroska,webm @ 0x29c15010] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (20000000/417083) -> 23.98 (24000/1001)
Input #0, matroska,webm, from '/mnt/Media/Movies/DTS/Core (1.5Mbps)/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv':
Duration: 01:51:37.18, start: 0.000000, bitrate: 1536 kb/s
Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x816, PAR 1:1 DAR 40:17, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : x264_L4.1 @ 11503 Kbps
Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default)
Metadata:
title : English DTS @ 1.5 Mbps
Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000 (default)
Metadata:
title : English SDH
At least one output file must be specified
--------------------------------------------------------------------------------------------------------------------

Ok so this file won't play on my Playstation, but will play on my Samsung (with the built-in "Media Play" software). Like Cerberus said, could there be header compression on the file and the Playstation cannot deal with it, like the Samsung "Media play" software can.......or is there something else that is causing the problem?

What software can I use to check header compression on a ."MKV" file?

I use "Mkvtoolnix" to mux and "ffmpeg" to manually transcode. Can I use "ffmpeg" to check for header compression?

Re: "The data type is not supported"

PostPosted: Fri Sep 30, 2011 12:05 am
by LLoyd
Here is a ".MKV" file that plays on my Samsung "Media Play" software and on my Playstation:

Input #0, matroska,webm, from 'True.Grit.2011.BluRay.1080p.DTS.x264-CHD.mkv':
Duration: 01:50:20.41, start: 0.000000, bitrate: 1536 kb/s
Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x816, PAR 1:1 DAR 40:17, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:
title : True.Grit.2011
Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default)
Metadata:
title : DTS-CORE 1536K
At least one output file must be specified

Re: "The data type is not supported"

PostPosted: Fri Sep 30, 2011 7:37 am
by Illico
Could you compare with MediaInfo tools the library/tool used to merge stream into MKV format, with your two files?
Also check the h264 encoder core used...

Re: "The data type is not supported"

PostPosted: Fri Sep 30, 2011 7:42 am
by Illico
When I look at the ffmpeg command line used to transcode your file:
[ProcessExecutor] Starting ffmpeg -i /mnt/Media/Movies/DTS/Core (1.5Mbps)/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi/Crazy.Heart.2009.1080p.BluRay.x264.DTS-WiKi.mkv -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /mnt/Media/var/tmp/Serviio/transcoding-temp-1028-MPEG2TS.stf

On Serviio console, could you uncheck "Downmix to Stereo" box and check "Keep original" one?

I think the audio output rate is too low compared to the DTS-speed input."-ab 192k" should be changed to "-ab 320k" or more "-ab 384k".

Did you use the latest Serviio 0.6 version? Did you select the proper "Playstation 3" profile? you said you modified the profile, could post here?

Re: "The data type is not supported"

PostPosted: Fri Sep 30, 2011 10:31 am
by zip
It's a high profile H264, post MediaInfo output so we can check the level.