Author Topic: Avidemux crashes on second edit  (Read 421 times)

Murray

  • Newbie
  • *
  • Posts: 15
Avidemux crashes on second edit
« on: September 02, 2017, 03:17:03 PM »
Hi, no matter what version I use since 2.6.12 every second edit crashes avidemux. If I set the cut points and then hit delete it crashes. If I don't hit delete and move the cursor outside the cut points it's ok. That is a work around, but I often forget and hit delete. The program crashes and I have to wait until I can restart it. It loads the old job and works fine after that.
 These are programs I record from tv and edit out the commercials before I watch them. So I edit out the part before the program starts and it's when I edit the first commercial segment that it always crashes.
Any help would be appreciated.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5514
Re: Avidemux crashes on second edit
« Reply #1 on: September 02, 2017, 03:48:06 PM »
You should upgrade 2.6.12 to latest 2.7 http://www.avidemux.org/nightly/win64/ (2017/08/26)

At start of video got to 1st cut (end of commercial) mark [ B] then [Ctrl][X] (cut). All content from begin to [ B] is now gone.
Select editing points only with up or down keyboard arrow. See if that helps.

Murray

  • Newbie
  • *
  • Posts: 15
Re: Avidemux crashes on second edit
« Reply #2 on: September 02, 2017, 04:03:26 PM »
Thanks for the reply. I have upgraded to the lastest hoping that would fix it, but it doesn't. I tried using only key frames and it still does it. I should add I get a seek error before it crashes.
I have attached the error message in case it helps.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5514
Re: Avidemux crashes on second edit
« Reply #3 on: September 02, 2017, 04:31:09 PM »
Delete the .idx2 files for related videos.
Try not to use such deep paths, if your on windows?
Is your source DVB-T recording? Does it only happens to this video recording? or same videos (same source)
Clean your temp files (windows/cache) check you do have enough room to edit the video ( approx 2.5 x the video size)
All I can think of, I'm not on windows.

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1302
Re: Avidemux crashes on second edit
« Reply #4 on: September 02, 2017, 05:38:47 PM »
Ctrl+X executes "Cut" which is "Copy to clipboard" and "Delete" in one step.

The only relevant thing is whether the current position is between the markers or outside. If it is the former, Avidemux tries to seek to the time of the A marker. If video decoding fails at this moment, things can go very wrong. Please reproduce this crash and, without restarting Avidemux, compress admlog.txt from the %localappdata%\avidemux folder and attach it to your reply.

Please check also whether you have video decoding via DXVA2 enabled. If yes, disable it.

Murray

  • Newbie
  • *
  • Posts: 15
Re: Avidemux crashes on second edit
« Reply #5 on: September 02, 2017, 06:41:23 PM »
I used my laptop as a test and it worked. I am still attaching the admlog as I'd like to get this fixed on my desktop. Let me know if uninstalling all the instances of avidemux is a place to start.

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1302
Re: Avidemux crashes on second edit
« Reply #6 on: September 02, 2017, 09:53:34 PM »
Did it work on your laptop with the very same video?

Anyway, I can reproduce the issue by manipulating ADM_Composer::goToTimeVideo in a way that makes both calls to ADM_Composer::seektoTime fail. This results in _currentSegment getting out of sync with _currentPts, ultimately leading to an assert failing in ADM_Composer::samePicture.
« Last Edit: September 02, 2017, 09:59:55 PM by eumagga0x2a »

Murray

  • Newbie
  • *
  • Posts: 15
Re: Avidemux crashes on second edit
« Reply #7 on: September 02, 2017, 10:39:33 PM »
No, it fails with the newer video's on my laptop. At first I used an older one as a test. When I tried a newer one it also fails. I use Hauppauge capture and Hauppauge hd pvr to record the video's. I can try running them through Handbrake to see if they still fail after.

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1302
Re: Avidemux crashes on second edit
« Reply #8 on: September 02, 2017, 11:04:42 PM »
Could you please provide a sample?

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1302
Re: Avidemux crashes on second edit
« Reply #9 on: September 03, 2017, 01:12:42 AM »
I've pushed a patch which should make Avidemux more robust against this crash.

Murray

  • Newbie
  • *
  • Posts: 15
Re: Avidemux crashes on second edit
« Reply #10 on: September 03, 2017, 01:52:30 PM »
Thanks.  :) How do I get the patch? a nightly build or something?

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1302
Re: Avidemux crashes on second edit
« Reply #11 on: September 03, 2017, 02:07:38 PM »
Either you cross-build yourself or wait for an official nightly to happen.

A sample would be nice nevertheless.

Murray

  • Newbie
  • *
  • Posts: 15
Re: Avidemux crashes on second edit
« Reply #12 on: September 03, 2017, 02:11:04 PM »
I'm on slow and metered internet, but I'll see how small a sample I can provide.

Murray

  • Newbie
  • *
  • Posts: 15
Re: Avidemux crashes on second edit
« Reply #13 on: September 03, 2017, 03:52:29 PM »
I tried uploading a larger sample, but I think there is a size restriction here. I am attaching a zipped video that is as poor quality as I can record. Plus it's only 3 seconds long, but long enough to reproduce the error.

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 1302
Re: Avidemux crashes on second edit
« Reply #14 on: September 03, 2017, 04:15:20 PM »
I can't reproduce the issue with this sample. You should have used a service like WeTransfer and post a link to the file.