[fixed]CCs missing in h.264 transport streams

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
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

[fixed]CCs missing in h.264 transport streams

Post by PaulF »

Please describe the problem in as much detail as possible:
Comcast switched to h.264 and most shows/channels work great, but some have missing CCs. VLC and ccextract find them. A:) Is this a fixable bug? or B:)How can I determine if they are unsupported 708 captions?
What are the steps to reproduce this problem:
Do a default encode.
What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Windows 7
Please include the scan or encode log:

Code: Select all

 HandBrake Nightly 20160528005301-7aa4a16-master (2016052801) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Ram: 16061 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 9.18.10.3257
Screen: 1920x1080
Temp Dir: C:\Users\PAUL\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\PAUL\AppData\Roaming\HandBrake Team\HandBrake\0.0.0.0

-------------------------------------------


# Starting Encode ...

[12:38:18] thread 240aae30 started ("work")
[12:38:18] 1 job(s) to process
[12:38:18] json job:
{

  "Audio": {

    "AudioList": [

      {

        "Bitrate": 160,

        "DRC": 0.0,

        "Encoder": 65536,

        "Gain": 0.0,

        "Mixdown": 6,

        "NormalizeMixLevel": false,

        "Samplerate": 0,

        "Track": 0,

        "DitherMethod": 0

      }

    ],

    "CopyMask": [

      1073807360,

      1073743872,

      1074003968,

      1073750016,

      1090519040,

      1074790400,

      1074266112,

      1107296256

    ],

    "FallbackEncoder": 2048

  },

  "Destination": {

    "ChapterList": [

      {

        "Name": "Chapter 1"

      }

    ],

    "ChapterMarkers": true,

    "File": "C:\\Users\\PAUL\\Dropbox\\handbrake\\The Americans-(A Roy Rogers in Franconia)-2016-06-01-1.mp4",

    "Mp4Options": {

      "IpodAtom": false,

      "Mp4Optimize": false

    },

    "Mux": 131072

  },

  "Filters": {

    "FilterList": [

      {

        "ID": 11,

        "Settings": {

          "crop-bottom": "38",

          "crop-left": "0",

          "crop-right": "0",

          "crop-top": "0",

          "height": "682",

          "width": "1280"

        }

      },

      {

        "ID": 6,

        "Settings": {

          "mode": "0"

        }

      }

    ]

  },

  "PAR": {

    "Num": 1,

    "Den": 1

  },

  "Metadata": {},

  "SequenceID": 0,

  "Source": {

    "Angle": 1,

    "Range": {

      "Type": "chapter",

      "Start": 1,

      "End": 1

    },

    "Title": 1,

    "Path": "C:\\Users\\PAUL\\Dropbox\\handbrake\\The Americans-(A Roy Rogers in Franconia)-2016-06-01-1.tp"

  },

  "Subtitle": {

    "Search": {

      "Burn": false,

      "Default": false,

      "Enable": false,

      "Forced": false

    },

    "SubtitleList": []

  },

  "Video": {

    "Encoder": 65536,

    "Level": "4.0",

    "TwoPass": false,

    "Turbo": false,

    "ColorMatrixCode": 0,

    "Options": "",

    "Preset": "veryfast",

    "Profile": "main",

    "Quality": 20.0,

    "OpenCL": false,

    "HWDecode": false,

    "QSV": {

      "Decode": true,

      "AsyncDepth": 0

    }

  }

}
[12:38:18] CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
[12:38:18]  - Intel microarchitecture Haswell
[12:38:18]  - logical processor count: 8
[12:38:18] OpenCL device #1: Intel(R) Corporation Intel(R) HD Graphics 4600
[12:38:18]  - OpenCL version: 1.2 
[12:38:18]  - driver version: 9.18.10.3257
[12:38:18]  - device type:    GPU
[12:38:18]  - supported:      YES
[12:38:18] Intel Quick Sync Video support: yes
[12:38:18]  - Intel Media SDK hardware: API 1.7 (minimum: 1.3)
[12:38:18]  - H.264 encoder: yes
[12:38:18]     - preferred implementation: hardware (any)
[12:38:18]     - capabilities (hardware):  bpyramid la vsinfo opt1 opt2+mbbrc+extbrc+trellis
[12:38:18]  - H.265 encoder: no
[12:38:18] hb_scan: path=C:\Users\PAUL\Dropbox\handbrake\The Americans-(A Roy Rogers in Franconia)-2016-06-01-1.tp, title_index=1
[12:38:18] thread 2409ad60 started ("scan")
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image C:\Users\PAUL\Dropbox\handbrake\The Americans-(A Roy Rogers in Franconia)-2016-06-01-1.tp
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[12:38:18] bd: not a bd - trying as a stream/file instead
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.BUP.
[12:38:18] dvd: not a dvd - trying as a stream/file instead
[12:38:18] file is MPEG Transport Stream with 188 byte packets offset 76 bytes
[12:38:18] Probing 1 unknown stream
[12:38:18] stream: error near frame 0: missing start code
[12:38:18] Found the following PIDS
[12:38:18]     Video PIDS : 
[12:38:18]       0xed0 type H.264 (0x1b) (PCR)
[12:38:18]     Audio PIDS : 
[12:38:18]       0xed1 type AC3 (0x81)
[12:38:18]       0xed2 type AC3 (0x81)
[12:38:18]     Subtitle PIDS : 
[12:38:18]     Other PIDS : 
[12:38:18]       0xed3 type DTS-HD MA (0x86)
[12:38:18]       0xed4 type Unknown (0xc0)
[12:38:18]       0xed5 type Unknown (0xc0)
[12:38:18]       0xf03 type Unknown (0xc0)
[12:38:18] stream id 0xed1 (type 0x81 substream 0x0) audio 0xed1
[12:38:18] stream id 0xed2 (type 0x81 substream 0x0) audio 0xed2
[12:38:18] scan: decoding previews for title 1
[12:38:18] file is MPEG Transport Stream with 188 byte packets offset 76 bytes
[12:38:18] Probing 1 unknown stream
[12:38:18] stream: error near frame 0: missing start code
[12:38:18] scan: preview 1
[12:38:18] stream: error near frame 0: missing start code
[12:38:18] fifo_close: trashing 0 buffer(s)
[12:38:18] scan: audio 0xed1: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[12:38:18] fifo_close: trashing 0 buffer(s)
[12:38:18] scan: audio 0xed2: ac3, rate=48000Hz, bitrate=192000 español (AC3) (2.0 ch)
[12:38:18] scan: preview 2
[12:38:18] scan: preview 3
[12:38:18] scan: preview 4
[12:38:18] scan: preview 5
[12:38:18] scan: preview 6
[12:38:18] scan: preview 7
[12:38:18] scan: preview 8
[12:38:18] scan: preview 9
[12:38:18] scan: preview 10
[12:38:18] stream: 12 good frames, 0 errors (0%)
[12:38:18] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/38/0/0, aspect 16:9, PAR 1:1
[12:38:18] scan: supported video decoders: avcodec qsv
[12:38:18] Freed 11 buffers of size 1024
[12:38:18] Freed 5 buffers of size 2048
[12:38:18] Freed 3 buffers of size 4096
[12:38:18] Freed 1 buffers of size 8192
[12:38:18] Freed 1 buffers of size 16384
[12:38:18] Freed 1 buffers of size 32768
[12:38:18] Freed 3 buffers of size 65536
[12:38:18] Freed 1 buffers of size 2097152
[12:38:18] Allocated 2384896 bytes of buffers on this pass and Freed 2384896 bytes, 0 bytes leaked
[12:38:18] thread 2409ad60 exited ("scan")
[12:38:18] thread 2409ad60 joined ("scan")
[12:38:18] libhb: scan thread found 1 valid title(s)
[12:38:18] starting job
[12:38:18] work: track 1, dithering not supported by codec
[12:38:18] work: only 1 chapter, disabling chapter markers
[12:38:18] job configuration:
[12:38:18]  * source
[12:38:18]    + C:\Users\PAUL\Dropbox\handbrake\The Americans-(A Roy Rogers in Franconia)-2016-06-01-1.tp
[12:38:18]    + title 1, chapter(s) 1 to 1
[12:38:18]  * destination
[12:38:18]    + C:\Users\PAUL\Dropbox\handbrake\The Americans-(A Roy Rogers in Franconia)-2016-06-01-1.mp4
[12:38:18]    + container: MPEG-4 (libavformat)
[12:38:18]  * video track
[12:38:18]    + decoder: h264
[12:38:18]      + bitrate 200 kbps
[12:38:18]    + filters
[12:38:18]      + Framerate Shaper (mode=0)
[12:38:18]        + frame rate: same as source (around 59.940 fps)
[12:38:18]      + Crop and Scale (width=1280:height=682:crop-top=0:crop-bottom=38:crop-left=0:crop-right=0)
[12:38:18]        + source: 1280 * 720, crop (0/38/0/0): 1280 * 682, scale: 1280 * 682
[12:38:18]    + Output geometry
[12:38:18]      + storage dimensions: 1280 x 682
[12:38:18]      + pixel aspect ratio: 1 : 1
[12:38:18]      + display dimensions: 1280 x 682
[12:38:18]    + encoder: H.264 (libx264)
[12:38:18]      + preset:  veryfast
[12:38:18]      + profile: main
[12:38:18]      + level:   4.0
[12:38:18]      + quality: 20.00 (RF)
[12:38:18]  * audio track 1
[12:38:18]    + decoder: English (AC3) (5.1 ch) (track 1, id 0xed1)
[12:38:18]      + bitrate: 384 kbps, samplerate: 48000 Hz
[12:38:18]    + mixdown: Dolby Pro Logic II
[12:38:18]    + encoder: AAC (libavcodec)
[12:38:18]      + bitrate: 160 kbps, samplerate: 48000 Hz
[12:38:18] file is MPEG Transport Stream with 188 byte packets offset 76 bytes
[12:38:18] Probing 1 unknown stream
[12:38:18] stream: error near frame 0: missing start code
[12:38:18] sync: expecting 9213 video frames
[12:38:18] thread 2409ad60 started ("Audio Synchronization")
[12:38:18] encx264: min-keyint: 60, keyint: 600
[12:38:18] encx264: encoding at constant RF 20.000000
[12:38:18] encx264: unparsed options: vbv-maxrate=20000:weightp=1:level=4.0:ref=1:8x8dct=0:trellis=0:subme=2:mixed-refs=0:rc-lookahead=10:vbv-bufsize=25000
[12:38:18] encx264: opening libx264 (pass 0)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[12:38:18] Writing Metadata to output file...
[12:38:18] thread 1f8dfdf0 started ("Muxer")
[12:38:18] thread 2f16dc70 started ("Reader")
[12:38:18] thread 2f16de10 started ("Audio decoder (libavcodec)")
[12:38:18] stream: error near frame 0: missing start code
[12:38:18] thread 242693d0 started ("Video decoder (libavcodec)")
[12:38:18] thread 24269570 started ("Video Synchronization")
[12:38:18] thread 2f857990 started ("AVCodec Audio encoder (libavcodec)")
[12:38:18] thread 2f857b30 started ("H.264/AVC encoder (libx264)")
[12:38:18] thread 2f857cd0 started ("Muxer")
[12:38:18] thread 2f857e70 started ("Framerate Shaper")
[12:38:18] thread 2f858010 started ("Crop and Scale")
[12:38:18] sync: first pts video is 89834
[12:38:18] sync: first pts audio 0xed1 is 0
[12:38:43] next_packet: eof while re-establishing sync @ 53805112
[12:38:43] hb_ts_stream_decode - eof
[12:38:44] reader: done. 1 scr changes
[12:38:44] thread 2f16dc70 exited ("Reader")
[12:38:44] thread 2f857cd0 exited ("Muxer")
[12:38:44] thread 2f857cd0 joined ("Muxer")
[12:38:44] work: average encoding speed for job is 359.505798 fps
[12:38:44] thread 2f857e70 exited ("Framerate Shaper")
[12:38:44] thread 2f857e70 joined ("Framerate Shaper")
[12:38:44] render: lost time: 0 (0 frames)
[12:38:44] render: gained time: 0 (0 frames) (0 not accounted for)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] thread 2f16de10 exited ("Audio decoder (libavcodec)")
[12:38:44] thread 2409ad60 exited ("Audio Synchronization")
[12:38:44] thread 242693d0 exited ("Video decoder (libavcodec)")
[12:38:44] thread 2f858010 exited ("Crop and Scale")
[12:38:44] thread 2f858010 joined ("Crop and Scale")
[12:38:44] thread 2f16dc70 joined ("Reader")
[12:38:44] stream: 9211 good frames, 17 errors (0%)
[12:38:44] thread 2f16de10 joined ("Audio decoder (libavcodec)")
[12:38:44] ac3-decoder done: 4770 frames, 0 decoder errors
[12:38:44] thread 242693d0 joined ("Video decoder (libavcodec)")
[12:38:44] h264-decoder done: 9156 frames, 0 decoder errors
[12:38:44] thread 2f857990 exited ("AVCodec Audio encoder (libavcodec)")
[12:38:44] thread 1f8dfdf0 exited ("Muxer")
[12:38:44] thread 24269570 exited ("Video Synchronization")
[12:38:44] thread 24269570 joined ("Video Synchronization")
[12:38:44] sync: got 9156 frames, 9213 expected
[12:38:44] sync: framerate min 29.960 fps, max 59.960 fps, avg 59.927 fps
[12:38:44] thread 2409ad60 joined ("Audio Synchronization")
[12:38:44] thread 2f857990 joined ("AVCodec Audio encoder (libavcodec)")
[12:38:44] encavcodeca: closing libavcodec
[12:38:44] thread 2f857b30 exited ("H.264/AVC encoder (libx264)")
[12:38:44] thread 2f857b30 joined ("H.264/AVC encoder (libx264)")
x264 [info]: frame I:29    Avg QP:14.06  size: 30395
x264 [info]: frame P:2456  Avg QP:18.98  size:  3431
x264 [info]: frame B:6671  Avg QP:20.49  size:   446
x264 [info]: consecutive B-frames:  1.9%  2.0%  2.4% 93.7%
x264 [info]: mb I  I16..4: 41.6%  0.0% 58.4%
x264 [info]: mb P  I16..4:  6.3%  0.0%  0.1%  P16..4: 20.9%  5.6%  1.6%  0.0%  0.0%    skip:65.5%
x264 [info]: mb B  I16..4:  0.3%  0.0%  0.0%  B16..8:  2.6%  0.2%  0.0%  direct: 3.2%  skip:93.7%  L0:42.9% L1:54.7% BI: 2.4%
x264 [info]: coded y,uvDC,uvAC intra: 9.9% 44.5% 3.1% inter: 0.7% 5.7% 0.0%
x264 [info]: i16 v,h,dc,p: 53% 26% 16%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 21% 18%  5%  5%  4%  4%  4%  2%
x264 [info]: i8c dc,h,v,p: 58% 18% 22%  3%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:643.11
[12:38:44] mux: file size, 15603293 bytes
[12:38:44] mux: track 0, 9156 frames, 12282373 bytes, 638.93 kbps, fifo 8192
[12:38:44] mux: track 1, 7154 frames, 3056871 bytes, 159.02 kbps, fifo 8192
[12:38:44] mux: overhead, 16.19 bytes per frame
[12:38:44] thread 1f8dfdf0 joined ("Muxer")
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] fifo_close: trashing 0 buffer(s)
[12:38:44] Freed 320 buffers of size 1024
[12:38:44] Freed 32 buffers of size 2048
[12:38:44] Freed 32 buffers of size 4096
[12:38:44] Freed 32 buffers of size 8192
[12:38:44] Freed 32 buffers of size 16384
[12:38:44] Freed 32 buffers of size 32768
[12:38:44] Freed 4 buffers of size 65536
[12:38:44] Freed 2 buffers of size 131072
[12:38:44] Freed 32 buffers of size 2097152
[12:38:44] Allocated 69992448 bytes of buffers on this pass and Freed 69992448 bytes, 0 bytes leaked
[12:38:44] thread 240aae30 exited ("work")
[12:38:44] thread 240aae30 joined ("work")
[12:38:44] libhb: work result = 0

