Author Topic: crash for preview of resize filter  (Read 2405 times)

ajschult

  • Jr. Member
  • **
  • Posts: 98
crash for preview of resize filter
« on: November 24, 2012, 03:53:37 PM »
With svn rev 8287, I added a vdpau:resize filter (424x318 => 432x318) and hit the preview button (qt4 build, gtk version has a preview button, but it does nothing).  I got an assertion, "Assert failed :src->_width==_width at line 26, file ... ADM_imageOperation.cpp"

Code: [Select]
/lib64/libADM_core6.so(ADM_backTrack+0x5c) [0x33e82060dc]:0:<ADM_backTrack>:-2
/lib64/libADM_coreImage6.so(_ZN8ADMImage14duplicateMacroEPS_b+0x34) [0x33eb205f24]:1:<ADMImage::duplicateMacro(ADMImage*, bool)>:0
avidemux3_qt4(_ZN12ADM_Composer11samePictureEP8ADMImage+0x9f) [0x449d1f]:2:<ADM_Composer::samePicture(ADMImage*)>:0
/lib64/libADM_coreVideoFilter6.so(_ZN21ADM_videoFilterBridge16getNextFrameBaseEPjP8ADMImage+0x24) [0x33eba03604]:3:<ADM_videoFilterBridge::getNextFrameBase(unsigned int*, ADMImage*)>:0
/lib64/libADM_coreVideoFilter6.so(_ZN21ADM_videoFilterBridge14getNextFrameAsE12ADM_HW_IMAGEPjP8ADMImage+0x1e) [0x33eba036de]:4:<ADM_videoFilterBridge::getNextFrameAs(ADM_HW_IMAGE, unsigned int*, ADMImage*)>:0
/lib64/libADM_coreVideoFilter6.so(_ZN13ADM_flyDialog9nextImageEv+0x1b) [0x33eba04dcb]:5:<ADM_flyDialog::nextImage()>:0
avidemux3_qt4(_ZN24Ui_seekablePreviewWindowC2EP7QWidgetP19ADM_coreVideoFilterj+0x55) [0x475645]:6:<Ui_seekablePreviewWindow::Ui_seekablePreviewWindow(QWidget*, ADM_coreVideoFilter*, unsigned int)>:0
avidemux3_qt4(_ZN16filtermainWindow7previewEb+0xdd) [0x4712cd]:7:<filtermainWindow::preview(bool)>:0
/lib64/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2bf) [0x34e978e71f]:8:<QMetaObject::activate(QObject*, QMetaObject const*, int, void**)>:0
/lib64/libQtGui.so.4(_ZN15QAbstractButton7clickedEb+0x32) [0x34ef22e172]:9:<QAbstractButton::clicked(bool)>:0
/lib64/libQtGui.so.4() [0x34eef8336e]:10:</lib64/libQtGui.so.4() [0x34eef8336e]>:0
/lib64/libQtGui.so.4() [0x34eef83970]:11:</lib64/libQtGui.so.4() [0x34eef83970]>:0
/lib64/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x8c) [0x34eef83bdc]:12:<QAbstractButton::mouseReleaseEvent(QMouseEvent*)>:0
/lib64/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x7e0) [0x34eec19ce0]:13:<QWidget::event(QEvent*)>:0
/lib64/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac) [0x34eebca4ac]:14:<QApplicationPrivate::notify_helper(QObject*, QEvent*)>:0
/lib64/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x99b) [0x34eebcf18b]:15:<QApplication::notify(QObject*, QEvent*)>:0
/lib64/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8e) [0x34e9777f6e]:16:<QCoreApplication::notifyInternal(QObject*, QEvent*)>:0
/lib64/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x14b) [0x34eebcb2eb]:17:<QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)>:0
/lib64/libQtGui.so.4() [0x34eec45994]:18:</lib64/libQtGui.so.4() [0x34eec45994]>:0
/lib64/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xb11) [0x34eec44721]:19:<QApplication::x11ProcessEvent(_XEvent*)>:0

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: crash for preview of resize filter
« Reply #1 on: November 24, 2012, 07:47:31 PM »
vdpau works only with some nvidia cards: wiki: vdpau
When you start avidemux from terminal (command line) you should find this:
Code: [Select]
Probing for VDPAU...
 [init]  [VDPAU] API : 0x1, info : NVIDIA VDPAU Driver Shared Library  304.64  Tue Oct 30 11:20:48 PDT 2012
  [init]  Vdpau supports VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL : 1
  [init]  Vdpau supports VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL         : 1
  [init]  Vdpau supports VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L5      : 0
  [init]  Vdpau supports VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L3      : 0
  [init]  Vdpau supports VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1      : 1
  [init]  Vdpau supports VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION              : 1
  [init]  Vdpau supports VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE             : 1
  [init]  VDPAU renderer init ok.
 VDPAU available
