Commit Graph

35 Commits

Author SHA1 Message Date
Nomis101 4c879d8f36
Update copyright dates to 2025 (#6568) 2025-01-22 09:11:40 +01:00
Nomis101 d858fc0953 Update copyright dates to 2024. 2024-01-03 08:24:26 +01:00
Bradley Sepos 86acd31333
Update copyright dates to 2023. 2023-11-12 00:43:04 -05:00
Damiano Galassi 48e666694e
libhb: add missing checks of the result of malloc/calloc. 2023-08-16 08:40:28 +02:00
Scott 7c25bf9966
File Scan Improvements (#5236)
- Add an hb_scan_list method that takes a list of files to scan. This allows a user to drag any arbitrary list of files onto the UI.
- Add a check for known file types during scan. When a known file type is detected, bypass the DVD / Bluray Probe. This reduces some log spam.
- Supported in Mac and Windows UIs

---------

Co-authored-by: Damiano Galassi
2023-07-10 19:19:45 +01:00
Scott 156e7f637b
Add support for excluded File extensions (#5218)
libhb: Add support for excluding file extensions for batch scan. (#2541)
Consolidated hb_scan and hb_scan2
Add a new preference to the Windows UI to allow controlling this option. By Default: png, jpg, txt, srt, ssa, ass are excluded. Users can change this if they choose.
2023-07-02 11:42:07 +01:00
Damiano galassi f0a617da3e batch: avoid a dead assigment. 2023-02-13 18:50:23 +01:00
Bradley Sepos 6810d3a800
Update copyright dates to 2022. 2022-01-05 21:41:07 -05:00
Bradley Sepos e4d444553b
Update copyright dates to 2021. 2021-01-01 00:00:00 +00:00
Bradley Sepos 638558a6a3
Update copyright dates to 2020. 2020-01-01 00:00:00 +00:00
Nomis101 20fe4b6ebd Gardening: Clean up trailing whitespace
Remove trailing whitespace in "*.c",  "*.m",  "*.h" and "*.cpp" files.
2019-11-04 22:41:20 +00:00
John Stebbins 1b7948495f
libhb: resolve header conflicts with pango/harfbuzz
Newest versions appear to have a "common.h" somewhere that is
interfering with libhb/common.h.

move headers into "handbrake" subdirectory
2019-09-12 10:22:07 -07:00
John Stebbins 294bb35fc3
Resolve conflict with harfbuzz include file hb.h
Rename hb.h to handbrake.h
2019-09-10 09:17:18 -07:00
John Stebbins a4f27a4494 scan: only apply min duration filter to BD and DVD
Fixes https://github.com/HandBrake/HandBrake/issues/1590
2019-01-21 16:26:14 -08:00
Bradley Sepos 5a65df0d58
Update copyright dates to 2019. 2019-01-01 00:00:00 +00:00
Damiano Galassi 696ebe518b libhb: fix a number of issues reported by clang. 2018-01-12 20:55:14 +01:00
Bradley Sepos ba30fd8bf3
Update copyright dates to 2018. 2018-01-01 00:00:00 +00:00
John Stebbins d2931487d3 batch: fix crash when a stream scan fails 2017-03-28 13:19:01 -06:00
John Stebbins 85f88811ee batch: Support --min-duration when doing batch scans
Fixes https://github.com/HandBrake/HandBrake/issues/501
2017-02-27 13:06:52 -07:00
Bradley Sepos 3f1f6175ce Update copyright dates to 2017. 2017-01-01 00:31:31 -05:00
Bradley Sepos 781d856ada Update copyright dates to 2016. 2016-01-01 20:15:33 -05:00
jstebbins 8e9bff8f32 libhb: Eliminate global variable hb_gui_use_hwd_flag
This global was shared between the CLI and libhb and used as a back door to
force scan and encode passes to use the same ffmpeg context for hardware
decoding. Aside from the fact that this context sharing should not be necessary
and needs fixing, this information belongs in the hb_handle_t that is shared
between the scan and the encode.  So put it there and make sure the hb_handle_t
get propagated to where the flag is needed.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7028 b64f7644-9d1e-0410-96f1-a4d463321fa5
2015-03-29 16:22:30 +00:00
jstebbins 7705413a03 json: automatically scan title when processing json jobs
Simplifies the WinGui.

This also changes how jobs are processed.  Creating the sub-jobs for
multiple passes is delayed until after scanning and immediately before
running the job.

Working status has also changed.  Sub-job passes are identified in status
with an ID that allows the frontend to definitively identify what pass
is in progress.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6976 b64f7644-9d1e-0410-96f1-a4d463321fa5
2015-03-07 22:25:48 +00:00
bradleys f344cbc5d7 Update year to 2015.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6852 b64f7644-9d1e-0410-96f1-a4d463321fa5
2015-02-01 02:05:32 +00:00
jstebbins f23b25265e libhb: fix uninitialized variable
since a malloc depends on the value of this variable, it's rather important
that it be initialized ;)


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6113 b64f7644-9d1e-0410-96f1-a4d463321fa5
2014-03-14 21:49:44 +00:00
jstebbins df8ed184b7 libhb: sort the list of files in batch mode
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6058 b64f7644-9d1e-0410-96f1-a4d463321fa5
2014-02-22 05:21:10 +00:00
Rodeo f5edb0ca0c Update some copyright dates to 2014.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6042 b64f7644-9d1e-0410-96f1-a4d463321fa5
2014-02-18 18:14:22 +00:00
jstebbins 5e712218d8 libhb: make libhb internal character code utf8
This makes libhb expect all strings passed to it to be in utf8 format.
The cli converts the converts from the current code page to utf8.  libhb
converts back to the current code page when necessary for libraries that
expect it.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5798 b64f7644-9d1e-0410-96f1-a4d463321fa5
2013-09-22 17:19:38 +00:00
sr55 fb42d9bfaf Updated all the copyright headers to 2013.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5318 b64f7644-9d1e-0410-96f1-a4d463321fa5
2013-03-09 22:27:58 +00:00
sr55 e8b4783840 Updated file copyright / GPL headers
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4737 b64f7644-9d1e-0410-96f1-a4d463321fa5
2012-06-15 15:34:41 +00:00
jstebbins 7a47aa6da2 libhb: fix or simplify several hacks involved with Libav support
For files that are demuxed by Libav, we must share the format context
with the decoder iso that it can obtain the codec context for each stream.
The code that did this was very convoluted and difficult to understand.
It is simplified by simply passing the context in hb_title_t.

Reader was closing stream files before the decoder was finished with the
context.  This created the need to delay the actual close and cache
the context.  Changed reader so it behaves more like the rest of handbrake's
work objects which lets us explicitly close after the decoders are finished.

Libav does some probing of the file when av_find_stream_info is called.
This probing leaves the format context in a bad state for some files and
causes subsequent reads or seeks to misbehave.  So open 2 contexts in
ffmpeg_open.  One is used only for probing, and the other only for reading.

decavcodec.c had 2 separate decoders for files demuxed by hb and files
demuxed by Libav.  They have been combined and simplified.

Previously, it was not possible to decode one source audio track multiple
times in order to fan it out to multiple output tracks if the file is
demuxed by Libav.  We were using the codec context from the format context.
Since there is only one of these for each stream, we could only do one
decode for each stream.  Use avcodec_copy_context to make copies of
the codec context and allow multiple decodes. This allows removal of
a lot of special case code for Libav streams that was necessary to
duplicate the output of the decoder.

Patch Libav's mkv demux to fix a seek problem.  This has been pushed 
upstreams, so the next time we update Libav, we must remove this patch.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4141 b64f7644-9d1e-0410-96f1-a4d463321fa5
2011-07-27 15:09:49 +00:00
jstebbins 244f212aa4 libhb: plug a few memory leaks
Noticed when debugging a memory corruption issue with valgrind


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4122 b64f7644-9d1e-0410-96f1-a4d463321fa5
2011-07-19 17:36:12 +00:00
jstebbins 60f853bbbb fix cli issue with batch scan and encode
I didn't implement 'single title scan' for batch mode cause it seemed
contradictory.  but the cli uses this when encoding, even in batch mode.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3530 b64f7644-9d1e-0410-96f1-a4d463321fa5
2010-09-15 16:34:22 +00:00
jstebbins 4bff40cd08 fix title index issue in batch scanning
title index was assigned as the nth file in the directory, but files
that are not video would cause title indexes to be skipped in job.list_title
this would mess up the progress bar.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2982 b64f7644-9d1e-0410-96f1-a4d463321fa5
2009-11-25 21:54:06 +00:00
jstebbins 009238a822 batch file scanning and scan cancel
When a directory is specified as the source, first we attempt to open as a dvd,
then if that fails, we attempt to open each file in the directory as a stream
source.  Since opening a large directory of files can take a really long time,
you can also now cancel a scan.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2980 b64f7644-9d1e-0410-96f1-a4d463321fa5
2009-11-25 21:14:44 +00:00