# Encode Completed ...

 
Dropbox of files including ccextract srt
https://www.dropbox.com/sh/msgt080crc3d ... uGUpa?dl=0
Last edited by PaulF on Thu Dec 22, 2016 3:04 am, edited 3 times in total.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: CCs missing in some h.264 transport streams

Post by JohnAStebbins »

I believe it would be more correct to say *all* h264 streams are missing CCs. CC streams are embedded in the video stream and the video decoder we use for h264 does not support extracting CCs currently.

It looks like this has been added to the latest (git) libav. So when we get around to updating libav, it may be fixed. No ETA on that though.
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: CCs missing in some h.264 transport streams

Post by PaulF »

Thank you! That explains every thing. I didn't know some HD channels are still mpg streams so now I can tell if a channel will have captions ahead of time. I can will record the SD channel if captions are needed. I will edit the title.

BTW some streams compress file size 3 to 1 to 264 mp4 and the comskip program now also uses ffmpeg and finds commercials on the 264 mp4 at 1300 fps. I wondered if comskip could somehow share the decoder output with handbrake, but both are so fast it probably makes no sense.
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: [invalid]CCs missing in h.264 transport streams

Post by PaulF »

I decided to look at the source because I am curious about a how the CC type is detected and maybe how the burn-in font is chosen.

