ffdshow crashing when playing encodes with nightly builds

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
DigitalFool
Posts: 19
Joined: Sat May 16, 2009 3:37 am

ffdshow crashing when playing encodes with nightly builds

Post by DigitalFool »

I had an issue with Sherlock Holmes BD with 0.9.4 crashing in the same spot, so I tried nightly build 3284. The encode finished without error, however, the resulting mkv does not play in MC7 because it results in a ffdshow crash. Even more odd is that if I even highlight the mkv in Windows, explorer.exe crashes via the faulting module of ffdshow (gotta love Windows!). I've also now tried nightly build 3288 and it results in the same issue. I can replicate the issue just with a preview too.

I wasn't super concerned until I went back and grabbed another BD from my collection (Funny People) that worked flawless with 0.9.4 and it resulted in the same issue of ffdshow crashing with the nightly build (both). I figured it would be good to bring it up as a bug although I do understand that it is a reaction from ffdshow (ffdshow tryouts revision 3406 May 5 2010) and may be out the dev teams hands, but a definite change has been made since the release that seems to cause issues.

I can cofirm that the video plays with VLC if I open via VLC as I can't click on the file to open before explorer.exe crashes, but my media library solution uses MC7 :(

Running Win 7 Ultimate Handbrake GUI with latest nightly build 3288 and CLI via download off Handbrake nightly build forum link.
I use Clown_BD to create m2ts (and I've also tried MakeMKV with the same results for this situation)

My event log error:

Code: Select all

Log Name:      Application
Source:        Application Error
Date:          5/8/2010 3:29:28 PM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      PC7
Description:
Faulting application name: explorer.exe, version: 6.1.7600.16450, time stamp: 0x4aebab8d
Faulting module name: ffdshow.ax, version: 1.1.3406.0, time stamp: 0x4be1458b
Exception code: 0xc0000005
Fault offset: 0x000000000000e0f9
Faulting process id: 0x1720
Faulting application start time: 0x01caeeed025205ab
Faulting application path: C:\Windows\explorer.exe
Faulting module path: C:\Program Files\Shark007\filters\ffdshow.ax
Report Id: 65c6cf54-5ae0-11df-8e1e-0021705c054c
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2010-05-08T20:29:28.000000000Z" />
    <EventRecordID>4153</EventRecordID>
    <Channel>Application</Channel>
    <Computer>PC7</Computer>
    <Security />
  </System>
  <EventData>
    <Data>explorer.exe</Data>
    <Data>6.1.7600.16450</Data>
    <Data>4aebab8d</Data>
    <Data>ffdshow.ax</Data>
    <Data>1.1.3406.0</Data>
    <Data>4be1458b</Data>
    <Data>c0000005</Data>
    <Data>000000000000e0f9</Data>
    <Data>1720</Data>
    <Data>01caeeed025205ab</Data>
    <Data>C:\Windows\explorer.exe</Data>
    <Data>C:\Program Files\Shark007\filters\ffdshow.ax</Data>
    <Data>65c6cf54-5ae0-11df-8e1e-0021705c054c</Data>
  </EventData>
</Event>
My encode settings:

Code: Select all

### CLI Query:  -i "C:\Remux\Demux.M2TS" -t 1 -c 1 -o "C:\ISO\Demux-1.mkv"  -f mkv --strict-anamorphic  --detelecine --decomb -e x264 -q 19 -a 1,1 -E ac3,dts -6 auto,auto -R Auto,Auto -B auto,32 -D 0,0 -x ref=2:bframes=2:me=umh:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 -v 1
My log (success in 3284):

Code: Select all

[07:20:41] hb_init: checking cpu count
[07:20:41] hb_init: starting libhb thread
HandBrake svn3284 (2010050601) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening C:\Remux\Demux.M2TS...
[07:20:41] hb_scan: path=C:\Remux\Demux.M2TS, title_index=1
[07:20:41] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
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.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[07:20:41] dvd: not a dvd - trying as a stream/file instead
[07:20:41] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[07:20:41] hb_ts_stream_find_pids - found the following PIDS
[07:20:41]     Video PIDS : 
[07:20:41]       0x1011 type VC1 (0xea)
[07:20:41]     Audio PIDS : 
[07:20:41]       0x1100 type DTS-HD (0x86)
[07:20:41]       0x1200 type Unknown (0x90)
[07:20:41] transport stream pid 0x1100 (type 0x82) may be HDMV DTS audio (id 0x1)
[07:20:41] transport stream pid 0x1200 (type 0x90) isn't audio
[07:20:41] scan: decoding previews for title 1
Scanning title 1...
[07:20:41] scan: audio 0x1: DCA, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[07:20:42] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[07:20:42] scan: title (0) job->width:1920, job->height:1072
[07:20:42] stream: 4 good frames, 0 errors (0%)
[07:20:42] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: C:\Remux\Demux.M2TS
  + angle(s) 0
  + duration: 02:08:44
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 02:08:44
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
  + subtitle tracks:
Invalid sample rate 0, using input rate 48000
Invalid sample rate 0, using input rate 48000
[07:20:42] 1 job(s) to process
[07:20:42] starting job
[07:20:42] Passthru requested and input codec is not the same as output codec for track 1
[07:20:42] sync: expecting 185217 video frames
[07:20:42] job configuration:
[07:20:42]  * source
[07:20:42]    + C:\Remux\Demux.M2TS
[07:20:42]    + title 1, chapter(s) 1 to 1
[07:20:42]  * destination
[07:20:42]    + C:\ISO\Demux-1.mkv
[07:20:42]    + container: Matroska (.mkv)
[07:20:42]  * video track
[07:20:42]    + decoder: vc1
[07:20:42]      + bitrate 200 kbps
[07:20:42]    + frame rate: same as source (around 23.976 fps)
[07:20:42]    + strict anamorphic
[07:20:42]      + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0, mod 0
[07:20:42]      + pixel aspect ratio: 1 / 1
[07:20:42]      + display dimensions: 1920 * 1080
[07:20:42]    + filters
[07:20:42]      + Detelecine (pullup) (default settings)
[07:20:42]      + Decomb (default settings)
[07:20:42]    + encoder: x264
[07:20:42]      + options: ref=2:bframes=2:me=umh:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[07:20:42]      + quality: 19.00 (RF)
[07:20:42]  * audio track 0
[07:20:42]    + decoder: English (DTS) (5.1 ch) (track 1, id 1)
[07:20:42]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[07:20:42]    + DCA passthrough
[07:20:42] reader: first SCR 53955000 id 0 DTS 53996246
[07:20:42] yadif thread started for segment 0
[07:20:42] yadif thread started for segment 1
[07:20:42] yadif thread started for segment 2
[07:20:42] yadif thread started for segment 3
[07:20:42] decomb thread started for segment 0
[07:20:42] decomb thread started for segment 1
[07:20:42] decomb thread started for segment 2
[07:20:42] decomb thread started for segment 3
[07:20:42] encx264: min-keyint: 24, keyint: 240
[07:20:42] encx264: encoding with stored aspect 1/1
[07:20:42] encx264: Encoding at constant RF 19.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
[12:28:05] hb_ts_stream_decode - eof
[12:28:05] stream: 184729 good frames, 0 errors (0%)
[12:28:05] reader: done. 1 scr changes
[12:28:05] dca_syncinfo failed
[12:28:10] work: average encoding speed for job is 10.014731 fps
[12:28:11] sync: got 184729 frames, 185217 expected
[12:28:11] vc1-decoder done: 184729 frames, 1 decoder errors, 0 drops
[12:28:11] render: lost time: 52554 (14 frames)
[12:28:11] render: gained time: 52554 (56 frames) (0 not accounted for)
[12:28:11] render: average dropped frame duration: 3753
x264 [info]: frame I:3180  Avg QP:16.18  size:188522  PSNR Mean Y:47.76 U:53.78 V:54.57 Avg:49.01 Global:48.66
x264 [info]: frame P:133505 Avg QP:19.44  size: 51520  PSNR Mean Y:45.21 U:50.91 V:51.71 Avg:46.43 Global:46.07
x264 [info]: frame B:48029 Avg QP:20.96  size: 24039  PSNR Mean Y:43.82 U:50.57 V:51.56 Avg:45.15 Global:44.69
x264 [info]: consecutive B-frames: 52.0% 33.2% 14.8%
x264 [info]: mb I  I16..4: 32.6%  0.0% 67.4%
x264 [info]: mb P  I16..4:  2.2%  0.0%  3.0%  P16..4: 57.4% 11.8%  7.7%  0.0%  0.0%    skip:17.9%
x264 [info]: mb B  I16..4: 11.3%  0.0%  0.6%  B16..8: 32.4%  8.7%  0.6%  direct:10.6%  skip:35.9%  L0:41.0% L1:39.4% BI:19.6%
x264 [info]: coded y,uvDC,uvAC intra: 61.0% 56.0% 21.2% inter: 25.1% 13.1% 0.6%
x264 [info]: i16 v,h,dc,p: 33% 16% 26% 25%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 15% 26%  6%  7%  6%  7%  6%  6%
x264 [info]: i8c dc,h,v,p: 59% 17% 21%  3%
x264 [info]: Weighted P-Frames: Y:1.8%
x264 [info]: ref P L0: 70.5% 10.5% 18.9%  0.2%
x264 [info]: SSIM Mean Y:0.9785739
x264 [info]: PSNR Mean Y:44.891 U:50.871 V:51.722 Avg:46.139 Global:45.701 kb/s:8963.13
[12:28:11] mux: track 0, 184714 frames, 8632159666 bytes, 8962.96 kbps, fifo 128
[12:28:11] mux: track 1, 722319 frames, 1453305828 bytes, 1509.00 kbps, fifo 256
[12:28:11] decomb: deinterlaced 78 | blended 175 | unfiltered 184461 | total 184714
[12:28:11] libhb: work result = 0

Rip done!
HandBrake has exited.
My 0.9.4 log (encode failure):

Code: Select all

### CLI Query:  -i "C:\Remux\Demux.M2TS" -t 1 -c 1 -o "C:\ISO\Demux-1.mkv" -f mkv --strict-anamorphic  --detelecine --decomb -e x264 -q 19 -a 1,1 -E ac3,dts -6 auto,auto -R Auto,Auto -B auto,32 -D 0,0 -x ref=2:bframes=2:me=umh:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 -v 1

### User Query: False

#########################################

[01:13:21] hb_init: checking cpu count
[01:13:21] hb_init: starting libhb thread
HandBrake 0.9.4 (2009112300) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening C:\Remux\Demux.M2TS...
[01:13:21] hb_scan: path=C:\Remux\Demux.M2TS, title_index=1
[01:13:21] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
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.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[01:13:21] dvd: not a dvd - trying as a stream/file instead
[01:13:21] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[01:13:21] hb_ts_stream_find_pids - found the following PIDS
[01:13:21]     Video PIDS : 
[01:13:21]       0x1011 type VC1 (0xea)
[01:13:21]     Audio PIDS : 
[01:13:21]       0x1100 type DTS-HD (0x86)
[01:13:21]       0x1200 type Unknown (0x90)
[01:13:23] transport stream pid 0x1100 (type 0x82) may be HDMV DTS audio (id 0x1)
[01:13:25] transport stream pid 0x1200 (type 0x90) isn't audio
[01:13:25] scan: decoding previews for title 1
[01:13:25] scan: audio 0x1: DCA, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
Scanning title 1...
[01:13:27] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[01:13:27] scan: title (0) job->width:1936, job->height:1088
[01:13:27] stream: 4 good frames, 0 errors (0%)
[01:13:27] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + angle(s) 0
  + duration: 02:08:44
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 02:08:44
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
  + subtitle tracks:
Invalid sample rate 0, using input rate 48000
Invalid sample rate 0, using input rate 48000
[01:13:27] 1 job(s) to process
[01:13:27] starting job
[01:13:27] Passthru requested and input codec is not the same as output codec for track 1
[01:13:27] job configuration:
[01:13:27]  * source
[01:13:27]    + C:\Remux\Demux.M2TS
[01:13:27]    + title 1, chapter(s) 1 to 1
[01:13:27]  * destination
[01:13:27]    + C:\ISO\Demux-1.mkv
[01:13:27]    + container: Matroska (.mkv)
[01:13:27]  * video track
[01:13:27]    + decoder: vc1
[01:13:27]      + bitrate 200 kbps
[01:13:27]    + frame rate: same as source (around 23.976 fps)
[01:13:27]    + strict anamorphic
[01:13:27]      + modulus: 0
[01:13:27]      + storage dimensions: 1920 * 1080 -> 1920 * 1080, crop 0/0/0/0
[01:13:27]      + pixel aspect ratio: 1 / 1
[01:13:27]      + display dimensions: 1920 * 1080
[01:13:27]    + filters
[01:13:27]      + Detelecine (pullup) (default settings)
[01:13:27]      + Decomb (default settings)
[01:13:27]    + encoder: x264
[01:13:27]      + options: ref=2:bframes=2:me=umh:subq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0
[01:13:27]      + quality: 19.00 (RF)
[01:13:27]  * audio track 0
[01:13:27]    + decoder: English (DTS) (5.1 ch) (track 1, id 1)
[01:13:27]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[01:13:27]    + DCA passthrough
libdvdnav: Using dvdnav version 4.1.3
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.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[01:13:27] dvd: not a dvd - trying as a stream/file instead
[01:13:27] reader: first SCR 53955000 id 0 DTS 53996246
[01:13:27] yadif thread started for segment 0
[01:13:27] yadif thread started for segment 1
[01:13:27] yadif thread started for segment 2
[01:13:27] yadif thread started for segment 3
[01:13:27] decomb thread started for segment 0
[01:13:27] decomb thread started for segment 1
[01:13:27] decomb thread started for segment 2
[01:13:27] decomb thread started for segment 3
[01:13:27] encx264: keyint-min: 24, keyint-max: 240
[01:13:27] encx264: encoding with stored aspect 1/1
[01:13:27] encx264: Encoding at constant RF 19.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Main, level 4.0
[01:13:27] sync: expecting 185217 video frames
[01:13:27] sync: first pts is 3754
hyperzulu
Posts: 1
Joined: Mon Dec 13, 2010 4:00 am

Re: ffdshow crashing when playing encodes with nightly build

Post by hyperzulu »

I know this is a few months old, but I wanted to share my findings for those who may stumble upon this.

Only way I've found to fix this is to strip the video stream in tsmuxer, setting the profile to level 3.1 and then using mkvmerge to put it all back together. Using level=31 in the advanced options of Handbrake doesn't fix the issue, unfortunately.
Deleted User 11865

Re: ffdshow crashing when playing encodes with nightly build

Post by Deleted User 11865 »

hyperzulu wrote:I know this is a few months old, but I wanted to share my findings for those who may stumble upon this.

Only way I've found to fix this is to strip the video stream in tsmuxer, setting the profile to level 3.1 and then using mkvmerge to put it all back together. Using level=31 in the advanced options of Handbrake doesn't fix the issue, unfortunately.
Well, if you're encoding to 1080p like in your example, this is very wrong. Just the fact that the frame is 1920x1080 makes it exceed the level 3.1 constraints.

Does it work if you set the level to 4.0 in tsMuxeR? Does it work if you select a constant framerate (PFR unchecked) in the latest HandBrake nightly build?
Post Reply