Immediate crash when encoding MP4

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
CasanovaFly
Posts: 13
Joined: Sat Jun 27, 2009 9:45 pm

Immediate crash when encoding MP4

Post by CasanovaFly »

Hello all,

I'm relatively new to Handbrake, but have used it without incident in the past. I've recently renewed my vigour in trying to get HD movie files to play on my Xbox 360, and figured Handbrake would be the best option being one of my best converters. However, any time I load everything in and hit 'Start' the command prompt window pops up and then disappears. I'm guessing it's an immediate crash, but I haven't the faintest idea why. I'm running Vista Ultimate 64-bit, and am trying to convert a couple HD MP4 files I have into the proper HD format with the right audio to work on a 360, as they don't work now. I've got the K-Lite Codec Pack for 64-bit installed for the h.264 codec. I also can't seem to convert to any output file type, leading me to believe it may be an issue with reading the MP4 input? I really haven't the slightest idea, and codecs are a bit out of my league, so any and all help will be greatly appreciated.

Code: Select all

### Windows GUI 0.9.3 2008112300 
### Running: Microsoft Windows NT 6.0.6002 Service Pack 2 
###
### CPU: Intel(R) Core(TM)2 Quad  CPU   Q9300  @ 2.50GHz 
### Ram: 4093 MB 
### Screen: 1680x1050 
### Temp Dir: C:\Users\Casanova Fly\AppData\Local\Temp\ 
### Install Dir: C:\Program Files (x86)\HandBrake 
### Data Dir: C:\Users\Casanova Fly\AppData\Roaming\HandBrake\HandBrake\0.9.3.0 
#########################################

### CLI Query:  -i "E:\Videos\HD Movies\Superhero Movie.mp4" -t 1 -c 1 -o "E:\Videos\Test.mp4" -f mp4 -p  -e x264 -S 2500 -a 1 -E faac -B 160 -R 48 -6 dpl2 -D 1 -x level=40:ref=2:mixed-refs=1:bframes=3:weightb=1:subq=9:direct=auto:b-pyramid=1:me=umh:analyse=all:no-fast-pskip=1:deblock=-2,-1 -C 4  -v 
#########################################
[18:37:51] hb_init: checking cpu count
[18:37:51] hb_init: starting libhb thread
HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
4 CPUs detected
Forcing 4 CPUs
Opening E:\Videos\HD Movies\Superhero Movie.mp4...
[18:37:51] hb_scan: path=E:\Videos\HD Movies\Superhero Movie.mp4, title_index=1
[18:37:51] scan: trying to open with libdvdread
[18:37:51] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Videos\HD Movies\Superhero Movie.mp4':
  Duration: 01:22:29.88, start: 0.000000, bitrate: 1184 kb/s
    Stream #0.0(und): Video: h264, yuv420p, 1280x720, 25.00 tb(r)
    Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16
[18:37:51] scan: decoding previews for title 1
Scanning title 1...
[18:37:51] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:37:51] scan: title (0) job->width:1280, job->height:720
[18:37:51] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + duration: 01:22:29
  + size: 1280x720, aspect: 1.78, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 01:22:29
  + audio tracks:
    + 1, Unknown (AAC)
  + subtitle tracks:
Calculated bitrate: 4072 kbps
[18:37:52] 1 job(s) to process
[18:37:52] starting job
[18:37:52] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[18:37:52] job configuration:
[18:37:52]  * source
[18:37:52]    + E:\Videos\HD Movies\Superhero Movie.mp4
[18:37:52]    + title 1, chapter(s) 1 to 1
[18:37:52]    + container: mov,mp4,m4a,3gp,3g2,mj2
[18:37:52]    + data rate: 1184 kbps
[18:37:52]  * destination
[18:37:52]    + E:\Videos\Test.mp4
[18:37:52]    + container: MPEG-4 (.mp4 and .m4v)
[18:37:52]  * video track
[18:37:52]    + decoder: h264
[18:37:52]    + frame rate: same as source (around 25.000 fps)
[18:37:52]    + strict anamorphic
[18:37:52]      + storage dimensions: 1280 * 720 -> 1280 * 720, crop 0/0/0/0
[18:37:52]      + pixel aspect ratio: 1 / 1
[18:37:52]      + display dimensions: 1280 * 720
[18:37:52]    + encoder: x264
[18:37:52]      + options: level=40:ref=2:mixed-refs=1:bframes=3:weightb=1:subq=9:direct=auto:b-pyramid=1:me=umh:analyse=all:no-fast-pskip=1:deblock=-2,-1
[18:37:52]      + bitrate: 4072 kbps, pass: 0
[18:37:52]  * audio track 0
[18:37:52]    + decoder: Unknown (AAC) (track 1, id 1)
[18:37:52]    + mixdown: Stereo
[18:37:52]    + encoder: faac
[18:37:52]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:37:52] dvd: not a dvd - trying as a stream/file instead
[18:37:52] encx264: encoding with stored aspect 1/1
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
[18:37:52] sync: expecting 123772 video frames
[18:37:52] reader: first SCR 0
      5 [unknown (0x1564)] HandBrakeCLI 6412 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
   1261 [unknown (0x1564)] HandBrakeCLI 6412 open_stackdumpfile: Dumping stack trace to HandBrakeCLI.exe.stackdump
TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: Immediate crash when encoding MP4

Post by TedJ »

AAC decoding was broken in the 0.9.3 release - try using the recent development snapshot.
CasanovaFly
Posts: 13
Joined: Sat Jun 27, 2009 9:45 pm

Re: Immediate crash when encoding MP4

Post by CasanovaFly »

Well that allowed me to encode MP4 now. I tried it out last night before you replied, and realized it was trouble reading the files that were HD. I downloaded the snapshot and it worked, but now I can no longer use the XviD codec, and can't create AVI files. Any ideas? I just uninstalled HandBrake and reinstalled 0.9.3 and it's back to as it was before.
User avatar
s55
HandBrake Team
Posts: 9900
Joined: Sun Dec 24, 2006 1:05 pm

Re: Immediate crash when encoding MP4

Post by s55 »

Your pretty much out of luck.

As per the snapshot announcement, neither xvid or avi are supported anymore.
revva1
Posts: 1
Joined: Wed Aug 19, 2009 5:51 am

Re: Immediate crash when encoding MP4

Post by revva1 »

I'm having a similar issue - I downloaded the SVN and its still crashing on me...

Code: Select all

### Windows GUI svn2592 2009062101 
### Running: Microsoft Windows NT 5.1.2600 Service Pack 3 
###
### CPU: Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz 
### Ram: 2047 MB 
### Screen: 1280x1024 
### Temp Dir: C:\Documents and Settings\Adam Cohen\Local Settings\Temp\ 
### Install Dir: C:\Program Files\HandBrake\dev 
### Data Dir: C:\Documents and Settings\Adam Cohen\Application Data\HandBrake\HandBrake\0.9.3.5 
#########################################

[01:57:26] hb_init: checking cpu count
[01:57:26] hb_init: starting libhb thread
HandBrake svn2592 (2009062101) - MinGW i386 - http://handbrake.fr
2 CPUs detected
Opening F:\My Documents\Downloads\Wedding Slideshow_2.mov...
[01:57:26] hb_scan: path=F:\My Documents\Downloads\Wedding Slideshow_2.mov, title_index=1
[01:57:26] scan: trying to open with libdvdread
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
ERROR: dvd: ifoOpen failed
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\My Documents\Downloads\Wedding Slideshow_2.mov':
  Duration: 00:35:17.68, start: 0.000000, bitrate: 5354 kb/s
    Stream #0.0(eng): Video: mpeg4, yuv420p, 853x480 [PAR 1:1 DAR 853:480], 29.97 tbr, 29.97 tbn, 1k tbc
    Stream #0.1(eng): Audio: mp3, 44100 Hz, stereo, s16, 224 kb/s
    Stream #0.2(eng): Audio: mp3, 44100 Hz, stereo, s16
    Stream #0.3(eng): Audio: mp3, 44100 Hz, stereo, s16
    Stream #0.4(eng): Audio: mp3, 44100 Hz, stereo, s16
    Stream #0.5(eng): Audio: mp3, 44100 Hz, stereo, s16
    Stream #0.6(eng): Audio: mp3, 44100 Hz, stereo, s16
    Stream #0.7(eng): Audio: mp3, 44100 Hz, stereo, s16
    Stream #0.8(eng): Audio: mp3, 44100 Hz, stereo, s16
    Stream #0.9(eng): Audio: mp3, 44100 Hz, stereo, s16
    Stream #0.10(eng): Data: 0x0000
