From nobody@FreeBSD.org  Sat Jan 25 12:25:59 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id DA0B3599
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Jan 2014 12:25:59 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id ABC2F1D50
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Jan 2014 12:25:59 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0PCPwNa052403
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Jan 2014 12:25:58 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0PCPwJL052386;
	Sat, 25 Jan 2014 12:25:58 GMT
	(envelope-from nobody)
Message-Id: <201401251225.s0PCPwJL052386@oldred.freebsd.org>
Date: Sat, 25 Jan 2014 12:25:58 GMT
From: "Marko Cupa&#263;" <marko.cupac@mimar.rs>
To: freebsd-gnats-submit@FreeBSD.org
Subject: vlc stutters when playing mkv
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186093
>Category:       ports
>Synopsis:       multimedia/vlc stutters when playing mkv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 25 12:30:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Thu May 15 03:20:00 UTC 2014
>Originator:     Marko Cupa&#263;
>Release:        10-RELEASE
>Organization:
Mimar
>Environment:
FreeBSD kaa.mimar.rs 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
mkv playback is choppy, here's console output:

VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
[0x802090150] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
No accelerated IMDCT transform found
[0x8114f1450] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  331.20  Wed Oct 30 17:22:59 PDT 2013 for hardware decoding.
[0x8114f1450] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  331.20  Wed Oct 30 17:22:59 PDT 2013 for hardware decoding.
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x820c443d0] main vout display error: Failed to resize display
[0x810c35070] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1000 ms)
[0x810c35070] main input error: ES_OUT_RESET_PCR called
[h264 @ 0x811454f20] reference picture missing during reorder
[h264 @ 0x811454f20] Missing reference picture, default is 4
[h264 @ 0x811454f20] reference picture missing during reorder
[h264 @ 0x811454f20] Missing reference picture, default is 4
[h264 @ 0x811454f20] reference picture missing during reorder
[h264 @ 0x811454f20] Missing reference picture, default is 4
[h264 @ 0x811454f20] reference picture missing during reorder
[h264 @ 0x811454f20] Missing reference picture, default is 4
[h264 @ 0x811454020] mmco: unref short failure
[h264 @ 0x811454020] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[0x810c35070] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1197 ms)
[0x810c35070] main input error: ES_OUT_RESET_PCR called
[h264 @ 0x811454a20] mmco: unref short failure
[h264 @ 0x811454a20] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0x811455420] reference picture missing during reorder
[h264 @ 0x811455420] Missing reference picture, default is 65556
..
>How-To-Repeat:
Play mkv file in vlc
>Fix:


>Release-Note:
>Audit-Trail:

From: Anton Sayetsky <vsjcfm@gmail.com>
To: "Marko Cupa&#263," <marko.cupac@mimar.rs>, bug-followup@freebsd.org
Cc:  
Subject: Re: misc/186093: vlc stutters when playing mkv
Date: Sat, 25 Jan 2014 14:46:42 +0200

 See also ports/185076. Maybe you experiencing similar problems.
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jan 26 00:10:17 UTC 2014 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186093 
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jan 26 00:10:36 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186093 

