GithubHelp home page GithubHelp logo

handbrake / handbrake Goto Github PK

View Code? Open in Web Editor NEW
15.6K 284.0 1.3K 108.4 MB

HandBrake's main development repository

Home Page: https://handbrake.fr

License: Other

Shell 1.17% C 57.03% Python 1.41% Objective-C 14.09% Makefile 0.03% Ruby 0.67% C# 24.54% NSIS 0.15% M4 0.08% Metal 0.70% Meson 0.10% CSS 0.03%
video-transcoding multi-platform gplv2

handbrake's Introduction

HandBrake macOS Build Windows Build Linux Build

HandBrake is an open-source video transcoder available for Linux, Mac, and Windows, licensed under the GNU General Public License (GPL) Version 2.

HandBrake takes videos you already have and makes new ones that work on your mobile phone, tablet, TV media player, game console, computer, or web browser—nearly anything that supports modern video formats.

HandBrake works with most common video files and formats, including ones created by consumer and professional video cameras, mobile devices such as phones and tablets, game and computer screen recordings, and DVD and Blu-ray discs. HandBrake leverages tools such as FFmpeg, x264, and x265 to create new MP4 or MKV video files from these Sources.

For information on downloading, building/installing, and using HandBrake, see the official HandBrake Documentation.

Community Support

Visit the HandBrake Community Forums.

For information on HandBrake's community support channels, please see Community Support.

Our community rules and code of conduct apply to both our site and GitHub.

Contributing

We welcome most contributions. While it is our goal to allow everyone to contribute, contributions not meeting the project's goals or standards may be rejected.

Please read our guide to contributing. This will provide you with all the information you need to start contributing to the project.

Translations

We are now accepting translations via Transifex

Please read our Translations Guide and follow the instructions if you are interested in joining the translation effort.

Additional Information

Authors
License
News

Special Thanks

MacStadium

and to many others who have contributed! Thanks

handbrake's People

Contributors

brad0 avatar bradleysepos avatar clee avatar dependabot[bot] avatar dynaflash avatar ewouth avatar ferdnyc avatar galad87 avatar galinart avatar hnsteyding avatar jbrjake avatar jsoref avatar jstebbins avatar konablend avatar marcosfrm avatar maximd33 avatar maximd33i avatar mstorsjo avatar nomis101 avatar philipperigaux avatar randomengy avatar robxnano avatar ryoon avatar samhutchins avatar seanmcg avatar sgothel avatar sr55 avatar titer avatar twalker314 avatar yuichiro-naito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

handbrake's Issues

Add an option to open multiple items

I want to encode a season of a series. For this, I have to open the items one by one and add them to the queue. It would be nice if we could open a folder or at least multiple files, and add them to the queue automatically.

Audio delay of -105 ms applied for all DVDs

Steps to re-create exactly as I did it:

  1. Run 0.10.3.
  2. Choose a DVD image (issue doesn't seem to exist with BDs).
  3. Choose following settings:
    1. Anamorphic strict
    2. Default detelecine
    3. H265
    4. Constant framerate
    5. Medium preset
    6. Main profile
    7. CRF 16
    8. HE-AAC (FDK), 128, Dolby Surround (I know this codec was removed in 0.10.5, but I don't think that's the issue.)
    9. Leave rest at defaults.
  4. Encode.
  5. Open MediaInfo, note audio delay.
  6. Repeat for multiple images.

I've tried this on 4 different DVDs now and they were all given a delay of -105 ms, even when it wasn't appropriate. For example, extracting the same audio track using DGIndex revealed an audio delay of 18ms, not -105. Adding a positive delay of +120 ms in MPC appears to correct the audio/video sync, further confirming this discovery.

Assuming Handbrake's ability to correctly infer the audio delay magnitude is eventually fixed, might there be a future feature to customize the delay? That would be a great workaround.

Thanks for all the great work you've put into this.


image

image

Auto-Title Selection Issue

Was trans-coding DVD files (ifo & vob in a folder) into .MP4 (h264/aac) and found a couple DVD where VidCoder picked a non-existing Title or in one case a correct Title and created a MP4 of near zero size compared to the expected 1 GB. Reported problem to VidCoder and after testing he suggested it was a Handbreak issue.
Can not upload example

But if you encode "Red 2" my RIP shows Title 24 as having the movie, HandBrake picks up Title 40 and when done it is 3kB rather than approx 1 GB
Had same problem with "Expendables 3", "Divergent", "Enders game", John Wick". etc

Segmentation fault in HandbrakeCLI

A segmentation fault occurs during encoding of one particular file (mpeg 2 transport stream from mythtv). It occurs 23mn 37s into the 60 minute file. This happens with Handbrake GIT Snapshots but not with the Release version. I have tried the following versions:

HandBrake 0.10.5 (2016021100) - Linux x86_64 - Completes encode successfully
HandBrake 20160211184813-ffd8cb1-master (2016021201) - Linux x86_64 - Segmentation fault
HandBrake 20160226110637-5764ff3-master (2016022701) - Linux x86_64 - Segmentation fault

To reproduce it, I have extracted 2 minutes of the source file, and the segmentation fault occurs with that 201 MB file.

The extract source file is here
https://www.dropbox.com/s/6y38qc1eo5tx3d4/extracted_with_dd.mpg?dl=0

The log is here
http://paste.ubuntu.com/15234619/

crash - drag and drop VOB file to GUI

Windows 8.1 64 Bit
HandBrake 0.10.5.0 64bit Version

I encode about 16 to 20 VOB files a day to H.265. I only do 4 add a time by queueing. Then the next four and so forth. Each VOB file I add via drag and drop. Sometimes on drop it crashes the app. After restarting the app (queue is recovered to the 2nd last item (so not the VOB file that crashed) I drag and drop the same VOB file again and it works. So I doubt that it has to do with a corrupt VOB file. I am sorry but I cannot provide an example file, because it is confidential dive videos.
Screenshot valid for seven days only.
http://picpaste.com/drag-and-drop-vob-file-MPlmK3NB.PNG

Reproducible? Yes, kind of.
Application does crash and is terminated. On Restart it recovers the queue up to the 2nd last item (so not the VOB file that crashed the application).
Downloaded from handbrake.fr
Sorry the activity log is 0 Bytes in size, so empty.

Best regards
Marek

GUI MouseOver Add to Queue not released after click

Windows 8.1 64 Bit
HandBrake 0.10.5.0 64bit Version

I want to Queue a couple VOB files for conversion to H.265 in mkv container. Hence I configure the conversion and click in the "tool bar" on the button "Add To Queue" (see screenshot http://picpaste.com/MouseOver-AddToQueue-Vxw9rXDJ.png link only valid for seven days). After clicking and moving the mouse off the button the Hover color does not change back. Also hovering over other buttons like "Show Queue" does not show the Hover color of that button.

Reproducible? Yes, just add items to the Queue via button "Add To Queue".
Application does not crash. So it is just a minor inconvenience.
Downloaded from handbrake.fr

Best regards
Marek

Update to Sparkle 1.13.1 or newer

A critical MITM vulnerability has been disclosed in the Sparkle framework:
http://arstechnica.com/security/2016/02/huge-number-of-mac-apps-vulnerable-to-hijacking-and-a-fix-is-elusive/

A fix has been released as of version 1.13.1. Handbrake was one of the few apps on my system flagged for using an older version.
https://github.com/sparkle-project/Sparkle/releases/tag/1.13.1

Although Handbrake appears to use HTTPS, I would be extremely happy to see this rolled out.

High CPU

capture

This is the lowest level the CLI uses. Is this an issue?

New Update 0.10.3 doesn't encode

After upgraded to new version 0.10.3 (in OS X 10.11.1), my handbrake doesn't encode.

Here is the copy of activity window :

22:26:52] macgui: Handbrake Version: 0.10.3 x86_64 (2016012200)
[22:26:52] hb_init: starting libhb thread
[22:26:52] hb_init: starting libhb thread
[22:26:53] macgui: hbInstances path to this instance: /Volumes/HandBrake-0.10.3-MacOSX.6_GUI_x86_64/HandBrake.app
[22:26:53] macgui: hbInstance found instance pidnum: 5079 at path: /Volumes/HandBrake-0.10.3-MacOSX.6_GUI_x86_64/HandBrake.app
[22:26:53] macgui: hbInstance MATCH FOUND, our pidnum is: 5079
[22:26:53] macgui: Pid for this instance: 5079
[22:26:53] macgui: HBQueueController : My Pidnum is 5079
[22:26:55] macgui: Queue reloaded
[22:27:00] macgui: trying to open video_ts folder (parent directory chosen)
[22:27:00] macgui: scanning titles with a duration of 10 seconds or more
[22:27:00] CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
[22:27:00] - Intel microarchitecture Ivy Bridge
[22:27:00] - logical processor count: 4
[22:27:01] OpenCL device #1: Intel HD Graphics 4000
[22:27:01] - OpenCL version: 1.2
[22:27:01] - driver version: 1.2(Oct 13 2015 18:35:07)
[22:27:01] - device type: GPU
[22:27:01] - supported: no
[22:27:01] hb_scan: path=/Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4) failed
[22:27:01] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:27:01] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2016-02-05 12:46:40
title : The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG
encoder : Lavf56.40.101
comment : The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG
Duration: 01:38:40.96, start: 0.000000, bitrate: 2731 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x800 [PAR 1:1 DAR 12:5], 2500 kb/s, 23.98 fps, 11988 tbn, 47.95 tbc (default)
Metadata:
creation_time : 2016-02-05 12:46:40
Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, fltp, 223 kb/s (default)
Metadata:
creation_time : 2016-02-05 12:46:40
[22:27:01] scan: decoding previews for title 1
[22:27:01] scan: audio 0x1: aac, rate=48000Hz, bitrate=223998 English (AAC) (5.1 ch)
[22:27:02] scan: 10 previews, 1920x800, 23.976 fps, autocrop = 0/0/0/0, aspect 2.40:1, PAR 1:1
[22:27:02] libhb: scan thread found 1 valid title(s)
[22:27:02] macgui: ScanDone state received from fHandle
[22:27:02] macgui: showNewScan: This is a new source item scan
[22:27:05] macgui: Rip: Pending queue count is 0
[22:27:05] macgui: getNextPendingQueueIndex next pending encode index is:0
[22:27:05] macgui: scanning specifically for title: 1
[22:27:05] CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
[22:27:05] - Intel microarchitecture Ivy Bridge
[22:27:05] - logical processor count: 4
[22:27:05] OpenCL device #1: Intel HD Graphics 4000
[22:27:05] - OpenCL version: 1.2
[22:27:05] - driver version: 1.2(Oct 13 2015 18:35:07)
[22:27:05] - device type: GPU
[22:27:05] - supported: no
[22:27:05] hb_scan: path=/Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4) failed
[22:27:05] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:27:05] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2016-02-05 12:46:40
title : The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG
encoder : Lavf56.40.101
comment : The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG
Duration: 01:38:40.96, start: 0.000000, bitrate: 2731 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x800 [PAR 1:1 DAR 12:5], 2500 kb/s, 23.98 fps, 11988 tbn, 47.95 tbc (default)
Metadata:
creation_time : 2016-02-05 12:46:40
Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, fltp, 223 kb/s (default)
Metadata:
creation_time : 2016-02-05 12:46:40
[22:27:05] scan: decoding previews for title 1
[22:27:05] scan: audio 0x1: aac, rate=48000Hz, bitrate=223998 English (AAC) (5.1 ch)
[22:27:05] scan: 10 previews, 1920x800, 23.976 fps, autocrop = 0/0/0/0, aspect 2.40:1, PAR 1:1
[22:27:05] macgui: Queue reloaded
[22:27:06] libhb: scan thread found 1 valid title(s)
[22:27:06] macgui: ScanDone state received from fQueueEncodeLibhb
[22:27:06] macgui: Preset: iPad
[22:27:06] macgui: processNewQueueEncode number of passes expected is: 1
[22:27:06] macgui: Start / Stop set to chapters
[22:27:06] macgui: prepareJob exiting
[22:27:06] 1 job(s) to process
[22:27:06] starting job
[22:27:06] sync: expecting 141961 video frames
[22:27:06] job configuration:
[22:27:06] * source
[22:27:06] + /Volumes/Data/Downloads/Utorrent/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4
[22:27:06] + title 1, chapter(s) 1 to 1
[22:27:06] + container: mov,mp4,m4a,3gp,3g2,mj2
[22:27:06] + data rate: 2731 kbps
[22:27:06] * destination
[22:27:06] + /Volumes/Data/Downloads/Utorrent/A.Clockwork.Orange.1971.1080p.BluRay.x264-BDiSC/The.Lookout.2007.1080p.BluRay.H264.AAC-RARBG.mp4
[22:27:06] + container: MPEG-4 (libavformat)
[22:27:06] * video track
[22:27:06] + decoder: h264
[22:27:06] + bitrate 2500 kbps
[22:27:06] + filters
[22:27:06] + Framerate Shaper (2:27000000:900000)
[22:27:06] + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[22:27:06] + Crop and Scale (1280:534:0:0:0:0)
[22:27:06] + source: 1920 * 800, crop (0/0/0/0): 1920 * 800, scale: 1280 * 534
[22:27:06] + loose anamorphic
[22:27:06] + storage dimensions: 1280 * 534, mod 2
[22:27:06] + pixel aspect ratio: 801 / 800
[22:27:06] + display dimensions: 1281 * 534
[22:27:06] + encoder: H.264 (libx264)
[22:27:06] + preset: medium
[22:27:06] + profile: high
[22:27:06] + level: 3.1
[22:27:06] + quality: 20.00 (RF)
[22:27:06] * audio track 1
[22:27:06] + decoder: English (AAC) (5.1 ch) (track 1, id 0x1)
[22:27:06] + bitrate: 223 kbps, samplerate: 48000 Hz
[22:27:06] + mixdown: Dolby Pro Logic II
[22:27:06] + encoder: AAC (Apple AudioToolbox)
[22:27:06] + bitrate: 160 kbps, samplerate: 48000 Hz
[22:27:06] reader: first SCR 0 id 0x0 DTS -7507
[22:27:06] encx264: min-keyint: 24, keyint: 240
[22:27:06] encx264: encoding at constant RF 20.000000
[22:27:06] encx264: unparsed options: level=3.1:vbv-bufsize=17500:vbv-maxrate=17500
x264 [info]: using SAR=801/800
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 3.1
[22:27:06] macgui: Queue reloaded
[22:27:06] sync: first pts is 7507
GUI ERROR dialog: avio_open2 failed, errno -28
[22:27:06] work: average encoding speed for job is 0.000000 fps
[22:27:06] sync: got 15 frames, 141961 expected
[22:27:06] render: 2 frames output, 0 dropped and 0 duped for CFR/PFR
[22:27:06] render: lost time: 0 (0 frames)
[22:27:06] render: gained time: 0 (0 frames) (0 not accounted for)
[22:27:06] h264-decoder done: 28 frames, 0 decoder errors, 0 drops
[22:27:06] reader: done. 1 scr changes
[22:27:06] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
[22:27:06] libhb: work result = 3
[22:27:07] macgui: incrementQueueItemDone there are no more pending encodes
[22:27:13] macgui: Queue reloaded

