vlc assert failure: vlc: encoder/encoder.c:2481: x264_encoder_frame_end: Assertion `pic_out->i_pts >= pic_out->i_dts' failed.

Bug #542943 reported by Ryan
72
This bug affects 14 people
Affects Status Importance Assigned to Milestone
VLC media player
Fix Released
Undecided
Unassigned
vlc (Ubuntu)
Fix Released
Medium
Unassigned
x264 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: vlc

$ lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04

$ apt-cache policy vlc
vlc:
  Installed: 1.0.5-2ubuntu1
  Candidate: 1.0.5-2ubuntu1
  Version table:
 *** 1.0.5-2ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

Tried to convert a video file - it crashed.
VLC media player 1.0.5 Goldeneye
[0x972c148] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::begin: Paint device returned engine == 0, type: 1
[0x99422d8] oss audio output error: cannot open audio device (/dev/dsp)
[0x99422d8] pulse audio output: No. of Audio Channels: 2
[????????] x11 video output error: X11 request 42.0 failed with error code 8:
 BadMatch (invalid parameter attributes)
x264 [info]: using cpu capabilities: none!
x264 [info]: profile Main, level 5.1
QPainter::begin: Paint device returned engine == 0, type: 1
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: none!
x264 [info]: profile Main, level 5.1
vlc: encoder/encoder.c:2481: x264_encoder_frame_end: Assertion `pic_out->i_pts >= pic_out->i_dts' failed.
Aborted (core dumped)

ProblemType: Crash
Architecture: i386
AssertionMessage: vlc: encoder/encoder.c:2481: x264_encoder_frame_end: Assertion `pic_out->i_pts >= pic_out->i_dts' failed.
Date: Sat Mar 20 13:01:07 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/vlc
NonfreeKernelModules: nvidia
Package: vlc-nox 1.0.5-2ubuntu1
ProcCmdline: vlc funny.or.die.s01e05.avi
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
Signal: 6
SourcePackage: vlc
StacktraceTop:
 __kernel_vsyscall ()
 raise () from /lib/tls/i686/cmov/libc.so.6
 abort () from /lib/tls/i686/cmov/libc.so.6
 __assert_fail () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /usr/lib/libx264.so.85
Title: vlc assert failure: vlc: encoder/encoder.c:2481: x264_encoder_frame_end: Assertion `pic_out->i_pts >= pic_out->i_dts' failed.
Uname: Linux 2.6.32-16-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin netdev plugdev src vboxusers video

Revision history for this message
Ryan (ubuntu-draziw) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __kernel_vsyscall ()
 *__GI_raise (sig=6)
 *__GI_abort () at abort.c:92
 *__GI___assert_fail (
 x264_encoder_frame_end (h=<value optimized out>,

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in vlc (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
visibility: private → public
Revision history for this message
Ævar Arnfjörð Bjarmason (avarab) wrote :

Also happened to me after it displayed the equivalent of this message for the H.2* codec:

Streaming / Transcoding failed:
It seems your FFMPEG (libavcodec) installation lacks the following encoder:
MPEG AAC Audio.
If you don't know how to fix this, ask for support from your distribution.

This is not an error inside VLC media player.
Do not contact the VideoLAN project about this issue.

Streaming / Transcoding failed:
It seems your FFMPEG (libavcodec) installation lacks the following encoder:
MPEG AAC Audio.
If you don't know how to fix this, ask for support from your distribution.

This is not an error inside VLC media player.
Do not contact the VideoLAN project about this issue.

Changed in vlc:
milestone: none → 1.0.6
status: New → Fix Committed
Changed in vlc (Ubuntu):
status: New → Confirmed
Changed in vlc:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vlc - 1.0.6-1ubuntu1

---------------
vlc (1.0.6-1ubuntu1) lucid; urgency=low

  * Merge from Debian unstable, remaining changes:
    - build and install the libx264 plugin
    - add Xb-Npp header to vlc package
    - Add patches 519-526 to fix FTBFS with xulruner-1.9.2 from upstream
    - Add 600-drop-OJI-xul-192.patch to drop OJI support as xulrunner-1.9.2 on
      Linux doesn't support it
    - Add apport hook to include more vlc dependencies in bug reports
    - Drop --sourcedir=debian/tmp from dh_install to install apport hook
  * Drop 527-spanish-desktop.patch (merged upstream).

vlc (1.0.6-1) unstable; urgency=low

  * New upstream version 1.0.6
    + VideoLAN-SA-1003
    + Closes: #578799
    + LP: #408719, #464715, #465560, #502637, #525278, #542943, #568859
  * RTMP access module has been removed (vlc-nox.install, NEWS.Debian)
  * Remove patches merged upstream
 -- Benjamin Drung <email address hidden> Fri, 23 Apr 2010 12:16:15 +0200

Changed in vlc (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Alessandro Polverini (polve) wrote :

I'm using version 1.0.6-1ubuntu1 and I get the same error, so I suppose the bug is not (completely?) fixed.

Revision history for this message
Alessandro Polverini (polve) wrote :

I

Changed in vlc (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Rémi Denis-Courmont (rdenis) wrote :

This is a bug in x264. It is fixed in upstream c6de86497cdd7b7f3cce7d8a95d723c7d0c9f505

Changed in vlc (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Didi (d10r) wrote :

I am also affected by this bug.
All my efforts to work around this without building all (vlc, ffmpeg, x264) from source failed. The reason is that the current vlc package in order to support H.264 depends on libavcodec-extra-52 which itself depends on libx264-85. Thus, even manually installing libx264-96 from a non-Ubuntu repository (which should have the fix to this bug) didn't help. An updated version of the vlc package depending on a fixed libx264 package is also needed.

Revision history for this message
Na_OH (naoh123) wrote :

I can confirm exactly what didi_X8 says. I've tried building x264 from source twice for good measure. Same error after a few minutes (and sometimes seconds) of streaming.

Revision history for this message
KyleWhittington (kylewhittington) wrote :

I'm having the exact same issue with streaming - same as Na_OH and didi_X8 above. Any progress with this? I'm getting the bug whenever I try to seek in a VLC h264 stream.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package x264 - 2:0.106.1741-1

---------------
x264 (2:0.106.1741-1) natty; urgency=low

  * New upstream Version
  * New version fixes LP: #542943
  * remove applied patch
  * bump shlibs 98 -> 106
  * remove fix-8x8dct+slices+no-sliced-threads+cavlc+deblock.patch,
    applied upstream
 -- Reinhard Tartler <email address hidden> Tue, 26 Oct 2010 17:07:52 +0200

Changed in x264 (Ubuntu):
status: New → Fix Released
Revision history for this message
Tesla (teesla) wrote :

I know that the bug was fixed upstream, but i still have it in version 1.0.6-1ubuntu1.2

So the practical question is - what can i do about it? Is there any way i can have a working x264 encoding in VLC? Prefarably without geeky stuff like compiling, ubuntu is supposed to be linux for human beings after all.

Thank you in advance!

Revision history for this message
Wim Deblauwe (wim-deblauwe) wrote :

I have the same practical question as Tesla. Any updates on this ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.