Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: bjohnson777 on May 10, 2015, 06:20:29 PM

Title: Merge Fields bug
Post by: bjohnson777 on May 10, 2015, 06:20:29 PM
I'm using 2.6.8 on Ubuntu 14.04 LTS. I've also seen this problem using 2.6.1 (and another version I can't remember since the upgrade) on Ubuntu 12.04 LTS.

I believe this bug to be easily reproducable by others, so I'll give the quick steps. If it isn't the case, I'll dig in and post details from the log files. Note that after the crash I can't find admlog.txt, but crash.js does show up as expected.

30 seconds of steps to reproduce:
Launch a 2.6.x version.
Load any video clip. Doesn't matter type.
Set video output encoding to x264. Type doesn't seem to matter. Accept default settings.
Load filter "Interlacing / Merge Fields".
Load filter "Interlacing / Decomb telecide." Accept default settings.
Load filter "Transform / Crop".
At this point I always get a crash.

The info window reads:
Crash

Assert failed :0
at line 176, file /build/avidemux2.6-iCxcSA/avidemux2.6-2.6.8/avidemux_core/ADM_coreVideoFilter/src/ADM_videoFilterCache.cppADM_backTrack
VideoCache::getImageBase(unsigned int)
VideoCache::getImageAs(ADM_HW_IMAGE, unsigned int)
Telecide::getNextFrame(unsigned int*, ADMImage*)
ADM_flyDialog::nextImage()
Ui_cropWindow::Ui_cropWindow(QWidget*, crop*, ADM_coreVideoFilter*)
DIA_getCropParams(char const*, crop*, ADM_coreVideoFilter*)
CropFilter::configure()
ADM_vf_addFilterFromTag(IEditor*, unsigned int, CONFcouple*, bool)
filtermainWindow::allDoubleClick(QListWidgetItem*)
QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
QListWidget::itemDoubleClicked(QListWidgetItem*)
QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
QAbstractItemView::doubleClicked(QModelIndex const&)
QAbstractItemView::mouseDoubleClickEvent(QMouseEvent*)
QWidget::event(QEvent*)
QFrame::event(QEvent*)
QAbstractItemView::viewportEvent(QEvent*)
QCoreApplicationPrivate::sendThroughObjectEventFilters(

If I just use the filters "Merge Fields" and "Crop", the video fields will be interlaced with double height as expected. "Decomb telecide" seems to have some kind of issue when added.

The goal of the rendering is to turn a 720p 59.940fps TV recording into a 480p 23.976fps x264 file. 23.976fps is the original frame rate of the source before broadcast TV bastardizations.

Thanks for the help.
Title: Re: Merge Fields bug
Post by: ajschult on May 10, 2015, 07:09:26 PM
The crop filter config window is trying to produce a preview image to let you select the crop; the retrieval of the image goes through the telecide filter and fails.

Before the assertion, the code prints some info about what went wrong:


  [getImageBase]  Cache inconsistency :
  [getImageBase]  Expected to get frame 1 from filter, got frame 0 instead
Entry 0/16, frameNum 0 lock 2 lastUse 1
Entry 1/16, frameNum -65536 lock 0 lastUse -65536
Entry 2/16, frameNum -65536 lock 0 lastUse -65536
Entry 3/16, frameNum -65536 lock 0 lastUse -65536
Entry 4/16, frameNum -65536 lock 0 lastUse -65536
Entry 5/16, frameNum -65536 lock 0 lastUse -65536
Entry 6/16, frameNum -65536 lock 0 lastUse -65536
Entry 7/16, frameNum -65536 lock 0 lastUse -65536
Entry 8/16, frameNum -65536 lock 0 lastUse -65536
Entry 9/16, frameNum -65536 lock 0 lastUse -65536
Entry 10/16, frameNum -65536 lock 0 lastUse -65536
Entry 11/16, frameNum -65536 lock 0 lastUse -65536
Entry 12/16, frameNum -65536 lock 0 lastUse -65536
Entry 13/16, frameNum -65536 lock 0 lastUse -65536
Entry 14/16, frameNum -65536 lock 0 lastUse -65536
Entry 15/16, frameNum -65536 lock 0 lastUse -65536
Title: Re: Merge Fields bug
Post by: mean on May 10, 2015, 08:03:09 PM
The telecide filter is incomplete, i should disable it
Actually it's going to be better as we can rely on timing to deal with mixed format i.e. progressive with 3:2 pulldown and telecine content
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 11, 2015, 01:59:32 AM
Is there a workaround to get 59.940fps back to 23.976fps for now? With a TV source, I run into audio sync problems in other programs because of commercial breaks and different frame rates.

Thanks
Title: Re: Merge Fields bug
Post by: zakafreakarama on May 11, 2015, 06:42:50 AM
I know it's probably not an optimal solution, but I got pretty good results by using the FFmpeg deinterlacing filter (under libavcodec deinterlacers) and then Decomb Decimate. I got a sharp, progressive, 23.976 fps picture. The source was telecined film material (music videos) and Decomb Telecide just didn't do the job. I didn't merge fields or anything else, just applied the FFmpeg deinterlacing filter and Decimate. And the results were surprisingly good.
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 12, 2015, 02:16:10 AM
Thanks for the tip, but it won't fix the frame rate issue. It amazes me how the "TV Engineering Associations" came up with something as screwed up as frames to fields at twice the frame rate for digital TV... and interlacing still lives at other frame rates... when it shouldn't in the digital realm. As it stands right now, the raw file plays 1 frame, 2 dupe frames, 1 frame, 1 dupe frame, repeat... for 59.940fps. Since all digital TV's are basically mini stand alone computers, they can play at any frame rate just like a computer does. There is no "sync to signal" like back in the analog days. The original HD could have easily been broadcast at 23.976fps at the same overall bitrate with better picture quality and the TV could have handled it fine and nobody would have noticed the frame rate difference... That's my rant for the evening.

I've gotten tolerable results with Decomb Telecide and Decom Decimate at normal frame rates using very sensitive settings. Mean mentioned the filter was incomplete, so that probably explains a video skip every now and then. It was good enough for what I wanted to do at the time.
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 13, 2015, 02:04:40 AM
I had an idea for a test last night after posting. Since double frame rate is already decombed in terms of interlacing, why not run Decomb Decimate at 2 and see what happens? The output was at the expected 29.970fps from 59.940fps, but to my surprise, the sequence turned out a clean 4 frames and 1 dupe... standard telecide. Just for fun, I ran Decomb Decimate at 3 and the output was an expected mess.

Since Decimate 2 worked, adding Decimate 5/Pulldown Dupe Removal turned 29.970fps back to 23.976fps.

The results were good, but not perfect. While each frame was proper original, losing essentially a half frame of motion blur makes the video slightly choppy. It's not overly noticeable unless you've done video engineering in the past. It's good enough for most general renders.

This method is best for scaling down the image size since some vertical resolution is lost with Merge Fields missing. I don't recommend the following for the original video size.

Here's something for the archive in case someone else also runs into this problem in the future...

Converting Double Frame Rate HD Video Back To Normal Using The Double Decimate Method

While mentioning Black Levels, can one of the developers get the Luma Equalizer filter ported to 2.6.x? I find it very useful for fixing dynamic range problems and would include it in the above list after Crop if it were available.
Title: Re: Merge Fields bug
Post by: AQUAR on May 13, 2015, 06:55:07 AM
Just a comment about a tangent on this discussion.
Video rendering onto PC screens (or Digital TV's) have sync related graphics processing parameters as well.
The film rate of 23.976 fps is not a match for 50Hz or 60 Hz screen refresh rates of typical digital TVs, but not bad for a PC monitor set to 72 Hz.
Graphics cards will have to do frame interpolation, or drop frames, or manipulate the source in other sophiscated ways to create "virtual sync".

Just food for thought about converting videos for digital displays. 
Title: Re: Merge Fields bug
Post by: mean on May 13, 2015, 07:22:56 AM
It was a bug in mergeField
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 14, 2015, 02:30:35 AM
Aquar: Yeah, but most graphics cards will double buffer and play the video frame at the next graphics frame interval. Otherwise there would be "video tearing" when played back. 23.976 and 29.970 NTSC on a 60Hz TV would have the same issue. The "video jitter" produced by that isn't within human visual perception. Last I looked, most HD TV's were starting to have >100Hz frame refresh rates... but I haven't looked recently. Not sure if that's all of them. That's kinda pointless for TV related, but it is useful if a computer or game console is hooked up to them.

Mean: Any idea when the bug will be fixed? Thanks.
Title: Re: Merge Fields bug
Post by: ajschult on May 14, 2015, 03:06:26 AM
mean already fixed it:

https://github.com/mean00/avidemux2/commit/6965bf8f0d23cba1a233b25b8523ac73d21b2a9c

(no crash for me, at least).
Title: Re: Merge Fields bug
Post by: AQUAR on May 14, 2015, 12:14:17 PM
@ bjohnson777
Always understood that tearing may occur unless the double buffer swap happens during vertical blanking.
That only happens all the time if the refresh rate is an integer multiple of the video frame rate.

I think without this, the drawing to the back buffer will be part way through rendering a frame when the monitor does a screen refresh.
The graphics card will then do the buffer swap and send mixed frame content to the monitor.

As you said though, delaying the swap till the next frame interval wil fix the tearing and give some jitter (and frame drops!).
Current graphics cards will do smart interpolations to smooth things out but thats too involved for me.
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 15, 2015, 02:01:16 AM
ajschult: Thanks for the update. Tracking bugs is a bit above me.

Mean: Thanks for the fix. I'm going to try a compile this weekend.
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 17, 2015, 09:52:13 PM
My usual upgrades found that getdeb released 2.6.9 today.

I loaded Merge Fields in the filter list without problems. I ran a full render, but it crashed and didn't save out a video file... not even a partial.

I dropped the rendered video segment to a minute and used that for other tests. Sometimes it will crash at the start with an empty Info window. Sometimes it will render all the way through the second pass, but it always crashes at the end and disappears without a crash file or Info window. When it makes it this far, sometimes it saves the video and sometimes the video is totally missing (but the stats and mbtree files will be there).

I removed Merge Fields from the top of the filter list with no behavior change. Decomb Telecide was next. Getting rid of that seems to have stopped the crashes.

Attached are the shell window and crash file. This is when 2.6.9 crashed immediately on hitting save after entering a file name.

I found the 2.6.x compile instructions off the download page, but the instructions are for the older SVN setup. What's the download instructions from git?

Thanks
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 18, 2015, 01:44:42 AM
Doing a little digging around, I took zakafreakarama's advice with "libavdec Deinterlacers / FFmpeg Deint" in place of Decomb Telecide. It does work surprisingly well and the test video renders without crashing.

What got me side tracked the past couple hours was the video was more jerky on play back than the Double Decimate method I mentioned above. I went through it frame by frame on many different settings but couldn't see anything wrong. The frames were consistent on pans and didn't jump around.

On a whim, I added "Resample FPS" to the end of the filter chain and set it to "23.976 Film". With the video already being 23.976fps, this shouldn't have made a difference at all... but it made a huge difference. Suddenly motion was fluid like it was supposed to be.

Thinking something was up with MKV, I swapped encoding to xvid/avi. I used the filter chain as before without "Resample FPS". The test render came out smooth.

I know that AVI is old and brain dead... which is kinda why I like it for older codecs... But does this mean that MKV can support essentially "Jitter Frame Rates"???

I tried a simple MKV to MKV remux with mkvmergeGUI with a forced video frame rate of 23.976. The video became smooth again but it suffered from audio sync and slow skews leading to a larger sync problem at the end of the video. I'm not sure what to make of the audio issue with mkvmergeGUI. The frame rate in the program video is a clean multiple to decimate back to 23.976 and should have worked cleanly with mkvmergeGUI. I cut out all the commercials and promos that would have given constant frame rate errors.

As a side note, "Resample FPS" has a simple bug of only allowing 2 decimal places in Custom when it should allow for 3.

I'm going to re-render the full video in 2.6.9 to see if there are any audio skews that won't show up with a 1min test render.
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on May 18, 2015, 09:29:35 AM
Quote from: bjohnson777 on May 17, 2015, 09:52:13 PM
I found the 2.6.x compile instructions off the download page, but the instructions are for the older SVN setup. What's the download instructions from git?

Thanks
1st time:
sudo apt-get update
sudo apt-get install git
git clone https://github.com/mean00/avidemux2.git

Next time
Update:
cd ~/avidemux2 && git pull
Build:
cd ~/avidemux2 && bash bootStrap.bash --deb --with-qt4 --without-gtk --with-cli

possible switches for bash bootStrap.bash cli:
Quote--help            : Print usage"
--rpm             : Build rpm packages"
--deb             : Build deb packages"
--tgz             : Build tgz packages"
--debug           : Switch debugging on"
--with-core       : Build core"
--without-core    : Dont build core"
--with-cli        : Build cli"
--without-cli     : Dont build cli"
--with-gtk        : Build gtk"
--without-gtk     : Dont build gtk"
--with-core       : Build core"
--without-qt4     : Dont build qt4"
--with-plugins    : Build plugins"
--without-plugins : Dont build plugins"
--enable-qt5      : Try to use qt5 instead of qt4"



Title: Re: Merge Fields bug
Post by: bjohnson777 on May 24, 2015, 12:16:24 AM
Thanks Jan and sorry for the response delays. I have bad health issues and am on overload with some other issues.

As mentioned in my previous post I was going to try a full render based on the 1min render tests I did with 2.6.9-1~getdeb1. Three tries failed when starting the second pass.

Attached are the crash and shell logs from the last try.

I tried git compiling, but those failed. I'll split those out into separate posts.
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 24, 2015, 12:23:16 AM
I tried the qt4 compile as instructed above. It errored out.

Note that I run auto-apt to find any missing small packages. The first try found a few. This is from the last try of the qt4 compile.

Here's the end from the shell:
-- ***********************
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found

-- AVFORMAT : 56, Major :
-- AVCODEC  : 56, Major :
-- AVUTIL   : 54, Major :
-- POSTPRC  : 53, Major :
-- SWSCALE  : 3, Major :

-- Checking Qt
-- Checking for Qt 4
-- *****************
CMake Warning at /usr/share/cmake-2.8/Modules/FindQt4.cmake:659 (message):
  /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
  QtCore could not be found there.  Qt is NOT installed correctly for the
  target build environment.
Call Stack (most recent call first):
  /scratch/avidemux/avidemux2/cmake/admCheckQt4.cmake:56 (FIND_PACKAGE)
  /scratch/avidemux/avidemux2/cmake/admCheckQt.cmake:11 (checkQt4)
  CMakeLists.txt:16 (checkQt)


Could not find Qt 4


CMake Error at CMakeLists.txt:19 (MESSAGE):
  Qt NOT FOUND


-- Configuring incomplete, errors occurred!
See also "/scratch/avidemux/avidemux2/buildQt4/CMakeFiles/CMakeOutput.log".
See also "/scratch/avidemux/avidemux2/buildQt4/CMakeFiles/CMakeError.log".
** Failed at cmakeZ**


I did a search for qtcore and found these:
/usr/lib/i386-linux-gnu/libQtCore.so.4
/usr/lib/i386-linux-gnu/libQtCore.so.4.8
/usr/lib/i386-linux-gnu/libQtCore.so.4.8.6
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
/usr/lib/x86_64-linux-gnu/libQtCore.so.4.8
/usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.6


Here are the qt based packages on my ubuntu 14.04.2 LTS 64bit:
ii  libattica0.4:amd64                          0.4.2-1                                amd64        Qt library that implements the Open Collaboration Services API
ii  libdbusmenu-qt2:amd64                       0.9.3+14.04.20140314-0ubuntu1          amd64        Qt implementation of the DBusMenu protocol
ii  libdbusmenu-qt2:i386                        0.9.3+14.04.20140314-0ubuntu1          i386         Qt implementation of the DBusMenu protocol
ii  libkexiv2-11                                4:4.13.0-0ubuntu1                      amd64        Qt like interface for the libexiv2 library
ii  libkexiv2-data                              4:4.13.0-0ubuntu1                      all          Qt-like interface for the libexiv2 library -- data files
ii  libktorrent5                                1.3.1-3ubuntu1                         amd64        KTorrent library for C++ / Qt 4 / KDE Platform
ii  libntrack-qt4-1                             016-1.2ubuntu2                         amd64        Qt 4 API for ntrack
ii  libpolkit-qt-1-1                            0.103.0-1ubuntu1                       amd64        PolicyKit-qt-1 library
ii  libpoppler-qt4-4:amd64                      0.24.5-2ubuntu4.2                      amd64        PDF rendering library (Qt 4 based shared library)
ii  libqca2:amd64                               2.0.3-5                                amd64        libraries for the Qt Cryptographic Architecture
ii  libqgpgme1                                  4:4.13.3-0ubuntu0.2                    amd64        library for GpgME++ integration with Qt
ii  libqjson0:amd64                             0.8.1-3                                amd64        Qt-based library that maps JSON data to QVariant objects
ii  libqt4-dbus:amd64                           4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 D-Bus module
ii  libqt4-dbus:i386                            4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 D-Bus module
ii  libqt4-declarative:amd64                    4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 Declarative module
ii  libqt4-declarative:i386                     4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 Declarative module
ii  libqt4-designer:amd64                       4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 designer module
ii  libqt4-help:amd64                           4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 help module
ii  libqt4-network:amd64                        4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 network module
ii  libqt4-network:i386                         4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 network module
ii  libqt4-opengl:amd64                         4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 OpenGL module
ii  libqt4-opengl:i386                          4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 OpenGL module
ii  libqt4-qt3support:amd64                     4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 3 compatibility library for Qt 4
ii  libqt4-script:amd64                         4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 script module
ii  libqt4-script:i386                          4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 script module
ii  libqt4-sql:amd64                            4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 SQL module
ii  libqt4-sql:i386                             4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 SQL module
ii  libqt4-sql-mysql:amd64                      4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 MySQL database driver
ii  libqt4-sql-mysql:i386                       4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 MySQL database driver
ii  libqt4-sql-sqlite:amd64                     4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 SQLite 3 database driver
ii  libqt4-svg:amd64                            4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 SVG module
ii  libqt4-xml:amd64                            4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 XML module
ii  libqt4-xml:i386                             4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 XML module
ii  libqt4-xmlpatterns:amd64                    4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 XML patterns module
ii  libqt4-xmlpatterns:i386                     4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 XML patterns module
ii  libqtcore4:amd64                            4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 core module
ii  libqtcore4:i386                             4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 core module
ii  libqtdbus4:amd64                            4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 D-Bus module library
ii  libqtdbus4:i386                             4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 D-Bus module library
ii  libqtgui4:amd64                             4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 GUI module
ii  libqtgui4:i386                              4:4.8.5+git192-g085f851+dfsg-2ubuntu4  i386         Qt 4 GUI module
ii  libqtwebkit4:amd64                          2.3.2-0ubuntu7                         amd64        Web content engine library for Qt
ii  libqtwebkit4:i386                           2.3.2-0ubuntu7                         i386         Web content engine library for Qt
ii  qdbus                                       4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 D-Bus tool
ii  qt4-qmake                                   4:4.8.5+git192-g085f851+dfsg-2ubuntu4  amd64        Qt 4 qmake Makefile generator tool
ii  qtchooser                                   39-g4717841-3                          amd64        Wrapper to select between Qt development binary versions
ii  qtcore4-l10n                                4:4.8.5+git192-g085f851+dfsg-2ubuntu4  all          Qt 4 core module translations
ii  sni-qt:i386                                 0.2.6-0ubuntu1                         i386         indicator support for Qt


A couple years ago I tried a 2.6 compile and couldn't get qt working. It did work with gtk, which led me to my next compile test...
Title: Re: Merge Fields bug
Post by: bjohnson777 on May 24, 2015, 12:27:39 AM
The gtk compile test was done "with-gtk --without-qt4".

Here is the error from the shell window:
#########################################
Configure for avidemux Gtk Started
#########################################

-- [BUILD] EXTRA Cflags:
-- [BUILD] EXTRA CXXflags:
-- [BUILD] EXTRA LDflags:
-- [BUILD] Compiler /usr/bin/c++
-- [BUILD] Linker   /usr/bin/ld
-- Top Source dir is /scratch/avidemux/avidemux2/avidemux/gtk/../..

-- Checking Compiler support
-- *************************
-- Checking if compiler supports x86 64-bit - Yes
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian

-- CMAKE_INSTALL_PREFIX: /usr
-- AVIDEMUX_INSTALL_DIR: /usr
-- FAKEROOT                   : /scratch/avidemux/avidemux2/install/
-- AVIDEMUX_BIN_DIR           : /usr/bin
-- AVIDEMUX_LIB_DIR           : /usr/lib
-- AVIDEMUX_INCLUDE_DIR       : /usr/include
-- AVIDEMUX_SEARCH_INCLUDE_DIR: /scratch/avidemux/avidemux2/install//usr/include
-- AVIDEMUX_SEARCH_LIB_DIR    : /scratch/avidemux/avidemux2/install//usr/lib

-- Checking for SCM
-- ****************
-- Seems to be git or git-svn...
-- Getting git-svn version from /scratch/avidemux/avidemux2/avidemux/gtk/../..
-- <436b12c0513><150523>==> 150523_436b12c0513

-- Checking for pkg-config
-- ***********************
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Found pkg-config

-- Checking for pthreads
-- *********************
-- Found pthreads

-- Checking for zlib
-- *****************
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found zlib

-- Checking for gettext
-- ********************
-- Found libintl.h
-- Cound not find intl library
Could not find Gettext
-- libintl not required for gettext support

-- Checking for SDL
-- ****************
-- Found SDL

-- Checking for XVideo
-- *******************
-- Found X11/extensions/Xvlib.h
-- Found Xv library
-- Found XvShmPutImage in /usr/lib/x86_64-linux-gnu/libXv.so
-- Found XVideo

-- Checking for execinfo
-- *********************
-- Found execinfo.h
-- Cound not find execinfo library
Could not find execinfo

-- Checking for VDPAU
-- *******************
-- Found vdpau/vdpau.h
-- Found VDPAU

-- Checking for LIBVA
-- *******************
-- Found va/va.h
-- Checking it is the right version...
-- Found LIBVA

-- Checking for NVENC
-- *****************
--  nvenc header not Found

-- Checking system headers
-- ***********************
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found

-- AVFORMAT : 56, Major :
-- AVCODEC  : 56, Major :
-- AVUTIL   : 54, Major :
-- POSTPRC  : 53, Major :
-- SWSCALE  : 3, Major :

-- Checking for GTK+
-- *****************
-- checking for module 'gdk-pixbuf-2.0'
--   package 'gdk-pixbuf-2.0' not found
Could not find GdkPixBuf
-- gdk-pixbuf not found
-- checking for module 'gtk+-3.0'
--   package 'gtk+-3.0' not found
Could not find GTK+

-- Checking for GThread
-- ********************
-- checking for module 'gthread-2.0'
--   found gthread-2.0, version 2.40.2
-- Found GThread
-- Compiler Flags: -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- Linker Flags  : -pthread -lgthread-2.0 -lglib-2.0

-- GTK config.h generated
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success

**************************
***  Optional Library  ***
***      Summary       ***
**************************
*** Video Encoder      ***
    NVENC          No
*** Miscellaneous      ***
    gettext        Yes
    SDL            Yes
    XVideo         Yes
    VDPAU          Yes
    LIBVA          Yes
**************************
***   Release Build    ***
**************************

-- Packager=deb, valid choices= {deb,rpm,tgz,none}

-- Configuring done
CMake Warning (dev) in ADM_userInterfaces/ADM_toolkit_gtk/CMakeLists.txt:
  Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
  interface.  Run "cmake --help-policy CMP0022" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "ADM_toolkitGtk" has an INTERFACE_LINK_LIBRARIES property.  This
  should be preferred as the source of the link interface for this library
  but because CMP0022 is not set CMake is ignoring the property and using the
  link implementation as the link interface instead.

  INTERFACE_LINK_LIBRARIES:

    ADM_toolkitGtk

  Link implementation:

    (empty)

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    AVIDEMUX_SOURCE_DIR


-- Build files have been written to: /scratch/avidemux/avidemux2/buildGtk
** Failed at make, result in /tmp/logbuildGtk**
root@trusty-core64:/scratch/avidemux/avidemux2#


Looking at some of the errors above, here are some keyword package searches I did:
gettext
ii  autopoint                                   0.18.3.1-1ubuntu3                      all          The autopoint program from GNU gettext
ii  gettext                                     0.18.3.1-1ubuntu3                      amd64        GNU Internationalization utilities
ii  gettext-base                                0.18.3.1-1ubuntu3                      amd64        GNU Internationalization utilities for the base system
ii  libgettextpo0:amd64                         0.18.3.1-1ubuntu3                      amd64        GNU Internationalization library
ii  libgettextpo-dev:amd64                      0.18.3.1-1ubuntu3                      amd64        GNU Internationalization library development files
ii  liblocale-gettext-perl                      1.05-7build3                           amd64        module using libc functions for internationalization in Perl
ii  po-debconf                                  1.0.16+nmu2ubuntu1                     all          tool for managing templates file translations with gettext

execinfo
ii  libc6-dev:amd64                             2.19-0ubuntu6.6                        amd64        Embedded GNU C Library: Development Libraries and Header Files

pixbuf
ii  gir1.2-gdkpixbuf-2.0                        2.30.7-0ubuntu1                        amd64        GDK Pixbuf library - GObject-Introspection
ii  gtk2-engines-pixbuf:amd64                   2.24.23-0ubuntu1.2                     amd64        pixbuf-based theme for GTK+ 2.x
ii  libgdk-pixbuf2.0-0:amd64                    2.30.7-0ubuntu1                        amd64        GDK Pixbuf library
ii  libgdk-pixbuf2.0-0:i386                     2.30.7-0ubuntu1                        i386         GDK Pixbuf library
ii  libgdk-pixbuf2.0-common                     2.30.7-0ubuntu1                        all          GDK Pixbuf library - data files

gtk-3
ii  gir1.2-gtk-3.0                              3.10.8-0ubuntu1.4                      amd64        GTK+ graphical user interface library -- gir bindings
ii  gir1.2-javascriptcoregtk-3.0                2.4.8-1ubuntu1~ubuntu14.04.1           amd64        JavaScript engine library from WebKitGTK+ - GObject introspect
ion data
ii  libgtk-3-0:amd64                            3.10.8-0ubuntu1.4                      amd64        GTK+ graphical user interface library
ii  libgtk-3-bin                                3.10.8-0ubuntu1.4                      amd64        programs for the GTK+ graphical user interface library
ii  libgtk-3-common                             3.10.8-0ubuntu1.4                      all          common files for the GTK+ graphical user interface library
ii  libjavascriptcoregtk-3.0-0:amd64            2.4.8-1ubuntu1~ubuntu14.04.1           amd64        JavaScript engine library from WebKitGTK+
ii  libwebkitgtk-3.0-0:amd64                    2.4.8-1ubuntu1~ubuntu14.04.1           amd64        Web content engine library for GTK+
ii  libwebkitgtk-3.0-common                     2.4.8-1ubuntu1~ubuntu14.04.1           all          Web content engine library for GTK+ - data files


What are the next steps? Thanks for the help.
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on May 24, 2015, 06:04:10 AM
Quote from: bjohnson777 on May 24, 2015, 12:27:39 AM
The gtk compile test was done "with-gtk --without-qt4".
Don't use GTK: development is on halt for a long time (http://avidemux.org/smif/index.php/topic,16356.msg71950.html#msg71950).
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on May 24, 2015, 06:24:17 AM
Quote from: bjohnson777 on May 24, 2015, 12:23:16 AM
I tried the qt4 compile as instructed above. It errored out.

sudo apt-get update
sudo apt-get install gettext cmake-dbg libasound2-dbg libass-dev libdts-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-0-dbg libiconv-hook-dev libopencore-amrnb0-dbg libopencore-amrwb0-dbg libqt4-dbg libqt4-script-dbg libsdl-sound1.2-dev libsqlite3-0-dbg libtwolame-dev libva-dev libvdpau-dev libvpx1-dbg libwxsqlite3-2.8-0 libxml2-dbg libxslt1-dbg libxv1-dbg libxvmc1-dbg libzip-dev sqlite3 vdpauinfo vainfo mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev  libxml2-dev gcc g++ make cmake pkg-config libpng12-dev fakeroot yasm libsqlite3-dev libaften-dev libmp3lame-dev libx264-dev libfaad-dev libfaac-dev libqt4-dev


dpkg -l gettext cmake-dbg libasound2-dbg libass-dev libdts-dev libfribidi-dev libftgl-dev libftgl2 libglib2.0-0-dbg libiconv-hook-dev libopencore-amrnb0-dbg libopencore-amrwb0-dbg libqt4-dbg libqt4-script-dbg libsdl-sound1.2-dev libsqlite3-0-dbg libtwolame-dev libva-dev libvdpau-dev libvpx1-dbg libwxsqlite3-2.8-0 libxml2-dbg libxslt1-dbg libxv1-dbg libxvmc1-dbg libzip-dev sqlite3 vdpauinfo vainfo mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev  libxml2-dev gcc g++ make cmake pkg-config libpng12-dev fakeroot yasm libsqlite3-dev libaften-dev libmp3lame-dev libx264-dev libfaad-dev libfaac-dev libqt4-dev
QuoteDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version          Architecture     Description
+++-=======================-================-================-====================================================
ii  cmake                   2.8.12.2-0ubuntu amd64            cross-platform, open-source make system
ii  cmake-dbg               2.8.12.2-0ubuntu amd64            debugging symbols for CMake
ii  fakeroot                1.20-3ubuntu2    amd64            tool for simulating superuser privileges
ii  g++                     4:4.8.2-1ubuntu6 amd64            GNU C++ compiler
ii  gcc                     4:4.8.2-1ubuntu6 amd64            GNU C compiler
ii  gettext                 0.18.3.1-1ubuntu amd64            GNU Internationalization utilities
ii  libaften-dev            0.0.8+git2010010 amd64            audio AC3 encoder - development files
ii  libasound2-dbg:amd64    1.0.27.2-3ubuntu amd64            debugging symbols for libasound2
ii  libass-dev:amd64        0.10.1-3ubuntu1  amd64            development files for libass
ii  libdts-dev:amd64        0.0.5-6ubuntu1   amd64            backward compatibility place-holder for libdca
ii  libfaac-dev:amd64       1.28-6           amd64            AAC audio encoder (development)
ii  libfaad-dev:amd64       2.7-8            amd64            freeware Advanced Audio Decoder - development files
ii  libfribidi-dev          0.19.6-1         amd64            Development files for FreeBidi library
ii  libftgl-dev             2.1.3~rc5-4+nmu1 amd64            development files for libftgl
ii  libftgl2:amd64          2.1.3~rc5-4+nmu1 amd64            library to render text in OpenGL using FreeType
ii  libglib2.0-0-dbg:amd64  2.40.2-0ubuntu1  amd64            Debugging symbols for the GLib libraries
ii  libiconv-hook-dev       0.0.20021209-10u amd64            header files of libiconv-hook
ii  libmp3lame-dev:amd64    3.99.5+repack1-3 amd64            MP3 encoding library (development)
ii  libopencore-amrnb0-dbg: 0.1.3-2ubuntu1   amd64            Adaptive Multi Rate speech codec - debugging symbols
ii  libopencore-amrwb0-dbg: 0.1.3-2ubuntu1   amd64            Adaptive Multi-Rate - Wideband speech codec - debugg
ii  libpng12-dev            1.2.50-1ubuntu2  amd64            PNG library - development
ii  libqt4-dbg:amd64        4:4.8.5+git192-g amd64            Qt 4 library debugging symbols
ii  libqt4-dev              4:4.8.5+git192-g amd64            Qt 4 development files
ii  libqt4-script-dbg:amd64 4:4.8.5+git192-g amd64            Qt 4 script library debugging symbols
ii  libsdl-sound1.2-dev:amd 1.0.3-7          amd64            Sound library for Simple DirectMedia Layer 1.2, deve
ii  libsqlite3-0-dbg        3.8.2-1ubuntu2   amd64            SQLite 3 debugging symbols
ii  libsqlite3-dev:amd64    3.8.2-1ubuntu2   amd64            SQLite 3 development files
ii  libtwolame-dev          0.3.13-1ubuntu1  amd64            MPEG Audio Layer 2 encoder (development files)
ii  libva-dev:amd64         1.5.0-1~xedgers~ amd64            Video Acceleration (VA) API for Linux -- development
ii  libvdpau-dev:amd64      1.1-0ubuntu1~xed amd64            Video Decode and Presentation API for Unix (developm
ii  libvpx1-dbg             1.3.0-2          amd64            VP8 video codec (debugging symbols)
ii  libwxsqlite3-2.8-0:amd6 3.0.6.1~dfsg0-2  amd64            SQLite3 C++ wrapper for use in programs based on the
ii  libx264-dev:amd64       2:0.142.2389+git amd64            development files for libx264
ii  libxml2-dbg:amd64       2.9.1+dfsg1-3ubu amd64            Debugging symbols for the GNOME XML library
ii  libxml2-dev:amd64       2.9.1+dfsg1-3ubu amd64            Development files for the GNOME XML library
ii  libxslt1-dbg:amd64      1.1.28-2build1   amd64            XSLT 1.0 processing library - debugging symbols
ii  libxv1-dbg:amd64        2:1.0.10-1       amd64            X11 Video extension library (debug package)
ii  libxvmc1-dbg            2:1.0.8-1ubuntu1 amd64            X11 Video extension library (debug package)
ii  libzip-dev              0.10.1-1.2       amd64            library for reading, creating, and modifying zip arc
ii  make                    3.81-8.2ubuntu3  amd64            An utility for Directing compilation.
ii  mesa-common-dev:amd64   10.6.0~git201505 amd64            Developer documentation for Mesa
ii  mesa-vdpau-drivers:amd6 10.6.0~git201505 amd64            Mesa VDPAU video acceleration drivers
ii  mesa-vdpau-drivers-dbg: 10.6.0~git201505 amd64            Debugging symbols for the Mesa VDPAU video accelerat

ii  pkg-config              0.26-1ubuntu4    amd64            manage compile and link flags for libraries
ii  sqlite3                 3.8.2-1ubuntu2   amd64            Command line interface for SQLite 3
ii  vainfo                  1.5.0-1~xedgers~ amd64            Video Acceleration (VA) API for Linux -- info progra
ii  vdpauinfo               0.1-1            amd64            Video Decode and Presentation API for Unix (vdpauinf

ii  yasm                    1.2.0-1ubuntu1   amd64            modular assembler with multiple syntaxes support

mesa, vdpau only when nvidia gpu is present and installed with the open drivers (like gt-520 or gtx-960)
vainfo only when intel GPU is present and installed with its (open) drivers

my current ubuntu:
echo "## Current used kernel ##" && uname -r && echo "## Installed kernel(s) ##" && dpkg --list | grep linux-image && echo && lsb_release -a && echo "Bit:            "$(getconf LONG_BIT) && echo "Desktop:        "$XDG_CURRENT_DESKTOP && [ -d /sys/firmware/efi ] && echo "Installed in:   UEFI mode" || echo "Installed in:   Legacy mode"
Quote## Current used kernel ##
3.13.0-53-generic
## Installed kernel(s) ##
ii  linux-image-3.13.0-52-generic                         3.13.0-52.86                                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-53-generic                         3.13.0-53.89                                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-52-generic                   3.13.0-52.86                                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-53-generic                   3.13.0-53.89                                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-generic                                   3.13.0.53.60                                           amd64        Generic Linux kernel image

No LSB modules are available.
Distributor ID:   Ubuntu
Description:      Ubuntu 14.04.2 LTS
Release:          14.04
Codename:         trusty
Bit:              64
Desktop:          Unity
Installed in:     Legacy mode

build with:
cd ~/avidemux2 && bash bootStrap.bash --deb --with-qt4 --without-gtk --with-cli


Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on May 24, 2015, 06:32:20 AM
you might also try build and install x264:
1st time only:
git clone git://git.videolan.org/x264.git
next time (update)
cd ~/x264 && git pull
build x264:
cd ~/x264
./configure  --prefix="/usr" --bindir="/usr/local/bin" --libdir="/usr/lib/x86_64-linux-gnu/" --enable-static --enable-shared --enable-pic
make -j4
sudo make install


PS.: adapt -j4 to reflect the available cpu cores (2 = 2 cores, 4 = 4 cores, 6 =, 8 =, ...)
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on May 24, 2015, 06:37:48 AM
for nvidia drivers I use the ppa from xorg-edgers
deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu trusty main
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on May 24, 2015, 07:18:24 AM
Quote from: bjohnson777 on May 24, 2015, 12:16:24 AM
Thanks Jan and sorry for the response delays. I have bad health issues and am on overload with some other issues.

As mentioned in my previous post I was going to try a full render based on the 1min render tests I did with 2.6.9-1~getdeb1. Three tries failed when starting the second pass.

Attached are the crash and shell logs from the last try.

I tried git compiling, but those failed. I'll split those out into separate posts.

Can you save the project when you made all you settings. Avidemux Menu: File: Tinypy Project: Save As Project: Name: MyProject [Save]
and attach this to your posting. I'm not certain I understand all info correctly.

When cutting video it is important to only select cutting points with these 2: (https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.avidemux.org%2FadmWiki%2Flib%2Fexe%2Ffetch.php%3Fmedia%3Dusing%3Aprevious_keyframe-qt.png&hash=da1f5bd5d5a24f06391bc49cc0ed216457f30094) and (https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.avidemux.org%2FadmWiki%2Flib%2Fexe%2Ffetch.php%3Fmedia%3Dusing%3Anext_keyframe-qt.png&hash=0a172dd91ef16d1d1f12fb5e5ee95cbd6395cb8f).

See short editing demo or download:  Edit Cut Trim (https://www.dropbox.com/s/3idao0bju5j5mbm/Avidemux263EditCutTrim.mp4?dl=0)

Take good care of yourself. I visit here almost daily
Title: Re: Merge Fields bug
Post by: bjohnson777 on June 01, 2015, 02:16:25 AM
Got it compiled this time. Thanks. :-)

Output from your ID command from above:
## Current used kernel ##
3.13.0-53-generic
## Installed kernel(s) ##
ii  linux-image-3.13.0-53-generic               3.13.0-53.89                           amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-53-generic         3.13.0-53.89                           amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-generic                         3.13.0.53.60                           amd64        Generic Linux kernel image

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
Bit:            64
Desktop:        XFCE
Installed in:   Legacy mode


Abandon GTK is now added to my notes.

I'm still seeing "Could not find Gettext" and "Could not find execinfo", but it doesn't seem to matter so far.

Your long "dpkg -l" command doesn't show any missing packages.

Your "apt-get install ..." seems to have fixed the point where I was getting stuck at before. New packages installed not caught by auto-apt:
The following NEW packages will be installed:
  cmake-dbg libaften-dev libaften0 libasound2-dbg libass-dev libdca-dev
  libdts-dev libenca-dev libexpat1-dev libfaac-dev libfaad-dev
  libfontconfig1-dev libfreetype6-dev libfribidi-dev libftgl-dev libftgl2
  libglib2.0-0-dbg libiconv-hook-dev libiconv-hook1 libmikmod2 libmp3lame-dev
  libopencore-amrnb0-dbg libopencore-amrwb0-dbg libqt4-dbg libqt4-dev
  libqt4-dev-bin libqt4-opengl-dev libqt4-script-dbg libqt4-scripttools
  libqt4-test libqtwebkit-dev libsdl-sound1.2 libsdl-sound1.2-dev
  libsqlite3-0-dbg libtwolame-dev libvpx1-dbg libwxsqlite3-2.8-0 libx264-dev
  libxml2-dbg libxml2-dev libxslt1-dbg libxv1-dbg libxvmc1-dbg libzip-dev
  mesa-vdpau-drivers mesa-vdpau-drivers-dbg qt4-linguist-tools sqlite3 vainfo
  vdpauinfo
0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded.
Need to get 258 MB of archives.
After this operation, 333 MB of additional disk space will be used.


Auto-apt caught a bunch of smaller -dev packages that were left over. After the auto-apt compile finished, I deleted, extracted, and compiled normally using your preferred:
bash bootStrap.bash --deb --with-qt4 --without-gtk --with-cli

I did see this scroll by towards the end of the compile.
*** Video Encoder      ***
    Xvid           No
    x264           Yes
    x265           No

Ubuntu's xvid-dev is installed. Video output codec does show "Mpeg4 ASPP (xvid4)"... so it looks like xvid made it in the compile. Is this anything to worry about?

With mesa, vdpau, and vainfo, what is the "only" qualification? I think mesa and vdpau were installed by something else. I do have a geforce 8400gs in my quad, but not on the laptop I'm testing with (it has a mobile radeon). My nvidia driver for my quad is the commercial one.

Is the x264 lib packaged with Ubuntu good enough? or should I always compile my own x264?

Are the installation instructions for x265 similar to x264? Or is x265 considered to not be ready yet?

"Edit Cut Trim" wouldn't fully play on dropbox. I only get the first few seconds. I tried relaxing browser security some, but it didn't help. I can usualy download the mp4 file and play it using a real player. The dropbox web player wouldn't get beyond the (>) button on the screen.

I'm not doing a direct copy of the raw video, so I don't think cutting on the keyframes is necessary since it will be a full render. I normally scroll to an area to be clipped out and use the keyboard arrow keys to get to the point I want. Since 2.6.x can slip a little, I leave a few extra frames on each side. On my Ubuntu 12.04 LTS install, the 2.6.x version was OK with that.

My tinypy project file:
#PY  <- Needed to identify #
#--automatically built--

adm = Avidemux()
adm.loadVideo("/home/data/render3/gothmain.hd_fox_20150427-1859.raw.ts")
adm.clearSegments()
adm.addSegment(0, 55538800, 436402633)
adm.addSegment(0, 612328366, 516716200)
adm.addSegment(0, 1361443400, 462929133)
adm.addSegment(0, 2034766044, 336786456)
adm.addSegment(0, 2616897588, 254304056)
adm.addSegment(0, 3058588833, 579695789)
adm.markerA = 0
adm.markerB = 2586834267
adm.videoCodec("x264", "useAdvancedConfiguration=True", "general.params=2PASSBITRATE=800", "general.threads=0", "general.preset=ultrafast", "general.tuning=film",
"general.profile=baseline", "general.fast_decode=False", "general.zero_latency=False"
, "general.fast_first_pass=True", "level=32", "vui.sar_height=1", "vui.sar_width=1", "MaxRefFrames=5", "MinIdr=25", "MaxIdr=500", "i_scenecut_threshold=40", "intr
a_refresh=False", "MaxBFrame=5", "i_bframe_adaptive=2"
, "i_bframe_bias=0", "i_bframe_pyramid=1", "b_deblocking_filter=False", "i_deblocking_filter_alphac0=0", "i_deblocking_filter_beta=0", "cabac=True", "interlaced=F
alse", "constrained_intra=False", "tff=True"
, "fake_interlaced=False", "analyze.b_8x8=True", "analyze.b_i4x4=False", "analyze.b_i8x8=True", "analyze.b_p8x8=False", "analyze.b_p16x16=True", "analyze.b_b16x16
=True", "analyze.weighted_pred=2", "analyze.weighted_bipred=True"
, "analyze.direct_mv_pred=3", "analyze.chroma_offset=0", "analyze.me_method=2", "analyze.me_range=16", "analyze.mv_range=-1", "analyze.mv_range_thread=-1", "analy
ze.subpel_refine=8", "analyze.chroma_me=True"
, "analyze.mixed_references=True", "analyze.trellis=2", "analyze.psy_rd=0.000000", "analyze.psy_trellis=0.000000", "analyze.fast_pskip=False", "analyze.dct_decima
te=True", "analyze.noise_reduction=0", "analyze.psy=True"
, "analyze.intra_luma=11", "analyze.inter_luma=21", "ratecontrol.rc_method=0", "ratecontrol.qp_constant=0", "ratecontrol.qp_min=10", "ratecontrol.qp_max=51", "rat
econtrol.qp_step=4", "ratecontrol.bitrate=0"
, "ratecontrol.rate_tolerance=1.000000", "ratecontrol.vbv_max_bitrate=0", "ratecontrol.vbv_buffer_size=0", "ratecontrol.vbv_buffer_init=0", "ratecontrol.ip_factor
=1.400000", "ratecontrol.pb_factor=1.300000"
, "ratecontrol.aq_mode=1", "ratecontrol.aq_strength=1.000000", "ratecontrol.mb_tree=True", "ratecontrol.lookahead=40")
adm.addVideoFilter("eq2", "contrast=1.000000", "brightness=0.000000", "saturation=1.200000", "gamma=1.200000", "gamma_weight=1.000000", "rgamma=1.000000", "bgamma
=1.000000", "ggamma=1.000000")
adm.addVideoFilter("mergefields")
adm.addVideoFilter("lavdeint", "deintType=5", "autoLevel=False")
adm.addVideoFilter("decimate", "cycle=5", "mode=3", "quality=2", "show=False", "debug=False", "threshold=0.000000", "threshold2=0.000000")
adm.addVideoFilter("crop", "top=2", "bottom=2", "left=2", "right=2")
adm.addVideoFilter("swscale", "width=848", "height=480", "algo=2", "sourceAR=2", "targetAR=1")
adm.addVideoFilter("resampleFps", "mode=2", "newFpsDen=1001", "newFpsNum=24000")
adm.audioClearTracks()
adm.setSourceTrackLanguage(0,"")
adm.audioAddTrack(0)
adm.audioCodec(0, "copy");
adm.audioSetDrc(0, 0)
adm.audioSetShift(0, 0,0)
adm.setContainer("MKV", "forceDisplayWidth=False", "displayWidth=1280")

I'm not sure why
adm.setContainer("MKV", "forceDisplayWidth=False", "displayWidth=1280")
is set to 1280, but it doesn't seem to matter so far.

Found another bug. On a clean system without avidemux installed before, it errors and quits with this in the shell window:
[load]  can't read /root/.avidemux6/config2
It's in red while the rest is in green and black.

I just started the render again from the above tinypy project. It's past my bed time and I've got another heavy week ahead. I'll try and make some time tomorrow to report the render status.

Thanks for the help.
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on June 01, 2015, 04:51:41 AM
Quote from: bjohnson777 on June 01, 2015, 02:16:25 AM
I did see this scroll by towards the end of the compile.
*** Video Encoder      ***
    Xvid           No
    x264           Yes
    x265           No

Ubuntu's xvid-dev is installed. Video output codec does show "Mpeg4 ASPP (xvid4)"... so it looks like xvid made it in the compile. Is this anything to worry about?

Xvid should show yes. Check if these are installed.
dpkg -l libxvid*
QuoteDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version          Architecture     Description
+++-=======================-================-================-====================================================
ii  libxvidcore-dev:amd64   2:1.3.2-9ubuntu1 amd64            Open source MPEG-4 video codec (development)
ii  libxvidcore4:amd64      2:1.3.2-9ubuntu1 amd64            Open source MPEG-4 video codec (library)
If not:sudo apt-get update && sudo apt-get install libxvidcore-dev

QuoteWith mesa, vdpau, and vainfo, what is the "only" qualification? I think mesa and vdpau were installed by something else. I do have a geforce 8400gs in my quad, but not on the laptop I'm testing with (it has a mobile radeon). My nvidia driver for my quad is the commercial one.
- mesa can work with nvidia, intel or AMD gpu. If your laptop has intel gpu on cpu and AMD gpu (Intel/AMD hybrid graphics). You might look into how to install this correctly, if this brings an advantage. AMD gpu or Intel gpu hardware accelleration in avidemux is not guaranteed to work 100%. I only have user experience, with GT-520 and GTX-960.

QuoteIs the x264 lib packaged with Ubuntu good enough? or should I always compile my own x264?
If you don't come accross issues, you probably could stay with ubuntu stock x264.

QuoteAre the installation instructions for x265 similar to x264? Or is x265 considered to not be ready yet?
x265 is encoder, If you have need/use for it, you would need to install otherwise not.

Quote"Edit Cut Trim" wouldn't fully play on dropbox....
There is a download button at top righthand at dropbox player, you could download this way.
Edit Cut Trim with [ctrl][X] is currently broken, my opinion: see: Cutting on keyframe looses video information (http://avidemux.org/smif/index.php/topic,16434.msg72516.html#msg72516)

QuoteI'm not doing a direct copy of the raw video, so I don't think cutting on the keyframes is necessary since it will be a full render. I normally scroll to an area to be clipped out and use the keyboard arrow keys to get to the point I want. Since 2.6.x can slip a little, I leave a few extra frames on each side. On my Ubuntu 12.04 LTS install, the 2.6.x version was OK with that.
If you get squares, where you made edit, probably cause would be not using keyframe.

QuoteI'm not sure why
adm.setContainer("MKV", "forceDisplayWidth=False", "displayWidth=1280")
is set to 1280, but it doesn't seem to matter so far.
That comes in to play with SD video that has 4:3 an should play 16:9 on TV

QuoteFound another bug. On a clean system without avidemux installed before, it errors and quits with this in the shell window:
[load]  can't read /root/.avidemux6/config2
It's in red while the rest is in green and black.
That is weird, I think. On normal installation config2 should be in the users home.~/.avidemux6/config2You did install the deb's (7) by double clicking them as current user? So ubuntu software manager did install avidemux 2.6.9. Not certain this works the same way on XFCE

dpkg -l avidemux3*
QuoteDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                            Version                      Architecture                 Description
+++-===============================================-============================-============================-===================================================================================================
ii  avidemux3-cli                                   2.6.9-150531                 amd64                        Simple video editori,main program gtk version
ii  avidemux3-core                                  2.6.9-150531                 amd64                        Simple video editori,core libraries
ii  avidemux3-plugins-cli                           2.6.9-150531                 amd64                        Simple video editor, plugins
ii  avidemux3-plugins-common                        2.6.9-150531                 amd64                        Simple video editor, plugins
ii  avidemux3-plugins-qt4                           2.6.9-150531                 amd64                        Simple video editor, plugins
ii  avidemux3-plugins-settings                      2.6.9-150531                 amd64                        Simple video editor, plugins
ii  avidemux3-qt4                                   2.6.9-150531                 amd64                        Simple video editor,main program qt4 version
Title: Re: Merge Fields bug
Post by: bjohnson777 on June 02, 2015, 01:05:04 AM
For missing xvid in the summary list, "dpkg -l libxvid*" shows the same versions you have.

I don't have a dropbox account, so it wouldn't let me manually download. I understand what you're saying about the keyframe buttons from the post you listed. I'm not doing a copy, so no squares on output.

For vdpau, mesa, and such, is it possible to add a "--without-gfx-hardware-acceleration" option to bootStrap.bash? That might make troubleshooting a little easier.

For the "~/.avidemux6/config2" load failure, I was the user root. I needed to be for the compile with auto-apt. That's a test and dev system, so being root isn't a big deal. Maybe avidemux didn't like being run as root?

I installed the compiled deb's using "dpkg -i". No errors reported. Files and dpkg output:
-rw-r--r--  1 root root 1580878 May 31 20:11 avidemux3-cli-2.6.9-150531-Linux.deb
-rw-r--r--  1 root root 3460270 May 31 20:11 avidemux3-core-2.6.9-150531-Linux.deb
-rw-r--r--  1 root root   57216 May 31 20:11 avidemux3-plugins-CLI-2.6.9-150531-Linux.deb
-rw-r--r--  1 root root 1864182 May 31 20:11 avidemux3-plugins-COMMON-2.6.9-150531-Linux.deb
-rw-r--r--  1 root root  630360 May 31 20:11 avidemux3-plugins-QT4-2.6.9-150531-Linux.deb
-rw-r--r--  1 root root   60228 May 31 20:11 avidemux3-plugins-SETTINGS-2.6.9-150531-Linux.deb
-rw-r--r--  1 root root 2381594 May 31 20:11 avidemux3-qt4-2.6.9-150531-Linux.deb

ii  avidemux3-cli                               2.6.9-150531                               amd64        Simple video editori,main program gtk version
ii  avidemux3-core                              2.6.9-150531                               amd64        Simple video editori,core libraries
ii  avidemux3-plugins-cli                       2.6.9-150531                               amd64        Simple video editor, plugins
ii  avidemux3-plugins-common                    2.6.9-150531                               amd64        Simple video editor, plugins
ii  avidemux3-plugins-qt4                       2.6.9-150531                               amd64        Simple video editor, plugins
ii  avidemux3-plugins-settings                  2.6.9-150531                               amd64        Simple video editor, plugins
ii  avidemux3-qt4                               2.6.9-150531                               amd64        Simple video editor,main program qt4 version


After uninstalling the getdeb version first, these installed on my quad just fine. All the package dependencies were handled by the getdeb version, the previous version, and the ubuntu 2.5.4 version that's also installed. "dpkg -i" didn't report any problems.

As a side note, laptop and quad are both 64bit K10e processors. They both run the same ubuntu version with nearly identical installs and programs.

The compiled version loaded the tinypy project file without problems. I ran it for a full render of the video. It crashed after the first pass just like the getdeb version.

I ran avidemux from the command line using the tee command to capture the full shell output (and apparently the color control codes, too). That is attached with the crash.py file. Does 2.6 create the admlog file mentioned in the wiki?

Thanks for the help.
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on June 02, 2015, 04:11:05 AM
Delete the .idx2 for the used video files in your project.
dpkg -l vdpauinfo mesa-vdpau-drivers mesa-vdpau-drivers-dbg mesa-common-dev
QuoteDesired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                            Version                      Architecture                 Description
+++-===============================================-============================-============================-===============================================================
ii  mesa-common-dev:amd64                           10.6.0~git20150528+10.6.ffd1 amd64                        Developer documentation for Mesa
ii  mesa-vdpau-drivers:amd64                        10.6.0~git20150528+10.6.ffd1 amd64                        Mesa VDPAU video acceleration drivers
ii  mesa-vdpau-drivers-dbg:amd64                    10.6.0~git20150528+10.6.ffd1 amd64                        Debugging symbols for the Mesa VDPAU video acceleration drivers
ii  vdpauinfo                                       0.1-1                        amd64                        Video Decode and Presentation API for Unix (vdpauinfo utility)

Check settings in avidemux: Menu: Edit: Preferences:
[Display]
- Xvideo (best]
Default PostProcessing
[ ] Horizontal deblcoking
[ ] Vertical deblocking
[ ] Deringing
Strength: 0
[ ] Enable openGL support

[HW Accel]
[ ] Decode video using VDPAU (NVIDIA)
[ ] Decode video using  XVBA (AMD)
[ ] Decode video using  LIBVA (INTEL]
[ ] if you use Hw decoding, ....

[Threading]
Multi-threading
(*) Auto-detect

Prepare 1 minute video parts/sections to test with.

PS.:
- terminal ([Ctrl][alt][T]) window properties here are set to:
[Title and Command]
When command exits: [Hold the terminal open]

[scrolling]
Scrollback [v] Unlimited

- dropbox downloading: click download button: click No Thanks, continue to download --> (green highligted be me ;))
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on June 02, 2015, 05:43:53 AM
Did test with your tinypy script.
Avidemux crashes when trying to edit crop (double click on it)
Strikes me you want to  the crop is 1920x2160 to 1920x2156. Are you Certain this is correct? (HD = 1920x1080).
I'm not sure you crop can be minus 4 pixels? Width and hight, probably needs to be 8. I don't use this often, perhaps developer or user can confirm this!
swsRize would probably have the same issue (1916x2156)

attached bjohnson777.py  can be runned after you loaded one similar 1 minute test video.
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on June 02, 2015, 05:50:52 AM
Developer needs to look at this: did just see these values are calculated from video source.
Title: Re: Merge Fields bug
Post by: bjohnson777 on June 03, 2015, 02:54:12 AM
My mesa/vdpau are different than yours:
ii  mesa-common-dev                            10.1.3-0ubuntu0.4          amd64                      Developer documentation for Mesa
ii  mesa-vdpau-drivers:amd64                   10.1.3-0ubuntu0.4          amd64                      Mesa VDPAU video acceleration drivers
ii  mesa-vdpau-drivers-dbg:amd64               10.1.3-0ubuntu0.4          amd64                      Debugging symbols for the Mesa VDPAU video acceleration drivers
ii  vdpauinfo                                  0.1-1                      amd64                      Video Decode and Presentation API for Unix (vdpauinfo utility)


Edit / Preferences / Display: from VDPAU now to Xvideo.
Horizontal / Vertical Deblocking now off.
OpenGL was already off.
HWAccel / AMD: now off.
Threading: from 5 to Auto. Note that rendering usually won't take up all 4 cores in my quad, so I set it to 5 generally.

For the terminal program, depends on which you use. I just open a shell and run avidemux3_qt4. I've been using various flavors of unix forever, so shell comes natural to me.

Looks like my fuzzy eye sight problems and being chronically sleep deprived made me miss the dropbox option. Sorry about that. I understand what you're saying about the breakup issues with "Direct Strem Copy" as it was called in the VirtualDub days. I used to analog capture to xvid/avi (and still do for my other analog cap card). Clipping out the trash on keyframes was mandatory for AVI.

I deleted the idx2 file before, but I just deleted both (for main.ts and test.ts) again.

I started an xvid/avi test render last night before bed. It still crashed at the end of the first pass. I can post the crash.py and shell.log if desired. Probably not since I'm running another test with the above preferences settings I'll post before bed.

Back to tinypy...

I haven't run into "Crop" crashes with 2.6.9. I find that odd. That may have something to do with a different video source. I don't have much to render now besides the main.ts and test.ts (taken from main.ts) files.

When I'm rendering down to a smaller size, I usually will crop a tiny amount off the 4 sides to make sure excess black bars or junk doesn't get through. In this case -2 for each side. Avidemux requires the crop amount to be an even number.

Remember my HD video is 2x height from the MergeFields filter. The raw mpeg2.ts file is 1280x720 double frame rate.

I sometimes get questionable numbers from swsResize. The main key when rendering down to 480p is the "848x480, algo2" entry at the end. If I open swsResize, the "auto" functions tend to screw everything up and becomes a fight.

Looking at your filter list picture:

Mplayer EQ2: Sat should be 1.20. Boosting chroma is needed a little when boosting gamma to get the video out of the mud. I doubt that matters for this test, though.

Using bjohnson777.py on my usual test.ts file I've been using here, opening Crop didn't cause a crash for me. The 1min file rendered out normally.

From the main.ts crash using the new preferences:
command run from shell: avidemux3_qt4 2>&1 | tee shell.log
I did a "man tee" and discovered it doesn't redirect stderr, so I have that fixed tonight. Sorry about before.

New crash.py and shell.log attached. I used the tinypy project file I posted the other day without changes.

Thanks for the help.
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on June 03, 2015, 06:21:15 AM
Now comes the weird stuff.
- Load 720p video
- run bjohnson777.py script
- save video: avidemux 2.6.9 crashes.

Next:
- Load 720p video
- run bjohnson777.py script
- goto Video: Filters, preview each filter
- save video: no avidemux crash

Hope developer(s) have a clue/idea why this (c/w)ould happen.

Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on June 03, 2015, 06:27:16 AM
Terminal output from crash without each filter preview
Title: Re: Merge Fields bug
Post by: mean on June 03, 2015, 05:57:29 PM
I strongly suspect decimate
Title: Re: Merge Fields bug
Post by: bjohnson777 on June 04, 2015, 01:48:56 AM
For git-150531, following Jan's steps, I get random crashes. It probably has something to do with start and stop frames on mine as my test.ts is longer than I want so I clip it to 1m9s.

Using my tinypy project file that already has the start and stop frames fixed, the test.ts file will always render. Changing the start and stop frame positions is the first time I've seen test.ts crash.

What are the next steps I need to do?

Thanks guys.
Title: Re: Merge Fields bug
Post by: Jan Gruuthuse on June 04, 2015, 05:36:18 AM
proposal:
- edit/cut with video and audio in copy, middle sections first.
- don't edit Start and End of video. This should be last step before saving the new video:
-- mark with [A ]on key frame where you want to start new video
-- mark with [ B] where you want to end the new video
- now save video
- apply filters to new video and re-encode that video.
See if that works for you.
All I could think of from my side.
Title: Re: Merge Fields bug
Post by: bjohnson777 on June 05, 2015, 01:21:10 AM
I think I'd also run into crash problems with that method, too. If the problem is decimate based as Mean suggests, getting a successful render will be highly dependant on which frame is left in or out and where each frame starts in a cut section... and maybe if there's a minor blip in the raw mpeg2.ts file that throws things off a little.

I guess next step is to wait for a developer to track the problem down now that it is defined. Someone please post to this thread as I don't follow git and a new post will alert me of a change.

Thanks guys
Title: Re: Merge Fields bug
Post by: bjohnson777 on September 22, 2015, 07:19:49 PM
Any luck on tracking down the crash problem? I did a fresh compile from git last night followed by the same render as before. It crashed at the end of the first pass with an empty "info" pop up box like always.

Thanks