While googling around to figure out where to look, I noticed that ffmpeg fixed the h264 CCs
https://trac.ffmpeg.org/ticket/2885

Is libav part of ffmpeg or separate?
Deleted User 11865

Re: [invalid]CCs missing in h.264 transport streams

Post by Deleted User 11865 »

http://git.libav.org/?p=libav.git;a=com ... h=b0017579

But we haven't yet updated to libav git master and may still need to wire it up.
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: [invalid]CCs missing in h.264 transport streams

Post by PaulF »

Rodeo wrote:http://git.libav.org/?p=libav.git;a=com ... h=b0017579

But we haven't yet updated to libav git master and may still need to wire it up.
That git entry is exactly one year old. Now I am really confused. Both ffmpeg and libav did h264 CCs last July. Are you in the middle of switching from switching from ffmpeg to libav so no ffmopeg fixes? Otherwise, I can't see why handbrake doesn't work.
Deleted User 11865

Re: [invalid]CCs missing in h.264 transport streams

Post by Deleted User 11865 »

This hasn't made it into an official libav release yet. And just because CCs are now exposed to the API user doesn't mean we wrote the code to look for and send them to our decoder.

I'm not familiar enough with that part of the code; for all I know it may automagically start working once we update to a newer version of libav, or it may not and we may need to write a bit of additional code to find them. Also, our decoder doesn't necessarily support all CC formats out of the box…
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: [invalid]CCs missing in h.264 transport streams

