Avidemux Forum

Avidemux => Windows => Topic started by: Killer 69 on September 09, 2012, 09:03:51 AM

Title: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on September 09, 2012, 09:03:51 AM
"avidemux.exe. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."

Got this error immediately after installing Avidemux 2.6.0 official 8179 32-bit Windows build on Windows XP SP3 (with all the latest MS security patches installed) and opening a 4GB MOV file. Exact size 3.99GB (4 294 259 809 bytes, 4 294 262 784 bytes on disk). I do have also Avidemux 2.5.6 on my computer, it does not have any problems with opening this very same file.

Video information (by AVIDemux 2.5.6):
Codec 4CC: H264
Image Size: 1280x720
Aspect ratio: 1:1 (1:1)
Frame Rate: 29.970 fps
Frame Count: 41613 frames
Total Duration: 00:23:08.488

Extra video properties:
Global Motion Compensation: No
Packed Bitstream: No
Quarter Pixel: No

Audio:
Codec: PCM
Channels: Stereo
Bitrate: 192000 Bps / 1536 kbps
Variable bitrate: No
Frequenzy: 48000 Hz
Total Duration: 00:23:08.487
File Size: 254.24MB

Also othe MOV files taken with the same camera have the same problem, so apparently it is not the file size at least, which is causing the problem. Other formats seems to work ok, tried to open WMV, 3GP and AVI
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: mean on September 09, 2012, 09:37:00 AM
Could you upload a short sample ?
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on September 09, 2012, 11:45:36 AM
Actually this may very well be anyway some file size problem. Just recorded some smaller videos for uploading and they showed no crash. So files smaller than 1gb are fine, in fact also a little bit over 1gb file worked ok. I'll check, what will be the problem limit, at least file size 1.96gb (2 109 625 473 bytes) already causes a crash.
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on September 10, 2012, 06:30:53 AM
Some more information. Recorded now a file with size 1.75GB (1 881 518 013 bytes) and it works with the default AVIDemux settings but if I do activate "Enable OpenGL support" option and try to open that file, AVIDemux crashes immediately.
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on September 30, 2012, 08:53:58 AM
Just tried with the latest beta, still the same problem.
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on September 30, 2012, 09:19:39 AM
Continued size limit investigatin, this time recorded a 7 minute video, size 1 269 468 KB and again immediate crash, when trying to open with the latest beta on Windows XP SP3
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Jan Gruuthuse on September 30, 2012, 09:26:02 AM
You're not writing to an fat-16 device?
In Edit -> Preferences -> Output is [v] Create OpenDML files marked?
What is the value set in split MPEG files every (MB)

Anything special with the used video files? (see some references 3gp and mov)
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on September 30, 2012, 10:09:11 AM
NTFS partition, "Create OpenDML files" not selected, "Split MPEG files every (MB) 790". Latest test video 6 minutes 30 secs, file size 1.11GB (1 198 836 069 bytes) crashed a little bit differently, it brought a "Crash" window to the screen. So 1 269 468 KB file does not work at all but just a little bit smaller almost works.

All videos are captured with Canon PowerShot SX210 IS camera, nothing done for the videos with other sw, just copied from the SD card to laptop. Hopefully attached files help to identify problem.

"admlog.txt" file contains these lines:
[HandleAction] ************ OPEN_APP_LOG **************
unhandled action 82
Saving crash file to C:\Documents and Settings\Administrator\Application Data\avidemux\crash.py

Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Jan Gruuthuse on September 30, 2012, 10:29:19 AM
Brand and model of used camera? This is only related to reading mov files > 2GB from that camera?
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on September 30, 2012, 10:31:13 AM
Modified my previous post to include also camera information, video format information on the first message on this chain, all videos recorded with the same camera and same settings.
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Jan Gruuthuse on September 30, 2012, 10:48:28 AM
All I can say weird. What happens when you use ffmpeg 1st on the mov and open these with avidemux 2.6?
ffmpeg -i file.mov -vcodec copy -acodec copy out.mp4
or
ffmpeg -i file.mov -vcodec copy -acodec copy out.mkv

if you don't have ffmpeg installed: ffmpeg for windows (http://ffmpeg.zeranoe.com/builds/)
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on October 01, 2012, 04:36:46 AM
C:\ffmpeg\bin>ffmpeg -i mvi_0770.mov -vcodec copy -acodec copy out.mp4
ffmpeg version N-44818-g13f0cd6 Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 27 2012 19:30:20 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mvi_0770.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537331968
    compatible_brands: qt  CAEP
  Duration: 00:07:37.35, start: 0.000000, bitrate: 24556 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu
vj420p, 1280x720, 23018 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s1
6, 1536 kb/s
[mp4 @ 025b9960] track 1: could not find tag, codec not currently supported in c
ontainer
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand     : qt
    minor_version   : 537331968
    compatible_brands: qt  CAEP
    encoder         : Lavf54.29.104
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1280x720,
q=2-31, 23018 kb/s, 29.97 fps, 30k tbn, 30k tbc
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, 15
36 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Operat
ion not permitted
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on October 01, 2012, 04:42:15 AM
C:\ffmpeg\bin>ffmpeg -i mvi_0770.mov -vcodec copy -acodec copy out.mkv
ffmpeg version N-44818-g13f0cd6 Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 27 2012 19:30:20 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mvi_0770.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537331968
    compatible_brands: qt  CAEP
  Duration: 00:07:37.35, start: 0.000000, bitrate: 24556 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu
