Page 1 of 1

mp4 H264 transcoding...

PostPosted: Sun Jun 09, 2013 9:43 pm
by janagn
Hi all,

I landed yesterday to this great product and I think that my quest for an all around DLNA server has come to an end. The fact that you can provide profile per renderer is THE ulimate feature. Well done :) Now to my question... My Samsung B series seems to be detected and propertly handled by serviio. Howeve there is a group of video files that are giving me "unsupported codec" on screen. Doing ffmpeg -i on the file name I take:

Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2012-12-21 00:49:42
Duration: 02:18:34.93, start: 0.000000, bitrate: 2305 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p, 720x304
[SAR 1:1 DAR 45:19], 1991 kb/s, 23.98 fps, 23.98 tbr, 96k tbn, 47.95 tbc
Metadata:
creation_time : 2012-12-21 00:49:42
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 310 k
b/s
Metadata:
creation_time : 2012-12-21 00:50:34
handler_name : GPAC ISO Audio Handler

I guess I need some kind of transcoding to add to my samsung B profile. Any help will be greatly appreciated.

Kind Regards
Yiannis

Re: mp4 H264 transcoding...

PostPosted: Mon Jun 10, 2013 9:47 am
by zip
can you post MediaInfo result for the file?

Re: mp4 H264 transcoding...

PostPosted: Tue Jun 11, 2013 9:00 pm
by janagn
Gladly:

Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.23 GiB
Duration : 2h 18mn
Overall bit rate mode : Variable
Overall bit rate : 2 306 Kbps
Encoded date : UTC 2012-12-21 00:49:42
Tagged date : UTC 2012-12-21 00:49:42

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2h 18mn
Bit rate mode : Variable
Bit rate : 1 992 Kbps
Maximum bit rate : 40.0 Mbps
Width : 720 pixels
Height : 304 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.380
Stream size : 1.93 GiB (86%)
Writing library : x264 core 129 r2230 1cffe9f
Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=18 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=23 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=23 / rc=2pass / mbtree=1 / bitrate=1992 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2012-12-21 00:49:42
Tagged date : UTC 2012-12-21 00:50:38
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2h 18mn
Bit rate mode : Variable
Bit rate : 310 Kbps
Maximum bit rate : 382 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 : 307 MiB (13%)
Language : English
Encoded date : UTC 2012-12-21 00:50:34
Tagged date : UTC 2012-12-21 00:50:38

Re: mp4 H264 transcoding...

PostPosted: Wed Jun 12, 2013 7:33 am
by Illico
Seems good...only 720x304 resolution not sure it is standard.

Re: mp4 H264 transcoding...

PostPosted: Wed Jun 12, 2013 9:16 pm
by janagn
It would be quite intereting if you could point out an alteration to the profile so that I can force, even for a test, some kind of transcoding for this case. Not as permanent fix, since I realise that the problem is not obvious. at least as an exprimentation. If the reolution is "strange", could we bring it to something more acceptable?

EDIT: The particular files are not playable on B series Samsungs. On my C series and on my BD plays fine...

Thank you in advance
Yiannis

Re: mp4 H264 transcoding...

PostPosted: Sat Sep 14, 2013 5:34 pm
by skorp_jon
I have the same problem on my Samsung B series. I don't know if i can say it but its movies from YIFY.

If somebody had some solution please let me know.

thank you

Re: mp4 H264 transcoding...

PostPosted: Mon Sep 16, 2013 11:41 pm
by DenyAll
@skorp_jon: these files use a high level of compression and low bit rate to achieve the small file size and might not be supported by your device, so the video will need to be transcoded. You can do this by adding something along the lines of:

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384">
   <Matches container="mp4" vCodec="h264" profile="high" />
</Video>
to your profile. The files I have seen are High@L4.0 and above, so you can also include levelGreaterThan="3.2" in the matches command; and if you need to support MKV, change the "MP4" to "*".

Re: mp4 H264 transcoding...

PostPosted: Fri Nov 01, 2013 8:50 pm
by Gimbal
I had the same problem, and your code worked. (well I had to change "MP4" to "mp4").
Thanks!!!