support for cineform codec

Cineform codec is used by gopro converter and this makes it pretty much unusable from any other software. is there a plan to include support cineform codec conversion to more friendly formats?

An echo when encoding with AAC(avcodec)

describe the problem in as much detail as possible:
when I encode an anime video with the program the new file sound has an echo

What are the steps to reproduce this problem:
encode an anime
here is the settings I used
http://imgur.com/a/vZ2AZ

What version of HandBrake you are running:
HandBrake-5764ff3_x86_64-Win_GUI
HandBrake-0.10.5-x86_64-Win_GUI
also tried
HandBrake-0.10.3-x86_64-Win_GUI
HandBrake-0.10.2-x86_64-Win_GUI
and the latest version for xp

What operating system and version you running:
Windows 10 pro 64bit TH2

If there was any exception or error displayed, please copy it and paste it here:
none

Please include the scan or encode log:
encode log
http://pastebin.com/y8cwQeHA

Link error

The build of the most recent handbrake sources from git using ends with.

/usr/bin/g++ -pipe -Wl,-S -Wl,-O1,--sort-common,--as-needed,-z,relro -fmessage-length=0 -Wall -g0 -O3 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -mfpmath=sse -msse2 -I./libhb/ -I./contrib/include -I/usr/include/libxml2 -o HandBrakeCLI -Wl,--start-group test/test.o test/parsecsv.o ./libhb/libhandbrake.a -L./contrib/lib -lass -lavresample -lavformat -lavcodec -lavfilter -lavutil -lmp3lame -ldvdnav -ldvdread -lfontconfig -lfribidi -logg -lsamplerate -lswscale -lvpx -ltheoraenc -ltheoradec -lvorbis -lvorbisenc -lx264 -lbluray -lfreetype -lxml2 -lbz2 -lz -ljansson -lpthread -ldl -lm -Wl,--end-group
./libhb/libhandbrake.a(avfilter.o):(.data+0x0): multiple definition of `hb_filter_deinterlace'
./libhb/libhandbrake.a(deinterlace.o):(.data+0x0): first defined here
collect2: error: ld returned 1 exit status
../test/module.rules:7: recipe for target 'HandBrakeCLI' failed
make: *** [HandBrakeCLI] Error 1
make: Leaving directory '/home/haawda/paketierung/meine_Pakete/handbrake-git/src/HandBrake/build'

Full build log:
handbrake-git_makepkg.txt

Changing sources unqueues the first job

If you have multiple jobs in the queue and then change source files, the job on the top of the list goes away (its settings are applied to the new source file)

To reproduce

  1. open a source file.
  2. Create a few queued jobs with it. Name the destination files 1.m4v, 2.m4v, etc.
  3. Change the source.

After completing step three, you will notice that 1.m4v is no longer in the queue.

Caveats

Technically, I dragged .mkv files in as my sources. I did not use the Source button to change sources, and I did not use DVDs as my sources. They were all files on my hard drive.

My workaround was to create a dummy job out of the source I was using first. I would then reorder the queue to put the dummy job at the top before changing sources. It worked. The dummy job disappeared (as opposed to the first job I actually queued), and I was able to have multiple sources and jobs queued up for transcoding.

wingui not constructing filters using hb_generate_filter_settings

This is causing filters such as deinterlace and rotate to have incorrect filter settings strings.

I made an attempt to write the code that would do this properly, but I'm sure I've got some of the conversions that are needed for calling libhb functions wrong.

Here's my attempt
Patch

KERNEL_SECURITY_CHECK_FAILURE bluescreen when HandBrake is running

Hey there, I've been recently having this weird bluescreen error with Handbrake which I've never had before. I first encountered it when I've finished recording a PCSX2 footage and putting it through HandBrake as a test. Usually it occurs when you've finished adding a video source, but there were some cases that it crashes without even doing anything.

I've just recently updated my nVidia drivers, so I kinda had a hunch that was what's causing it.

Reproduction steps

  1. Open HandBrake
  2. Add some random file (preferably Bandicam/Fraps recording)
  3. Bluescreen

Platform

OS: Windows 10 Pro
CPU: Intel Core i5-3317U
RAM: 4GB
GPU nVidia GeForce GT740 M with 361.43 driver (recently updated)

Version tested: 0.10.2

Minidumps: Minidump.zip

Sample dump output

2016-01-05_07-57-00

Sample file: pcsx2-r5875 2016-01-04 23-42-36-781.zip

Region misreading?

Trying to rip Casablanca, fails to read region.

`HandBrake 0.10.5.0 - 64bit Version
OS: Microsoft Windows NT 6.2.9200.0 - 64bit
CPU: AMD A6-7400K Radeon R5, 6 Compute Cores 2C+4G
Ram: 7111 MB,
GPU Information:
AMD Radeon(TM) R5 Graphics - 15.201.1151.1008
Screen: 1920x1080
Temp Dir: C:\Users\clive\AppData\Local\Temp
Install Dir: C:\Program Files\Tools\Handbrake
Data Dir: C:\Users\clive\AppData\Roaming\HandBrake Team\HandBrake\0.10.5.0