Post by PaulF »

Thanks. I was just curious and don't really need it, now. All the shows I save are still mpg streams.

I have been putting off setting up a tool chain so I can learn by tweeking,
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: [invalid?]CCs missing in h.264 transport streams

Post by PaulF »

The reason I am revisiting this is that the FX channel went H.265 and I would like burn subtitles for the upcoming season of Fargo. All the other shows I burn are still mpeg streams.

I tried the latest nightly because the suggestion to upgrade libav submitted shortly after this thread has been committed, I think. No CC found in a stream, CCfound using VLC.
https://github.com/HandBrake/HandBrake/ ... ad4d6e6beb

Code: Select all

HandBrake Nightly 20161002193500-136108a-master (2016100501) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Ram: 16061 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 9.18.10.3257
Screen: 1920x1080
Temp Dir: C:\Users\PAUL\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\PAUL\AppData\Roaming\HandBrake Team\HandBrake\0.0.0.0

-------------------------------------------


# Starting Encode ...

[23:58:39] hb_init: starting libhb thread
[23:58:39] thread 21a09920 started ("libhb")
[23:58:39] thread 21a09ae0 started ("work")
[23:58:39] 1 job(s) to process
[23:58:39] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 6,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "C:\\Documents and Settings\\All Users\\Documents\\SnapStream\\Beyond TV\\shows\\22 Jump Street-2016-10-15-0.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "720",
          "width": "1280"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Documents and Settings\\All Users\\Documents\\SnapStream\\Beyond TV\\shows\\22 Jump Street-2016-10-15-0.tp"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryfast",
    "Profile": "main",
    "Quality": 20.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[23:58:39] CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