[01:57:27] scan: decoding previews for title 1
Scanning title 1...
[01:57:27] scan: 10 previews, 853x480, 29.970 fps, autocrop = 0/0/0/0, aspect 1.78:1, PAR 1:1
[01:57:27] scan: title (0) job->width:848, job->height:480
Scanning title 1...
[01:57:27] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + duration: 00:35:17
  + size: 853x480, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:35:17
  + audio tracks:
    + 1, English (MP3)
    + 2, English (MP3)
    + 3, English (MP3)
    + 4, English (MP3)
    + 5, English (MP3)
    + 6, English (MP3)
    + 7, English (MP3)
    + 8, English (MP3)
    + 9, English (MP3)
  + subtitle tracks:
Reading chapter markers from file C:\Documents and Settings\Adam Cohen\Local Settings\Temp\wedding-1-chapters.csv
Modified x264 options for pass 1 to append turbo options: ref=3:bframes=6:me=umh:subq=9:8x8dct=1:no-fast-pskip=1:b-pyramid=1:weightb=1:direct=auto:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[01:57:27] 2 job(s) to process
[01:57:27] starting job
[01:57:27] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[01:57:27] job configuration:
[01:57:27]  * source
[01:57:27]    + F:\My Documents\Downloads\Wedding Slideshow_2.mov
[01:57:27]    + title 1, chapter(s) 1 to 1
[01:57:27]    + container: mov,mp4,m4a,3gp,3g2,mj2
[01:57:27]    + data rate: 5354 kbps
[01:57:27]  * destination
[01:57:27]    + F:\My Documents\Downloads\wedding.mp4
[01:57:27]    + container: MPEG-4 (.mp4 and .m4v)
[01:57:27]      + optimized for progressive web downloads
[01:57:27]      + chapter markers
[01:57:27]  * video track
[01:57:27]    + decoder: mpeg4
[01:57:27]    + frame rate: same as source (around 29.970 fps)
[01:57:27]    + strict anamorphic
[01:57:27]      + modulus: 0
[01:57:27]      + storage dimensions: 853 * 480 -> 853 * 480, crop 0/0/0/0
[01:57:27]      + pixel aspect ratio: 1 / 1
[01:57:27]      + display dimensions: 853 * 480
[01:57:27]    + filters
[01:57:27]      + Detelecine (pullup) (default settings)
[01:57:27]      + Decomb (default settings)
[01:57:27]    + encoder: x264
[01:57:27]      + options: ref=3:bframes=6:me=umh:subq=9:8x8dct=1:no-fast-pskip=1:b-pyramid=1:weightb=1:direct=auto:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[01:57:27]      + bitrate: 1300 kbps, pass: 1
[01:57:27]  * audio track 0
[01:57:27]    + decoder: English (MP3) (track 1, id 1)
[01:57:27]    + mixdown: Stereo
[01:57:27]    + encoder: faac
[01:57:27]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
[01:57:27] yadif thread started for segment 1
[01:57:27] decomb thread started for segment 1
[01:57:27] decomb thread started for segment 0
[01:57:27] yadif thread started for segment 0
libdvdread: Can't open file VIDEO_TS.IFO.
ERROR: dvd: ifoOpen failed
[01:57:27] reader: first SCR 0
[01:57:27] encx264: keyint-min: 30, keyint-max: 300
[01:57:27] encx264: encoding with stored aspect 1/1
x264 [error]: width or height not divisible by 2 (853x480)
User avatar
Rodeo
HandBrake Team
Posts: 12677
Joined: Tue Mar 03, 2009 8:55 pm

Re: Immediate crash when encoding MP4

Post by Rodeo »

revva1 wrote:I'm having a similar issue - I downloaded the SVN and its still crashing on me...
Doesn't appear to be the same issue. Your log shows a different error:
revva1 wrote:

Code: Select all


[…]

[01:57:27]    + strict anamorphic
[01:57:27]      + modulus: 0
[01:57:27]      + storage dimensions: 853 * 480 -> 853 * 480, crop 0/0/0/0

[…]

x264 [error]: width or height not divisible by 2 (853x480)
With this source, you will need to use another anamorphic setting (None or Loose) to ensure the dimensions are divisible by 2.
Post Reply