[19:48:30] CPU:
[19:48:30] - logical processor count: 2
[19:48:30] OpenCL device #1: Advanced Micro Devices, Inc. Spectre
[19:48:30] - OpenCL version: 2.0 AMD-APP (1800.11)
[19:48:30] - driver version: 1800.11 (VM)
[19:48:30] - device type: GPU
[19:48:30] - supported: YES
[19:48:30] Intel Quick Sync Video support: no
[19:48:30] hb_scan: path=D:, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(D:) failed
[19:48:30] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open D:\ for reading
libdvdread: Device D:\ inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open D:\ for reading
libdvdread: Device D:\ inaccessible, CSS authentication not available.
[19:48:31] scan: DVD has 4 title(s)
[19:48:31] scan: scanning title 1
[19:48:31] scan: opening IFO for VTS 1
[19:48:31] scan: duration is 01:38:28 (5908000 ms)
[19:48:31] pgc_id: 1, pgn: 1: pgc: 000000001D2764A0
[19:48:31] scan: vts=1, ttn=1, cells=0->35, blocks=3304->1915483, 1912180 blocks
[19:48:31] scan: checking audio 1
[19:48:31] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[19:48:31] scan: checking audio 2
[19:48:31] scan: id=0x81bd, lang=Francais (AC3), 3cc=fra ext=0
[19:48:31] scan: checking audio 3
[19:48:31] scan: id=0x82bd, lang=Italiano (AC3), 3cc=ita ext=0
[19:48:31] scan: checking audio 4
[19:48:31] scan: audio channel is not active
[19:48:31] scan: checking subtitle 1
[19:48:31] scan: id=0x20bd, lang=English, 3cc=eng ext=0
[19:48:31] scan: checking subtitle 2
[19:48:31] scan: id=0x21bd, lang=Francais, 3cc=fra ext=0
[19:48:31] scan: checking subtitle 3
[19:48:31] scan: id=0x22bd, lang=Italiano, 3cc=ita ext=1
[19:48:31] scan: checking subtitle 4
[19:48:31] scan: id=0x23bd, lang=Nederlands, 3cc=nld ext=0
[19:48:31] scan: checking subtitle 5
[19:48:31] scan: id=0x24bd, lang=Arabic, 3cc=ara ext=0
[19:48:31] scan: checking subtitle 6
[19:48:31] scan: id=0x25bd, lang=Espanol, 3cc=spa ext=0
[19:48:31] scan: checking subtitle 7
[19:48:31] scan: id=0x26bd, lang=Portugues, 3cc=por ext=0
[19:48:31] scan: checking subtitle 8
[19:48:31] scan: id=0x27bd, lang=Deutsch, 3cc=deu ext=0
[19:48:31] scan: checking subtitle 9
[19:48:31] scan: id=0x28bd, lang=Romanian, 3cc=ron ext=0
[19:48:31] scan: checking subtitle 10
[19:48:31] scan: id=0x29bd, lang=Bulgarian, 3cc=bul ext=0
[19:48:31] scan: checking subtitle 11
[19:48:31] scan: id=0x2abd, lang=English, 3cc=eng ext=1
[19:48:31] scan: checking subtitle 12
[19:48:31] scan: id=0x2bbd, lang=Italiano, 3cc=ita ext=1
[19:48:31] scan: title 1 has 36 chapters
[19:48:31] scan: chap 1 c=0->0, b=3304->24059 (20756), 68840 ms
[19:48:31] scan: chap 2 c=1->1, b=24060->103579 (79520), 217280 ms
[19:48:31] scan: chap 3 c=2->2, b=103580->134888 (31309), 88640 ms
[19:48:31] scan: chap 4 c=3->3, b=134889->177328 (42440), 135920 ms
[19:48:31] scan: chap 5 c=4->4, b=177329->247633 (70305), 221960 ms
[19:48:31] scan: chap 6 c=5->5, b=247634->268126 (20493), 69760 ms
[19:48:31] scan: chap 7 c=6->6, b=268127->327613 (59487), 195840 ms
[19:48:31] scan: chap 8 c=7->7, b=327614->392941 (65328), 192000 ms
[19:48:31] scan: chap 9 c=8->8, b=392942->436580 (43639), 121080 ms
[19:48:31] scan: chap 10 c=9->9, b=436581->486636 (50056), 146600 ms
[19:48:31] scan: chap 11 c=10->10, b=486637->563674 (77038), 211120 ms
[19:48:31] scan: chap 12 c=11->11, b=563675->604234 (40560), 130840 ms
[19:48:31] scan: chap 13 c=12->12, b=604235->644373 (40139), 131360 ms
[19:48:31] scan: chap 14 c=13->13, b=644374->691055 (46682), 149520 ms
[19:48:31] scan: chap 15 c=14->14, b=691056->737830 (46775), 159960 ms
[19:48:31] scan: chap 16 c=15->15, b=737831->796871 (59041), 193760 ms
[19:48:31] scan: chap 17 c=16->16, b=796872->893560 (96689), 320760 ms
[19:48:31] scan: chap 18 c=17->17, b=893561->957862 (64302), 217040 ms
[19:48:31] scan: chap 19 c=18->18, b=957863->1010404 (52542), 174520 ms
[19:48:31] scan: chap 20 c=19->19, b=1010405->1050539 (40135), 119360 ms
[19:48:31] scan: chap 21 c=20->20, b=1050540->1087198 (36659), 104920 ms
[19:48:31] scan: chap 22 c=21->21, b=1087199->1134790 (47592), 149480 ms
[19:48:31] scan: chap 23 c=22->22, b=1134791->1209303 (74513), 205680 ms
[19:48:31] scan: chap 24 c=23->23, b=1209304->1253646 (44343), 145280 ms
[19:48:31] scan: chap 25 c=24->24, b=1253647->1326479 (72833), 204720 ms
[19:48:31] scan: chap 26 c=25->25, b=1326480->1351102 (24623), 68520 ms
[19:48:31] scan: chap 27 c=26->26, b=1351103->1431746 (80644), 206160 ms
[19:48:31] scan: chap 28 c=27->27, b=1431747->1500036 (68290), 222080 ms
[19:48:31] scan: chap 29 c=28->28, b=1500037->1567970 (67934), 217120 ms
[19:48:31] scan: chap 30 c=29->29, b=1567971->1609153 (41183), 135920 ms
[19:48:31] scan: chap 31 c=30->30, b=1609154->1673451 (64298), 197200 ms
[19:48:31] scan: chap 32 c=31->31, b=1673452->1732375 (58924), 181760 ms
[19:48:31] scan: chap 33 c=32->32, b=1732376->1792724 (60349), 190240 ms
[19:48:31] scan: chap 34 c=33->33, b=1792725->1832054 (39330), 133360 ms
[19:48:31] scan: chap 35 c=34->34, b=1832055->1860607 (28553), 97240 ms
[19:48:31] scan: chap 36 c=35->35, b=1860608->1915483 (54876), 182160 ms
[19:48:31] scan: aspect = 1.33333
[19:48:31] scan: scanning title 2
[19:48:31] scan: opening IFO for VTS 1
[19:48:31] scan: duration is 00:00:12 (12800 ms)
[19:48:31] pgc_id: 2, pgn: 1: pgc: 000000001D275CC0
[19:48:31] scan: vts=1, ttn=2, cells=0->0, blocks=0->3303, 3304 blocks
[19:48:31] scan: checking audio 1
[19:48:31] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[19:48:31] scan: checking audio 2
[19:48:31] scan: duplicate audio track
[19:48:31] scan: checking audio 3
[19:48:31] scan: duplicate audio track
[19:48:31] scan: checking audio 4
[19:48:31] scan: audio channel is not active
[19:48:31] scan: checking subtitle 1
[19:48:31] scan: id=0x20bd, lang=English, 3cc=eng ext=0
[19:48:31] scan: checking subtitle 2
[19:48:31] scan: id=0x20bd, lang=Francais, 3cc=fra ext=0
[19:48:31] scan: checking subtitle 3
[19:48:31] scan: id=0x20bd, lang=Italiano, 3cc=ita ext=1
[19:48:31] scan: checking subtitle 4
[19:48:31] scan: id=0x20bd, lang=Nederlands, 3cc=nld ext=0
[19:48:31] scan: checking subtitle 5
[19:48:31] scan: id=0x20bd, lang=Arabic, 3cc=ara ext=0
[19:48:31] scan: checking subtitle 6
[19:48:31] scan: id=0x20bd, lang=Espanol, 3cc=spa ext=0
[19:48:31] scan: checking subtitle 7
[19:48:31] scan: id=0x20bd, lang=Portugues, 3cc=por ext=0
[19:48:31] scan: checking subtitle 8
[19:48:31] scan: id=0x20bd, lang=Deutsch, 3cc=deu ext=0
[19:48:31] scan: checking subtitle 9
[19:48:31] scan: id=0x20bd, lang=Romanian, 3cc=ron ext=0
[19:48:31] scan: checking subtitle 10
[19:48:31] scan: id=0x20bd, lang=Bulgarian, 3cc=bul ext=0
[19:48:31] scan: checking subtitle 11
[19:48:31] scan: id=0x20bd, lang=English, 3cc=eng ext=1
[19:48:31] scan: checking subtitle 12
[19:48:31] scan: id=0x20bd, lang=Italiano, 3cc=ita ext=1
[19:48:31] scan: title 2 has 1 chapters
[19:48:31] scan: chap 1 c=0->0, b=0->3303 (3304), 12800 ms
[19:48:31] scan: aspect = 1.33333
[19:48:31] scan: scanning title 3
[19:48:31] scan: opening IFO for VTS 1
[19:48:31] scan: duration is 00:36:46 (2206000 ms)
[19:48:31] pgc_id: 3, pgn: 1: pgc: 000000001D275F00
[19:48:31] scan: vts=1, ttn=3, cells=0->0, blocks=1915484->2699400, 783917 blocks
[19:48:31] scan: checking audio 1
[19:48:31] scan: audio channel is not active
[19:48:31] scan: checking audio 2
[19:48:31] scan: audio channel is not active
[19:48:31] scan: checking audio 3
[19:48:31] scan: audio channel is not active
[19:48:31] scan: checking audio 4
[19:48:31] scan: id=0x83bd, lang=English (AC3), 3cc=eng ext=0
[19:48:31] scan: checking subtitle 1
[19:48:31] scan: id=0x20bd, lang=English, 3cc=eng ext=0
[19:48:31] scan: checking subtitle 2
[19:48:31] scan: id=0x21bd, lang=Francais, 3cc=fra ext=0
[19:48:31] scan: checking subtitle 3
[19:48:31] scan: id=0x22bd, lang=Italiano, 3cc=ita ext=1
[19:48:31] scan: checking subtitle 4
[19:48:31] scan: id=0x23bd, lang=Nederlands, 3cc=nld ext=0
[19:48:31] scan: checking subtitle 5
[19:48:31] scan: id=0x23bd, lang=Arabic, 3cc=ara ext=0
[19:48:31] scan: checking subtitle 6
[19:48:31] scan: id=0x25bd, lang=Espanol, 3cc=spa ext=0
[19:48:31] scan: checking subtitle 7
[19:48:31] scan: id=0x23bd, lang=Portugues, 3cc=por ext=0
[19:48:31] scan: checking subtitle 8
[19:48:31] scan: id=0x27bd, lang=Deutsch, 3cc=deu ext=0
[19:48:31] scan: checking subtitle 9
[19:48:31] scan: id=0x23bd, lang=Romanian, 3cc=ron ext=0
[19:48:31] scan: checking subtitle 10
[19:48:31] scan: id=0x23bd, lang=Bulgarian, 3cc=bul ext=0
[19:48:31] scan: checking subtitle 11
[19:48:31] scan: id=0x20bd, lang=English, 3cc=eng ext=1
[19:48:31] scan: checking subtitle 12
[19:48:31] scan: id=0x22bd, lang=Italiano, 3cc=ita ext=1
[19:48:31] scan: title 3 has 1 chapters
[19:48:31] scan: chap 1 c=0->0, b=1915484->2699400 (783917), 2206000 ms
[19:48:31] scan: aspect = 1.33333
[19:48:31] scan: scanning title 4
[19:48:31] scan: opening IFO for VTS 1
[19:48:31] scan: duration is 00:02:48 (168720 ms)
[19:48:31] pgc_id: 4, pgn: 1: pgc: 000000001D275720
[19:48:31] scan: vts=1, ttn=4, cells=0->0, blocks=2699401->2758538, 59138 blocks
[19:48:31] scan: checking audio 1
[19:48:31] scan: audio channel is not active
[19:48:31] scan: checking audio 2
[19:48:31] scan: audio channel is not active
[19:48:31] scan: checking audio 3
[19:48:31] scan: audio channel is not active
[19:48:31] scan: checking audio 4
[19:48:31] scan: id=0x83bd, lang=English (AC3), 3cc=eng ext=0
[19:48:31] scan: checking subtitle 1
[19:48:31] scan: id=0x20bd, lang=English, 3cc=eng ext=0
[19:48:31] scan: checking subtitle 2
[19:48:31] scan: id=0x20bd, lang=Francais, 3cc=fra ext=0
[19:48:31] scan: checking subtitle 3
[19:48:31] scan: id=0x20bd, lang=Italiano, 3cc=ita ext=1
[19:48:31] scan: checking subtitle 4
[19:48:31] scan: id=0x20bd, lang=Nederlands, 3cc=nld ext=0
[19:48:31] scan: checking subtitle 5
[19:48:31] scan: id=0x20bd, lang=Arabic, 3cc=ara ext=0
[19:48:31] scan: checking subtitle 6
[19:48:31] scan: id=0x20bd, lang=Espanol, 3cc=spa ext=0
[19:48:31] scan: checking subtitle 7
[19:48:31] scan: id=0x20bd, lang=Portugues, 3cc=por ext=0
[19:48:31] scan: checking subtitle 8
[19:48:31] scan: id=0x20bd, lang=Deutsch, 3cc=deu ext=0
[19:48:31] scan: checking subtitle 9
[19:48:31] scan: id=0x20bd, lang=Romanian, 3cc=ron ext=0
[19:48:31] scan: checking subtitle 10
[19:48:31] scan: id=0x20bd, lang=Bulgarian, 3cc=bul ext=0
[19:48:31] scan: checking subtitle 11
[19:48:31] scan: id=0x20bd, lang=English, 3cc=eng ext=1
[19:48:31] scan: checking subtitle 12
[19:48:31] scan: id=0x20bd, lang=Italiano, 3cc=ita ext=1
[19:48:31] scan: title 4 has 1 chapters
[19:48:31] scan: chap 1 c=0->0, b=2699401->2758538 (59138), 168720 ms
[19:48:31] scan: aspect = 1.33333
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
dvdnav: Read Error, Error reading from DVD.
dvdnav: Read Error, Error reading NAV packet.
libdvdnav: Language 'en' not found, using 'ÿÿ' instead
libdvdnav: Menu Languages available: ÿÿ
libdvdnav: Language 'en' not found, using 'ÿÿ' instead
libdvdnav: Menu Languages available: ÿÿ
libdvdnav: Language 'en' not found, using 'ÿÿ' instead
libdvdnav: Menu Languages available: ÿÿ
dvdnav: Read Error, Error reading from DVD.
dvdnav: Read Error, Error reading from DVD.
dvdnav: Read Error, Error reading from DVD.
dvdnav: Read Error, Error reading NAV packet.
dvdnav: Read Error, Error reading from DVD.
[19:48:51] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
[19:48:51] scan: title angle(s) 1
dvdnav: Read Error, Error reading NAV packet.
[ac3 @ 000000001d27b820] frame sync error
[19:48:51] scan: audio 0x82bd: ac3, rate=48000Hz, bitrate=192000 Italiano (AC3) (1.0 ch)
[ac3 @ 000000001d27b820] frame sync error
[ac3 @ 000000001d27b820] frame CRC mismatch
[ac3 @ 000000001d27b820] frame sync error
[19:48:51] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (1.0 ch)
[ac3 @ 000000001d27b820] frame sync error
[ac3 @ 000000001d27b820] frame CRC mismatch
[ac3 @ 000000001d27b820] frame sync error
[ac3 @ 000000001d27b820] frame CRC mismatch
[ac3 @ 000000001d27b820] frame sync error
[19:48:51] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=192000 Francais (AC3) (1.0 ch)
dvdnav: Read Error, Error reading from DVD.
[19:48:53] Warning: Could not read data for preview 2, skipped
[19:48:53] scan: 1 previews, 720x576, 25.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 16:15
[19:48:53] Title is likely interlaced or telecined (1 out of 1 previews). You should do something about that.
[19:48:53] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
[19:48:53] scan: title angle(s) 1
dvdnav: Read Error, Error reading from DVD.
Last error repeated 1 times
dvdnav: Read Error, Error reading from DVD.
[19:48:54] Warning: Could not read data for preview 2, skipped
[19:48:54] scan: 1 previews, 720x576, 25.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 16:15
[19:48:54] Title is likely interlaced or telecined (1 out of 1 previews). You should do something about that.
[19:48:54] scan: decoding previews for title 2
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
[19:48:55] scan: title angle(s) 1
[19:48:55] Warning: Could not read data for preview 1, skipped
[19:48:55] scan: decoding previews for title 2
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
[19:48:55] scan: title angle(s) 1
[19:48:55] Warning: Could not read data for preview 1, skipped
[19:48:55] scan: decoding previews for title 3
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
[19:48:55] scan: title angle(s) 1
[ac3 @ 000000001d2debe0] frame sync error
[ac3 @ 000000001d2debe0] frame CRC mismatch
[ac3 @ 000000001d2debe0] frame sync error
[ac3 @ 000000001d2debe0] frame CRC mismatch
[ac3 @ 000000001d2debe0] frame sync error
[19:48:56] scan: audio 0x83bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (1.0 ch)
dvdnav: Read Error, Error reading from DVD.
Last error repeated 2 times
dvdnav: Read Error, Error reading from DVD.
[19:49:00] Warning: Could not read data for preview 3, skipped
[19:49:00] scan: 2 previews, 720x576, 25.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 16:15
[19:49:00] Title is likely interlaced or telecined (1 out of 2 previews). You should do something about that.
[19:49:00] scan: decoding previews for title 4
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
[19:49:00] scan: title angle(s) 1
dvdnav: Read Error, Error reading NAV packet.
[19:49:00] Warning: Could not read data for preview 1, skipped
[19:49:00] scan: decoding previews for title 4
libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4
[19:49:00] scan: title angle(s) 1
[19:49:00] Warning: Could not read data for preview 1, skipped
[19:49:00] libhb: scan thread found 2 valid title(s)
`

Building from source fails due to missing fftw3.h when compiling libsamplerate

I am trying to build the latest HandBrake commit from source (as described here, but with the --enable-fdk option enabled). Compilation fails when trying to compile the libsamplerate tests, due to a missing fftw3.h header:

michael@machine:~/devel/HandBrake$ lsb_release -a
LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:    15.10
Codename:   wily
michael@machine:~/devel/HandBrake$ git rev-parse HEAD
5764ff3816214014c822ddf3c8099ec3e5f69b61
michael@machine:~/devel/HandBrake$ ./configure --cross=x86_64-w64-mingw32 --enable-x265 --enable-qsv --enable-hwd --launch-jobs=1 --launch --enable-fdk
[...lots of output...]
  : /home/michael/Downloads/mingw/bin/x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I. -I../src -I./../src  -I/home/michael/devel/HandBrake/build/contrib/include -mfpmath=sse -msse2 -mno-ms-bitfields  -I/home/michael/devel/HandBrake/build/contrib/include -std=gnu99 -mfpmath=sse -msse2 -mno-ms-bitfields -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith -pipe -c -o multi_channel_test-calc_snr.o `test -f 'calc_snr.c' || echo './'`calc_snr.c
  : calc_snr.c:30:19: fatal error: fftw3.h: No such file or directory
  :  #include <fftw3.h>
  :                    ^
  : compilation terminated.
  : Makefile:505: recipe for target 'multi_channel_test-calc_snr.o' failed
  : make[2]: *** [multi_channel_test-calc_snr.o] Error 1
  : make[2]: Leaving directory '/home/michael/devel/HandBrake/build/contrib/libsamplerate/libsamplerate/tests'
  : Makefile:292: recipe for target 'all-recursive' failed
  : make[1]: *** [all-recursive] Error 1
  : make[1]: Leaving directory '/home/michael/devel/HandBrake/build/contrib/libsamplerate/libsamplerate'
  : ../contrib/libsamplerate/module.rules:2: recipe for target 'contrib/libsamplerate/.stamp.build' failed
  : make: *** [contrib/libsamplerate/.stamp.build] Error 2

It seems that FFTW is not downloaded into the ./build/contrib directory, nor a relevant include path added. I have it installed via my package manager (i.e. find /usr/include/ -name "fftw3.h") returns the found header, but I assume that's not very useful for cross-compilation.

Need scroll bars for lower resolution screens

My notebook computer only has 1024x600 resolution.

The HB screen is larger then that, and I cannot see the bottom of the screen (Close button on options page, status line on conversion screen, etc...)

Need to be able to make HB window smaller as needed, and scroll bars need to appear as needed.

Mark.

h265 main10 profile missing on OSX builds

In handbrake 10.5 on OSX, there is no Main10 profile available for h265, eventhough h265 1.9 supports it. Its there on the windows builds? Is this intentional or a bug?

No sound after 28 min

I'm trying to convert an iPhone 6S video that is 8.12 GB and 1hr 3min long to mp4 with Normal(Default) preset.
I'm using Handbrake 0.10.5 x86_64 on OS X 10.11.3 (15D21).

After ~28 min the sound is completely lost.

No sound when PCM in input - "no bitrate found"

Hi

I'm using Handbrake for serious projects for years, and I absolutely love it !
Today I must convert some short films to h264 for web diffusion. My source is an AVI container with PCM 44.1 kHz / 16 bits stereo sound (little indian).

When trancoding, I get no sound on the output file, whatever selected codec is.

In logs I see
scan: removing audio 0x1 because no bitrate found

Full log: Soleil d'hiver - 720 2016-01-26 19-02-43.log.txt

Here is a 2M piece of the file (extracted with dd, so total time is not correct)
http://festivalcinemaetc.com/video/extrait%20-%20soleil%20hiver%20-%20github.avi

For now I'll use ffmpeg mux function with multiple input mapping, but it's just a workaround.

System:
Linux / Debian 8
Handbrake 0.10.2+ds1-2 amd64

Feature request? Allow specifying non-sequential chapters

Hello, your tool is fantastic for my batch processing from the command line. Thank you for everything you've done!

My question is, would it be possible to modify the interface for the --chapters flag to allow specifying something like "0,2,3,6" instead of a hard-requirement for a range (e.g. "1-5")? Is there something inherent to how handbrake works that prevents this, or is it just something that hasn't shown a lot of interest, and so hasn't been prioritized? Having this capability would save me some hacky preprocessing with ffmpeg that I do to split/recombine videos which have their advertisements clearly embedded as chapter markers.

Thanks again!

File scanning chapter select on first input acting strange.

When I add a file full of movies with chapters to Handbrake, the first movie that is auto-selected in the list has chapters set at 1 to 1, instead of automatically selecting the full movie. Accidentally converted the first chapter of a couple movies already.
Running on a El capitan, Macbook Pro 15"
Doesn't seem to happen every time, but something is up.

Subtitles are automatically burned in from Blu Ray sources

After using MakeMKV on Blu Ray media, if I add any subtitles in Handbrake one of them is automatically burned in even if I haven't selected that check-box.

My test case is Airplane!, and I'm using MakeMKV 1.9.9, Handbrake 0.10.5.0 - 64bit, and VLC 2.2.1 for playback.

When locking screen you get a crash

When running on OS-X El Capitan:
Version 0.10.5 x86_64 (2016021100)

Start transcoding a video file main window open and queue window open but focus is on queue processing the first item in the queue; press ctrl-shift-power (or crtl-shift-eject) then you get the following error:

0   CoreFoundation                      0x00007fff92ec8ae2 __exceptionPreprocess + 178
1   libobjc.A.dylib                     0x00007fff956a8f7e objc_exception_throw + 48
2   CoreFoundation                      0x00007fff92ec898d +[NSException raise:format:] + 205
3   CoreFoundation                      0x00007fff92d8e906 -[__NSCFString characterAtIndex:] + 102
4   HandBrake                           0x0000000100039178 -[HBQueueOutlineView keyDown:] + 66
5   AppKit                              0x00007fff9da61715 -[NSWindow _reallySendEvent:isDelayedEvent:] + 2108
6   AppKit                              0x00007fff9d3b9735 -[NSWindow sendEvent:] + 517
7   AppKit                              0x00007fff9d3b657b -[NSApplication sendEvent:] + 4382
8   AppKit                              0x00007fff9d2e903a -[NSApplication run] + 796
9   AppKit                              0x00007fff9d26b520 NSApplicationMain + 1176
10  HandBrake                           0x0000000100001cb4 start + 52
11  ???                                 0x0000000000000001 0x0 + 1

This happens every time for me when focus is on handbrake, switching focus to another application before locking does not cause the crash.

Hashes for 0.10.5 are missing

The website with the hashes does not yet include the hashes for the latest release.

By the way, a code-signed binary or even a detached PGP signature would be probably more trustworthy, although the website with HTTPS is a start. Just as a wish, not meant as a negative comment or such :)

Weird output with VP9 8K input files

When using any VP9 8K video as input (for example from YouTube) the output will look like
screenshot3qnu1n

As the output will look like this regardless of the encoding settings, I assume it is the decoder.

Tested on Windows 10 with 12GB of RAM, using stable and current nightlys (64bit). This problem was also present few months ago using another computer with Windows 8.1.

Logs if really needed: click

vfr: simplify and improve CFR frame dropping algo

Original title: Detelecine not working with some TS Files

Hey all,

I originally posted this in the Windows Support forum when I thought it was something wrong with my project settings, but I now think it's a bug, so I'm creating a formal Issue for it.

When trying to detelecine some 1080i 29.97 TS (h.264) files down to 720p 23.976 I end up with duplicate frames and stuttering. However, converting the TS file to raw uncompressed AVI (via Virtualdub) and then using the same Handbrake profile results in a perfectly smooth detelecined 23.976 file with no problems other than a slight stutter in the first few frames. The struggle that Handbrake is having would then not appear to be the specific frame order (since it's identical in the AVI) but with the reading/decoding of the TS file itself.

Here's an example TS file that you can use to test*:

AL-Example-GitHub-TS-File.zip

And here are two rendered mp4s of the test file above, one using just the TS file and the other using the Uncompressed AVI*:

AL-Example-GitHub-Rendered-Files.zip

Here are the encode logs for both:

TS File: https://gist.github.com/albino1/8e51f2bafdf020efc344
AVI File: https://gist.github.com/albino1/9dc67c4ea23a69038c15

There's some other steps I went through in the forum thread, but if you have any more questions or need any more information then let me know. Thanks.

Platforms tested: Windows 7 Professional, Windows 7 Home Premium, Windows 10
Versions tested: Handbrake 0.10.2.7286 - 64bit Version and the Nightly CLI build 1e56395

* GitHub only allows certain file types, so I had to zip the videos in order to attach them.

Unable to compile in Xcode

ExternalBuildToolExecution external
    cd "/Users/Sequencer/Downloads/handbrake-git copy/macosx"
    export ACTION=
    export ALTERNATE_GROUP=staff
    export ALTERNATE_MODE=u+w,go-w,a+rX
    export ALTERNATE_OWNER=Sequencer
    export ALWAYS_SEARCH_USER_PATHS=NO
    export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
    export APPLE_INTERNAL_DIR=/AppleInternal
    export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
    export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
    export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
    export APPLICATION_EXTENSION_API_ONLY=NO
    export APPLY_RULES_IN_COPY_FILES=NO
    export ARCHS=x86_64
    export AVAILABLE_PLATFORMS="watchos iphonesimulator macosx appletvsimulator watchsimulator appletvos iphoneos"
    export BITCODE_GENERATION_MODE=marker
    export BUILD_ACTIVE_RESOURCES_ONLY=NO
    export BUILD_COMPONENTS="headers build"
    export BUILD_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products
    export BUILD_ROOT=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products
    export BUILD_STYLE=
    export BUILD_VARIANTS=normal
    export BUILT_PRODUCTS_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release
    export CACHE_ROOT=/var/folders/c6/655g9gg13xvfyxt8hhjjqfx80000gn/C/com.apple.DeveloperTools/7.2.1-7C1002/Xcode
    export CLANG_MODULES_BUILD_SESSION_FILE=/Users/Sequencer/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation
    export CLANG_WARN_BOOL_CONVERSION=YES
    export CLANG_WARN_CONSTANT_CONVERSION=YES
    export CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS=YES
    export CLANG_WARN_EMPTY_BODY=YES
    export CLANG_WARN_ENUM_CONVERSION=YES
    export CLANG_WARN_INT_CONVERSION=YES
    export CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES=NO
    export CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION=YES
    export CLANG_WARN_UNREACHABLE_CODE=YES
    export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES
    export CLASS_FILE_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build/JavaClasses
    export CLONE_HEADERS=NO
    export CODE_SIGNING_ALLOWED=NO
    export COLOR_DIAGNOSTICS=NO
    export CONFIGURATION=release
    export CONFIGURATION_BUILD_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release
    export CONFIGURATION_TEMP_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release
    export COPYING_PRESERVES_HFS_DATA=NO
    export COPY_HEADERS_RUN_UNIFDEF=NO
    export COPY_PHASE_STRIP=YES
    export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
    export DEAD_CODE_STRIPPING=NO
    export DEBUGGING_SYMBOLS=YES
    export DEBUG_INFORMATION_FORMAT=dwarf-with-dsym
    export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
    export DEFAULT_KEXT_INSTALL_PATH=/Library/Extensions
    export DEFINES_MODULE=NO
    export DEPLOYMENT_LOCATION=NO
    export DEPLOYMENT_POSTPROCESSING=NO
    export DERIVED_FILES_DIR=
    export DERIVED_FILE_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build/DerivedSources
    export DERIVED_SOURCES_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build/DerivedSources
    export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode.app/Contents/Developer/Library/Frameworks
    export DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library
    export DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    export DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools
    export DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export DEVELOPMENT_LANGUAGE=English
    export DO_HEADER_SCANNING_IN_JAM=NO
    export DSTROOT=/tmp/HandBrake.dst
    export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export DWARF_DSYM_FILE_NAME=.dSYM
    export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
    export DWARF_DSYM_FOLDER_PATH=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release
    export EMBEDDED_PROFILE_NAME=embedded.provisionprofile
    export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO
    export ENABLE_BITCODE=NO
    export ENABLE_HEADER_DEPENDENCIES=YES
    export ENABLE_ON_DEMAND_RESOURCES=NO
    export ENABLE_STRICT_OBJC_MSGSEND=YES
    export ENABLE_TESTABILITY=NO
    export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS"
    export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
    export EXTERNAL_BUILD=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release/external
    export EXTERNAL_DRIVER=xcode
    export EXTERNAL_JOBS=auto
    export EXTERNAL_SRC=..
    export EXTERNAL_XCCONFIG=native
    export FILE_LIST=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build/Objects/LinkFileList
    export FRAMEWORK_VERSION=A
    export GCC3_VERSION=3.3
    export GCC_C_LANGUAGE_STANDARD=gnu99
    export GCC_ENABLE_OBJC_EXCEPTIONS=YES
    export GCC_NO_COMMON_BLOCKS=YES
    export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
    export GCC_WARN_64_TO_32_BIT_CONVERSION=YES
    export GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS=YES
    export GCC_WARN_ABOUT_MISSING_PROTOTYPES=YES
    export GCC_WARN_ABOUT_RETURN_TYPE=YES
    export GCC_WARN_FOUR_CHARACTER_CONSTANTS=YES
    export GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED=YES
    export GCC_WARN_SHADOW=YES
    export GCC_WARN_UNDECLARED_SELECTOR=YES
    export GCC_WARN_UNINITIALIZED_AUTOS=YES
    export GCC_WARN_UNUSED_FUNCTION=YES
    export GCC_WARN_UNUSED_LABEL=YES
    export GCC_WARN_UNUSED_VARIABLE=YES
    export GENERATE_MASTER_OBJECT_FILE=NO
    export GENERATE_PKGINFO_FILE=NO
    export GENERATE_PROFILING_CODE=NO
    export GID=20
    export GROUP=staff
    export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
    export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
    export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
    export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
    export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES
    export HEADERMAP_USES_VFS=NO
    export HIDE_BITCODE_SYMBOLS=YES
    export HOME=/Users/Sequencer
    export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
    export INFOPLIST_OUTPUT_FORMAT=same-as-input
    export INFOPLIST_PREPROCESS=NO
    export INSTALL_DIR=/tmp/HandBrake.dst
    export INSTALL_GROUP=staff
    export INSTALL_MODE_FLAG=u+w,go-w,a+rX
    export INSTALL_OWNER=Sequencer
    export INSTALL_ROOT=/tmp/HandBrake.dst
    export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    export JAVA_ARCHIVE_CLASSES=YES
    export JAVA_ARCHIVE_TYPE=JAR
    export JAVA_COMPILER=/usr/bin/javac
    export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
    export JAVA_JAR_FLAGS=cv
    export JAVA_SOURCE_SUBDIR=.
    export JAVA_USE_DEPENDENCIES=YES
    export JAVA_ZIP_FLAGS=-urg
    export KEEP_PRIVATE_EXTERNS=NO
    export LD_DEPENDENCY_INFO_FILE=//external_dependency_info.dat
    export LD_GENERATE_MAP_FILE=NO
    export LD_MAP_FILE_PATH=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build/external-LinkMap--.txt
    export LD_NO_PIE=NO
    export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
    export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
    export LIBRARY_FLAG_NOSPACE=YES
    export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
    export LINKER_DISPLAYS_MANGLED_NAMES=NO
    export LINK_WITH_STANDARD_LIBRARIES=YES
    export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities
    export LOCAL_APPS_DIR=/Applications
    export LOCAL_DEVELOPER_DIR=/Library/Developer
    export LOCAL_LIBRARY_DIR=/Library
    export MACOSX_DEPLOYMENT_TARGET=10.7
    export MAC_OS_X_PRODUCT_BUILD_VERSION=15D21
    export MAC_OS_X_VERSION_ACTUAL=101103
    export MAC_OS_X_VERSION_MAJOR=101100
    export MAC_OS_X_VERSION_MINOR=1103
    export MODULE_CACHE_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/ModuleCache
    export OBJECT_FILE_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build/Objects
    export OBJROOT=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates
    export ONLY_ACTIVE_ARCH=NO
    export OPTIMIZATION_LEVEL=0
    export OS=MACOS
    export OTHER_LDFLAGS="-filelist /Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release/external/macosx/osl.filelist.txt"
    export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms"
    export PLATFORM_NAME=macosx
    export PLIST_FILE_OUTPUT_FORMAT=same-as-input
    export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES
    export PRECOMP_DESTINATION_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build/PrefixHeaders
    export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO
    export PRODUCT_MODULE_NAME=external
    export PRODUCT_NAME=external
    export PROFILING_CODE=NO
    export PROJECT=HandBrake
    export PROJECT_DERIVED_FILE_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/DerivedSources
    export PROJECT_DIR="/Users/Sequencer/Downloads/handbrake-git copy/macosx"
    export PROJECT_FILE_PATH="/Users/Sequencer/Downloads/handbrake-git copy/macosx/HandBrake.xcodeproj"
    export PROJECT_NAME=HandBrake
    export PROJECT_TEMP_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build
    export PROJECT_TEMP_ROOT=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates
    export REMOVE_CVS_FROM_RESOURCES=YES
    export REMOVE_GIT_FROM_RESOURCES=YES
    export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES
    export REMOVE_HG_FROM_RESOURCES=YES
    export REMOVE_SVN_FROM_RESOURCES=YES
    export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
    export SEPARATE_STRIP=NO
    export SEPARATE_SYMBOL_EDIT=NO
    export SHARED_DERIVED_FILE_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release/DerivedSources
    export SHARED_PRECOMPS_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/PrecompiledHeaders
    export SKIP_INSTALL=YES
    export SOURCE_ROOT="/Users/Sequencer/Downloads/handbrake-git copy/macosx"
    export SRCROOT="/Users/Sequencer/Downloads/handbrake-git copy/macosx"
    export STRINGS_FILE_OUTPUT_ENCODING=UTF-16
    export STRIP_BITCODE_FROM_COPIED_FILES=NO
    export STRIP_INSTALLED_PRODUCT=YES
    export STRIP_STYLE=all
    export SUPPORTED_PLATFORMS=macosx
    export SUPPORTS_TEXT_BASED_API=NO
    export SYMROOT=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products
    export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities
    export SYSTEM_APPS_DIR=/Applications
    export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices
    export SYSTEM_DEMOS_DIR=/Applications/Extras
    export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications
    export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin
    export SYSTEM_DEVELOPER_DEMOS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples"
    export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SYSTEM_DEVELOPER_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library"
    export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools"
    export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Java Tools"
    export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools"
    export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes"
    export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools
    export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools"
    export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools"
    export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr
    export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
    export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
    export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
    export SYSTEM_LIBRARY_DIR=/System/Library
    export TARGETNAME=external
    export TARGET_BUILD_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release
    export TARGET_NAME=external
    export TARGET_TEMP_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build
    export TEMP_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build
    export TEMP_FILES_DIR=
    export TEMP_FILE_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates/HandBrake.build/release/external.build
    export TEMP_ROOT=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Intermediates
    export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO
    export UID=501
    export USER=Sequencer
    export USER_APPS_DIR=/Users/Sequencer/Applications
    export USER_LIBRARY_DIR=/Users/Sequencer/Library
    export USE_HEADERMAP=YES
    export WATCH_BUILT_PRODUCTS_DIR=/Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release-watchos
    export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
    export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode
    export XCODE_PRODUCT_BUILD_VERSION=7C1002
    export XCODE_VERSION_ACTUAL=0721
    export XCODE_VERSION_MAJOR=0700
    export XCODE_VERSION_MINOR=0720
    export arch=x86_64
    export variant=normal
    /bin/bash ../make/xcodemake

target specification: external:
+ exec make -C /Users/Sequencer/Library/Developer/Xcode/DerivedData/HandBrake-afnbwbrjlhnubafkbdecboizickb/Build/Products/release/external XCODE.driver=xcodemake --jobs=4 build
make: *** /Users/Sequencer/Downloads/handbrake-git: Is a directory.  Stop.
Command /bin/bash failed with exit code 2

strange problem....

System.OutOfMemoryException: Retrieving the COM class factory

i'm getting the following errors right after starting handbrake and restarting handbrake does not help
i'm using intel nuc5i7ryh (i7-5557u) 16gb ram and w7p64
handbrake 32bit version has the same problem

An Unknown Error has occured.
System.OutOfMemoryException: Retrieving the COM class factory for component with CLSID {56FDF344-FD6D-11D0-958A-006097C9A090} failed due to the following error: 8007000e Not enough storage is available to complete this operation. (Exception from HRESULT: 0x8007000E (E_OUTOFMEMORY)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at System.Windows.Window.ApplyTaskbarItemInfo()
at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Floating point exception, SIGFPE, crash

I'm on Fedora 23 x86_64 using GNOME 3 desktop.

I am compiling from master using the following build configuration: handbrake.spec. This is my own repository and I can make modifications if necessary.

The crash appears if I do the following:

  1. Start ghb.
  2. Browse to a source.
  3. It will scan titles.
  4. Select a title from the dropdown list.
  5. SIGFPE.

This is some strace output leading up to the crash. strace is quite noisy because of the background task which seems to be polling for something:

stat("/usr/share/pixmaps/gnome", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/pixmaps/gnome", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/share/icons/gnome", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/share/icons/gnome", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/home/naftuli/.icons/gnome", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/home/naftuli/.local/share/icons/gnome", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/home/naftuli/.local/share/icons/Adwaita", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/home/naftuli/.icons/Adwaita", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/icons/Adwaita", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/share/icons/Adwaita", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/share/pixmaps/Adwaita", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/share/pixmaps/Adwaita", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/home/naftuli/.local/share/icons/hicolor", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/home/naftuli/.icons/hicolor", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/icons/hicolor", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/share/icons/hicolor", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/share/pixmaps/hicolor", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/share/pixmaps/hicolor", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/home/naftuli/.local/share/icons", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/home/naftuli/.icons", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/usr/local/share/icons", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/share/icons", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/share/pixmaps", 0x7ffef2b3be90) = -1 ENOENT (No such file or directory)
stat("/usr/share/pixmaps", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/share/icons/Adwaita/16x16/status/audio-volume-muted.png", O_RDONLY) = 21
fstat(21, {st_mode=S_IFREG|0644, st_size=711, ...}) = 0
read(21, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\3\0\0\0(-\17S\0\0\0\3sBIT\10\10\10\333\341O\340\0\0\0\tpHYs\0\0\r\327\0\0\r\327\1B(\233x\0\0\0\31tEXtSoftware\0www.inkscape.org\233\356<\32\0\0\0\23tEXtTitle\0Optical "..., 65536) = 711
read(21, "", 65536)                     = 0
close(21)                               = 0
open("/usr/share/icons/Adwaita/16x16/devices/audio-input-microphone.png", O_RDONLY) = 21
fstat(21, {st_mode=S_IFREG|0644, st_size=878, ...}) = 0
read(21, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377a\0\0\0\4sBIT\10\10\10\10|\10d\210\0\0\0\tpHYs\0\0\r\327\0\0\r\327\1B(\233x\0\0\0\31tEXtSoftware\0www.inkscape.org\233\356<\32\0\0\2\353IDAT8\215}\323OL\233u\34\307\361\367\357"..., 65536) = 878
read(21, "", 65536)                     = 0
close(21)                               = 0
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type AudioBitrate\n", 76) = 76
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type AudioTrackGainSlider\n", 84) = 84
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type AudioEncoder\n", 76) = 76
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type AudioTrackDRCSlider\n", 83) = 83
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type AudioMixdown\n", 76) = 76
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type AudioSamplerate\n", 79) = 79
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type AudioTrackQualityEnable\n", 87) = 87
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type GtkComboBox\n", 75) = 75
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type GtkComboBox\n", 75) = 75
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type GtkComboBox\n", 75) = 75
write(2, "\n** (ghb:5305): WARNING **: Attempt to set unknown widget type GtkComboBox\n", 75) = 75
--- SIGFPE {si_signo=SIGFPE, si_code=FPE_INTDIV, si_addr=0x55aebf842458} ---
+++ killed by SIGFPE (core dumped) +++
Floating point exception (core dumped)

I have provided the binary RPMs.

Any idea what's going on here? This seems really sneaky. This RPM is built off of commit b63b0bb if it isn't immediately apparent.

handbrake.tar.gz

Incomplete encoding for mp4 output with subtitles

While encoding on mkv source files with soft subtitles in it the output file will not have the same length as the source (ex. input 25 min -> out 17 min).

This only happens on certain input files while including the subtitles in a mp4 output file.
Changing the output format to mkv or exclude subtitles track from the output solve the problem resulting in a complete output (in mkv format or without subtitles).
When a file get an incomplete output, trying to repeat the job doesn't change the output result.

This has been observed using handbrake 0.10.5 on ubuntu 15.10, mac osx and windows 7 every time with the same results.

Here it is the scan and encode log for an incomplete/failed encoding:

scan log:

HandBrake 0.10.5.0 - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
Ram: 4008 MB,
GPU Information:
Intel(R) HD Graphics 3000 - 9.17.10.3347
AMD Radeon HD 6700 Series - 12.104.0.0
Screen: 1920x1080
Temp Dir: C:\Users\myuser\AppData\Local\Temp
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\myuser\AppData\Roaming\HandBrake Team\HandBrake\0.10.5.0


[18:07:19] CPU: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
[18:07:19] - Intel microarchitecture Sandy Bridge
[18:07:19] - logical processor count: 4
[18:07:19] OpenCL device #1: Advanced Micro Devices, Inc. Juniper
[18:07:19] - OpenCL version: 1.2 AMD-APP (1124.2)
[18:07:19] - driver version: 1124.2 (VM)
[18:07:19] - device type: GPU
[18:07:19] - supported: YES
[18:07:19] Intel Quick Sync Video support: no
[18:07:19] hb_scan: path=C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv) failed
[18:07:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[18:07:19] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv':
Metadata:
title : EF MEMORIES DISC 1.Title2.BlurayRip
Duration: 00:25:13.73, start: 0.000000, bitrate: 2327 kb/s
Chapter #0.0: start 0.000000, end 690.189000
Metadata:
title : (01)00:00:00:000
Chapter #0.1: start 690.189000, end 1317.316000
Metadata:
title : (02)00:11:30:189
Chapter #0.2: start 1317.316000, end 1407.406000
Metadata:
title : (03)00:21:57:316
Chapter #0.3: start 1407.406000, end 1423.422000
Metadata:
title : (04)00:23:27:406
Chapter #0.4: start 1423.422000, end 1513.470000
Metadata:
title : (05)00:23:43:422
Chapter #0.5: start 1513.470000, end 1513.737000
Metadata:
title : (06)00:25:13:470
Stream #0.0(eng): Video: h264 (High 10), yuv420p10le, 1280x720 [PAR 1:1 DAR 16:9], 23.98 fps, 1k tbn, 47.95 tbc (default)
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, fltp (default)
Stream #0.2(jpn): Audio: aac, 48000 Hz, stereo, fltp
Stream #0.3(eng): Subtitle: ass (default)
Metadata:
title : Signs/Credits
Stream #0.4(eng): Subtitle: ass
Metadata:
title : Dialogue
Stream #0.5: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : arial.ttf
mimetype : application/x-truetype-font
Stream #0.6: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : GARA.TTF
mimetype : application/x-truetype-font
Stream #0.7: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : Mercedes_Regular.ttf
mimetype : application/x-truetype-font
Stream #0.8: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : SOUTANB.TTF
mimetype : application/x-truetype-font
Stream #0.9: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : SOUTANBI.TTF
mimetype : application/x-truetype-font
Stream #0.10: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : TCCM____.TTF
mimetype : application/x-truetype-font
Stream #0.11: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : Eppley_Bold.ttf
mimetype : application/x-truetype-font
[18:07:19] scan: decoding previews for title 1
[18:07:19] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 English (AAC) (2.0 ch)
[18:07:19] scan: audio 0x2: aac, rate=48000Hz, bitrate=1 Japanese (AAC) (2.0 ch)
[18:07:19] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:07:19] libhb: scan thread found 1 valid title(s)

Encode log:
HandBrake 0.10.5.0 - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
Ram: 4008 MB,
GPU Information:
Intel(R) HD Graphics 3000 - 9.17.10.3347
AMD Radeon HD 6700 Series - 12.104.0.0
Screen: 1920x1080
Temp Dir: C:\Users\myuser\AppData\Local\Temp
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\myuser\AppData\Roaming\HandBrake Team\HandBrake\0.10.5.0


CLI Query: -i "C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv" -t 1 --angle 1 -c 1-6 -o "C:\Users\myuser\Desktop\45.mp4" -f mp4 -w 1280 --crop 0:0:0:0 --loose-anamorphic --modulus 2 -e x264 -q 20 --vfr -a 1 -E av_aac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ac3 --subtitle 1,2 --markers="C:\Users\myuser\AppData\Local\Temp\45-1-chapters.csv" --encoder-preset=veryfast --encoder-level="4.0" --encoder-profile=main --verbose=1

[18:07:44] hb_init: starting libhb thread
HandBrake 0.10.5 (2016021100) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv...
[18:07:44] CPU: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
[18:07:44] - Intel microarchitecture Sandy Bridge
[18:07:44] - logical processor count: 4
[18:07:44] OpenCL device #1: Advanced Micro Devices, Inc. Juniper
[18:07:44] - OpenCL version: 1.2 AMD-APP (1124.2)
[18:07:44] - driver version: 1124.2 (VM)
[18:07:44] - device type: GPU
[18:07:44] - supported: YES
[18:07:44] Intel Quick Sync Video support: no
[18:07:44] hb_scan: path=C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv) failed
[18:07:44] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[18:07:44] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv':
Metadata:
title : EF MEMORIES DISC 1.Title2.BlurayRip
Duration: 00:25:13.73, start: 0.000000, bitrate: 2327 kb/s
Chapter #0.0: start 0.000000, end 690.189000
Metadata:
title : (01)00:00:00:000
Chapter #0.1: start 690.189000, end 1317.316000
Metadata:
title : (02)00:11:30:189
Chapter #0.2: start 1317.316000, end 1407.406000
Metadata:
title : (03)00:21:57:316
Chapter #0.3: start 1407.406000, end 1423.422000
Metadata:
title : (04)00:23:27:406
Chapter #0.4: start 1423.422000, end 1513.470000
Metadata:
title : (05)00:23:43:422
Chapter #0.5: start 1513.470000, end 1513.737000
Metadata:
title : (06)00:25:13:470
Stream #0.0(eng): Video: h264 (High 10), yuv420p10le, 1280x720 [PAR 1:1 DAR 16:9], 23.98 fps, 1k tbn, 47.95 tbc (default)
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, fltp (default)
Stream #0.2(jpn): Audio: aac, 48000 Hz, stereo, fltp
Stream #0.3(eng): Subtitle: ass (default)
Metadata:
title : Signs/Credits
Stream #0.4(eng): Subtitle: ass
Metadata:
title : Dialogue
Stream #0.5: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : arial.ttf
mimetype : application/x-truetype-font
Stream #0.6: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : GARA.TTF
mimetype : application/x-truetype-font
Stream #0.7: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : Mercedes_Regular.ttf
mimetype : application/x-truetype-font
Stream #0.8: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : SOUTANB.TTF
mimetype : application/x-truetype-font
Stream #0.9: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : SOUTANBI.TTF
mimetype : application/x-truetype-font
Stream #0.10: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : TCCM____.TTF
mimetype : application/x-truetype-font
Stream #0.11: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : Eppley_Bold.ttf
mimetype : application/x-truetype-font
[18:07:44] scan: decoding previews for title 1
[18:07:45] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 English (AAC) (2.0 ch)
[18:07:45] scan: audio 0x2: aac, rate=48000Hz, bitrate=1 Japanese (AAC) (2.0 ch)
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 10, 100.00 %[18:07:45] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:07:45] libhb: scan thread found 1 valid title(s)

  • title 1:
    • stream: C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv
    • duration: 00:25:13
    • size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
    • autocrop: 0/0/0/0
    • support opencl: yes
    • support hwd: no
    • chapters:
      • 1: cells 0->0, 0 blocks, duration 00:11:30
      • 2: cells 0->0, 0 blocks, duration 00:10:27
      • 3: cells 0->0, 0 blocks, duration 00:01:30
      • 4: cells 0->0, 0 blocks, duration 00:00:16
      • 5: cells 0->0, 0 blocks, duration 00:01:30
      • 6: cells 0->0, 0 blocks, duration 00:00:00
    • audio tracks:
      • 1, English (AAC) (2.0 ch) (iso639-2: eng)
      • 2, Japanese (AAC) (2.0 ch) (iso639-2: jpn)
    • subtitle tracks:
      • 1, English (iso639-2: eng) (Text)(SSA)
      • 2, English (iso639-2: eng) (Text)(SSA)
        Reading chapter markers from file C:\Users\myuser\AppData\Local\Temp\45-1-chapters.csv
        [18:07:45] 1 job(s) to process
        [18:07:45] starting job
        [18:07:45] work: sanitizing track 1 mixdown Dolby Pro Logic II to Stereo
        [18:07:45] sync: expecting 36293 video frames
        [18:07:45] job configuration:
        [18:07:45] * source
        [18:07:45] + C:\Users\myuser\Desktop\tom02 [BD.720p.AAC][26412DA0].mkv
        [18:07:45] + title 1, chapter(s) 1 to 6
        [18:07:45] + container: matroska,webm
        [18:07:45] + data rate: 2327 kbps
        [18:07:45] * destination
        [18:07:45] + C:\Users\myuser\Desktop\45.mp4
        [18:07:45] + container: MPEG-4 (libavformat)
        [18:07:45] + chapter markers
        [18:07:45] * video track
        [18:07:45] + decoder: h264
        [18:07:45] + filters
        [18:07:45] + Framerate Shaper (0:27000000:1126125)
        [18:07:45] + frame rate: same as source (around 23.976 fps)
        [18:07:45] + Crop and Scale (1280:720:0:0:0:0)
        [18:07:45] + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
        [18:07:45] + loose anamorphic
        [18:07:45] + storage dimensions: 1280 * 720, mod 2
        [18:07:45] + pixel aspect ratio: 1 / 1
        [18:07:45] + display dimensions: 1280 * 720
        [18:07:45] + encoder: H.264 (libx264)
        [18:07:45] + preset: veryfast
        [18:07:45] + profile: main
        [18:07:45] + level: 4.0
        [18:07:45] + quality: 20.00 (RF)
        [18:07:45] * subtitle track 1, English (track 3, id 0x3) Text [SSA] -> Passthrough
        [18:07:45] * subtitle track 2, English (track 4, id 0x4) Text [SSA] -> Passthrough
        [18:07:45] * audio track 1
        [18:07:45] + decoder: English (AAC) (2.0 ch) (track 1, id 0x1)
        [18:07:45] + samplerate: 48000 Hz
        [18:07:45] + mixdown: Stereo
        [18:07:45] + encoder: AAC (libavcodec)
        [18:07:45] + bitrate: 160 kbps, samplerate: 48000 Hz
        [18:07:45] reader: first SCR 0 id 0x0 DTS 0
        [18:07:45] encx264: min-keyint: 24, keyint: 240
        [18:07:45] encx264: encoding at constant RF 20.000000
        [18:07:45] encx264: unparsed options: level=4.0:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10
        x264 [info]: using SAR=1/1
        x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
        x264 [info]: profile Main, level 4.0
        [18:09:16] h264: "(02)00:11:30:189" (2) at frame 16556 time 62117100
        [mp4 @ 0000000007481a20] Application provided invalid, non monotonically increasing dts to muxer in stream 3: 92718900 >= 92718900
        ERROR: avformatMux: track 3, av_interleaved_write_frame failed with error 'Error number -22 occurred'
        [18:10:09] work: average encoding speed for job is 190.941528 fps
        [18:10:09] sync: got 27456 frames, 36293 expected
        [18:10:09] reader: done. 1 scr changes
        [18:10:09] render: lost time: 0 (0 frames)
        [18:10:09] render: gained time: 0 (0 frames) (0 not accounted for)
        [18:10:09] h264-decoder done: 27482 frames, 0 decoder errors, 0 drops
        x264 [info]: frame I:409 Avg QP:12.93 size: 72200
        x264 [info]: frame P:8960 Avg QP:18.16 size: 8416
        x264 [info]: frame B:18049 Avg QP:20.42 size: 965
        x264 [info]: consecutive B-frames: 8.9% 8.2% 5.0% 77.9%
        x264 [info]: mb I I16..4: 53.2% 0.0% 46.8%
        x264 [info]: mb P I16..4: 6.6% 0.0% 0.9% P16..4: 17.4% 5.9% 3.1% 0.0% 0.0% skip:66.2%
        x264 [info]: mb B I16..4: 0.3% 0.0% 0.0% B16..8: 3.7% 0.9% 0.1% direct: 2.7% skip:92.2% L0:39.3% L1:49.7% BI:11.1%
        x264 [info]: coded y,uvDC,uvAC intra: 36.9% 53.1% 32.1% inter: 3.1% 5.7% 0.3%
        x264 [info]: i16 v,h,dc,p: 47% 29% 12% 11%
        x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 27% 18% 5% 5% 4% 5% 4% 5%
        x264 [info]: i8c dc,h,v,p: 59% 21% 15% 5%
        x264 [info]: Weighted P-Frames: Y:3.6% UV:2.5%
        x264 [info]: kb/s:855.98
        [18:10:09] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
        [18:10:09] mux: track 0, 24713 frames, 114160728 bytes, 885.94 kbps, fifo 4096
        [18:10:09] mux: track 1, 48321 frames, 20659889 bytes, 160.33 kbps, fifo 8192
        [18:10:09] mux: track 2, 9 frames, 2027 bytes, 0.02 kbps, fifo 8
        [18:10:09] mux: track 3, 309 frames, 20379 bytes, 0.16 kbps, fifo 64
        [18:10:09] libhb: work result = 4
        Encode failed (error 4).
        HandBrake has exited.

sorry for the bed formatting.

I don't know if this is an already know problem, i've searched for similar issues but the only things found was some discussion about a similar problem (incomplete encoding related to subtitles) on an older version of handbrake.

This may be related to the input file but it happens with different files coming from different sources and they are all perfectly playable on different systems (i know this not guarantee that the file is correctly formatted but ...).

Since it only happens on certain files and it seems that this can be easily bypassed just by changing container (at least for my purposes) we may consider this a minor thing but the fact that the interface doesn't alert the user (except for the logs) of a failed job this can be annoying,

I hope i've been clear enough, if not tell me.

OS X: HandBrake crashes when "EncodeLogs" is a link to /dev/null

After I found hundreds of pointless old encode logs in ~/Library/Application Support/HandBrake/EncodeLogs and no option to disable the automatic creation of this log files I tried to set up the EncodeLogs directory as a softlink to /dev/null. This makes HandBrake crash as soon I start to encode a movie file (see crash log).

Besides the crash I have two more issues with this situation:

  1. It shouldn't crash, just because the directory is a link. This needs some bullet proofing.
  2. There should be a clear way to disable unwanted logs (might be a privacy issue, f.ex.). I (as user) would assume in the UI that setting the Activity Log Verbosity Level to 0 (aka off) would disable any logs, but that doesn't seem to be the case.
  3. Logs should be stored in ~/Library/Logs/, e.g. ~/Library/Logs/HandBrake, so the user only needs to check one single place to clean up log files.

An excerpt of the crash log for reference:

Process:               HandBrake [69336]
Path:                  /Applications/HandBrake.app/Contents/MacOS/HandBrake
Identifier:            fr.handbrake.HandBrake
Version:               0.10.2 x86_64 (2015061100)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           HandBrake [69336]
User ID:               501

Date/Time:             2016-01-16 12:47:55.412 +0100
OS Version:            Mac OS X 10.10.5 (14F1509)
Report Version:        11
Anonymous UUID:        A3D75EF4-58F4-CBD0-7E49-900DCC04B33B


Time Awake Since Boot: 1300000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000068

VM Regions Near 0x68:
--> 
    __TEXT                 0000000100000000-000000010133f000 [ 19.2M] r-x/rwx SM=COW  /Applications/HandBrake.app/Contents/MacOS/HandBrake

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_c.dylib               0x00007fff914f8c5f flockfile + 4
1   libsystem_c.dylib               0x00007fff914fa645 fputs + 72
2   fr.handbrake.HandBrake          0x000000010001f3f6 -[HBOutputPanelController stderrRedirect:] + 360
3   com.apple.CoreFoundation        0x00007fff8c0119f6 -[NSSet makeObjectsPerformSelector:withObject:] + 230
4   fr.handbrake.HandBrake          0x000000010001ff0a -[HBOutputRedirect(Private) forwardOutput:] + 107
5   com.apple.Foundation            0x00007fff9258add0 __NSThreadPerformPerform + 293
6   com.apple.CoreFoundation        0x00007fff8bfdca01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
7   com.apple.CoreFoundation        0x00007fff8bfceb8d __CFRunLoopDoSources0 + 269
8   com.apple.CoreFoundation        0x00007fff8bfce1bf __CFRunLoopRun + 927
9   com.apple.CoreFoundation        0x00007fff8bfcdbd8 CFRunLoopRunSpecific + 296
10  com.apple.HIToolbox             0x00007fff862d056f RunCurrentEventLoopInMode + 235
11  com.apple.HIToolbox             0x00007fff862d01ee ReceiveNextEventCommon + 179
12  com.apple.HIToolbox             0x00007fff862d012b _BlockUntilNextEventMatchingListInModeWithFilter + 71
13  com.apple.AppKit                0x00007fff89db58ab _DPSNextEvent + 978
14  com.apple.AppKit                0x00007fff89db4e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
15  com.apple.AppKit                0x00007fff89daaaf3 -[NSApplication run] + 594
16  com.apple.AppKit                0x00007fff89d27244 NSApplicationMain + 1832
17  fr.handbrake.HandBrake          0x00000001000015f4 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff88b87232 kevent64 + 10
1   libdispatch.dylib               0x00007fff8debf26e _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib          0x00007fff88b8648a __semwait_signal + 10
1   libsystem_c.dylib               0x00007fff9153be3c usleep + 54
2   fr.handbrake.HandBrake          0x000000010024a215 thread_func + 453
3   fr.handbrake.HandBrake          0x000000010025a494 hb_thread_func + 52
4   libsystem_pthread.dylib         0x00007fff8de9605a _pthread_body + 131
5   libsystem_pthread.dylib         0x00007fff8de95fd7 _pthread_start + 176
6   libsystem_pthread.dylib         0x00007fff8de933ed thread_start + 13

Thread 3:
0   libsystem_kernel.dylib          0x00007fff88b8648a __semwait_signal + 10
1   libsystem_c.dylib               0x00007fff9153be3c usleep + 54
2   fr.handbrake.HandBrake          0x000000010024a215 thread_func + 453
3   fr.handbrake.HandBrake          0x000000010025a494 hb_thread_func + 52
4   libsystem_pthread.dylib         0x00007fff8de9605a _pthread_body + 131
5   libsystem_pthread.dylib         0x00007fff8de95fd7 _pthread_start + 176
6   libsystem_pthread.dylib         0x00007fff8de933ed thread_start + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff88b8694a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8de933dd start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib          0x00007fff88b814de mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff88b8064f mach_msg + 55
2   com.apple.CoreFoundation        0x00007fff8bfceeb4 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation        0x00007fff8bfce37b __CFRunLoopRun + 1371
4   com.apple.CoreFoundation        0x00007fff8bfcdbd8 CFRunLoopRunSpecific + 296
5   com.apple.AppKit                0x00007fff89e7d56b _NSEventThread + 137
6   libsystem_pthread.dylib         0x00007fff8de9605a _pthread_body + 131
7   libsystem_pthread.dylib         0x00007fff8de95fd7 _pthread_start + 176
8   libsystem_pthread.dylib         0x00007fff8de933ed thread_start + 13

Thread 6:
0   libsystem_kernel.dylib          0x00007fff88b8694a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8de933dd start_wqthread + 13

Thread 7:
0   libsystem_kernel.dylib          0x00007fff88b8694a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8de933dd start_wqthread + 13

Thread 8:
0   libsystem_kernel.dylib          0x00007fff88b8694a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8de933dd start_wqthread + 13

Thread 9:
0   libsystem_kernel.dylib          0x00007fff88b8694a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8de933dd start_wqthread + 13

Thread 10:
0   libsystem_kernel.dylib          0x00007fff88b8694a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8de933dd start_wqthread + 13

Thread 11:
0   fr.handbrake.HandBrake          0x000000010039d152 loop_filter + 4146
1   fr.handbrake.HandBrake          0x000000010039bcc7 decode_slice + 503
2   fr.handbrake.HandBrake          0x000000010039b89c execute_decode_slices + 60
3   fr.handbrake.HandBrake          0x00000001003890bf decode_nal_units + 1871
4   fr.handbrake.HandBrake          0x00000001003979a5 h264_decode_frame + 85
5   fr.handbrake.HandBrake          0x00000001005f9051 avcodec_decode_video2 + 225
6   fr.handbrake.HandBrake          0x000000010078c384 try_decode_frame + 580
7   fr.handbrake.HandBrake          0x000000010078af4b avformat_find_stream_info + 747
8   fr.handbrake.HandBrake          0x0000000100260f3d hb_stream_open + 861
9   fr.handbrake.HandBrake          0x000000010025e1fc ScanFunc + 1580
10  fr.handbrake.HandBrake          0x000000010025a494 hb_thread_func + 52
11  libsystem_pthread.dylib         0x00007fff8de9605a _pthread_body + 131
12  libsystem_pthread.dylib         0x00007fff8de95fd7 _pthread_start + 176
13  libsystem_pthread.dylib         0x00007fff8de933ed thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fff5fbfe3d0  rbx: 0x0000000000000000  rcx: 0x0000000000000001  rdx: 0x000060800049af01
  rdi: 0x0000000000000000  rsi: 0x000000000000fffc  rbp: 0x00007fff5fbfe3c0  rsp: 0x00007fff5fbfe3c0
   r8: 0x00007fff5fbfe3b0   r9: 0x0000000000000208  r10: 0x000000010384aaf0  r11: 0x00007fff74d60718
  r12: 0x00007fff928380c0  r13: 0x0000000000000058  r14: 0x0000000000000000  r15: 0x00006080000e3900
  rip: 0x00007fff914f8c5f  rfl: 0x0000000000010212  cr2: 0x0000000000000068

Logical CPU:     2
Error Code:      0x00000004
Trap Number:     14


Binary Images:
       0x100000000 -        0x10133efe7 +fr.handbrake.HandBrake (0.10.2 x86_64 - 2015061100) <CA62102D-FBEE-372C-847D-40EB38683C6A> /Applications/HandBrake.app/Contents/MacOS/HandBrake
       0x101bfa000 -        0x101c56ff7 +com.growl.growlframework (2.0.1 - 2.0.1) <6C20B93B-75B2-30A4-8267-8C81BF90872B> /Applications/HandBrake.app/Contents/Frameworks/Growl.framework/Versions/A/Growl
       0x101c89000 -        0x101c9ffff +org.andymatuschak.Sparkle (1.5 Beta 6 - 313) <B4628320-468B-F473-EBD3-4303D9C5B639> /Applications/HandBrake.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
       0x102b75000 -        0x102b76fe5 +cl_kernels (???) <1F9DC03E-C0BF-460D-ACDD-C1D4A5670294> cl_kernels
       0x106925000 -        0x106925fef +cl_kernels (???) <E64B0650-159A-4407-AB22-A2956062430C> cl_kernels
       0x106932000 -        0x106932fe7 +cl_kernels (???) <C78FDD68-4E69-4197-9BC1-FBE182E41BD5> cl_kernels

…

Add an option to copy the date/time info of the original video to the new one

Hi, I use Handbrake mainly to convert videos to reduce space. The boring thing is that the original date/time infos are lost creating the new videos. I have to open every file and change manually the date/time information (creation date, modified date) because I need to sort my video and photos by date.

This is a very boring and time-consuming operation. Please add a simple option in HANDBRAKE for copy the date/time informations from the original video to the new one.

Sure, it is an useful thing that I want from Handbrake. Thanks!

Unable to normalize AAC: "failed to find audio settings: Expected true or false, got integer"

I want to produce a H.264/MKV file from a DVD title using HandBrakeCLI. THis works great using the following options:

--markers --encoder x264 --encoder-preset medium --encoder-profile high --encoder-level 3.1 --quality 20 --rate 25 --audio 1,3 --aname English,German --aencoder fdk_aac --mixdown stereo --crop 0,0,0,0 --loose-anamorphic

However it does not work as soon as I add "--normalize-mix 1" to the command line, which produces the following error:


ERROR: hb_dict_to_job: failed to find audio settings: Expected true or false, got integer
[23:32:13] libhb: work result = 3

Encode failed (error 3).

This used to work before. After getting the error I tried "--normalize-mix true", "--normalize-mix" and "--normalize-mix 1,1" but they all fail.

Am I doing anything wrong or is there a bug in the new version?

The version of HandBrake I use is http://negativo17.org/handbrake/

$ HandBrakeCLI --version
[07:15:42] hb_init: starting libhb thread
[07:15:42] thread 7fe92146d700 started ("libhb")
HandBrake 20151221062749-57a9f48-unknown

$ rpm -qa | grep HandBrake
HandBrake-gui-1.0-10.57a9f48.fc23.x86_64
HandBrake-cli-1.0-10.57a9f48.fc23.x86_64

Intel QSV: constant quality value is not applied with media sdk 1.17

In the last days an update for intel graphics drivers for Windows 10 was rolled out and the media sdk version bumbed from 1.16 to 1.17 on my system.

The constant qualitiy value is set to 30 but the output file size reached 30 GB+ for a simple DVD.
Log file states that quality value of 0 is used.

Intel Quick Sync Video support: yes
  - Intel Media SDK hardware: API 1.17 (minimum: 1.3)
  - H.264 encoder: yes
     - preferred implementation: hardware (any)
[...]
encqsvInit: RateControlMethod LA_ICQ ICQQuality 0 LookAheadDepth 60

I found an older log that has quality value 30 set.

Intel Quick Sync Video support: yes
  - Intel Media SDK hardware: API 1.16 (minimum: 1.3)
  - H.264 encoder: yes
     - preferred implementation: hardware (any)
[...]
encqsvInit: RateControlMethod LA_ICQ ICQQuality 30 LookAheadDepth 60

Affected Version: 0.10.5.0

BTW: The upper bound of LookAheadDepth range can be 100 instead of 60 stated at https://trac.handbrake.fr/wiki/QuickSyncOptions

Crashes when starting to scan a video file

I had to do a re-install of my Windows 7 (64bit) system, and after re-install of HandBrake, the program always crashes when it starts to scan a video file (I have tried with many different files and formats). I also tried the latest nightly build, but with the same results.

No logs got created in _AppData\Roaming_.

Here is the events from the OS event-viewer:

HandBrake-0.10.3-x86_64-Win_GUI

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name=".NET Runtime" /> 
  <EventID Qualifiers="0">1026</EventID> 
  <Level>2</Level> 
  <Task>0</Task> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2016-02-07T11:54:53.000000000Z" /> 
  <EventRecordID>7328</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>Odin.midgard.priv</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>Application: Handbrake.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Reflection.TargetInvocationException Stack: at System.RuntimeMethodHandle._InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeType) at System.RuntimeMethodHandle.InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.Signature, System.Reflection.MethodAttributes, System.RuntimeType) at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, Boolean) at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo) at Caliburn.Micro.ActionMessage.<.cctor>b__d(Caliburn.Micro.ActionExecutionContext) at Caliburn.Micro.ActionMessage.Invoke(System.Object) at System.Windows.Interactivity.TriggerBase.InvokeActions(System.Object) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs) at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent) at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs) at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at HandBrakeWPF.App.Main()</Data> 
  </EventData>
  </Event>

- <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="2016-02-07T11:54:55.000000000Z" /> 
  <EventRecordID>7329</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>Odin.midgard.priv</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>Handbrake.exe</Data> 
  <Data>0.10.3.0</Data> 
  <Data>56a2aa91</Data> 
  <Data>KERNELBASE.dll</Data> 
  <Data>6.1.7601.19110</Data> 
  <Data>568429dd</Data> 
  <Data>e0434352</Data> 
  <Data>000000000000b16d</Data> 
  <Data>57c</Data> 
  <Data>01d1619e4c373bda</Data> 
  <Data>E:\Programs\Handbrake\Handbrake.exe</Data> 
  <Data>C:\Windows\system32\KERNELBASE.dll</Data> 
  <Data>9a0d691a-cd91-11e5-84c8-4851b7a2e8eb</Data> 
  </EventData>
  </Event>

HandBrake-3053ec9_x86_64-Win_GUI

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name=".NET Runtime" /> 
  <EventID Qualifiers="0">1026</EventID> 
  <Level>2</Level> 
  <Task>0</Task> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2016-02-07T12:33:20.000000000Z" /> 
  <EventRecordID>7546</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>Odin.midgard.priv</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>Application: HandBrake.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at HandBrake.ApplicationServices.Interop.HbLib.HBFunctions.hb_scan(IntPtr, IntPtr, Int32, Int32, Int32, UInt64) at HandBrake.ApplicationServices.Interop.HandBrakeInstance.StartScan(System.String, Int32, System.TimeSpan, Int32) at HandBrakeWPF.Services.Scan.LibScan.ScanSource(System.Object, Int32, Int32, HandBrake.ApplicationServices.Model.HBConfiguration) at HandBrakeWPF.Services.Scan.LibScan.Scan(System.String, Int32, System.Action`2<Boolean,HandBrakeWPF.Services.Scan.Model.Source>, HandBrake.ApplicationServices.Model.HBConfiguration) at HandBrakeWPF.ViewModels.MainViewModel.FileScan() Exception Info: System.Reflection.TargetInvocationException at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[]) at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo) at Caliburn.Micro.ActionMessage+<>c.<.cctor>b__31_0(Caliburn.Micro.ActionExecutionContext) at Caliburn.Micro.ActionMessage.Invoke(System.Object) at System.Windows.Interactivity.TriggerBase.InvokeActions(System.Object) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs) at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent) at System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs) at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at HandBrakeWPF.App.Main()</Data> 
  </EventData>
  </Event>

