Encoding doesn't start with a delayed start

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

*******************************
Post Reply
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Encoding doesn't start with a delayed start

Post by linuxuser »

I don't know if there is a relation to viewtopic.php?f=12&t=32029 but in this case it doesn't help to disable the denoiser. I think the problem is the starttime, because when I start encoding at 00:00 it works.

The file is from a dvb-recording and I tried the original file, a converted file by avconv and a file created by mkvermerge. Normally it works to convert the original ts-file to mkv, this is the 1st I notice such a behavior.

Code: Select all

[17:51:01] gtkgui: HandBrake svn7063 (2015040601) - Linux x86_64 - https://handbrake.fr
[17:51:01] hb_init: starting libhb thread
[17:51:01] hb_init: starting libhb thread
[17:51:01] hb_init: starting libhb thread
[17:51:07] CPU: 
[17:51:07]  - logical processor count: 8
[17:51:07] OpenCL: library not available
[17:51:07] hb_scan: path=/tapes/temp/sg~16.9_1920x1080m_25fps_9682kbps_27_ac3_48khz_1h53mn.ts, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /tapes/temp/sg~16.9_1920x1080m_25fps_9682kbps_27_ac3_48khz_1h53mn.ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /tapes/temp/sg~16.9_1920x1080m_25fps_9682kbps_27_ac3_48khz_1h53mn.ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/tapes/temp/sg~16.9_1920x1080m_25fps_9682kbps_27_ac3_48khz_1h53mn.ts) failed
[17:51:07] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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
[17:51:07] dvd: not a dvd - trying as a stream/file instead
[17:51:07] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[17:51:07] Found the following PIDS
[17:51:07]     Video PIDS : 
[17:51:07]       0x100 type H.264 (0x1b) (PCR)
[17:51:07]     Audio PIDS : 
[17:51:07]       0x101 type AC3 (0x81)
[17:51:07]     Subtitle PIDS : 
[17:51:07]     Other PIDS : 
[17:51:07] stream id 0x101 (type 0x81 substream 0x0) audio 0x101
[17:51:07] scan: decoding previews for title 1
[17:51:07] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[17:51:07] scan: audio 0x101: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (5.1 ch)
[17:51:08] stream: 6 good frames, 0 errors (0%)
[17:51:08] scan: 10 previews, 1920x1080, 25,000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[17:51:08] libhb: scan thread found 1 valid title(s)
[17:58:07] gtkgui: Modified Custom Preset: Sat-HD_col
[17:58:07] 1 job(s) to process
[17:58:07] CPU: 
[17:58:07]  - logical processor count: 8
[17:58:07] OpenCL: library not available
[17:58:07] hb_scan: path=/tapes/temp/sg~16.9_1920x1080m_25fps_9682kbps_27_ac3_48khz_1h53mn.ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /tapes/temp/sg~16.9_1920x1080m_25fps_9682kbps_27_ac3_48khz_1h53mn.ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /tapes/temp/sg~16.9_1920x1080m_25fps_9682kbps_27_ac3_48khz_1h53mn.ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/tapes/temp/sg~16.9_1920x1080m_25fps_9682kbps_27_ac3_48khz_1h53mn.ts) failed
[17:58:07] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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
[17:58:07] dvd: not a dvd - trying as a stream/file instead
[17:58:07] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[17:58:07] Found the following PIDS
[17:58:07]     Video PIDS : 
[17:58:07]       0x100 type H.264 (0x1b) (PCR)
[17:58:07]     Audio PIDS : 
[17:58:07]       0x101 type AC3 (0x81)
[17:58:07]     Subtitle PIDS : 
[17:58:07]     Other PIDS : 
[17:58:07] stream id 0x101 (type 0x81 substream 0x0) audio 0x101
[17:58:07] scan: decoding previews for title 1
[17:58:07] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[17:58:08] scan: audio 0x101: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (5.1 ch)
[17:58:09] stream: 6 good frames, 0 errors (0%)
[17:58:09] scan: 10 previews, 1920x1080, 25,000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[17:58:09] libhb: scan thread found 1 valid title(s)
[17:58:09] hb_dict_to_job: failed to find filter settings: Expected string, got null
[17:58:09] libhb: work result = 3
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Encoding doesn't start with a delayed start

