Author Topic: Microsoft Visual C++ Runtime Library Runtime Error  (Read 23936 times)

Killer 69

  • Newbie
  • *
  • Posts: 43
Microsoft Visual C++ Runtime Library Runtime Error
« 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
« Last Edit: September 09, 2012, 09:09:32 AM by Killer 69 »

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10974
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #1 on: September 09, 2012, 09:37:00 AM »
Could you upload a short sample ?

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #2 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.

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #3 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.

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #4 on: September 30, 2012, 08:53:58 AM »
Just tried with the latest beta, still the same problem.

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #5 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

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #6 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)

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #7 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

« Last Edit: September 30, 2012, 10:28:51 AM by Killer 69 »

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #8 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?

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #9 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.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #10 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?
Code: [Select]
ffmpeg -i file.mov -vcodec copy -acodec copy out.mp4or
Code: [Select]
ffmpeg -i file.mov -vcodec copy -acodec copy out.mkv
if you don't have ffmpeg installed: ffmpeg for windows

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #11 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

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #12 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%

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6051
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #13 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
Quote
ffmpeg -i mvi_0770.mov -vcodec copy -acodec copy mvi_0770.mkv

Killer 69

  • Newbie
  • *
  • Posts: 43
Re: Microsoft Visual C++ Runtime Library Runtime Error
« Reply #14 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.