FAQ  •  Register  •  Login

Problem playing some MP4s & MKVs

<<

ElfMagic

Streaming enthusiast

Posts: 28

Joined: Mon Apr 11, 2011 9:03 am

Post Tue Nov 01, 2011 2:16 pm

Problem playing some MP4s & MKVs

This MP4 I can play it perfectly on the PC (Windows 7 Pro SP1) using media players, however when I play it through Serviio 0.6.0.1 to a Panasonic Viera (VT25) using the Viera Renderer profile, a few minutes into the video and it becomes patchy / blotchy and frames will overlay / ghost over each other. It does not happen with all MP4s.


C:\Users\Movies>ffmpeg -i skitrip.mp4
ffmpeg version N-31480-g8bc3a48, Copyright (c) 2000-2011 the FFmpeg developers
built on Jul 14 2011 23:37:53 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 11. 0 / 51. 11. 0
libavcodec 53. 8. 0 / 53. 8. 0
libavformat 53. 6. 0 / 53. 6. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 25. 0 / 2. 25. 0
libswscale 2. 0. 0 / 2. 0. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'skitrip.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2011-04-15 17:54:25
Duration: 01:56:32.56, start: 0.000000, bitrate: 2776 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1264x528 [PAR 5280:5293 DAR 1
60:67], 2399 kb/s, PAR 315:316 DAR 105:44, 23.98 fps, 23.98 tbr, 96k tbn, 47.95
tbc
Metadata:
creation_time : 2011-04-15 17:54:25
Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 373 kb/s
Metadata:
creation_time : 2011-04-15 17:56:14
At least one output file must be specified

C:\Users\Movies>

MediaInfo:
General
Complete name : C:\Users\Movies\skitrip.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.26 GiB
Duration : 1h 56mn
Overall bit rate mode : Variable
Overall bit rate : 2 777 Kbps
Encoded date : UTC 2011-04-15 17:54:25
Tagged date : UTC 2011-04-15 17:54:25

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 6 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 56mn
Bit rate : 2 400 Kbps
Maximum bit rate : 21.7 Mbps
Width : 1 264 pixels
Height : 528 pixels
Display aspect ratio : 2.40:1
Original display aspect ratio : 2.40: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.150
Stream size : 1.95 GiB (86%)
Writing library : x264 core 114 r1913 5fd3dce
Encoding settings : cabac=1 / ref=6 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.20:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=220 / keyint_min=13 / scenecut=40 / intra_refresh=0 / rc_lookahead=45 / rc=2pass / mbtree=1 / bitrate=2400 / ratetol=3.5 / qcomp=0.50 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=24000 / vbv_bufsize=24000 / nal_hrd=none / ip_ratio=1.10 / aq=1:1.00
Encoded date : UTC 2011-04-15 17:54:25
Tagged date : UTC 2011-04-15 17:56:21

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1h 56mn
Bit rate mode : Variable
Bit rate : 374 Kbps
Maximum bit rate : 561 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 : 312 MiB (13%)
Encoded date : UTC 2011-04-15 17:56:14
Tagged date : UTC 2011-04-15 17:56:21
Last edited by ElfMagic on Mon Nov 07, 2011 10:12 am, edited 1 time in total.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Nov 02, 2011 1:01 pm

Re: Problem playing some MP4

Some Pana users have problem with "major_brand : isom" codec, make a search with "isom"
You probably have to re-encode the original.
Topic moved to Panasonic section
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

ElfMagic

Streaming enthusiast

Posts: 28

Joined: Mon Apr 11, 2011 9:03 am

Post Mon Nov 07, 2011 10:10 am

Re: Problem playing some MP4s & MKVs

Thank you for pointing me in this direction. I did read this long post before and tried taking some of the profile variations across without success.

This time around, I tried a minimal and trial and error approach and I got more than I expected. The videos that I'll mention shortly all had streaming issues and now they stream without issue and to the eye, the picture looks fantastic and audio is great.

Before the profile change:
a) The mp4 mentioned in the first post, which when streamed, played smooth but was patchy with ghosting overlays continuously after 10 secs of play, and after the profile change now plays without any issue.
b) I have another mp4 (1080p, mpeg-ts, and 2 audio streams), which when streamed, has perfect picture however would stutter (i.e. for video and audio; play 2 secs, pause 5 secs, play 2 secs, pause 5 secs, etc). After the profile change, it now plays without any issue.
c) I have some MKVs (1080p, AVC, 24bit 6ch DTS), which when streamed, has perfect picture however would stutter far worse than the above mentioned MP4 always prompting on the screen Please Wait. After the profile change, it now plays without any issue.

In my testing, I included the OnlineTranscoding code (from the link you provided) and found it added no benefit to these local videos and so I have removed it.

For the network itself, the PC (Win 7 Pro), connects to a Billion 7800N router using Gigabit. The Viera VT20 connects to the Billion7800N using Wireless N.

For the changes I've made, I do wish for someone's help to understand the implications.

Original Profile:
<Profile id="12" name="Panasonic Viera" extendsProfileId="1">
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<!-- remux DTS/FLAC/LPCM in MKV/MP4 to AC3 -->
<Video targetContainer="mpegts" targetACodec="ac3">
<Matches container="matroska" vCodec="h264" aCodec="dca" />
<Matches container="matroska" vCodec="h264" aCodec="flac" />
<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
<Matches container="mp4" vCodec="h264" aCodec="lpcm"/>
<Matches container="3gp" vCodec="h264" />
</Video>
<!-- Remux all h264 video to MPEG-TS stream -->
<Video targetContainer="mpegts">
<Matches container="avi" vCodec="h264" />
<Matches container="mp4" vCodec="h264" />
<Matches container="matroska" vCodec="h264" />
</Video>
<!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
<Matches container="avi" vCodec="mjpeg" />
<Matches container="avi" vCodec="dvvideo" />
<Matches container="mp4" vCodec="mjpeg" />
<Matches container="asf" />
<Matches container="flv" />
<Matches container="ogg" />
<Matches container="3gp" />
</Video>
<Audio targetContainer="mp3">
<Matches container="mp4" />
<Matches container="flac" />
<Matches container="ogg" />
<Matches container="asf" />
</Audio>
</Transcoding>
</Profile>



New Profile:
<Profile id="12" name="Panasonic Viera" extendsProfileId="1">
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<!-- remux DTS/FLAC/LPCM in MKV/MP4 to AC3 -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="192">
<Matches container="matroska" vCodec="h264" aCodec="dca" />
<Matches container="matroska" vCodec="h264" aCodec="flac" />
<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
<Matches container="mp4" />
<Matches container="3gp" vCodec="h264" />
</Video>
<!-- Remux all h264 video to MPEG-TS stream -->
<Video targetContainer="mpegts">
<Matches container="avi" vCodec="h264" />
<Matches container="mp4" vCodec="h264" />
<Matches container="matroska" vCodec="h264" />
</Video>
<!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
<Matches container="avi" vCodec="mjpeg" />
<Matches container="avi" vCodec="dvvideo" />
<Matches container="mp4" vCodec="mjpeg" />
<Matches container="asf" />
<Matches container="flv" />
<Matches container="ogg" />
<Matches container="3gp" />
</Video>
<Audio targetContainer="mp3">
<Matches container="mp4" />
<Matches container="flac" />
<Matches container="ogg" />
<Matches container="asf" />
</Audio>
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="mp4"/>
</Video>
<Audio targetContainer="lpcm">
<Matches container="flv"/>
</Audio>
</OnlineTranscoding>
</Profile>

Return to Panasonic

Who is online

Users browsing this forum: No registered users and 22 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.