Post by mduell »

Try running it through something to fix the errors in the TS first, like VideoReDo's quick stream fix.
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

I use Ubuntu Trusty and as already mentioned I tried it converting the file with avconv and mkvmerge. The log shows the converted file. Would you recommend another tool?
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Encoding doesn't start with a delayed start

Post by mduell »

tsdoctor or ts fixer or something like that, I forget the exact name...
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

http://www.cypheros.de/tsdoctor_spec_e.html
System Requirements:
Microsoft® Windows® XP, Vista, 7 or 8 (32 Bit or 64 Bit)

I need a linux tool! FFmpeg / avconf and mkvmerge do not help!
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Encoding doesn't start with a delayed start

Post by Woodstock »

A google search for "video fixer linux" comes up with several possibilities. Adding "ts" to the search parameters gets more specific for transport streams.
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

A google search for "video fixer linux" comes up with several possibilities.
Yes, and I see I have visited them already, I have too mention, that I need a tool for hd-video. Project-X doesn't work with HD.

Maybe someone can help me which syntax I should use. Of course I don't wand to recode anything.

Obviously I need 2 options, the file and what else?
Network Optix tsMuxeR. Version 2.6.11. www.networkoptix.com

tsMuxeR is simple program to mux video to TS/M2TS files or create BD disks.
tsMuxeR does not use external filters (codecs).

Examples:
tsMuxeR <media file name>
tsMuxeR <meta file name> <out file/dir name>

tsMuxeR can be run in track detection mode or muxing mode. If run tsMuxeR with
only one argument then tsMuxeR display input track information required to
construct meta file. If run tsMuxeR with two arguments tsMuxeR start muxing
or demuxing process.

Meta file format:
File MUST has extension .meta. This file define files you want to multiplex.
First line of meta file contain additional parameters that apply to all tracks.
In this case the line should begin with the word MUXOPT.

Following lines indicate a list of tracks and their parameters. The format is
as follows: <code name>, <file name>, <parameters> Parameters are comma
separated. Each parameter indicates the name and value.
Example of META file:

MUXOPT --blu-ray
V_MPEG4/ISO/AVC, D:/media/test/stream.h264, fps=25
A_AC3, D:/media/test/stream.ac3, timeshift=-10000ms

In this example one AC3 audio stream and one H264 video stream are multiplexed
to BD disk. Input file name can reference to elementary stream or track inside
container.

Supported input containers:
- TS/M2TS/MTS
- EVO/VOB/MPG/MPEG
- MKV
- MOV/MP4
- MPLS (Blu-ray media play list file)

Names of codecs in the meta file:
- V_MPEGH/ISO/HEVC H.265/HEVC
- V_MPEG4/ISO/AVC H.264/AVC
- V_MPEG4/ISO/MVC H.264/MVC
- V_MS/VFW/WVC1 VC1
- V_MPEG-2 MPEG2
- A_AC3 AC3/AC3+/TRUE-HD
- A_AAC AAC
- A_DTS DTS/DTS-Express/DTS-HD
- A_MP3 MPEG audio layer 1/2/3
- A_LPCM raw pcm data or PCM WAV file
- S_HDMV/PGS Presentation graphic stream (BD subtitle format)
- S_TEXT/UTF8 SRT subtitle format. Encoding MUST be UTF-8/UTF-16/UTF-32

Each track may has addition parameters. Track parameters do not have dash. If
parameter value has several words, parameter must be enclosed in quotes.

Common additional parameters for any type of track:
- track track number if input file is container.
- lang track language. MUST contains exact 3 letters.

Additional parameters for audio tracks:
- timeshift Shift audio track to future (positive value) or to past.
Measured at milliseconds.
- down-to-dts Available only for DTS-HD tracks. Filter out HD part.
- down-to-ac3 Available only for TRUE-HD tracks. Filter out HD part.
- secondary Mux as secondary audio. Available for DD+ and DTS-Express.

Additional parameters for video tracks:
- fps Video fps. If not defined, default value auto detected from
a source stream if present. If not, default value 23.976.
- delPulldown Remove pulldown from the track if exists. This option lead
to fps change from 30 to 24 if pulldown exists.
- ar Override video aspect ratio. 16:9, 4:3 e.t.c.

Additional parameters for H.264 video tracks:
- level Overwrite level in the H264 stream. Note: option update
headers only. The H264 stream may not meet the requirements
of a lower level.
- insertSEI If original stream does not contain SEI picture timing,
SEI buffering period or VUI parameters, then add this data
to the stream. This option is recommended for BD muxing.
- forceSEI Add SEI picture timing, buffering period and VUI parameters
to the stream. Rebuild data If data already exist.
- contSPS If original video doesn't contain repetitive SPS/PPS then
SPS/PPS will be added to the stream before each key frame.
This option is recommended for BD muxing.
- subTrack Used for combined AVC/MVC tracks only. TsMuxeR always
demultiplex such tracks to separate AVC and MVC streams.
This parameter defined reference to AVC part(if value=1) or
or to MVC part (if value=2).
- secondary Mux as secondary video (PIP).
- pipCorner Corner for PIP video. Allowed values: "TopLeft","TopRight",
"BottomRight", "BottomLeft".
- pipHOffset PIP window horizontal offset from the corner in pixels.
- pipVOffset PIP window vertical offset from the corner in pixels.
- pipScale PIP window scale factor. Allowed values: "1", "1/2", "1/4",
"1.5", "fullScreen".
- pipLumma Allow PIP window to be transparent. Transparent colors are
lumma colors in range [0..pipLumma].

Additional parameters for PG and SRT tracks:

- video-width The width of the video in pixels.
- video-height The height of the video in pixels.
- fps Video fps. Recommended to define this parameter for more
carefully timing processing.
- 3d-plane Parameter defines number of the '3D offset track' which
placed inside MVC track. Each message has individual 3D
offset. This information stored inside 3D offset track.

Additional parameters for SRT tracks:

- font-name Font name to render.
- font-color Font color. Color can be defined in hexadecimal or decimal
format. If color 24 bit long (for instance 0xFF00FF) it's
define RGB components. IF color 32 bit long (for instance
0x80FF00FF) it's define ARGB components.
- font-size Font size in pixels.
- font-italic Italic display text.
- font-bold Bold display text.
- font-underline Underlined text.
- font-strikeout Strikethrough text.
- bottom-offset Distance from the lower edge while displaying text.
- font-border Outline width.
- fadein-time Time in ms for smooth subtitle appearance.
- fadeout-time Time in ms for smooth subtitle disappearance.
- line-spacing Interval between lines. Default value 1.0.

tsMuxeR supports addition tag inside SRT track. The syntax and parameters
coincide with HTML: <b>, <i>, <u>, <strike>, <font>. Default relative font size
(used in these tags) - 3. For example:

<b><font size=5 color="deepskyblue" name="Arial"><u>Test</u>
<font size= 4 color="#806040">colored</font>text</font>
</b>

Global addition parameters placed in the first line of the META file (MUXOPT).
All parameters in this group started with two dashes:

--pcr-on-video-pid Do not allocate separate PID for PCR, use an existing video
PID.
--new-audio-pes Use bytes 0xfd instead of 0xbd for AC3, True-HD, DTS and
DTS-HD. Parameter is auto activated for BD muxing.
--vbr Use variable bitrate.
--minbitrate Sets the lower limit of the vbr bitrate. If the stream has
a smaller bitrate then NULL packets will be inserted to
hold the limit.
--maxbitrate The upper limit of the vbr bitrate.
--cbr Muxing mode with a fixed bitrate. Options --vbr and --cbr
should not be used together.
--vbv-len The length of the virtual buffer in milliseconds. The
default value is 500. Typically, this option is used in
together with --cbr. The parameter is similar to the value
of vbv-buffer-size in the x264 coder, but defined in
milliseconds instead of kbit.
--no-asyncio Do not create a separate thread for writing. Also, this
option disable flag FILE_FLAG_NO_BUFFERING for writing.
Deprecated option.
--auto-chapters Number. Insert a chapter every <nn> minutes. Used only for
BD/AVCHD mode.
--custom-chapters A semicolon delimited list of string in format hh:mm:ss.zzz
--demux In this mode selected audio and video tracks are stored as
separate files instead of muxing. utput name must be folder
name. All selected effects (such as change of level for
h264) are processed. When demux, certain types of tracks
always get changed on storing into a file:
- Subtitles in a Presentation Graphic Stream are converted
into sup format.
- PCM audio are saved as WAV files.
--blu-ray Mux to BD diks. If output file name is folder, bluray disk
is created as folder on HDD. For BD3D disks ssif files are
not created at this case. If output file name has .iso
extension, then BD disk is created as image file.
--avchd Mux to AVCHD disk.
--cut-start Trim the beginning of the file. Value should be completed
with "ms" (the number of milliseconds), "s" (seconds) or
"min" (minutes).
--cut-end Trim the end of the file. Value should be completed with
"ms" (the number of milliseconds), "s" (seconds) or "min"
(minutes).
--split-duration Split output to several files.The time specified in seconds
--split-size Split output to several files. Values should be written
using one of the following postfix: Kb,kib, mb,mib, gb,gib.
--right-eye Use base video stream for right eye. Used for 3DBD only.
--start-time Timestamp of the first video frame. May be defined as 45Khz
clock (just a number) or as time in format hh:mm:ss.zzz
--mplsOffset The number of the first MPLS file. Used for BD disk mode.
--m2tsOffset The number of the first M2TS file. Used for BD disk mode.
--insertBlankPL Add extra short playlist. Used for cropped video muxed to
BD disk.
--blankOffset Blank playlist number.
--label Disk label for muxing to ISO file.
--extra-iso-space Allocate extra space in 64K units for ISO disk metadata
(file and directory names). Normally, tsMuxeR allocate this
space automatically. But if split condition generates a lot
of small files, extra ISO space may be required to define.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Encoding doesn't start with a delayed start

Post by mduell »

linuxuser wrote:
A google search for "video fixer linux" comes up with several possibilities.
Yes, and I see I have visited them already, I have too mention, that I need a tool for hd-video. Project-X doesn't work with HD.

Maybe someone can help me which syntax I should use. Of course I don't wand to recode anything.

Obviously I need 2 options, the file and what else?
This is a forum for HB support, not other video tools. You may find more support for other tools elsewhere like doom9.
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

This is a forum for HB support
Of course, my goal is to encode a file with handbrake, so should not handbrake include code to repair files, so they can work with handbrake? Especially DVB-streams (ts) make a lot sense to be recoded with handbrake.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Encoding doesn't start with a delayed start

Post by Woodstock »

If you want code to deal with broken streams to be incorporated into handbrake, you would really need to start with the people who write the video decoder handbrake uses...
Deleted User 11865

Re: Encoding doesn't start with a delayed start

Post by Deleted User 11865 »

Well, we do write the TS demuxer :oops:
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

You will get more info in the next hours, hopefully. It looks like it is a handbrake option, which leads to the problem. I have to do more investigations. At the moment the original recording file (*without* a mkvmerge or avconv conversion) is encoded with the default "high profile" and 60% are ok. I thought the problem occurs because I cut off about 2 minutes at the beginning, but it was not encoded with my profile from the beginning too. So I will modify the high profile step by step to my settings.
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

Here is the log with the default high profile. The encoded file can be played without any errors. So lets see which option stops the encoding. CRF 18 was used, to cut the video and then encode it again.
[15:16:30] gtkgui: HandBrake svn7073 (2015040801) - Linux x86_64 - https://handbrake.fr
[15:16:30] hb_init: starting libhb thread
[15:16:30] hb_init: starting libhb thread
[15:16:30] hb_init: starting libhb thread
[15:16:38] CPU:
[15:16:38] - logical processor count: 8
[15:16:38] OpenCL: library not available
[15:16:38] hb_scan: path=/tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts) failed
[15:16:38] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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
[15:16:38] dvd: not a dvd - trying as a stream/file instead
[15:16:38] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:16:38] Found the following PIDS
[15:16:38] Video PIDS :
[15:16:38] 0xdff type H.264 (0x1b) (PCR)
[15:16:38] Audio PIDS :
[15:16:38] 0xe00 type MPEG2 (0x4)
[15:16:38] 0xe01 type MPEG2 (0x4)
[15:16:38] 0xe03 type AC3 (0x81)
[15:16:38] 0xe05 type E-AC3 (0x87)
[15:16:38] Subtitle PIDS :
[15:16:38] Other PIDS :
[15:16:38] 0xe04 type DVB Teletext (0x0)
[15:16:38] 0x5c type ISO 13818-1 private section (0x5)
[15:16:38] stream id 0xe00 (type 0x4 substream 0x0) audio 0xe00
[15:16:38] stream id 0xe01 (type 0x4 substream 0x0) audio 0xe01
[15:16:38] stream id 0xe03 (type 0x81 substream 0x0) audio 0xe03
[15:16:38] stream id 0xe05 (type 0x87 substream 0x0) audio 0xe05
[15:16:38] scan: decoding previews for title 1
[15:16:38] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:16:38] scan: audio 0xe00: mp2, rate=48000Hz, bitrate=200000 Deutsch (MPEG) (2.0 ch)
[15:16:38] scan: audio 0xe01: mp2, rate=48000Hz, bitrate=200000 English (MPEG) (2.0 ch)
[15:16:38] scan: audio 0xe05: eac3, rate=48000Hz, bitrate=256000 Deutsch (E-AC3) (5.1 ch)
[15:16:38] scan: audio 0xe03: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (5.1 ch)
[15:16:39] stream: 12 good frames, 0 errors (0%)
[15:16:39] scan: 10 previews, 1920x1080, 25,000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[15:16:39] libhb: scan thread found 1 valid title(s)

** (ghb:12647): WARNING **: Inhibit failed: The name org.freedesktop.PowerManagement was not provided by any .service files
[15:17:20] gtkgui: Modified Preset: Regular->High Profile
[15:17:20] 1 job(s) to process
[15:17:20] CPU:
[15:17:20] - logical processor count: 8
[15:17:20] OpenCL: library not available
[15:17:20] hb_scan: path=/tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts) failed
[15:17:20] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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
[15:17:20] dvd: not a dvd - trying as a stream/file instead
[15:17:20] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:17:20] Found the following PIDS
[15:17:20] Video PIDS :
[15:17:20] 0xdff type H.264 (0x1b) (PCR)
[15:17:20] Audio PIDS :
[15:17:20] 0xe00 type MPEG2 (0x4)
[15:17:20] 0xe01 type MPEG2 (0x4)
[15:17:20] 0xe03 type AC3 (0x81)
[15:17:20] 0xe05 type E-AC3 (0x87)
[15:17:20] Subtitle PIDS :
[15:17:20] Other PIDS :
[15:17:20] 0xe04 type DVB Teletext (0x0)
[15:17:20] 0x5c type ISO 13818-1 private section (0x5)
[15:17:20] stream id 0xe00 (type 0x4 substream 0x0) audio 0xe00
[15:17:20] stream id 0xe01 (type 0x4 substream 0x0) audio 0xe01
[15:17:20] stream id 0xe03 (type 0x81 substream 0x0) audio 0xe03
[15:17:20] stream id 0xe05 (type 0x87 substream 0x0) audio 0xe05
[15:17:20] scan: decoding previews for title 1
[15:17:20] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:17:20] scan: audio 0xe00: mp2, rate=48000Hz, bitrate=200000 Deutsch (MPEG) (2.0 ch)
[15:17:20] scan: audio 0xe01: mp2, rate=48000Hz, bitrate=200000 English (MPEG) (2.0 ch)
[15:17:20] scan: audio 0xe05: eac3, rate=48000Hz, bitrate=256000 Deutsch (E-AC3) (5.1 ch)
[15:17:20] scan: audio 0xe03: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (5.1 ch)
[15:17:21] stream: 12 good frames, 0 errors (0%)
[15:17:21] scan: 10 previews, 1920x1080, 25,000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[15:17:21] libhb: scan thread found 1 valid title(s)
[15:17:21] starting job
[15:17:21] yadif thread started for segment 0
[15:17:21] yadif thread started for segment 1
[15:17:21] yadif thread started for segment 2
[15:17:21] yadif thread started for segment 3
[15:17:21] yadif thread started for segment 4
[15:17:21] yadif thread started for segment 5
[15:17:21] yadif thread started for segment 6
[15:17:21] yadif thread started for segment 7
[15:17:21] decomb filter thread started for segment 0
[15:17:21] decomb filter thread started for segment 1
[15:17:21] decomb filter thread started for segment 4
[15:17:21] decomb filter thread started for segment 3
[15:17:21] decomb check thread started for segment 0
[15:17:21] decomb check thread started for segment 3
[15:17:21] decomb filter thread started for segment 6
[15:17:21] decomb filter thread started for segment 7
[15:17:21] mask filter thread started for segment 0
[15:17:21] mask filter thread started for segment 2
[15:17:21] mask filter thread started for segment 3
[15:17:21] mask filter thread started for segment 5
[15:17:21] decomb filter thread started for segment 5
[15:17:21] mask erode thread started for segment 1
[15:17:21] decomb check thread started for segment 6
[15:17:21] mask erode thread started for segment 5
[15:17:21] decomb filter thread started for segment 2
[15:17:21] mask filter thread started for segment 1
[15:17:21] mask dilate thread started for segment 2
[15:17:21] decomb check thread started for segment 2
[15:17:21] mask filter thread started for segment 4
[15:17:21] decomb check thread started for segment 4
[15:17:21] sync: expecting 171000 video frames
[15:17:21] mask filter thread started for segment 7
[15:17:21] mask erode thread started for segment 0
[15:17:21] decomb check thread started for segment 5
[15:17:21] mask erode thread started for segment 2
[15:17:21] mask erode thread started for segment 3
[15:17:21] mask erode thread started for segment 4
[15:17:21] decomb check thread started for segment 7
[15:17:21] mask erode thread started for segment 6
[15:17:21] mask erode thread started for segment 7
[15:17:21] mask dilate thread started for segment 0
[15:17:21] mask dilate thread started for segment 1
[15:17:21] decomb check thread started for segment 1
[15:17:21] mask dilate thread started for segment 3
[15:17:21] mask dilate thread started for segment 4
[15:17:21] mask dilate thread started for segment 5
[15:17:21] mask dilate thread started for segment 6
[15:17:21] mask dilate thread started for segment 7
[15:17:21] mask filter thread started for segment 6
[15:17:21] job configuration:
[15:17:21] * source
[15:17:21] + /tapes/rec/duo2/movie/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.ts
[15:17:21] + title 1, chapter(s) 1 to 1
[15:17:21] * destination
[15:17:21] + /videos/movies/20150406 2013 - ServusTV HD Oesterreich - Das Salzkammergut - haftig, pfachtlig, gschmoh.m4v
[15:17:21] + container: MPEG-4 (libavformat)
[15:17:21] * video track
[15:17:21] + decoder: h264
[15:17:21] + bitrate 200 kbps
[15:17:21] + filters
[15:17:21] + Decomb (default settings)
[15:17:21] + Framerate Shaper (0)
[15:17:21] + frame rate: same as source (around 25,000 fps)
[15:17:21] + Crop and Scale (1920:1080:0:0:0:0)
[15:17:21] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[15:17:21] + Output geometry
[15:17:21] + storage dimensions: 1920 x 1080
[15:17:21] + pixel aspect ratio: 1 : 1
[15:17:21] + display dimensions: 1920 x 1080
[15:17:21] + encoder: H.264 (libx264)
[15:17:21] + preset: medium
[15:17:21] + profile: high
[15:17:21] + level: 4.1
[15:17:21] + quality: 18,00 (RF)
[15:17:21] * audio track 1
[15:17:21] + decoder: Deutsch (MPEG) (2.0 ch) (track 1, id 0xe00)
[15:17:21] + bitrate: 200 kbps, samplerate: 48000 Hz
[15:17:21] + mixdown: Stereo
[15:17:21] + encoder: AAC (libavcodec)
[15:17:21] + bitrate: 96 kbps, samplerate: 48000 Hz
[15:17:21] * audio track 2
[15:17:21] + decoder: Deutsch (AC3) (5.1 ch) (track 3, id 0xe03)
[15:17:21] + bitrate: 448 kbps, samplerate: 48000 Hz
[15:17:21] + AC3 Passthru
[15:17:21] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:17:21] encx264: encoding at constant RF 18,000000
[15:17:21] encx264: unparsed options: level=4.1:vbv-maxrate=62500:vbv-bufsize=78125
[15:17:21] reader: first SCR 7733562834 id 0xdff DTS 7733652240
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1
x264 [info]: profile High, level 4.1
[15:17:21] h264: "Chapter 1" (1) at frame 0 time 10800
[15:17:21] sync: adding 97 ms of silence to audio 0xe03 start 8780, next 0
[15:17:21] sync: first pts is 10800
[18:28:39] hb_ts_stream_decode - eof
[18:28:40] reader: done. 5 scr changes
[18:28:45] work: average encoding speed for job is 14,892533 fps
[18:28:45] sync: got 170986 frames, 171000 expected
[18:28:45] decomb: deinterlaced 99572 | blended 8066 | unfiltered 63347 | total 170985
[18:28:45] render: lost time: 0 (0 frames)
[18:28:45] render: gained time: 0 (0 frames) (0 not accounted for)
[18:28:45] h264-decoder done: 170986 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:1654 Avg QP:14,62 size:284877
x264 [info]: frame P:76404 Avg QP:18,40 size:135760
x264 [info]: frame B:92927 Avg QP:21,64 size: 31560
x264 [info]: consecutive B-frames: 10,5% 45,1% 18,1% 26,3%
x264 [info]: mb I I16..4: 15,9% 47,9% 36,2%
x264 [info]: mb P I16..4: 3,5% 9,1% 2,9% P16..4: 40,1% 21,5% 12,5% 0,0% 0,0% skip:10,4%
x264 [info]: mb B I16..4: 0,3% 0,6% 0,3% B16..8: 39,8% 6,8% 1,9% direct: 6,9% skip:43,4% L0:37,5% L1:49,1% BI:13,5%
x264 [info]: 8x8 transform intra:56,8% inter:46,1%
x264 [info]: coded y,uvDC,uvAC intra: 67,3% 78,4% 44,9% inter: 32,7% 32,0% 6,1%
x264 [info]: i16 v,h,dc,p: 33% 24% 13% 31%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 20% 21% 5% 6% 7% 7% 7% 7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 20% 13% 6% 8% 8% 8% 7% 7%
x264 [info]: i8c dc,h,v,p: 45% 24% 22% 9%
x264 [info]: Weighted P-Frames: Y:3,2% UV:1,4%
x264 [info]: ref P L0: 65,9% 13,2% 15,9% 4,9% 0,1%
x264 [info]: ref B L0: 82,4% 16,9% 0,7%
x264 [info]: ref B L1: 94,4% 5,6%
x264 [info]: kb/s:16114,29
[18:28:45] mp2-decoder done: 0 frames, 0 decoder errors, 0 drops
[18:28:45] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[18:28:45] mux: track 0, 170985 frames, 13776553435 bytes, 16114,25 kbps, fifo 1024
[18:28:45] mux: track 1, 320543 frames, 82368006 bytes, 96,34 kbps, fifo 2048
[18:28:45] mux: track 2, 213699 frames, 382948608 bytes, 447,93 kbps, fifo 1024
[18:28:45] stream: 171000 good frames, 0 errors (0%)
[18:28:45] libhb: work result = 0
Deleted User 11865

Re: Encoding doesn't start with a delayed start

Post by Deleted User 11865 »

Code: Select all

[17:58:09] hb_dict_to_job: failed to find filter settings: Expected string, got null
It helps if I read the log. Gotta be the settings for one of the picture filters you used. Either of a GUI or a libhb bug, but knowing which filters you requested (along with the settings) would help in fixing it.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Encoding doesn't start with a delayed start

Post by mduell »

linuxuser wrote:
This is a forum for HB support
Of course, my goal is to encode a file with handbrake, so should not handbrake include code to repair files, so they can work with handbrake? Especially DVB-streams (ts) make a lot sense to be recoded with handbrake.
No, the repair of TS files is not a goal of the HB project.

See also https://trac.handbrake.fr/wiki/IsIsnt
Deleted User 13735

Re: Encoding doesn't start with a delayed start

Post by Deleted User 13735 »

Players are designed to fudge over transport stream errors BY DESIGN.
Encoding require the stream to be unpacked to raw bits first. No way to fudge that.
Two separate functions. None of my professional NLE suites correct stream errors, so expecting that in a free encoder is asking a bit much.
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

In the meantime I encoded a few very problematic dvb-streams, eg they could not be played with vlc or only partially, crashed with kdenlive, a.s.o.
HandBrake 0.10.1 (2015030800) encoded them all as expected, no problems detected. So IMHO there must be a bug with the development versions.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Encoding doesn't start with a delayed start

Post by JohnAStebbins »

Code: Select all

[17:58:09] hb_dict_to_job: failed to find filter settings: Expected string, got null
When you got this error, where you using any custom filter options? I'm trying to figure out why it failed to parse the filter settings. The only possibility I see so far is a failure to parse a NULL value.
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

When you got this error, where you using any custom filter options?
Sorry, I am not sure what you mean.

Generally I use
bw-filter if the move is in black / white
deblock: I never use it normally and I didn't use it with the mentioned move
denoise: I use it always, from very light to medium, with both denoisers (with very bad noise I used MLMeans, otherwise hqdn3d)
Decomb ist used as standard
detelecine: no
Moste times I use with dvb-streams 25fps and not as source

Please ask if I didn't answer your question.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Encoding doesn't start with a delayed start

Post by JohnAStebbins »

The problem may be related to this https://trac.handbrake.fr/changeset/7101

Could you try this update out when you have some time? Thanks.
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

First I have to say, that I am very very busy at the moment, but I will try it ASAP of course.

Sorry, I don't understand what I should do exaxtly. Do I have to remove the stable version or can I install both somehow? I can use "deb http://ppa.launchpad.net/stebbins/handb ... ots/ubuntu trusty main" but do I have to do a patch of the latest snapshot version, if so, how?
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Encoding doesn't start with a delayed start

Post by JohnAStebbins »

Last night's snapshot should have this change in it now. The ubuntu snapshots are built nightly, so any time we make a change to the svn repo, you just have to wait a day for it to show up in the nightly build. And to be certain a particular revision has been built, you just have to look at the revision number on the deb package.
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

I do not have the old dvb-sources anymore, but I am encoding very often, so I will come back, when I have a problem. For now, I got the the first problem with the stable version, see other thread.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Encoding doesn't start with a delayed start

Post by JohnAStebbins »

linuxuser wrote:For now, I got the the first problem with the stable version, see other thread.
If you don't retest the nightly builds, the problem you were having with them may end up in the next stable release. You are the only person to have reported these problems the the denoise filter (so far).
linuxuser
Bright Spark User
Posts: 208
Joined: Fri Jan 06, 2012 7:47 pm

Re: Encoding doesn't start with a delayed start

Post by linuxuser »

Of course I will test it and I will keep a few sources now for testing, which make problems. I am confused why a reboot can help with some files. I do not notice problems with all the other programs I use, so I don't believe I have bad memory. Yesterday night I encoded 5 files with handbrake at the same time, everything was encoded fine. The pc was on the limi, using firefox was slow, but posstible.
Post Reply