[23:58:39]  - Intel microarchitecture Haswell
[23:58:39]  - logical processor count: 8
[23:58:39] OpenCL device #1: Intel(R) Corporation Intel(R) HD Graphics 4600
[23:58:39]  - OpenCL version: 1.2
[23:58:39]  - driver version: 9.18.10.3257
[23:58:39]  - device type:    GPU
[23:58:39]  - supported:      YES
[23:58:39] Intel Quick Sync Video support: yes
[23:58:39]  - Intel Media SDK hardware: API 1.7 (minimum: 1.3)
[23:58:39]  - H.264 encoder: yes
[23:58:39]     - preferred implementation: hardware (any)
[23:58:39]     - capabilities (hardware):  bpyramid la vsinfo opt1 opt2+mbbrc+extbrc+trellis
[23:58:39]  - H.265 encoder: no
[23:58:39] hb_scan: path=C:\Documents and Settings\All Users\Documents\SnapStream\Beyond TV\shows\22 Jump Street-2016-10-15-0.tp, title_index=1
[23:58:39] thread 21faf3d0 started ("scan")
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image C:\Documents and Settings\All Users\Documents\SnapStream\Beyond TV\shows\22 Jump Street-2016-10-15-0.tp
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[23:58:39] bd: not a bd - trying as a stream/file instead
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.BUP.
[23:58:39] dvd: not a dvd - trying as a stream/file instead
[23:58:39] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:58:39] Probing 1 unknown stream
[23:58:39] stream: error near frame 0: missing start code
[23:58:39] Found the following PIDS
[23:58:39]     Video PIDS :
[23:58:39]       0x1009 type H.264 (0x1b) (PCR)
[23:58:39]     Audio PIDS :
[23:58:39]       0x100a type AC3 (0x81)
[23:58:39]       0x100b type AC3 (0x81)
[23:58:39]     Subtitle PIDS :
[23:58:39]     Other PIDS :
[23:58:39]       0x100c type DTS-HD MA (0x86)
[23:58:39]       0x100d type Unknown (0xc0)
[23:58:39]       0x100e type Unknown (0xc0)
[23:58:39]       0x1032 type Unknown (0xc0)
[23:58:39] stream id 0x100a (type 0x81 substream 0x0) audio 0x100a
[23:58:39] stream id 0x100b (type 0x81 substream 0x0) audio 0x100b
[23:58:39] scan: decoding previews for title 1
[23:58:39] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:58:39] Probing 1 unknown stream
[23:58:39] stream: error near frame 0: missing start code
[23:58:39] scan: preview 1
[23:58:39] stream: error near frame 0: missing start code
[23:58:39] fifo_close: trashing 0 buffer(s)
[23:58:39] scan: audio 0x100a: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[23:58:39] fifo_close: trashing 0 buffer(s)
[23:58:39] scan: audio 0x100b: ac3, rate=48000Hz, bitrate=192000 español (AC3) (2.0 ch)
[23:58:39] scan: preview 2
[23:58:39] scan: preview 3
[23:58:39] scan: preview 4
[23:58:39] scan: preview 5
[23:58:39] scan: preview 6
[23:58:39] scan: preview 7
[23:58:39] scan: preview 8
[23:58:39] scan: preview 9
[23:58:39] scan: preview 10
[23:58:39] stream: 17 good frames, 0 errors (0%)
[23:58:39] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[23:58:39] scan: supported video decoders: avcodec qsv
[23:58:39] Freed 12 buffers of size 1024
[23:58:39] Freed 4 buffers of size 2048
[23:58:39] Freed 3 buffers of size 4096
[23:58:39] Freed 1 buffers of size 8192
[23:58:39] Freed 1 buffers of size 16384
[23:58:39] Freed 1 buffers of size 32768
[23:58:39] Freed 3 buffers of size 65536
[23:58:39] Freed 1 buffers of size 2097152
[23:58:39] Allocated 2383872 bytes of buffers on this pass and Freed 2383872 bytes, 0 bytes leaked
[23:58:39] thread 21faf3d0 exited ("scan")
[23:58:39] thread 21faf3d0 joined ("scan")
[23:58:39] libhb: scan thread found 1 valid title(s)
[23:58:39] Adding subtitle scan pass
[23:58:39] Skipping subtitle scan.  No suitable subtitle tracks.
[23:58:39] starting job
[23:58:39] work: track 1, dithering not supported by codec
[23:58:39] work: only 1 chapter, disabling chapter markers
[23:58:39] job configuration:
[23:58:39]  * source
[23:58:39]    + C:\Documents and Settings\All Users\Documents\SnapStream\Beyond TV\shows\22 Jump Street-2016-10-15-0.tp
[23:58:39]    + title 1, chapter(s) 1 to 1
[23:58:39]  * destination
[23:58:39]    + C:\Documents and Settings\All Users\Documents\SnapStream\Beyond TV\shows\22 Jump Street-2016-10-15-0.mp4
[23:58:39]    + container: MPEG-4 (libavformat)
[23:58:39]  * video track
[23:58:39]    + decoder: h264
[23:58:39]      + bitrate 200 kbps
[23:58:39]    + filters
[23:58:39]      + Framerate Shaper (mode=0)
[23:58:39]        + frame rate: same as source (around 59.940 fps)
[23:58:39]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[23:58:39]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[23:58:39]    + Output geometry
[23:58:39]      + storage dimensions: 1280 x 720
[23:58:39]      + pixel aspect ratio: 1 : 1
[23:58:39]      + display dimensions: 1280 x 720
[23:58:39]    + encoder: H.264 (libx264)
[23:58:39]      + preset:  veryfast
[23:58:39]      + profile: main
[23:58:39]      + level:   4.0
[23:58:39]      + quality: 20.00 (RF)
[23:58:39]  * audio track 1
[23:58:39]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x100a)
[23:58:39]      + bitrate: 384 kbps, samplerate: 48000 Hz
[23:58:39]    + mixdown: Dolby Pro Logic II
[23:58:39]    + encoder: AAC (libavcodec)
[23:58:39]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:58:39] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:58:39] Probing 1 unknown stream
[23:58:39] stream: error near frame 0: missing start code
[23:58:39] sync: expecting 4345 video frames
[23:58:39] thread 21a08ea0 started ("Audio Synchronization")
[23:58:39] encx264: min-keyint: 60, keyint: 600
[23:58:39] encx264: encoding at constant RF 20.000000
[23:58:39] encx264: unparsed options: ref=1:level=4.0:8x8dct=0:weightp=1:rc-lookahead=10:vbv-bufsize=25000:vbv-maxrate=20000:subme=2:mixed-refs=0:trellis=0
[23:58:39] encx264: opening libx264 (pass 0)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[23:58:39] Writing Metadata to output file...
[23:58:39] thread 21a09060 started ("Muxer")
[23:58:39] thread 21a09220 started ("Reader")
[23:58:39] stream: error near frame 0: missing start code
[23:58:39] thread 21faf590 started ("Audio decoder (libavcodec)")
[23:58:39] thread 21faf750 started ("Video decoder (libavcodec)")
[23:58:39] thread 21faf910 started ("Video Synchronization")
[23:58:39] thread 212f66f0 started ("AVCodec Audio encoder (libavcodec)")
[23:58:39] thread 212f68b0 started ("H.264/AVC encoder (libx264)")
[23:58:39] thread 21a093e0 started ("Muxer")
[23:58:39] thread 21908b20 started ("Framerate Shaper")
[23:58:39] thread 21a095a0 started ("Crop and Scale")
[23:58:39] sync: first pts video is 92281
[23:58:39] sync: first pts audio 0x100a is 0
[23:58:55] next_packet: eof while re-establishing sync @ 35520532
[23:58:55] hb_ts_stream_decode - eof
[23:58:55] reader: done. 1 scr changes
[23:58:55] thread 21a09220 exited ("Reader")
[23:58:55] thread 21a093e0 exited ("Muxer")
[23:58:55] thread 21a093e0 joined ("Muxer")
[23:58:55] work: average encoding speed for job is 263.249847 fps
[23:58:55] thread 21faf590 exited ("Audio decoder (libavcodec)")
[23:58:55] thread 21a08ea0 exited ("Audio Synchronization")
[23:58:55] thread 21908b20 exited ("Framerate Shaper")
[23:58:55] thread 21908b20 joined ("Framerate Shaper")
[23:58:55] vfr: lost time: 0 (0 frames)
[23:58:55] vfr: gained time: 0 (0 frames) (0 not accounted for)
[23:58:55] fifo_close: trashing 0 buffer(s)
[23:58:55] thread 21a095a0 exited ("Crop and Scale")
[23:58:55] thread 21a095a0 joined ("Crop and Scale")
[23:58:55] thread 21a09220 joined ("Reader")
[23:58:55] stream: 4310 good frames, 30 errors (1%)
[23:58:55] thread 21faf590 joined ("Audio decoder (libavcodec)")
[23:58:55] ac3-decoder done: 2215 frames, 0 decoder errors
[23:58:55] thread 21faf750 exited ("Video decoder (libavcodec)")
[23:58:55] thread 21faf750 joined ("Video decoder (libavcodec)")
[23:58:55] h264-decoder done: 4247 frames, 0 decoder errors
[23:58:55] thread 21faf910 exited ("Video Synchronization")
[23:58:55] thread 21faf910 joined ("Video Synchronization")
[23:58:55] sync: got 4247 frames, 4345 expected
[23:58:55] sync: framerate min 29.970 fps, max 59.960 fps, avg 59.926 fps
[23:58:55] thread 21a08ea0 joined ("Audio Synchronization")
[23:58:55] thread 212f68b0 exited ("H.264/AVC encoder (libx264)")
[23:58:56] thread 212f66f0 exited ("AVCodec Audio encoder (libavcodec)")
[23:58:56] thread 21a09060 exited ("Muxer")
[23:58:56] thread 212f66f0 joined ("AVCodec Audio encoder (libavcodec)")
[23:58:56] encavcodeca: closing libavcodec
[23:58:56] thread 212f68b0 joined ("H.264/AVC encoder (libx264)")
x264 [info]: frame I:71    Avg QP:17.95  size: 34870
x264 [info]: frame P:1194  Avg QP:21.10  size: 13227
x264 [info]: frame B:2982  Avg QP:21.66  size:  1435
x264 [info]: consecutive B-frames:  2.3%  9.5%  7.9% 80.2%
x264 [info]: mb I  I16..4: 43.6%  0.0% 56.4%
x264 [info]: mb P  I16..4: 21.6%  0.0%  3.8%  P16..4: 30.2% 14.6%  5.3%  0.0%  0.0%    skip:24.5%
x264 [info]: mb B  I16..4:  1.1%  0.0%  0.1%  B16..8:  9.6%  1.5%  0.1%  direct: 3.1%  skip:84.5%  L0:42.8% L1:49.7% BI: 7.5%
x264 [info]: coded y,uvDC,uvAC intra: 20.7% 46.8% 7.8% inter: 4.2% 9.6% 0.3%
x264 [info]: i16 v,h,dc,p: 40% 34% 16% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 30% 20%  4%  5%  4%  6%  3%  3%
x264 [info]: i8c dc,h,v,p: 47% 26% 21%  6%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:2545.10
[23:58:56] mux: file size, 24086649 bytes
[23:58:56] mux: track 0, 4247 frames, 22545035 bytes, 2508.31 kbps, fifo 2048
[23:58:56] mux: track 1, 3321 frames, 1418802 bytes, 157.85 kbps, fifo 2048
[23:58:56] mux: overhead, 16.23 bytes per frame
[23:58:56] thread 21a09060 joined ("Muxer")
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] fifo_close: trashing 0 buffer(s)
[23:58:56] Freed 320 buffers of size 1024
[23:58:56] Freed 32 buffers of size 2048
[23:58:56] Freed 32 buffers of size 4096
[23:58:56] Freed 32 buffers of size 8192
[23:58:56] Freed 32 buffers of size 16384
[23:58:56] Freed 32 buffers of size 32768
[23:58:56] Freed 19 buffers of size 65536
[23:58:56] Freed 3 buffers of size 131072
[23:58:56] Freed 32 buffers of size 2097152
[23:58:56] Allocated 71106560 bytes of buffers on this pass and Freed 71106560 bytes, 0 bytes leaked
[23:58:56] thread 21a09ae0 exited ("work")
[23:58:56] thread 21a09ae0 joined ("work")
[23:58:56] libhb: work result = 0

