https://labs.parabola.nu/https://labs.parabola.nu/favicon.ico?15367742552018-09-07T22:35:08ZParabola Issue TrackerPackages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102182018-09-07T22:35:08Zovruniovruni@gnu.org.pe
<ul></ul><p>vlc works for me</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102192018-09-08T00:05:51Zfreemor
<ul></ul><p>Works for me also. Perhaps the OP is missing one of the many optional depends.</p>
<p>Can you please add the output of:</p>
<pre>
pacman -Qi vlc
</pre>
<p>To this bug report.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102212018-09-08T01:44:53Zchristian
<ul></ul><p>Upon sudo pacman -Qi vlc:</p>
<blockquote>
<p>Name : vlc<br />Version : 3.0.4-1<br />Description : Multi-platform MPEG, VCD/DVD, and DivX player<br />Architecture : x86_64<br />URL : <a class="external" href="https://www.videolan.org/vlc/">https://www.videolan.org/vlc/</a><br />Licenses : LGPL2.1 GPL2<br />Groups : None<br />Provides : None<br />Depends On : a52dec libdvbpsi libxpm libdca libproxy lua libmatroska<br />taglib libmpcdec ffmpeg faad2 libupnp libmad libmpeg2<br />xcb-util-keysyms libtar libxinerama libsecret libarchive<br />qt5-base qt5-x11extras qt5-svg freetype2 fribidi<br />harfbuzz fontconfig libxml2 gnutls libplacebo<br />wayland-protocols<br />Optional Deps : avahi: service discovery using bonjour protocol [installed]<br />gst-plugins-base-libs: for libgst plugins [installed]<br />libdvdcss: decoding encrypted DVDs<br />libavc1394: devices using the 1394ta AV/C [installed]<br />libdc1394: IEEE 1394 access plugin<br />kwallet: kwallet keystore<br />libva-vdpau-driver: vdpau backend nvidia<br />libva-intel-driver: video backend intel<br />libbluray: Blu-Ray video input [installed]<br />flac: Free Lossless Audio Codec plugin [installed]<br />twolame: TwoLAME mpeg2 encoder plugin [installed]<br />libgme: Game Music Emu plugin<br />vcdimager: navigate VCD with libvcdinfo<br />libmtp: MTP devices discovery [installed]<br />libsystemd: udev services discovery [installed]<br />smbclient: SMB access plugin<br />libcdio: audio CD playback<br />ttf-freefont: subtitle font <br />ttf-dejavu: subtitle font [installed]<br />libssh2: sftp access [installed]<br />libnfs: NFS access<br />mpg123: mpg123 codec [installed]<br />protobuf: chromecast streaming [installed]<br />libmicrodns: mDNS services discovery (chromecast etc)<br />lua-socket: http interface<br />live-media: RTSP input<br />libdvdread: DVD input module<br />libdvdnav: DVD with navigation input module<br />libogg: Ogg and OggSpots codec [installed]<br />libshout: shoutcast/icecast output plugin [installed]<br />libmodplug: MOD output plugin [installed]<br />libvpx: VP8 and VP9 codec [installed]<br />libvorbis: Vorbis decoder/encoder [installed]<br />speex: Speex codec [installed]<br />opus: opus codec [installed]<br />libtheora: theora codec [installed]<br />libpng: PNG support [installed]<br />libjpeg-turbo: JPEG support [installed]<br />librsvg: SVG plugin [installed]<br />x264: H264 encoding [installed]<br />x265: HEVC/H.265 encoder [installed]<br />zvbi: VBI/Teletext decoding<br />libass: Subtitle support [installed]<br />aribb24: ARIB subtitles<br />libkate: Kate codec<br />libtiger: Tiger rendering for Kate streams<br />sdl_image: SDL image support<br />aalib: ASCII art video output [installed]<br />libcaca: colored ASCII art video output [installed]<br />libpulse: PulseAudio audio output [installed]<br />alsa-lib: ALSA audio output [installed]<br />jack: jack audio server [installed]<br />libsamplerate: audio Resampler [installed]<br />libsoxr: SoX audio Resampler [installed]<br />chromaprint: Chromaprint audio fingerprinter<br />lirc: lirc control<br />libgoom2: Goom visualization<br />projectm: ProjectM visualisation<br />ncurses: ncurses interface [installed]<br />libnotify: notification plugin [installed]<br />gtk3: notification plugin [installed]<br />Required By : None<br />Optional For : None<br />Conflicts With : vlc-plugin<br />Replaces : vlc-plugin<br />Installed Size : 57.60 MiB<br />Packager : Levente Polyak <<a class="email" href="mailto:anthraxx@archlinux.org">anthraxx@archlinux.org</a>><br />Build Date : Mon 03 Sep 2018 07:00:33 PM EDT<br />Install Date : Mon 03 Sep 2018 09:09:31 PM EDT<br />Install Reason : Explicitly installed<br />Install Script : No<br />Validated By : Signature</p>
</blockquote>
<p>I'll note that it was working fine about a week ago.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102422018-09-10T11:32:53Zfreemor
<ul></ul><p>I've been doing some research on this error. It is related to a massive desyncronation of audo and video. Usually caused by bad video rendering options being set.</p>
<p>Please check your Audio and Video rendering setting in VLC.<br />Try reseting VLC to it's defaults (easy way is to rename the ~/.config/vlc/ folder to hide it from vlc.</p>
<p>The other thing that might be causing this is:<br />Video is waaaay to heavy for your system (trying to play 4k content on old machine, etc.)<br />Video card needs blobs and thus is way too slow.<br />The video was encoded incorrectly.</p>
<p>Is this happening with all MP4s or just one or two?<br />What are your system specs (CPU, Video Card, etc) ?</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102442018-09-10T23:37:43Zchristian
<ul></ul><p>Renaming ~/.config/vlc/ did not help, but all the mp4s I had been testing were large files in 720p. Smaller mp4s do in fact play for me still. I'm certain though that some of the files which now cause the error had played fine for me a week or two ago. CPU is intel i5, graphics are Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102452018-09-11T00:10:30Zfreemor
<ul></ul><p>Ok, Well this is good and diagnostic info. Thanks. <br />The fact that smaller MP4s still play tells up it's not a problem with decoding the MP4s. So VLC is working, just something is making rendering on your system very slow. <br />Since my Core 2 DUO can easily handle 720p That certainly isn't too heavy a video for the system.</p>
<p>Now that I know you have an Intel GPU can you please try installing the libva-intel-driver. Installing the vulkan-intel driver probably wouldn't hurt but I'm not sure it'll help with Videos.</p>
<p>The question in my mind is what's changed on you machine to cause this. And why can't we reproduce it (it may be something to do with your CPU/GPU combo. Or some other system oddity that causing this.)</p>
<p>Try the above.. If still failing I'll have to get further feeed back from you.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102462018-09-11T00:54:17Zchristian
<ul></ul><p>Installed libva-intel-driver, no luck. Installed vulkan-intel on top of that, still no luck.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102492018-09-11T12:10:37Zfreemor
<ul></ul><p>K, Time to get a look at what VLC is (or isn't) doing.</p>
<p>Can you run:</p>
<pre>
VLC_VERBOSE=3 vlc <name of video that fails> > fails.txt
</pre><br />and <br /><pre>
VLC_VERBOSE=3 vlc <name of video that plays> > plays.txt
</pre>
<p>replacing the <name of...> parts with the appropriate mp4 file names<br />Then post fails.txt and plays.txt here.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102532018-09-11T16:30:56Zchristian
<ul></ul><p>Okay, the txt files produced by the commands "VLC_VERBOSE=3 vlc plays.mp4 > plays.txt" and "VLC_VERBOSE=3 vlc fails.mp4 > fails.txt" are both entirely blank for some reason, but I see a lot of stuff in the terminal. Worth noting is that all the errors with the bad ones seem to concern the audio, rather than the video. Playing around more, I found some high-definition movies that do play, so it almost certainly is an audio problem.</p>
<p>Just to reiterate, I'm 100% sure at least a couple of the failing videos were playing with good audio a couple weeks ago.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102542018-09-11T17:00:20Zfreemor
<ul></ul><p>I understood that these used to play.</p>
<p>My Bad. that should have read:</p>
<pre>
VLC_VERBOSE=3 vlc plays.mp4 &> plays.txt
</pre><br />and <br /><pre>
VLC_VERBOSE=3 vlc fails.mp4 &> fails.txt
</pre>
<p>The audio errors might just be from the fact that the audio ir running ahead of the video.. Or it may actually be the issue. (thos this is usually caused by slow video)</p>
<p>Post those Files and I'll take a look. Hard to debug when I can't reproduce, So thanks for sticking with it.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102552018-09-11T17:16:13Zchristian
<ul><li><strong>File</strong> <a href="/attachments/426">plays.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/426/plays.txt">plays.txt</a> added</li></ul><p>Here we go.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102562018-09-11T17:21:32Zchristian
<ul><li><strong>File</strong> <a href="/attachments/428">fails2.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/428/fails2.txt">fails2.txt</a> added</li><li><strong>File</strong> <a href="/attachments/427">fails1.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/427/fails1.txt">fails1.txt</a> added</li></ul><p>Had to split up the failure into two files because of upload errors.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102612018-09-11T18:13:13Zfreemor
<ul></ul><p>I am seeing a lot of indications in the fails1.txt that there is a issue parsing the file. <br /><pre>
[00007f2cecc157d0] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
</pre></p>
<p>VLC can not properly identify it and is doing it's best to guess and failing. thus all the <br /><pre>
garbage at input, trying to resync...
</pre></p>
<p>What does: <br /><pre>
file fails.mp4
</pre><br />say about the file.. <br />what does:<br /><pre>
ffprobe fails.mp4
</pre><br />say about it..</p>
<p>what happens when you try to play fails.mp4 in with mpv from the cli:<br /><pre>
mpv fails.mp4
</pre></p>
<p>Please use the same file as you did for creating the fails1.txt and above</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102632018-09-11T18:51:53Zchristian
<ul></ul><p>file "Sportsnet feed.mp4"</p>
<blockquote>
<p>Sportsnet feed.mp4: MPEG transport stream data</p>
</blockquote>
<p>ffprobe "Sportsnet feed.mp4"</p>
<blockquote>
<p>ffprobe version n4.0.2 Copyright (c) 2007-2018 the FFmpeg developers<br />built with gcc 8.2.0 (GCC)<br />configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvenc --enable-omx --enable-shared --enable-version3<br />libavutil 56. 14.100 / 56. 14.100<br />libavcodec 58. 18.100 / 58. 18.100<br />libavformat 58. 12.100 / 58. 12.100<br />libavdevice 58. 3.100 / 58. 3.100<br />libavfilter 7. 16.100 / 7. 16.100<br />libavresample 4. 0. 0 / 4. 0. 0<br />libswscale 5. 1.100 / 5. 1.100<br />libswresample 3. 1.100 / 3. 1.100<br />libpostproc 55. 1.100 / 55. 1.100<br />[mpegts @ 0x5592a82177c0] start time for stream 2 is not set in estimate_timings_from_pts<br />Input #0, mpegts, from 'Sportsnet feed.mp4':<br />Duration: 03:48:58.74, start: 86426.340000, bitrate: 5814 kb/s<br />Program 1 <br />Stream #0:0[0x1e1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc<br />Stream #0:1[0x1e2](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 126 kb/s<br />Stream #0:2[0x3f3]: Data: bin_data ([6][0][0][0] / 0x0006)<br />Stream #0:3[0x4a7]: Data: timed_id3 (ID3 / 0x20334449)<br />Unsupported codec with id 100359 for input stream 2<br />Unsupported codec with id 100358 for input stream 3</p>
</blockquote>
<p>mpv "Sportsnet feed.mp4" - video plays correctly with the following terminal outputs:</p>
<blockquote>
<p>[ffmpeg/demuxer] mpegts: start time for stream 2 is not set in estimate_timings_from_pts<br />[ffmpeg/demuxer] mpegts: start time for stream 3 is not set in estimate_timings_from_pts<br />(<ins>) Video --vid=1 (h264 1280x720 59.940fps)<br />(</ins>) Audio --aid=1 --alang=eng (aac 2ch 48000Hz)<br />(<ins>) Video --vid=1 (h264 1280x720 59.940fps)<br />(</ins>) Audio --aid=1 --alang=eng (aac 2ch 48000Hz)<br />Subs --sid=1 (*) (eia_608)<br />AO: [pulse] 48000Hz stereo 2ch float<br />VO: [gpu] 1280x720 yuv420p<br />AV: 00:00:10 / 03:48:58 (0%) A-V: 0.000</p>
</blockquote> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102652018-09-11T19:21:53Zfreemor
<ul><li><strong>Subject</strong> changed from <i>vlc will no longer play mp4</i> to <i>vlc will no longer play mepgts files claiming to be mp4</i></li></ul><p>OK, so we have a clue here. That file is not a properly formatted MP4. <br />file would have reported something like:<br /><pre>
ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]
</pre><br />and ffprobe should have said:<br /><pre>
Input #0, mov,mp4,m4a,3gp,3g2,mj2,
</pre></p>
<p>So This is really a case of VLC fails to play mpegts files..<br />(none of the above suggests that I'm dismissing that it used to... Just steps on narrowing the issue) <br />This is probably why there has been a failure to replicate the issue.. I've been playing actual MP4 files.. I'll have to dig up or make some mpegts files.</p>
<p>Again thanks this is moving us forward.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102662018-09-11T19:28:49Zbill-auger
<ul></ul><p>christian -</p>
<p>have you tried using any other media player?<br />why are you convinced that this problem is only with VLC?</p>
<p>i would try totem, mplayer and others - if those do not perform any better then VLC is not the problem</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102672018-09-11T19:43:30Zfreemor
<ul></ul><p>OK, used <br /><pre>
ffmpeg -i <Real.mp4> -acodec copy -vcodec copy -preset slow -b:v 5000k -f mpegts Foo.mp4
</pre><br />To create a file similar to what you have.. <br />And it fails to play in VLC <br />So we now have a reproducable problem.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102682018-09-11T19:48:35Zfreemor
<ul></ul><p>bill-auger wrote:</p>
<blockquote>
<p>have you tried using any other media player?<br />why are you convinced that this problem is only with VLC?</p>
</blockquote>
<p>He tried in in mpv and it played correctly.. same for me once I created the right type of file. <br />VLC fails<br />MPV plays <br />ffplay plays</p>
<p>so does seem to be a VLC issue</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102692018-09-11T19:53:29Zfreemor
<ul></ul><p>VlC tools->codec information</p>
<p>Clearly shows VLC mis Identifying the aac audio stream as an mp2/3 audio stream.. Here lies the problem.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102702018-09-11T20:05:19Zfreemor
<ul></ul><p>I would suggest that the OP may want to correct those file to actual MP4s with:<br /><pre>
ffmpeg -i <actually a ts>.mp4 -acodec copy -vcodec copy -preset slow -b:v 5000k -f mp4 <fixed_name>.mp4
</pre></p>
<p>This will go very quickly as it is only copying the streams into an MP4 container. Instead of an mpegts container.</p>
<p>This is a work around. Clearly there is some issue with VLC. I'll test on an Arch machine but I strongly suspect that this one might go all the way upstream.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=102712018-09-11T20:12:48Zchristian
<ul></ul><p>Thank you freemor, I genuinely appreciate your efforts in looking into this.</p> Packages - Bug #1977: vlc will no longer play mepgts files claiming to be mp4https://labs.parabola.nu/issues/1977?journal_id=179532022-08-27T16:57:45ZGNUtooGNUtoo@cyberdimension.org
<ul><li><strong>Status</strong> changed from <i>open</i> to <i>not-a-bug</i></li></ul><p>Hi,</p>
<p>If this bug is still there, it needs to be forwarded upstream.</p>
<p>I'm closing this bug as it doesn't seem to be a bug inside the package definitions and nothing prevents people from reporting it upstream.</p>
<p>Denis.</p>