Page 1 of 1

Some MP4's on LN46B750

PostPosted: Tue Apr 26, 2011 5:14 am
by swandive76
I am having some troubles playing certain files on my Samsung LN46B750. They are mp4 format but I cant get them to work. I do have other mp4's that work in my library but dont know enough about this container to understand what the hicup is. Im hoping you can shed some light for me.

I did find that changing the Profile in Serviio to the Samsung A series did make these files playable but doing so I lost the ability to get any avi's that i have to play. Im not ready to dump all my avi's for mp4 at this time.

Here is the results of running the ffmpeg.exe command

C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i "F:\TV Share\Movies\Dad\Borne\b
ourne.mp4"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 10 2011 21:46:22 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-shared --disable-ffp
lay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --e
nable-runtime-cpudetect --enable-w32threads --target-os=mingw32 --cross-prefix=i
686-mingw32-
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\TV Share\Movies\Dad\Borne\bourne.mp4
':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2011-01-06 02:02:32
Duration: 01:58:17.49, start: 0.000000, bitrate: 2725 kb/s
Stream #0.0(und): Video: h264, yuv420p, 1280x544 [PAR 1:1 DAR 40:17], 2324 k
b/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
Metadata:
creation_time : 2011-01-05 15:19:47
Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16, 397 kb/s
Metadata:
creation_time : 2011-01-06 02:05:00
At least one output file must be specified

C:\Program Files (x86)\Serviio\lib>

I am running Serviio on Win 7 (64bit)

Please let me know anything you can.

Thanks in advance

Swandive

Re: Some MP4's on LN46B750

PostPosted: Tue Apr 26, 2011 7:28 am
by Cerberus
can you give us mediainfo on this file i have a feeling the profile level is to high.

Re: Some MP4's on LN46B750

PostPosted: Tue Apr 26, 2011 2:59 pm
by swandive76
Is there a good tool you would recommend for getting the media info? It is a movie in the HDLite format.

Re: Some MP4's on LN46B750

PostPosted: Tue Apr 26, 2011 3:01 pm
by Illico
swandive76 wrote:Is there a good tool you would recommend for getting the media info?

Lol.
MediaInfo

Re: Some MP4's on LN46B750

PostPosted: Tue Apr 26, 2011 3:33 pm
by swandive76
duh! I feel dumb now.

Ill post the output of this later this evening

Thanks!

Re: Some MP4's on LN46B750

PostPosted: Tue Apr 26, 2011 4:57 pm
by Cerberus
swandive76 wrote:duh! I feel dumb now.

Ill post the output of this later this evening

Thanks!


:D sorry i should add that link to my signiture but havent got around to it yet :D


EDIT - link to media Info is now in my signiture for future reference. :)

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 1:41 am
by swandive76
Hows this? Let me know if I can provide anything else. Since I now have Media Info installed and know what it is!


  Code:
General
Complete name                    : F:\TV Share\Movies\Dad\Borne\bourne.mp4
Format                           : MPEG-4
Format profile                   : Base Media
Codec ID                         : isom
File size                        : 2.25 GiB
Duration                         : 1h 58mn
Overall bit rate                 : 2 726 Kbps
Encoded date                     : UTC 2011-01-06 02:02:32
Tagged date                      : UTC 2011-01-06 02:02:32

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 8 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 1h 58mn
Bit rate mode                    : Variable
Bit rate                         : 2 326 Kbps
Maximum bit rate                 : 15.4 Mbps
Width                            : 1 280 pixels
Height                           : 544 pixels
Display aspect ratio             : 2.35:1
Frame rate mode                  : Constant
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.139
Stream size                      : 1.92 GiB (85%)
Title                            : HDLiTE
Writing library                  : x264 core 110 r1820 fdcf2ae
Encoding settings                : cabac=1 / ref=8 / deblock=1:1:-3 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=1.01:0.01 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=6 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=2 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=2326 / ratetol=1.5 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=30000 / ip_ratio=1.40 / aq=2:0.90 / nal_hrd=none
Encoded date                     : UTC 2011-01-05 15:19:47
Tagged date                      : UTC 2011-01-06 02:05:38

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 1h 58mn
Bit rate mode                    : Variable
Bit rate                         : 397 Kbps
Maximum bit rate                 : 515 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Compression mode                 : Lossy
Stream size                      : 336 MiB (15%)
Language                         : English
Encoded date                     : UTC 2011-01-06 02:05:00
Tagged date                      : UTC 2011-01-06 02:05:38

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 2:27 am
by Cerberus
File looks good to me, kinda big in size ut that shouldnt matter.