From: Juergen Lock <nox@jelal.kn-bremen.de>
To: bug-followup@freebsd.org
Cc: marko.cupac@mimar.rs
Subject: Re: ports/186093: multimedia/vlc stutters when playing mkv
Date: Fri, 25 Apr 2014 22:10:28 +0200

 This might be the same bug as this upstream one:
 
 	https://trac.videolan.org/vlc/ticket/10422
 
 There seems to be no solution yet tho...

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/186093: commit references a PR
Date: Sun, 27 Apr 2014 18:20:54 +0000 (UTC)

 Author: nox
 Date: Sun Apr 27 18:20:50 2014
 New Revision: 352445
 URL: http://svnweb.freebsd.org/changeset/ports/352445
 QAT: https://qat.redports.org/buildarchive/r352445/
 
 Log:
   - Backport upstream fix for .mkv playback stutter using oss audio.
   - Bump PORTREVISION.
   
   PR:		ports/186093
   Submitted by:	"Marko Cupa&#263;" <marko.cupac@mimar.rs> (PR)
   Obtained from:	http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1622c2c6e0e15a38fef723086ca8bf75a75b46b
 
 Added:
   head/multimedia/vlc/files/patch-c1622c2c6e0e15a38fef723086ca8bf75a75b46b-2.1.4   (contents, props changed)
 Modified:
   head/multimedia/vlc/Makefile
 
 Modified: head/multimedia/vlc/Makefile
 ==============================================================================
 --- head/multimedia/vlc/Makefile	Sun Apr 27 18:17:37 2014	(r352444)
 +++ head/multimedia/vlc/Makefile	Sun Apr 27 18:20:50 2014	(r352445)
 @@ -3,6 +3,7 @@
  
  PORTNAME=	vlc
  DISTVERSION=	2.1.4
 +PORTREVISION=	1
  PORTEPOCH=	4
  CATEGORIES=	multimedia audio ipv6 net www
  MASTER_SITES=	http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/a$//}/ \
 
 Added: head/multimedia/vlc/files/patch-c1622c2c6e0e15a38fef723086ca8bf75a75b46b-2.1.4
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/multimedia/vlc/files/patch-c1622c2c6e0e15a38fef723086ca8bf75a75b46b-2.1.4	Sun Apr 27 18:20:50 2014	(r352445)
 @@ -0,0 +1,37 @@
 +Backported from:
 +
 +	http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1622c2c6e0e15a38fef723086ca8bf75a75b46b
 +
 +--- modules/audio_output/oss.c.orig
 ++++ modules/audio_output/oss.c
 +@@ -37,6 +37,7 @@
 + #else
 + # include <sys/soundcard.h>
 + #endif
 ++#include <errno.h>
 + 
 + #ifndef SNDCTL_DSP_HALT
 + # define SNDCTL_DSP_HALT SNDCTL_DSP_RESET
 +@@ -210,6 +211,22 @@ static int Start (audio_output_t *aout, 
 +     }
 +     aout_FormatPrepare (fmt);
 + 
 ++    /* Select timing */
 ++    unsigned bytes;
 ++    char buf[1024];
 ++
 ++    if (spdif)
 ++        bytes = AOUT_SPDIF_SIZE;
 ++    else
 ++        bytes = fmt->i_rate / (CLOCK_FREQ / AOUT_MIN_PREPARE_TIME)
 ++                * fmt->i_bytes_per_frame;
 ++
 ++    int frag = (AOUT_MAX_ADVANCE_TIME / AOUT_MIN_PREPARE_TIME) << 16
 ++             | (32 - clz32(bytes - 1));
 ++    if (ioctl (fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0)
 ++        msg_Err (aout, "cannot set 0x%08x fragment: %s", frag,
 ++                 strerror_r(errno, buf, sizeof(buf) - 1));
 ++
 +     VolumeSync (aout);
 +     sys->starting = true;
 +     sys->format = *fmt;
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: Christopher Kenna <cjkenna@gmail.com>
To: bug-followup <bug-followup@freebsd.org>, Juergen Lock <nox@jelal.kn-bremen.de>
Cc:  
Subject: Re: ports/186093: multimedia/vlc stutters when playing mkv
Date: Wed, 14 May 2014 20:18:52 -0700

 Hm, even with this new patch I am still seeing the errors at the end
 of this mail. If I disable VLC's audio playback module, then there is
 no stuttering when I play back video what so ever.
 
 Is it possible that there is some other bug? It seems very much
 related to this one.
 
 Console output:
 
 VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
 [0x80204e150] main libvlc: Running vlc with the default interface. Use
 'cvlc' to use vlc without interface.
 [0x81bc36310] mkv demux warning: MKV/Ebml Parser: m_el[mi_level] == NULL
 
 [0x81bc36310] mkv demux warning: MKV/Ebml Parser: Up cannot escape itself
 No accelerated IMDCT transform found
 Fontconfig warning: FcPattern object size does not accept value "0"
 Fontconfig warning: FcPattern object size does not accept value "0"
 Fontconfig warning: FcPattern object size does not accept value "0"
 Fontconfig warning: FcPattern object size does not accept value "0"
 [0x8021f8910] main vout display error: Failed to resize display
 [0x80440e070] main input error: ES_OUT_SET_(GROUP_)PCR  is called too
 late (pts_delay increased to 1000 ms)
 [0x80440e070] main input error: ES_OUT_RESET_PCR called
 [0x81bcf9450] main decoder warning: early picture skipped
 [0x8020be450] main audio output warning: playback too early (-58672):
 down-sampling
 [0x80440e070] main input error: ES_OUT_SET_(GROUP_)PCR  is called too
 late (pts_delay increased to 1013 ms)
 [0x80440e070] main input error: ES_OUT_RESET_PCR called
 [h264 @ 0x81bc51020] mmco: unref short failure
 [0x8020be450] main audio output warning: playback way too early
 (-154798): playing silence
 [0x80440e070] main input error: ES_OUT_SET_(GROUP_)PCR  is called too
 late (pts_delay increased to 1111 ms)
 [0x80440e070] main input error: ES_OUT_RESET_PCR called
 [0x8020be450] main audio output warning: playback way too early
 (-193599): playing silence
 [0x80440e070] main input error: ES_OUT_SET_(GROUP_)PCR  is called too
 late (pts_delay increased to 1123 ms)
 [0x80440e070] main input error: ES_OUT_RESET_PCR called
 [h264 @ 0x81bc51020] mmco: unref short failure
 [0x8020be450] main audio output warning: playback way too early
 (-162746): playing silence
>Unformatted:
