Page 1 of 1

MPEG-TS + H.264 not visible on Sony Bravia

PostPosted: Thu Jan 27, 2011 4:04 pm
by kobski
I am running 0.5. Lot of MPEG-2 files are visible on the TV and play just fine. I have some H.264 files, which are not visible on the TV (Sony 40EX500).
All are recorded DVB. Duration is definitely not 16 hours - but these files seem to have some really strange timestamps. Mediainfo seems to get the duration right.

File is visible with Intel uPnP tools:
URI
http://192.168.211.12:8895/resource/360 ... EG1_L2_ISO
Bitrate
219875
Duration
16:00:32
ProtocolInfo
http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HP_HD_MPEG1_L2_ISO;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000
Resolution
1280x720
Size
12672294536

ffmpeg -i:
Input #0, mpegts, from '2009-12-23, 21.21.mpg':
Duration: 16:00:32.43, start: 28792.732200, bitrate: 1759 kb/s
Program 1
Stream #0.0[0x764](dan): Subtitle: 0x0006
Stream #0.1[0xdac]: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream #0.2[0xdad](dan): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s

mediainfo:
General
ID : 1220 (0x4C4)
Complete name : 2009-12-23, 21.21.mpg
Format : MPEG-TS
File size : 11.8 GiB
Duration : 2h 23mn
Overall bit rate : 11.7 Mbps

Video
ID : 3500 (0xDAC)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=4, N=24
Codec ID : 27
Duration : 2h 23mn
Bit rate mode : Variable
Bit rate : 10.8 Mbps
Maximum bit rate : 10.8 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 50.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.234
Stream size : 10.8 GiB (92%)
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 3501 (0xDAD)
Menu ID : 1 (0x1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 3
Duration : 2h 23mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : -1s 106ms
Stream size : 395 MiB (3%)
Language : Danish

Text
ID : 1892 (0x764)-107
Menu ID : 1 (0x1)
Format : Teletext
Language : Danish

What could be the problem?

- Jacob

Re: MPEG-TS + H.264 not visible on Sony Bravia

PostPosted: Thu Jan 27, 2011 5:21 pm
by Illico
Could you enable serviio detailed logging and post the ffmpeg command line (on log file) when you start reading this file? see my signature...

Re: MPEG-TS + H.264 not visible on Sony Bravia

PostPosted: Fri Jan 28, 2011 9:22 am
by kobski
I am not sure what you mean by "when you start reading this file".

Here is the log when file is added to library:
2011-01-28 07:55:09,887 DEBUG [LibraryAdditionsCheckerThread] Found file 'zorro_3.mpg', checking if it's already in the Library
2011-01-28 07:55:09,887 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item zorro_3.mpg
2011-01-28 07:55:09,893 DEBUG [MediaItemDAOImpl] Media item zorro_3.mpg doesn't exist in DB yet
2011-01-28 07:55:09,893 DEBUG [LibraryAdditionsCheckerThread] File not in Library, will add it
2011-01-28 07:55:09,894 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /../var/lib/mythtv/pretty/by_title/Legenden om Zorro/zorro_3.mpg
2011-01-28 07:55:09,894 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /../var/lib/mythtv/pretty/by_title/Legenden om Zorro/zorro_3.mpg
2011-01-28 07:55:09,894 DEBUG [ProcessExecutor] Starting ffmpeg -i /../var/lib/mythtv/pretty/by_title/Legenden om Zorro/zorro_3.mpg
2011-01-28 07:55:09,923 DEBUG [MediaItemDAOImpl] Getting file of media item 342
2011-01-28 07:55:09,926 DEBUG [MetadataDescriptorDAOImpl] Reading MetadataDescriptor for MediaItem (id = 342) and extractor EMBEDDED
2011-01-28 07:55:09,929 DEBUG [MetadataDescriptorDAOImpl] Reading MetadataDescriptor for MediaItem (id = 342) and extractor COVER_IMAGE_IN_FOLDER
2011-01-28 07:55:10,030 DEBUG [MediaItemDAOImpl] Getting file of media item 343
2011-01-28 07:55:10,032 DEBUG [MetadataDescriptorDAOImpl] Reading MetadataDescriptor for MediaItem (id = 343) and extractor EMBEDDED
2011-01-28 07:55:10,033 DEBUG [MetadataDescriptorDAOImpl] Reading MetadataDescriptor for MediaItem (id = 343) and extractor COVER_IMAGE_IN_FOLDER
2011-01-28 07:55:10,097 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve thumbnail for file: /../var/lib/mythtv/pretty/by_title/Legenden om Zorro/zorro_3.mpg
2011-01-28 07:55:10,097 DEBUG [ProcessExecutor] Starting ffmpeg -i /../var/lib/mythtv/pretty/by_title/Legenden om Zorro/zorro_3.mpg -an -ss 120 -vframes 1 -f image2 pipe:
2011-01-28 07:55:10,134 DEBUG [MediaItemDAOImpl] Getting file of media item 344
2011-01-28 07:55:10,136 DEBUG [MetadataDescriptorDAOImpl] Reading MetadataDescriptor for MediaItem (id = 344) and extractor EMBEDDED
2011-01-28 07:55:10,137 DEBUG [MetadataDescriptorDAOImpl] Reading MetadataDescriptor for MediaItem (id = 344) and extractor COVER_IMAGE_IN_FOLDER
2011-01-28 07:55:10,238 DEBUG [MediaItemDAOImpl] Getting file of media item 345
2011-01-28 07:55:10,240 DEBUG [MetadataDescriptorDAOImpl] Reading MetadataDescriptor for MediaItem (id = 345) and extractor EMBEDDED

And here is the log when I navigate to the file on the TV:
2011-01-28 07:59:27,064 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 947 and profile Sony Bravia TV
2011-01-28 07:59:27,065 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 28
2011-01-28 07:59:27,067 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2011-01-28 07:59:27,082 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message

But the TV does not display any files inside the folder.

Re: MPEG-TS + H.264 not visible on Sony Bravia

PostPosted: Wed Feb 02, 2011 9:42 am
by kobski
Any suggestions on how I can move on with this problem?

Can I make some changes to the Bravia profile?

Thanks,
Jacob

Re: MPEG-TS + H.264 not visible on Sony Bravia

PostPosted: Mon Jul 25, 2011 9:39 am
by Illico
Do you still have problems with these files?
AVC_TS_HP_HD_MPEG1_L2_T

It seems that 2010 model didn't support MP2 audio with h264 video under mpeg2ts stream.

Could you remove lines with AVC_TS_HP_HD_MPEG1_L2_T under Sony Bravia profile and add this line
<Matches container="mpegts" vCodec="h264" aCodec="mp2" /> into the proper <video> section ?
  Code:
             <!-- Remux all other h264 video on MPEG-TS stream with ac3 audio transcoding -->
             <!--  expected profile AVC_TS_MP_HD_AC3_ISO -->
             <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
                <Matches container="avi" vCodec="h264" />
                <Matches container="mp4" vCodec="h264" />
                <Matches container="matroska" vCodec="h264" />
                <!-- if audio different to ac3, must be transcoded -->
                <Matches container="mpegts" vCodec="h264" aCodec="mp2" />
                <Matches container="mpegts" aCodec="aac" />
                <Matches container="mpegts" aCodec="mp3" />
                <Matches container="mpegts" aCodec="dca" />
                <Matches container="mpegts" aCodec="lpcm" />
                <Matches container="mpeg" aCodec="dca" />
             </Video>