# Encode Completed ...

Deleted User 11865

Re: [invalid]CCs missing in h.264 transport streams

Post by Deleted User 11865 »

Nope, unfortunately the libav bump was not committed yet.
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: [invalid]CCs missing in h.264 transport streams

Post by PaulF »

I saw the the commit yesterday. I couldn't believe how much work that in involved, Well dome. I tried the Dec 18th nightly. Did the commit make that build? If so it didn't find the CC in a h.264 stream. I can post the activity log if you want. The only weird things I noticed were auto crop was way off and it seems to be doing QSV decode when not selected.

Back when I was coding many years ago, when you considered testing and debug and coding our goal was one line of code per day. Debug was very difficult back then. Needless to say, I am very impressed.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: [invalid]CCs missing in h.264 transport streams

Post by s55 »

Still being tracked under https://github.com/HandBrake/HandBrake/issues/390

As far as we are aware, LibAV 12 didn't add support for 708 subtitles. Only 608

Also, not checked if we actually have to write any code to extract 608 from libav or not yet.
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: [invalid]CCs missing in h.264 transport streams

Post by PaulF »

s55 wrote:Still being tracked under https://github.com/HandBrake/HandBrake/issues/390

As far as we are aware, LibAV 12 didn't add support for 708 subtitles. Only 608