ZIP - any ideas ?

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 7:15 am
by Illico
Cerberus wrote:...any ideas ?

I think this is due to x264 encoding options used to encode this video, I mean "b_pyramid=2" is not supported, "b_pyramid=1" could be better.
But I must confess that x264 encoding options are quite obscure...
With search : search.php?st=0&sk=t&sd=d&sr=posts&keywords=b_pyramid%3D2

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 9:01 am
by zip
Also, guys, for your info, in 0.6 I'm detecting profile differently. The value stored in the H264 header (as returned by MediaInfo) is not always 100% accurate - you can store whatever value there. Profile should be detected using ref_frame number with this formula (http://en.wikipedia.org/wiki/H.264/MPEG ... _buffering)

(width*height*ref_frames)/256 ... the result defines profile using the table in the link above.

For example this file: (1280 * 544 * 8) / 256 = 21760 .. so it actually is level 4.0 file

More on this also here: https://bitbucket.org/xnejp03/serviio/i ... de-profile

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 9:15 am
by Illico
zip wrote:Also, guys, for your info, in 0.6 I'm detecting profile differently. The value stored in the H264 header (as returned by MediaInfo) is not always 100% accurate - you can store whatever value there.

Yes, in fact, I suppose this is what is done by tools such as TsMuxer or H264LevelEditor to change the level.
Again, I prefer your method.
The profile level depends on device buffering capabilities.

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 9:35 am
by zip
Will have to see whether it works across all devices, as for some it's enough to change the header value and they (usually) play. So we need to make sure a file with profile 5.0 in header but only 4 ref frames actually plays without transcoding (keep in mind for 0.6 testing ;-) )

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 3:14 pm
by swandive76
So sounds like a problem with how this file was encoded...Should I re-encode? I dont want to loose any quality.

As I mentioned It works when I select the Samsung A profile in Serviio. but then none of my avi files work. Is there a way I can combine the 2 profiles (A and B) to make everything work?

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 3:24 pm
by Illico
swandive76 wrote:As I mentioned It works when I select the Samsung A profile in Serviio. but then none of my avi files work.

With Samsung A profile selected, mp4(mov) files were transcoded into mpegts/mpeg2video/ac3, format supported by the TV.
swandive76 wrote:Is there a way I can combine the 2 profiles (A and B) to make everything work?

yes but all mp4 with h264 video will be transcoded

add <Matches container="mp4" vCodec="h264" /> into following section of the "Samsung TV (B-series)" profile
  Code:
<Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">
    <Matches container="asf" vCodec="wmv2" />
    <Matches container="matroska" vCodec="mpeg2video" />
    <Matches container="avi" vCodec="mjpeg" />
    <Matches container="flv" />
    <Matches container="mp4" vCodec="h264" />
</Video>

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 3:39 pm
by swandive76
Thanks Illico

From the sounds of it 0.6 will handle this a bit better? Am I reading that correctly?

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 3:46 pm
by Illico
swandive76 wrote:From the sounds of it 0.6 will handle this a bit better? Am I reading that correctly?

Yes, we hope, keep in mind, we will test this in 0.6

Re: Some MP4's on LN46B750

PostPosted: Wed Apr 27, 2011 4:37 pm
by zip
swandive76 wrote:From the sounds of it 0.6 will handle this a bit better? Am I reading that correctly?

Probably not in the case of this file as this file is a supported profile. It might be some other setting in the encoder, e.g. the one Illico pointed out - in which case you'll have to transcode.