vj420p, 1280x720, 23018 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s1
6, 1536 kb/s
Output #0, matroska, to 'out.mkv':
  Metadata:
    major_brand     : qt
    minor_version   : 537331968
    compatible_brands: qt  CAEP
    encoder         : Lavf54.29.104
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuvj420p, 1280x720, q=2-3
1, 23018 kb/s, 29.97 fps, 1k tbn, 30k tbc
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, 15
36 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   78 fps=0.0 q=-1.0 size=    7703kB time=00:00:03.00 bitrate=21014.6kbits
frame=  188 fps=185 q=-1.0 size=   18611kB time=00:00:07.00 bitrate=21757.9kbits
frame=  266 fps=176 q=-1.0 size=   26122kB time=00:00:09.00 bitrate=23752.8kbits
frame=  275 fps=130 q=-1.0 size=   26994kB time=00:00:10.01 bitrate=22091.5kbits
.
.
.
frame=13612 fps= 86 q=-1.0 size= 1361757kB time=00:07:34.45 bitrate=24547.1kbits
frame=13628 fps= 86 q=-1.0 size= 1363354kB time=00:07:35.45 bitrate=24521.9kbits
frame=13699 fps= 86 q=-1.0 size= 1370370kB time=00:07:37.35 bitrate=24545.5kbits
frame=13707 fps= 86 q=-1.0 Lsize= 1371162kB time=00:07:37.35 bitrate=24559.7kbit
s/s
video:1285122kB audio:85754kB subtitle:0 global headers:0kB muxing overhead 0.02
0839%
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Jan Gruuthuse on October 01, 2012, 04:59:04 AM
So mp4 option is not working for one reason or another? mkv seems to work fine.
Convert your clips 1st to mkv and see if you then can edit the clips as you like and if needed then save to mp4 from avidemux.
Don't forget to change the out.mkv to the 1st part of filename you convert
Quoteffmpeg -i mvi_0770.mov -vcodec copy -acodec copy mvi_0770.mkv
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on October 01, 2012, 08:12:15 AM
Converted to mkv, opened with Avidemux, works ok. Then tried to save the end of the clip (some 5 seconds or so) with "PrintInfo" filter selected. Selected options: Video output: Mpeg 4 AVC (x264), audio output MP3 (lame) and output format MP4 Muxer. Operation went through but when trying to open resulted file with QuickTime, I get error "Error -2041: an invalid sample description was found in the movie (<filename>.mp4).

VLC Media player plays the file without problems though.
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Jan Gruuthuse on October 01, 2012, 08:29:22 AM
Quicktime thinks this is a .3gp container? Changing the extension from .mp4 to .3gp seems to help the quicktime issue?
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on October 01, 2012, 09:10:20 AM
Renaming file to *.3gp did not change the endresult, QuickTime gives error, VLC plays file without a hitch.

Video information from Avidemux tells this: Codec 4CC: H264, Image size 1280x720, Aspect Ratio: 1:1 (1:1), Frame rate: 29.972 fps, Total duration 00:00:08:875, Extract video properties: All No, Audio codec: MP3, Channels: Stereo, Bitrate: 16000 Bps / 128 kbps, Variable Birtate: (empty), Frequenzy: 48000 Hz, Total duration: 00:00:00:000 <-- Pretty interesting this also!

Tried also to save with MP4v2 Muxer, fails to play also with QuickTime
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Jan Gruuthuse on October 01, 2012, 09:58:20 AM
Unlucky combination of circumstances :(
Update your quicktime? That error pops up around 2007 in relation to mp4 (3gp) or audio label not recognized.
Have you tried aac audio instead of mp3 or lower 48000 to 44100?
Don't have myself windows nor quicktime, so no testing at this end?
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on October 01, 2012, 10:11:51 AM
QuickTime player version 7.7.2, (1680.56), no newer version available.
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on October 15, 2012, 10:07:11 AM
Just tried the latest beta build r8219 and something has happened. Now I'm able to open and manage that 1.11GB file, which previously caused immediate "Crash" window. Still not able to open bigger files though, immediate "Microsoft Visual C++ Runtime Library Runtime Error".

Another thing, which I just noticed. No matter, how small file I open, there is immediate "Crash", if I select "Help, Advanced, Open application log", while I have that file open. If I do not have any file open, no problems.
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Jan Gruuthuse on October 15, 2012, 10:28:07 AM
download appropriate win32/win64/ -bit avidemux 2.6 and unpack and replace: http://avidemux.org/nightly/ currently r8235
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on October 15, 2012, 11:05:24 AM
Both problems still on the latest beta, logs attached.
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Jan Gruuthuse on October 15, 2012, 11:16:47 AM
Quote from: Killer 69 on October 01, 2012, 08:12:15 AM
>8>8
Video output: Mpeg 4 AVC (x264), audio output MP3 (lame) and output format MP4 Muxer. Operation went through but when trying to open resulted file with QuickTime, I get error "Error -2041: an invalid sample description was found in the movie (<filename>.mp4).
This is an quicktime player issue: it does not support mp3 track as it should.
Quote from: styrol on October 12, 2012, 02:29:35 PM
So you've got MP3 as audio in MP4 container? This combination is always critical as MP4 alone created by libav is (concerning compatibility). VLC can output MP4 (h.264/aac) files created by the Exporting wizard which VLC itself cannot play.
Try audio output aac instead of mp3
Title: Re: Microsoft Visual C++ Runtime Library Runtime Error
Post by: Killer 69 on October 15, 2012, 11:45:19 AM
AAC as a audio output seems to work for QuickTime error, other problems of course still remain.