Also, not checked if we actually have to write any code to extract 608 from libav or not yet.
I saw that issue and simply forgot to check the status. So never mind

VLC extracts CC1 witch I assume is the user data 608 captions.
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: [invalid]CCs missing in h.264 transport streams

Post by PaulF »

User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: [invalid]CCs missing in h.264 transport streams

Post by JohnAStebbins »

PaulF wrote:In case tou need a sample:
https://www.dropbox.com/s/1kkd124gsycj1 ... -0.tp?dl=0
A sample would help. Dropbox says it this is still uploading. Seems like it's been a while since you posted the link. Did the upload fail?
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: [invalid]CCs missing in h.264 transport streams

Post by JohnAStebbins »

I found a sample and did a quick test encode. Works fine for me with latest nightly.

Log:

Code: Select all

[14:22:54] hb_init: starting libhb thread
[14:22:54] thread 7f36ba2ba700 started ("libhb")
HandBrake 20161218222841-7c9c65c-master (2016121901) - Linux x86_64 - https://handbrake.fr
8 CPUs detected
Opening /home/jstebbins/Videos/Samples/h264_CC_test.ts...
[14:22:54] CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
[14:22:54]  - Intel microarchitecture Ivy Bridge
[14:22:54]  - logical processor count: 8
[14:22:54] OpenCL: library not available
[14:22:54] hb_scan: path=/home/jstebbins/Videos/Samples/h264_CC_test.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image /home/jstebbins/Videos/Samples/h264_CC_test.ts
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[14:22:54] 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
[14:22:54] dvd: not a dvd - trying as a stream/file instead
[14:22:54] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:22:54] Found the following PIDS
[14:22:54]     Video PIDS : 
[14:22:54]       0x1e1 type H.264 (0x1b) (PCR)
[14:22:54]     Audio PIDS : 
[14:22:54]       0x1e2 type AC3 (0x81)
[14:22:54]     Subtitle PIDS : 
[14:22:54]     Other PIDS : 
[14:22:54] stream id 0x1e2 (type 0x81 substream 0x0) audio 0x1e2
[14:22:54] hb_ts_stream_getPEStype: EOF while searching for PID 0x1e1
[14:22:54] stream doesn't seem to have video IDR frames
[14:22:54] scan: decoding previews for title 1
[14:22:54] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
Scanning title 1 of 1, preview 1, 10.00 %
[14:22:55] scan: audio 0x1e2: ac3, rate=48000Hz, bitrate=384000 Unknown (AC3) (5.1 ch)
Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 6, 60.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 8, 80.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 10, 100.00 %
[14:22:58] stream: 17 good frames, 0 errors (0%)
[14:22:58] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[14:22:58] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: /home/jstebbins/Videos/Samples/h264_CC_test.ts
  + duration: 00:01:59
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + support opencl: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:01:59
  + audio tracks:
    + 1, Unknown (AC3) (5.1 ch) (iso639-2: und), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, Closed Captions (iso639-2: und) (Text)(CC)