- <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="2016-02-07T12:33:22.000000000Z" /> 
  <EventRecordID>7547</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>Odin.midgard.priv</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data>HandBrake.exe</Data> 
  <Data>0.0.0.0</Data> 
  <Data>56b553a4</Data> 
  <Data>KERNELBASE.dll</Data> 
  <Data>6.1.7601.19110</Data> 
  <Data>568429dd</Data> 
  <Data>e0434352</Data> 
  <Data>000000000000b16d</Data> 
  <Data>2794</Data> 
  <Data>01d161a3aca881eb</Data> 
  <Data>E:\Programs\HandBrake\HandBrake.exe</Data> 
  <Data>C:\Windows\system32\KERNELBASE.dll</Data> 
  <Data>f92b2f63-cd96-11e5-826d-4851b7a2e8eb</Data> 
  </EventData>
  </Event>

Also tried running with the CLI on v0.10.3, but that also crashes:

E:\Downloads>E:\Programs\Handbrake\HandBrakeCLI -i "E:\Downloads\Blinky Bill The
 Movie (2015)\Blinky Bill The Movie (2015).avi" -o "E:\Downloads\Blinky Bill The
 Movie (2015)\Blinky Bill The Movie (2015).2.mp4" --decomb --optimize --crop 0:0
:0:0 --preset=Normal" --x264-tune="Film" 2> log.txt
[13:01:41] hb_init: starting libhb thread
HandBrake 0.10.3 (2016012200) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening E:\Downloads\Blinky Bill The Movie (2015)\Blinky Bill The Movie (2015).a
vi...
[13:01:41] CPU: Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz
[13:01:41]  - Intel microarchitecture Haswell
[13:01:41]  - logical processor count: 8