When you have enabled in Main menu-> Edit-> Preferences-> [Video]
Video display: VDPAU (best)
[v] Decode video using VDPAU
I did just test this on Ubuntu 12.04.1 amd64 with Qt (4.8.1) and this did work. These are installed: libvdpau1 and nvidia-current from http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu.
If not, upload a 5 second video clip to rapidshare and provide a link to it.
And state used video codec and used container format to resize to.

_____________________________________________
Avidemux v2.6.0 ((r8287))
_____________________________________________
Compiler: GCC 4.6.3
cmake: 2.8.10.1
Build Target: Linux (x86-64)
User Interface: Qt (4.8.1)
_____________________________________________
Kernel: Linux 3.2.0-33-generic (x86_64)
Distribution: Linux Ubuntu 12.04.1 LTS (Precise Pangolin)
Desktop: Unity 2D 5.16.0

Display Server:  X Server 1.11.3
Display Driver: NVIDIA 304.64
Intel Core i5-2500K @ 3.30GHz (4 Cores) with 16 GB ram
Graphics: NVIDIA GeForce GT 520/PCIe/SSE2 1024MB (810/535MHz)
OpenGL render: 4.2.0 NVIDIA 304.64
_____________________________________________

ajschult

  • Jr. Member
  • **
  • Posts: 98
Re: crash for preview of resize filter
« Reply #2 on: November 24, 2012, 10:09:59 PM »
It looks like you're right.  Fedora doesn't ship vdpau-enabled drivers

https://bugzilla.redhat.com/show_bug.cgi?id=815569

In that case, the vdpau filters (resize and Deint) shouldn't be shown when vdpau isn't available; the only thing they can do is to crash.  And it's sad that the resize filters available in 2.5.x are no longer available.

ajschult

  • Jr. Member
  • **
  • Posts: 98
Re: crash for preview of resize filter
« Reply #3 on: November 25, 2012, 12:59:01 AM »
Quote
And it's sad that the resize filters available in 2.5.x are no longer available.

Ah, I see the swsResize now... local packaging error.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: crash for preview of resize filter
« Reply #4 on: November 25, 2012, 05:53:53 AM »
There is another resize in OpenGl: OpenGlResize, here swsResize is showing to. I do forget that I run always the latest svn Avidemux v2.6.0 currently: (r8287)
Code: [Select]
svn co svn://svn.berlios.de/avidemux/branches/avidemux_2.6_branch_mean
and have additional these in ubuntu 12.04.1:
Code: [Select]
sudo apt-get install build-essential fakeroot g++ gcc gettext liba52-0.7.4-dev libaften-dev libasound2-dev libdca-dev libdts-dev libfaac-dev libfaad-dev libglib2.0-dev libgtk-3-dev libgtk2.0-dev libmad0-dev libmp3lame-dev libpng12-dev libqt4-dev libqt4-opengl libqt4-opengl-dev libqt4-script libsdl-sound1.2-dev libsqlite3-dev libvdpau-dev libvorbis-dev libx264-dev libxml2-dev libxv-dev libxvidcore-dev make libopencore-amrwb-dev libopencore-amrnb-dev libvpx-dev pkg-config subversion yasmIt could well be some of these are not required

latest requirements:
libsamplerate0-dev (aka Secret Rabbit Code) is a library for audio rate conversion
libfribidi-dev algorithm implementation for Hebrew and/or Arabic languages.
libtwolame-dev MPEG Audio Layer 2 encoder (development files)
libopencore-amrwb-dev Adaptive Multi-Rate - Wideband speech codec
libopencore-amrnb-dev Adaptive Multi Rate speech codec
libsqlite3-dev
libqt4-script

Get x264 for Avidemux

 If x264 is not available in your version of Avidemux, there is a guide on how to download and compile x264 by yourself.
<- click