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
See also ports/185076. Maybe you experiencing similar problems.
Responsible Changed From-To: freebsd-bugs->freebsd-ports-bugs ports PR.
Responsible Changed From-To: freebsd-ports-bugs->freebsd-multimedia Over to maintainer (via the GNATS Auto Assign Tool)
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...
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ć" <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"
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
back to pool
I've been experiencing this issue for most of the year. Can confirm that disabling audio in VLC fixes video playback problems. Does anyone have any ideas on how to fix the bug?
I don't have a fix but I'll add info how to reproduce - it still seems broken even after the fix for bug 193807 . :( For me, out of the test zip here: http://www.matroska.org/downloads/test_w1.html test3.mkv test5.mkv test7.mkv all stutter at least once. And from here: http://95.87.207.56/Music,%20Movies,%20Videos,%20Games%20and%20more.../Razni%20klip4eta/TV%20Tests/h264_720p_hp_5.1_6mbps_ac3_planet.mp4 if you remux that file back to mkv using mkvmerge it stutters multiple times: mkvmerge -o h264_720p_hp_5.1_6mbps_ac3_planet-mkvmerge.mkv h264_720p_hp_5.1_6mbps_ac3_planet.mp4 (that orgiginally was on another site as mkv but it's no longer there; and for some reason remuxing it using avidemux instead of mkvmerge doesn't show the problem.)
Additional note: Using jack seems to help (need to build vlc with JACK knob on and of course jackd must be running for example via qjackctl, and vlc needs to be restarted after switching audio from oss to jack) - only test7.mkv from comment 9 now still stutters once at the beginning.
Happening here for a while (while I was on 10.1 too). Can someone up the importance of this? $ freebsd-version -ku; uname -apKU 11.0-CURRENT 11.0-CURRENT FreeBSD z600 11.0-CURRENT FreeBSD 11.0-CURRENT #28: Wed Sep 30 19:09:44 CDT 2015 root@z600:/usr/obj/usr/src/sys/MYKERNEL amd64 amd64 1100079 1100079 $ pkg info vlc vlc-2.2.1_5,4 Name : vlc Version : 2.2.1_5,4 Installed on : Mon Sep 7 15:34:54 CDT 2015 Origin : multimedia/vlc Architecture : freebsd:11:x86:64 Prefix : /usr/local Categories : ipv6 multimedia net audio www Licenses : GPLv2 Maintainer : multimedia@FreeBSD.org WWW : http://www.videolan.org/ Comment : Qt based multimedia player and streaming server Options : A52 : on AALIB : off ASS : off AVAHI : on CACA : off DBUS : on DCA : on DIRAC : off DOCS : on DVDNAV : on DVDREAD : on FAAD : on FLAC : on FLUID : off FRIBIDI : off GME : off GNOMEVFS2 : off GNUTLS : on GOOM : off HTTPD : on JACK : off KATE : off LIBBLURAY : off LIBRSVG2 : off LIBSSH2 : off LIRC : off LIVEMEDIA : on LUA : on MAD : on MATROSKA : on MODPLUG : off MPEG2 : on MTP : off MUSEPACK : off NCURSES : off NLS : on NOTIFY : off OGG : on OPTIMIZED_CFLAGS: on OPUS : on PNG : on PULSEAUDIO : off QT4 : off QT5 : on REALRTSP : off RUNROOT : off SAMPLERATE : on SCHROEDINGER : off SDL : off SHOUTCAST : off SKINS : off SMB : off SPEEX : on STREAM : on TAGLIB : on THEORA : on TWOLAME : on UPNP : off V4L : on VAAPI : off VCD : on VDPAU : off VORBIS : on X11 : on X264 : off X265 : off ZVBI : off Shared Libs required: libavahi-client.so.3 libmad.so.0 libxcb-xfixes.so.0 libjpeg.so.8 libopus.so.0 libfreetype.so.6 libfaad.so.2 libvorbisenc.so.2 libFLAC.so.8 libidn.so.11 libSM.so.6 libvpx.so.2 libspeex.so.1 libgpg-error.so.0 libtheoradec.so.1 libxcb-composite.so.0 libmatroska.so.6 libspeexdsp.so.1 libogg.so.0 libQt5X11Extras.so.5 libEGL.so.1 libcddb.so.2 libdvdread.so.4 libswscale.so.3 libgroupsock.so.1 libBasicUsageEnvironment.so.0 libintl.so.8 libavformat.so.56 libdvbpsi.so.9 libliveMedia.so.16 libpostproc.so.53 libgnutls.so.28 libQt5Gui.so.5 libtheoraenc.so.1 libxcb-shape.so.0 libICE.so.6 libxml2.so.2 libxcb-shm.so.0 libdca.so.0 libgcrypt.so.20 libQt5Widgets.so.5 liba52.so.0 libUsageEnvironment.so.1 libtwolame.so.0 libxcb-render.so.0 libxcb.so.1 libsamplerate.so.0 libavahi-common.so.3 libX11.so.6 libavcodec.so.56 libmpeg2.so.0 libQt5Core.so.5 libdbus-1.so.3 liblua-5.2.so libebml.so.4 libpng16.so.16 libxcb-xv.so.0 libvorbis.so.0 libfontconfig.so.1 libtag.so.1 libxcb-randr.so.0 libdvdnav.so.4 libxcb-keysyms.so.1 libavutil.so.54 Shared Libs provided: librtp_plugin.so libcompressor_plugin.so libsubsdelay_plugin.so libmosaic_plugin.so libyuy2_i422_plugin.so libg711_plugin.so libplaylist_plugin.so libvod_rtsp_plugin.so libamem_plugin.so libvobsub_plugin.so libpacketizer_mlp_plugin.so libhotkeys_plugin.so libxwd_plugin.so libvmem_plugin.so libi420_yuy2_plugin.so libhqdn3d_plugin.so libdtstospdif_plugin.so libadummy_plugin.so libaiff_plugin.so libxa_plugin.so libavformat_plugin.so libsmooth_plugin.so libripple_plugin.so libdvbsub_plugin.so libstereo_widen_plugin.so libstats_plugin.so libmux_ogg_plugin.so libmotion_plugin.so libstream_out_dummy_plugin.so libspatializer_plugin.so libaccess_oss_plugin.so libpacketizer_mpegvideo_plugin.so libdvdread_plugin.so libts_plugin.so libstream_out_gather_plugin.so libcroppadd_plugin.so libdiracsys_plugin.so libqt4_plugin.so libh264_plugin.so libstream_out_setid_plugin.so libstream_out_bridge_plugin.so libscaletempo_plugin.so libsvcdsub_plugin.so libmux_ps_plugin.so librawvideo_plugin.so libdash_plugin.so libpacketizer_dirac_plugin.so libinvert_plugin.so libmarq_plugin.so liba52_plugin.so libstream_out_duplicate_plugin.so libpacketizer_mpeg4video_plugin.so libmotionblur_plugin.so libdtstofloat32_plugin.so libcdda_plugin.so libi422_i420_plugin.so libmono_plugin.so libchorus_flanger_plugin.so libcolorthres_plugin.so libmjpeg_plugin.so libfilesystem_plugin.so libxml_plugin.so libnormvol_plugin.so libtwolame_plugin.so libpva_plugin.so libmpgatofixed32_plugin.so libsap_plugin.so libtimecode_plugin.so libkaraoke_plugin.so libball_plugin.so libyuy2_i420_plugin.so libwall_plugin.so libsamplerate_plugin.so libtheora_plugin.so librawdv_plugin.so libdvdnav_plugin.so libstream_out_display_plugin.so libuleaddvaudio_plugin.so libvpx_plugin.so libugly_resampler_plugin.so libyuvp_plugin.so libsdp_plugin.so libgestures_plugin.so libanaglyph_plugin.so libmpgv_plugin.so libasf_plugin.so libxcb_glx_plugin.so libgaussianblur_plugin.so libfingerprinter_plugin.so liblibmpeg2_plugin.so libflac_plugin.so libaraw_plugin.so liba52tospdif_plugin.so liblpcm_plugin.so libpanoramix_plugin.so libdemux_stl_plugin.so libstream_out_es_plugin.so libexport_plugin.so libegl_x11_plugin.so libxdg_screensaver_plugin.so libpuzzle_plugin.so libopus_plugin.so libaudio_format_plugin.so libps_plugin.so libty_plugin.so libxcb_x11_plugin.so libmp4_plugin.so libstream_out_smem_plugin.so libspudec_plugin.so libpacketizer_vc1_plugin.so libstream_out_description_plugin.so libsepia_plugin.so libadjust_plugin.so libgradfun_plugin.so libnsc_plugin.so libpacketizer_h264_plugin.so libsubtitle_plugin.so libmotiondetect_plugin.so libmux_mpjpeg_plugin.so libmux_asf_plugin.so libextract_plugin.so libparam_eq_plugin.so libcaf_plugin.so libcc_plugin.so libattachment_plugin.so libfreetype_plugin.so libspeex_resampler_plugin.so librss_plugin.so liboldmovie_plugin.so libavi_plugin.so libtaglib_plugin.so libdemux_cdg_plugin.so libantiflicker_plugin.so liboldrc_plugin.so libfolder_plugin.so libspeex_plugin.so libpsychedelic_plugin.so libdynamicoverlay_plugin.so libzip_plugin.so libaccess_mms_plugin.so libwave_plugin.so libfloat_mixer_plugin.so libposterize_plugin.so libdummy_plugin.so libmirror_plugin.so libwav_plugin.so libpacketizer_copy_plugin.so libimem_plugin.so liblua_plugin.so libmux_dummy_plugin.so libdecomp_plugin.so librecord_plugin.so libgrain_plugin.so libaddonsfsstorage_plugin.so libstream_out_raop_plugin.so libstream_out_record_plugin.so libmux_mp4_plugin.so libxcb_apps_plugin.so libmpeg_audio_plugin.so libinteger_mixer_plugin.so libidummy_plugin.so libscale_plugin.so librv32_plugin.so libgl_plugin.so libnsv_plugin.so libequalizer_plugin.so libhevc_plugin.so liblogo_plugin.so libxcb_hotkeys_plugin.so libhttplive_plugin.so libpostproc_plugin.so libpacketizer_flac_plugin.so libdts_plugin.so libvc1_plugin.so libmux_avi_plugin.so libdemuxdump_plugin.so libaudiobargraph_v_plugin.so libblendbench_plugin.so libvisual_plugin.so libsimple_channel_mixer_plugin.so libtransform_plugin.so libscte27_plugin.so libbluescreen_plugin.so libstream_out_autodel_plugin.so libnetsync_plugin.so libvlccore.so.8 libremoteosd_plugin.so libstream_out_delay_plugin.so libxcb_screen_plugin.so libmux_wav_plugin.so libavcodec_plugin.so libcanvas_plugin.so libaccess_output_livehttp_plugin.so libreal_plugin.so libremap_plugin.so libvoc_plugin.so libsmf_plugin.so libpacketizer_avparser_plugin.so libstream_out_transcode_plugin.so liboss_plugin.so libblend_plugin.so libaudiobargraph_a_plugin.so libaccess_output_http_plugin.so libadpcm_plugin.so libaccess_output_file_plugin.so libstream_out_stats_plugin.so libyuv_plugin.so libvdummy_plugin.so libheadphone_channel_mixer_plugin.so libclone_plugin.so libafile_plugin.so libaddonsvorepository_plugin.so libt140_plugin.so librar_plugin.so libswscale_plugin.so liberase_plugin.so liblive555_plugin.so libstl_plugin.so libaes3_plugin.so librawaud_plugin.so libglx_plugin.so libvlc.so.5 libgnutls_plugin.so libcvdsub_plugin.so liblogger_plugin.so libaccess_bd_plugin.so libaccess_output_udp_plugin.so libudp_plugin.so libvdr_plugin.so librotate_plugin.so libavio_plugin.so libpodcast_plugin.so libalphamask_plugin.so liba52tofloat32_plugin.so libedummy_plugin.so libjpeg_plugin.so librawvid_plugin.so libdeinterlace_plugin.so libvcd_plugin.so libmkv_plugin.so libes_plugin.so libtdummy_plugin.so libau_plugin.so libglspectrum_plugin.so libtta_plugin.so libtcp_plugin.so libpacketizer_hevc_plugin.so libgrey_yuv_plugin.so libflacsys_plugin.so libcdg_plugin.so libstream_out_rtp_plugin.so libbonjour_plugin.so libmediadirs_plugin.so libaccess_output_dummy_plugin.so libstream_out_standard_plugin.so libddummy_plugin.so libsubsdec_plugin.so libdbus_screensaver_plugin.so libhttp_plugin.so libdolby_surround_decoder_plugin.so libsubsusf_plugin.so libsubstx3g_plugin.so libshm_plugin.so libmux_ts_plugin.so libvorbis_plugin.so libaudioscrobbler_plugin.so libvhs_plugin.so libxcb_window_plugin.so libfreeze_plugin.so libstream_out_langfromtelx_plugin.so libdbus_plugin.so libchain_plugin.so libfaad_plugin.so libi422_yuy2_plugin.so libscene_plugin.so libogg_plugin.so libxcb_xv_plugin.so libnuv_plugin.so libsharpen_plugin.so libtrivial_channel_mixer_plugin.so libstream_out_mosaic_bridge_plugin.so libgradient_plugin.so libimage_plugin.so libpacketizer_mpeg4audio_plugin.so libmagnify_plugin.so libi420_rgb_plugin.so libftp_plugin.so libpng_plugin.so libgain_plugin.so Annotations : repo_type : binary repository : FreeBSD Flat size : 41.9MiB Description : VLC media player is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, and more) as well as DVD's, VCD's, and various streaming protocols. It can also be used as a server to stream in unicast or multicast in IPv4 or IPv6 on a high-bandwidth network. VLC also has the ability to transcode media on-the-fly for streaming or saving to disk. $ ldd /usr/local/bin/vlc /usr/local/bin/vlc: libvlc.so.5 => /usr/local/lib/libvlc.so.5 (0x800821000) libvlccore.so.8 => /usr/local/lib/libvlccore.so.8 (0x800a3b000) libintl.so.8 => /usr/local/lib/libintl.so.8 (0x800d0c000) libidn.so.11 => /usr/local/lib/libidn.so.11 (0x800f17000) libm.so.5 => /lib/libm.so.5 (0x80114a000) libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0x801374000) libthr.so.3 => /lib/libthr.so.3 (0x8015b9000) libc.so.7 => /lib/libc.so.7 (0x8017de000)
As a workaround I use PulseAudio. But it is not enabled by default.
Closing this since practically the entire environment has changed since the last update to this PR.