Denoising: NLMEANS instead of hqdn3d

Hi,

Version: HandBrake 0.10.2.7286 - 64bit Version

Although I chose HQDN3D for denoising Handbrake seems to use NLMEANS instead.

The log clearly shows that NLMEANS was used
CLI Query: -i "E:\1.mkv" -t 1 --angle 1 -c 1 -o "F:\1.m4v" -f mp4 --decomb --nlmeans="light" -w 1280 --crop 0:0:0:0 --loose-anamorphic --modulus 2 -e x264 -q 20 --vfr -a 1 -E av_aac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ac3 --markers="C:\Users\s\AppData\Local\Temp\1.csv" --encoder-level="4.1" --encoder-profile=high --verbose=1

Further down the log says:
[18:54:34] + Denoise (nlmeans) (3.000000:1.000000:7:3:2:0:3.000000:1.000000:7:3:2:0)
[...]
[18:54:34] NLMeans Denoise thread started for segment 5

Best regards

invalid, non monotonically increasing dts

HandBrake 0.10.3 (2016012400)

I have been using handbrake for many years and recently upgraded. I am encoding MPEG2 files recorded with MythTV. I have not had this error before with handbrake.

Encoding: task 1 of 1, 84.26 % (39.81 fps, avg 24.71 fps, ETA 00h11m29s)
[matroska @ 0x7fa90129be60] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 3019728 >= 3019695
ERROR: avformatMux: track 2, av_interleaved_write_frame failed with error 'Invalid argument'

This is an error that happens regularly if using avconv. It has been fixed in ffmpeg but not in avconv. I wonder if you are using avconv in handbrake?

The error is reproducible. It happens at the same place every time on that specific file. I can provide the file if needed.

Log file is at the below URL
http://pastebin.com/peSG91KW

macosx

Hello,

Why not use an asset catalog to store all the app' icons ?
Have you thought about sandboxing ?

Good day :)

Preset veryslow outputs blocky images

Steps to reproduce:

  • Open HandBrake, load a source
  • Select Preset "Normal" (It should already be your default preset)
  • Set Encoder options preset: veryslow
  • Open preview window, and generate live preview

At some point in the middle of the encode, the encoding fps drops from ~20 fps to 2-3 fps. When the encode is finished, the parts where encoding fps dropped look very blocky, like when a streamed movie has a connection problem: Example of blocky image

This doesn't seem to happen with other encoder preset speed (slower, medium, veryfast, ...).
Also, it does it with any source: I tried 2 different VIDEO_TS and a .ts file.

Activity log: http://pastebin.com/CgWCeSr4

HandBrake 0.10.3 (from the website)
Mac OS X 10.6.8

Feature Request: Pushbullet or another Growl for Windows Alternative compatible with iOS/Android

I would like to request a replacement for Growl for Windows. The idea was great, but I understand y'all had to remove it because it was buggy and the project abandoned. The concept was useful, though, for those who can't sit at the main computer all the time. Time flies and easily gets away from you so encoding can take longer than it needs to be or you just can't get to the computer. In my situation it is useful because I have hip problems and can't sit at my desk for long periods of time. So I RDP into my computer either from my laptop or iPad and control things there. The only time in the encoding process I'm there is inserting my kids Blu-Rays to rip them.(I have a 7yo and 2yo. I'm not crazy to give the oldest a $25 blu-Ray when she can't take care of them nor keep them away from the 2yo.) As for other reason to not be at the computer, the 2yo. Buttons and her don't mix, so she is banned from the computer room. An iPad is easier and lighter to carry than the laptop. (And easier to hide from grabby hands). Now I know what's next, "why do you need that when you can see it through the RDP session?" Well, I also go to the VA frequently and anyone who knows the VA knows an 8:00 am appt. can be an all day affair. So I use my iPad while I'm waiting to login and start/restart encodings. I can't waste the data RDPing every so often to check the status. Notifications of completions and failures should greatly cut down data usage.

So to sum it up, some kind of notification system compatible with iOS and Android would not only help me, but anyone on the go and can't be at the computer nor waste data on their cell plan. I would suggest Pushbullet because I've used it on one of my HTPC software and it was reliable. Also the api looks free. But any would help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.