[14:22:59] 1 job(s) to process
[14:22:59] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 0,
                "DRC": 0.0,
                "Encoder": "copy:ac3",
                "Mixdown": "none",
                "PresetEncoder": "copy",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "fdk_aac"
    },
    "Destination": {
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "ttt.mkv",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/jstebbins/Videos/Samples/h264_CC_test.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 0
            }
        ]
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "auto",
        "OpenCL": false,
        "Options": "",
        "Preset": "ultrafast",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[14:22:59] starting job
[14:22:59] job configuration:
[14:22:59]  * source
[14:22:59]    + /home/jstebbins/Videos/Samples/h264_CC_test.ts
[14:22:59]    + title 1, chapter(s) 1 to 1
[14:22:59]  * destination
[14:22:59]    + ttt.mkv
[14:22:59]    + container: Matroska (libavformat)
[14:22:59]  * video track
[14:22:59]    + decoder: h264
[14:22:59]      + bitrate 200 kbps
[14:22:59]    + filters
[14:22:59]      + Framerate Shaper (mode=0)
[14:22:59]        + frame rate: same as source (around 29.970 fps)
[14:22:59]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[14:22:59]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[14:22:59]    + Output geometry
[14:22:59]      + storage dimensions: 1920 x 1080
[14:22:59]      + pixel aspect ratio: 1 : 1
[14:22:59]      + display dimensions: 1920 x 1080
[14:22:59]    + encoder: H.264 (libx264)
[14:22:59]      + preset:  ultrafast
[14:22:59]      + profile: auto
[14:22:59]      + level:   auto
[14:22:59]      + quality: 22.00 (RF)
[14:22:59]  * subtitle track 1, Closed Captions (track 0, id 0x0) Text [CC] -> Passthrough
[14:22:59]  * audio track 1
[14:22:59]    + decoder: Unknown (AC3) (5.1 ch) (track 1, id 0x1e2)
[14:22:59]      + bitrate: 384 kbps, samplerate: 48000 Hz
[14:22:59]    + AC3 Passthru
[14:22:59] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[14:22:59] sync: expecting 3589 video frames
[14:22:59] encx264: min-keyint: 30, keyint: 300
[14:22:59] encx264: encoding at constant RF 22.000000
[14:22:59] encx264: unparsed options: ref=1:scenecut=0:bframes=0:no-deblock=1:cabac=0:analyse=none:8x8dct=0:weightp=0:me=dia:subme=0:mixed-refs=0:trellis=0:aq-mode=0:mbtree=0:rc-lookahead=0
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Constrained Baseline, level 4.0
[14:22:59] sync: first pts video is 0
[14:22:59] sync: first pts audio 0x1e2 is 0
[14:22:59] sync: first pts subtitle 0x0 is 72072
[14:23:49] hb_ts_stream_decode - eof
[14:23:49] reader: done. 1 scr changes
[14:23:50] work: average encoding speed for job is 70.088943 fps
[14:23:50] vfr: lost time: 0 (0 frames)
[14:23:50] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:23:50] stream: 3575 good frames, 0 errors (0%)
[14:23:50] ac3-decoder done: 3718 frames, 0 decoder errors
[14:23:50] h264-decoder done: 3574 frames, 0 decoder errors
[14:23:50] sync: got 3574 frames, 3589 expected
[14:23:50] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:12    Avg QP:20.17  size:229993
x264 [info]: frame P:3562  Avg QP:22.95  size: 60035
x264 [info]: mb I  I16..4: 100.0%  0.0%  0.0%
x264 [info]: mb P  I16..4: 18.3%  0.0%  0.0%  P16..4: 55.7%  0.0%  0.0%  0.0%  0.0%    skip:26.1%
x264 [info]: coded y,uvDC,uvAC intra: 34.3% 50.7% 16.4% inter: 34.1% 33.9% 4.3%
x264 [info]: i16 v,h,dc,p: 34% 30% 23% 14%
x264 [info]: i8c dc,h,v,p: 40% 27% 23% 10%
x264 [info]: kb/s:14530.79
[14:23:50] mux: track 0, 3574 frames, 216603533 bytes, 14526.69 kbps, fifo 512
[14:23:50] mux: track 1, 3718 frames, 5710848 bytes, 383.00 kbps, fifo 512
[14:23:50] mux: track 2, 23 frames, 1930 bytes, 0.13 kbps, fifo 8
[14:23:50] libhb: work result = 0

Encode done!
HandBrake has exited.
PaulF
Novice
Posts: 58
Joined: Thu Nov 21, 2013 7:15 am

Re: [fixed]CCs missing in h.264 transport streams

Post by PaulF »

Two days later and it now works!! :D I marked it as "fixed"
Post Reply