Page 1 of 2

Weird Pause in Sound while playback

PostPosted: Sat May 21, 2011 9:43 am
by PJusa
Its a bit hard to describe and probably a samsung issue and not serviio but i will ask anyway:

I have noticed that for nearly all shows i stream with serviio at some point(s) the sound will pause for about a second to resume normally and in sync. all those files play fine on the pc without pause. does anyone have an idea why this would be happening to all files/formats (avi, mkv, mp4) with all sorts of codecs used?

the serviio log indicates no errors so i assume this might a samsung issue.

tv used LED 5 Series D Model, sound connected through optical out to samsung home theatre system (setting dolby prologic if stereo, others (dolby 5.1, DTS etc) should be passed through like that i guess - at least that is what samsung support told me).

i hope someone has an idea on how to avoid those - annoying - skips / pauses.

thanks for reading!

Re: Weird Pause in Sound while playback

PostPosted: Sat May 21, 2011 3:28 pm
by warpspeed
I get this too with transcoded DTS audio. Particularly at the start of a file. It cuts in and out a bit. Sometimes it gets out of sync and I have to fast forward or rewind a weeny bit to get it in sync again.

Re: Weird Pause in Sound while playback

PostPosted: Sun May 22, 2011 2:44 am
by PJusa
is yours isolated to DTS alone - what model does this occur with? it seems i get this with MP3 as well. since the connection is direct cable over a GB-switch and it even occurs on regular 700MB rips i am pretty sure its not bandwidth or anything like that. after the pause all resumes to normal - sound is not even out of sync.

did you find a solution?

I did notice that while auto-update and samsung malaysia (where i stay) have not yet posted a firmware update samsung germany has an update for my TV from may. wondering if i could just update the firmware from a different geo-location. does anyone know?

Re: Weird Pause in Sound while playback

PostPosted: Sun May 22, 2011 7:26 am
by Cerberus
FFmpeg has a problem with it DTS support and this is why you are having issues, patters has more information on this problem and he has submitted a suppot ticket to ffmpeg's developer to hopefully get this fixed.

Re: Weird Pause in Sound while playback

PostPosted: Sun May 22, 2011 3:55 pm
by zip
Samsung C/D profile does not transcode DTS as the TV supports it natively. Are you on wired or wireless network?

Re: Weird Pause in Sound while playback

PostPosted: Sun May 22, 2011 9:47 pm
by SpeedyAlmeida
I am with the same problem. The video runs fine ( 1080p ) but the sound has hiccups without loose the sync. Both movies i tried have DTS.
And to answer your question, i am on wired 100mb/s.

Re: Weird Pause in Sound while playback

PostPosted: Mon May 23, 2011 7:03 am
by PJusa
i am also wired but the problem is not isolated to DTS - it seems to apply to pretty much any audio track (MP3, DTS, etc.)

Re: Weird Pause in Sound while playback

PostPosted: Tue Sep 27, 2011 9:59 am
by erd
I have a seen the same issue on my Samsung 7 series smart TV. I always thought it was the chapter breaks in the movie. I noticed that the issue was worse after using certain video ripping tools (ripping DVD image to .mkv). Video converted using either Handbrake or MPEG streamclip (on MAC) seemed ok.

Re: Weird Pause in Sound while playback

PostPosted: Sat Oct 01, 2011 10:25 am
by mrrouge
Hello, same problem here.
Sound stops for half a second randomly, video is perfect and in sync.

Re: Weird Pause in Sound while playback

PostPosted: Wed Oct 05, 2011 8:48 pm
by iSparK
I too am having this same issue, however not all my rip's have this issue...

Re: Weird Pause in Sound while playback

PostPosted: Thu Oct 06, 2011 8:54 am
by iSparK
I've done some research on this and found that it's files that use DTS Audio, there is lots of talk about issue with this but no fix...

The work around would be to REMUX your movie using something like MKVtoolnix, this takes around 10mins at the most!

Re: Weird Pause in Sound while playback

PostPosted: Mon Oct 24, 2011 9:02 am
by mrrouge
It seems to me that the problem is related to 5.1 channel audio. All the 2.0 content streams fine, only DTS and AC3 have the same sound issues: the (in)famous weird pause in sound while playback!.

Maybe a wrong/old ffmpeg version/configuration?

This is mine...
  Code:
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/opt/cross-project/arm/marvell/arm-none-linux-gnueabi/libc/marvell-f/usr --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --disable-static --enable-shared --arch=arm --disable-optimizations
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Aug  4 2011 02:15:48, gcc: 4.2.1

Re: Weird Pause in Sound while playback

PostPosted: Wed Nov 02, 2011 5:50 pm
by sunnyday
PJusa wrote:I have noticed that for nearly all shows i stream with serviio at some point(s) the sound will pause for about a second to resume normally and in sync.


Similar problems appear on my TV (see footer for model).

So far, I have come to the following conclutions:
1) Problem occurs only upon streaming mkv files.
2) Problem may occur upon several audio formats (AC3, DTS, MP3) both 2-channel and 6-channel audio.
3) Problem usually don't appear when video average bitrate is < 1 mbps
4) If i remux the same streams into MPEG TS container using tsMuxeR (I know, abandonware :cry: ) both audio and video will stream smoothly.
5) When I disable feature "Edge Enhancement", the problem seem to diminish a bit but far from acceptable.

Of course I can configure Serviio to always rewrap mkv into MPEG TS, but then FF/REW and position seek will be disabled.
My guess is that firmware for Samsung UExxD500x (MStar CPU) has som kind of flaw. Perhaps it is wasting CPU cycles when interpreting matroska container.
I have filed this problem at two different Samsung support centers, but so far they have not understand the problem.

Re: Weird Pause in Sound while playback

PostPosted: Mon Nov 07, 2011 10:02 pm
by mrrouge
Of course I can configure Serviio to always rewrap mkv into MPEG TS, but then FF/REW and position seek will be disabled.


Can you tell me how to do that?
I mean how to remux all the mkv's into m2ts?
that container should solve some problem with Samsung TV

Re: Weird Pause in Sound while playback

PostPosted: Tue Nov 08, 2011 8:15 am
by sunnyday
This is how I have configured Serviio to always rewrap mkv to MPEG TS: (fixing audio problems on UE46D5005)

profiles.xml:

<Profile id="7" name="Samsung TV / player (C/D-series)" extendsProfileId="2">

<snip... (general profile elements omitted)...>

<Transcoding>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
<Matches container="avi" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="avi" vCodec="h264" profile="main" levelGreaterThan="4.2" />
<Matches container="matroska" vCodec="h264" /> <!-- attributes profile and levelGreaterThan are blanked out -->
<Matches container="matroska" vCodec="h264" /> <!-- attributes profile and levelGreaterThan are blanked out -->
<Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.2" />
<Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />

<snip... (other transcoding rules omitted)...>

</Transcoding>
</Profile>


Actually I had to make a copy of Samsung C/D profile and rename it to Samsung D, leaving C/D profile unchanged. My C6500 BluRay player still uses original C/D profile without audio problems.

Re: Weird Pause in Sound while playback

PostPosted: Tue Nov 08, 2011 8:46 am
by mrrouge
I'll try that.

Yesterday I tried to use the <Transcoding> part from the PS3 profile into Samsiung C/D.
Some mkv now are perfect, audio problem solved, but with some mkv's the problem is worse than before.

Also tried the TV's "Game mode" but still have to investigate any effect. It should disable all the unnecessary cpu load on the tv.

One question: how do you check that the file is actually rewrapped when the problem seems not solved?

Re: Weird Pause in Sound while playback

PostPosted: Tue Nov 08, 2011 9:59 am
by sunnyday
Check for the presence of a file C:\temp\Serviio\transcoded-temp-xxx.stf (xxx may differ from time to time).

Date and time of that file will be from the moment you start viewing and the file will stay in that folder until next time Serviio needs to transcode/rewrap.

Re: Weird Pause in Sound while playback

PostPosted: Tue Nov 08, 2011 10:36 am
by mrrouge
Yes, found a 2,5GB file :-) thanks
However during transcoding no service (ffmpeg?) was consuming cpu. possible?

Re: Weird Pause in Sound while playback

PostPosted: Tue Nov 08, 2011 7:47 pm
by mrrouge
Oh- of course, the file is created at the beginning, so after first minutes cpu is not used.

This file still has pause sound problems:

  Code:
Writing application              : mkvmerge v5.0.1 ('Es ist Sommer') built on Oct  9 2011 11:55:43
Writing library                  : libebml v1.2.2 + libmatroska v1.3.0
Cover                            : Yes / Yes / Yes / Yes / Yes

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 10 frames
Muxing mode                      : Header stripping
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 1h 33mn
Bit rate                         : 3 695 Kbps
Width                            : 1 280 pixels
Height                           : 536 pixels
Display aspect ratio             : 2.35:1
Frame rate                       : 25.000 fps
Original frame rate              : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.215
Stream size                      : 2.42 GiB (89%)
Language                         : English

Audio
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Muxing mode                      : Header stripping
Codec ID                         : A_AC3
Duration                         : 1h 33mn
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Compression mode                 : Lossy
Video delay                      : 16ms
Stream size                      : 258 MiB (9%)


this file was not playing fine before transcoding, but now the sound pause problem is much worse!

Re: Weird Pause in Sound while playback

PostPosted: Tue Nov 08, 2011 9:02 pm
by Illico
Muxing mode : Header stripping


Header compression not supported: viewtopic.php?f=6&t=1132