[Resolved] [SVN 1797] Converted DV Video half green

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
erise
Posts: 32
Joined: Thu Feb 21, 2008 6:07 am

[Resolved] [SVN 1797] Converted DV Video half green

Post by erise »

The right half of a converted DV file is lime green when converted with HandBrake Snapshot 3. (It appears lime green in the preview window as well.) The left half looks fine. Here's a screenshot and my activity log:

Image

Code: Select all

[16:35:43] macgui: Handbrake Version: svn1797 (2008093001)
[16:35:43] hb_init: checking cpu count
[16:35:43] hb_init: starting libhb thread
[16:35:43] thread b01da000 started ("libhb")
[16:35:43] hb_init: checking cpu count
[16:35:43] hb_init: starting libhb thread
[16:35:43] thread b025c000 started ("libhb")
[16:35:58] macgui: trying to open video_ts folder (parent directory chosen)
[16:35:58] hb_scan: path=/Users/erise/Desktop/Oreo.dv, title_index=0
[16:35:58] thread b04e6000 started ("scan")
[16:35:58] scan: trying to open with libdvdread
[16:35:58] dvd: not a dvd - trying as a stream/file instead
Input #0, dv, from '/Users/erise/Desktop/Oreo.dv':
  Duration: 00:00:21.45, start: 0.000000, bitrate: 28771 kb/s
    Stream #0.0: Video: dvvideo, yuv411p, 720x480, 28771 kb/s, 29.97 tb(r)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[16:35:58] scan: decoding previews for title 1
[16:35:58] scan: preview 1
[16:35:58] Interlacing detected in preview frame 1
[16:35:58] scan: preview 2
[16:35:58] scan: preview 3
[16:35:58] Interlacing detected in preview frame 3
[16:35:58] scan: preview 4
[16:35:58] Interlacing detected in preview frame 4
[16:35:58] scan: preview 5
[16:35:58] Interlacing detected in preview frame 5
[16:35:58] scan: preview 6
[16:35:58] Interlacing detected in preview frame 6
[16:35:58] scan: preview 7
[16:35:58] scan: preview 8
[16:35:58] scan: preview 9
[16:35:58] scan: preview 10
[16:35:59] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 1.50:1, PAR 1:1
[16:35:59] Title is likely interlaced or telecined (5 out of 10 previews). You should do something about that.
[16:35:59] scan: title (0) job->width:720, job->height:480
[16:35:59] thread b04e6000 exited ("scan")
[16:35:59] thread b04e6000 joined ("scan")
[16:35:59] libhb: scan thread found 1 valid title(s)
[16:35:59] macgui: ScanDone state received from fHandle
[16:36:25] macgui: Rip: Pending queue count is 0
[16:36:25] macgui: Rip: No pending jobs, so sending this one to doAddToQueue
[16:36:25] macgui: Rip: Going right to performNewQueueScan
[16:36:25] macgui: scanning specifically for title: 1
[16:36:25] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[16:36:25] hb_scan: path=/Users/erise/Desktop/Oreo.dv, title_index=1
[16:36:25] thread b04e6000 started ("scan")
[16:36:25] scan: trying to open with libdvdread
[16:36:25] dvd: not a dvd - trying as a stream/file instead
Input #0, dv, from '/Users/erise/Desktop/Oreo.dv':
  Duration: 00:00:21.45, start: 0.000000, bitrate: 28771 kb/s
    Stream #0.0: Video: dvvideo, yuv411p, 720x480, 28771 kb/s, 29.97 tb(r)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[16:36:25] scan: decoding previews for title 1
[16:36:25] scan: preview 1
[16:36:25] Interlacing detected in preview frame 1
[16:36:25] scan: preview 2
[16:36:25] scan: preview 3
[16:36:25] Interlacing detected in preview frame 3
[16:36:25] scan: preview 4
[16:36:25] Interlacing detected in preview frame 4
[16:36:25] scan: preview 5
[16:36:25] Interlacing detected in preview frame 5
[16:36:25] scan: preview 6
[16:36:25] Interlacing detected in preview frame 6
[16:36:25] scan: preview 7
[16:36:25] scan: preview 8
[16:36:25] scan: preview 9
[16:36:25] scan: preview 10
[16:36:25] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 1.50:1, PAR 1:1
[16:36:25] Title is likely interlaced or telecined (5 out of 10 previews). You should do something about that.
[16:36:25] scan: title (0) job->width:720, job->height:480
[16:36:25] thread b04e6000 exited ("scan")
[16:36:25] thread b04e6000 joined ("scan")
[16:36:25] libhb: scan thread found 1 valid title(s)
[16:36:25] macgui: ScanDone state received from fQueueEncodeLibhb
[16:36:25] macgui: processNewQueueEncode title list is: 1
[16:36:25] macgui: processNewQueueEncode currentQueueEncodeIndex is: 0
[16:36:25] macgui: processNewQueueEncode number of passes expected is: 2
[16:36:25] macgui: processNewQueueEncode sending to prepareJob
[16:36:25] macgui: prepareJob exiting
[16:36:25] thread b04e6000 started ("work")
[16:36:25] 2 job(s) to process
[16:36:25] starting job
[16:36:25] job configuration:
[16:36:25]  * source
[16:36:25]    + /Users/erise/Desktop/Oreo.dv
[16:36:25]    + title 1, chapter(s) 1 to 1
[16:36:25]    + container: dv
[16:36:25]    + data rate: 28771 kbps
[16:36:25]  * destination
[16:36:25]    + /Volumes/LACIE (FireWire)/Oreo.m4v
[16:36:25]    + container: MPEG-4 (.mp4 and .m4v)
[16:36:25]      + chapter markers
[16:36:25]  * video track
[16:36:25]    + decoder: dvvideo
[16:36:25]      + bitrate 28771 kbps
[16:36:25]    + frame rate: 29.970 fps -> variable fps
[16:36:25]    + loose anamorphic
[16:36:25]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[16:36:25]      + pixel aspect ratio: 1 / 1
[16:36:25]      + display dimensions: 720 * 480
[16:36:25]    + filters
[16:36:25]      + Detelecine (pullup) (default settings)
[16:36:25]      + Deinterlaces selectively with yadif/mcdeint and lowpass5 blending (1:2:6:9:80:16:16)
[16:36:25]    + encoder: x264
[16:36:25]      + options: level=30:bframes=0:cabac=0:ref=1:analyse=all:me=umh:no-fast-pskip=1:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[16:36:25]      + bitrate: 2000 kbps, pass: 1
[16:36:25]  * audio track 0
[16:36:25]    + decoder: Unknown (PCM_S16) (track 0, id 1)
[16:36:25]    + mixdown: Stereo
[16:36:25]    + encoder: faac
[16:36:25]      + bitrate: 160 kbps, samplerate: 48000 Hz
[16:36:25] dvd: not a dvd - trying as a stream/file instead
[16:36:25] thread b0568000 started ("reader")
[16:36:25] reader: first SCR 0
[16:36:25] thread b05fb000 started ("Video decoder (ffmpeg streams)")
[16:36:25] thread b067d000 started ("yadif_filter_segment")
[16:36:25] yadif thread started for segment 0
[16:36:25] thread b06ff000 started ("yadif_filter_segment")
[16:36:25] yadif thread started for segment 1
[16:36:25] thread b0885000 started ("decomb_filter_segment")
[16:36:25] decomb thread started for segment 0
[16:36:25] thread b0907000 started ("decomb_filter_segment")
[16:36:25] decomb thread started for segment 1
[16:36:25] thread b0989000 started ("Renderer")
[16:36:25] encx264: keyint-min: 30, keyint-max: 300
[16:36:25] encx264: encoding with stored aspect 1/1
[16:36:25] encx264: opening libx264 (pass 1)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 Cache64
[16:36:25] thread b0ab7000 started ("H.264/AVC encoder (libx264)")
[16:36:25] thread b0b39000 started ("Audio decoder (ffmpeg streams)")
[16:36:25] thread b0bbb000 started ("AAC encoder (libfaac)")
[16:36:25] thread b0c3d000 started ("muxer")
[16:36:25] sync: expecting 672 video frames
[16:36:42] reader: done. 0 scr changes
[16:36:42] thread b0568000 exited ("reader")
[16:36:52] sync: got 642 frames, 672 expected
[16:36:52] work: average encoding speed for job is 24.237196 fps
[16:36:52] thread b0c3d000 exited ("muxer")
[16:36:52] thread b0c3d000 joined ("muxer")
[16:36:52] thread b0ab7000 exited ("H.264/AVC encoder (libx264)")
[16:36:52] thread b05fb000 exited ("Video decoder (ffmpeg streams)")
[16:36:52] thread b0bbb000 exited ("AAC encoder (libfaac)")
[16:36:52] thread b0b39000 exited ("Audio decoder (ffmpeg streams)")
[16:36:52] thread b05fb000 joined ("Video decoder (ffmpeg streams)")
[16:36:52] thread b0989000 exited ("Renderer")
[16:36:52] dvvideo-decoder done: 643 frames, 0 decoder errors, 0 drops
[16:36:52] thread b0989000 joined ("Renderer")
[16:36:52] render: lost time: 24024 (8 frames)
[16:36:52] render: gained time: 24024 (32 frames) (0 not accounted for)
[16:36:52] render: average dropped frame duration: 3003
[16:36:52] fifo_close: trashing 1 buffer(s)
[16:36:52] fifo_close: trashing 3 buffer(s)
[16:36:52] thread b0ab7000 joined ("H.264/AVC encoder (libx264)")
x264 [info]: slice I:6     Avg QP:25.30  size: 28916  PSNR Mean Y:38.26 U:55.75 V:50.53 Avg:39.92 Global:39.76
x264 [info]: slice P:624   Avg QP:28.38  size:  8599  PSNR Mean Y:35.65 U:50.71 V:47.58 Avg:37.29 Global:37.07
x264 [info]: mb I  I16..4: 63.5%  0.0% 36.5%
x264 [info]: mb P  I16..4: 31.4%  0.0%  0.0%  P16..4: 50.2%  0.0%  0.0%  0.0%  0.0%    skip:18.4%
x264 [info]: final ratefactor: 27.58
x264 [info]: SSIM Mean Y:0.8391219
x264 [info]: PSNR Mean Y:35.675 U:50.759 V:47.611 Avg:37.314 Global:37.094 kb/s:2108.13
[16:36:52] thread b0b39000 joined ("Audio decoder (ffmpeg streams)")
[16:36:52] pcm_s16le-decoder done: 0 frames, 0 decoder errors, 0 drops
[16:36:52] thread b0bbb000 joined ("AAC encoder (libfaac)")
[16:36:52] thread b0568000 joined ("reader")
[16:36:52] fifo_close: trashing 0 buffer(s)
[16:36:52] fifo_close: trashing 1 buffer(s)
[16:36:52] fifo_close: trashing 0 buffer(s)
[16:36:52] fifo_close: trashing 0 buffer(s)
[16:36:52] fifo_close: trashing 0 buffer(s)
[16:36:52] fifo_close: trashing 0 buffer(s)
[16:36:52] fifo_close: trashing 0 buffer(s)
[16:36:52] fifo_close: trashing 0 buffer(s)
[16:36:52] fifo_close: trashing 0 buffer(s)
[16:36:52] decomb: yadif deinterlaced 355 | blend deinterlaced 78 | unfiltered 200 | total 633
[16:36:52] thread b067d000 exited ("yadif_filter_segment")
[16:36:52] thread b067d000 joined ("yadif_filter_segment")
[16:36:52] thread b06ff000 exited ("yadif_filter_segment")
[16:36:52] thread b06ff000 joined ("yadif_filter_segment")
[16:36:52] thread b0885000 exited ("decomb_filter_segment")
[16:36:52] thread b0885000 joined ("decomb_filter_segment")
[16:36:52] thread b0907000 exited ("decomb_filter_segment")
[16:36:52] thread b0907000 joined ("decomb_filter_segment")
[16:36:52] Freed 16 buffers of size 1024
[16:36:52] Freed 32 buffers of size 8192
[16:36:52] Freed 32 buffers of size 16384
[16:36:52] Freed 1 buffers of size 32768
[16:36:52] Freed 32 buffers of size 131072
[16:36:52] Freed 32 buffers of size 524288
[16:36:52] Allocated 21807104 bytes of buffers on this pass and Freed 21807104 bytes, 0 bytes leaked
[16:36:52] starting job
[16:36:52] job configuration:
[16:36:52]  * source
[16:36:52]    + /Users/erise/Desktop/Oreo.dv
[16:36:52]    + title 1, chapter(s) 1 to 1
[16:36:52]    + container: dv
[16:36:52]    + data rate: 28771 kbps
[16:36:52]  * destination
[16:36:52]    + /Volumes/LACIE (FireWire)/Oreo.m4v
[16:36:52]    + container: MPEG-4 (.mp4 and .m4v)
[16:36:52]      + chapter markers
[16:36:52]  * video track
[16:36:52]    + decoder: dvvideo
[16:36:52]      + bitrate 28771 kbps
[16:36:52]    + frame rate: 29.970 fps -> variable fps
[16:36:52]    + loose anamorphic
[16:36:52]      + storage dimensions: 720 * 480 -> 720 * 480, crop 0/0/0/0
[16:36:52]      + pixel aspect ratio: 1 / 1
[16:36:52]      + display dimensions: 720 * 480
[16:36:52]    + filters
[16:36:52]      + Detelecine (pullup) (default settings)
[16:36:52]      + Deinterlaces selectively with yadif/mcdeint and lowpass5 blending (1:2:6:9:80:16:16)
[16:36:52]    + encoder: x264
[16:36:52]      + options: level=30:bframes=0:cabac=0:ref=1:analyse=all:me=umh:no-fast-pskip=1
[16:36:52]      + bitrate: 2000 kbps, pass: 2
[16:36:52]  * audio track 0
[16:36:52]    + decoder: Unknown (PCM_S16) (track 0, id 1)
[16:36:52]    + mixdown: Stereo
[16:36:52]    + encoder: faac
[16:36:52]      + bitrate: 160 kbps, samplerate: 48000 Hz
[16:36:52] thread b00c5000 started ("reader")
[16:36:52] thread b0568000 started ("Video decoder (ffmpeg streams)")
[16:36:52] thread b05fb000 started ("yadif_filter_segment")
[16:36:52] thread b067d000 started ("yadif_filter_segment")
[16:36:52] thread b06ff000 started ("decomb_filter_segment")
[16:36:52] dvd: not a dvd - trying as a stream/file instead
[16:36:52] yadif thread started for segment 0
[16:36:52] yadif thread started for segment 1
[16:36:52] decomb thread started for segment 0
[16:36:52] reader: first SCR 0
[16:36:52] decomb thread started for segment 1
[16:36:52] thread b0885000 started ("decomb_filter_segment")
[16:36:52] thread b0907000 started ("Renderer")
[16:36:52] encx264: keyint-min: 30, keyint-max: 300
[16:36:52] encx264: encoding with stored aspect 1/1
[16:36:52] encx264: opening libx264 (pass 2)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 Cache64
[16:36:52] thread b0989000 started ("H.264/AVC encoder (libx264)")
[16:36:52] thread b0ab7000 started ("Audio decoder (ffmpeg streams)")
[16:36:53] thread b0b39000 started ("AAC encoder (libfaac)")
[16:36:53] thread b0bbb000 started ("muxer")
[16:36:53] sync: expecting 672 video frames
[16:37:27] reader: done. 0 scr changes
[16:37:27] thread b00c5000 exited ("reader")
[16:37:53] sync: got 642 frames, 672 expected
[16:37:53] work: average encoding speed for job is 10.691981 fps
[16:37:55] mux: file size, 5745895 bytes
[16:37:55] mux: track 0, 5304699 bytes, 1993.50 kbps
[16:37:55] mux: video bitrate error, -17284 bytes
[16:37:55] mux: track 1, 428503 bytes, 161.03 kbps
[16:37:55] mux: overhead, 7.76 bytes per frame
[16:37:55] thread b0bbb000 exited ("muxer")
[16:37:55] thread b0bbb000 joined ("muxer")
[16:37:55] thread b0568000 exited ("Video decoder (ffmpeg streams)")
[16:37:55] thread b0568000 joined ("Video decoder (ffmpeg streams)")
[16:37:55] dvvideo-decoder done: 643 frames, 0 decoder errors, 0 drops
[16:37:55] thread b0ab7000 exited ("Audio decoder (ffmpeg streams)")
[16:37:55] thread b0989000 exited ("H.264/AVC encoder (libx264)")
[16:37:55] thread b0907000 exited ("Renderer")
[16:37:55] thread b0b39000 exited ("AAC encoder (libfaac)")
[16:37:55] thread b0907000 joined ("Renderer")
[16:37:55] render: lost time: 24024 (8 frames)
[16:37:55] render: gained time: 24024 (32 frames) (0 not accounted for)
[16:37:55] render: average dropped frame duration: 3003
[16:37:55] fifo_close: trashing 1 buffer(s)
[16:37:55] fifo_close: trashing 3 buffer(s)
[16:37:55] thread b0989000 joined ("H.264/AVC encoder (libx264)")
x264 [info]: slice I:6     Avg QP:26.27  size: 25188  PSNR Mean Y:37.76 U:55.39 V:51.14 Avg:39.44 Global:39.12
x264 [info]: slice P:624   Avg QP:28.14  size:  8258  PSNR Mean Y:35.65 U:51.65 V:48.27 Avg:37.31 Global:37.10
x264 [info]: mb I  I16..4: 10.3%  0.0% 89.7%
x264 [info]: mb P  I16..4:  1.8%  0.0%  5.5%  P16..4: 64.2% 16.2%  5.9%  0.0%  0.0%    skip: 6.4%
x264 [info]: SSIM Mean Y:0.8407336
x264 [info]: PSNR Mean Y:35.671 U:51.690 V:48.295 Avg:37.333 Global:37.118 kb/s:2018.62
[16:37:55] thread b0ab7000 joined ("Audio decoder (ffmpeg streams)")
[16:37:55] pcm_s16le-decoder done: 0 frames, 0 decoder errors, 0 drops
[16:37:55] thread b0b39000 joined ("AAC encoder (libfaac)")
[16:37:55] thread b00c5000 joined ("reader")
[16:37:55] fifo_close: trashing 0 buffer(s)
[16:37:55] fifo_close: trashing 1 buffer(s)
[16:37:55] fifo_close: trashing 0 buffer(s)
[16:37:55] fifo_close: trashing 0 buffer(s)
[16:37:55] fifo_close: trashing 0 buffer(s)
[16:37:55] fifo_close: trashing 0 buffer(s)
[16:37:55] fifo_close: trashing 0 buffer(s)
[16:37:55] fifo_close: trashing 0 buffer(s)
[16:37:55] fifo_close: trashing 0 buffer(s)
[16:37:55] decomb: yadif deinterlaced 355 | blend deinterlaced 78 | unfiltered 200 | total 633
[16:37:55] thread b05fb000 exited ("yadif_filter_segment")
[16:37:55] thread b05fb000 joined ("yadif_filter_segment")
[16:37:55] thread b067d000 exited ("yadif_filter_segment")
[16:37:55] thread b067d000 joined ("yadif_filter_segment")
[16:37:55] thread b06ff000 exited ("decomb_filter_segment")
[16:37:55] thread b06ff000 joined ("decomb_filter_segment")
[16:37:55] thread b0885000 exited ("decomb_filter_segment")
[16:37:55] thread b0885000 joined ("decomb_filter_segment")
[16:37:55] Freed 16 buffers of size 1024
[16:37:55] Freed 32 buffers of size 8192
[16:37:55] Freed 32 buffers of size 16384
[16:37:55] Freed 1 buffers of size 32768
[16:37:55] Freed 32 buffers of size 131072
[16:37:55] Freed 32 buffers of size 524288
[16:37:55] Allocated 21807104 bytes of buffers on this pass and Freed 21807104 bytes, 0 bytes leaked
[16:37:55] thread b04e6000 exited ("work")
[16:37:55] thread b04e6000 joined ("work")
[16:37:55] libhb: work result = 0
[16:37:56] macgui: incrementQueueItemDone currentQueueEncodeIndex is incremented to: 1
[16:37:56] macgui: incrementQueueItemDone the 0 item queue is complete

Cavalicious
Moderator
Posts: 1804
Joined: Mon Mar 26, 2007 12:07 am

Re: [SVN 1797] Converted DV Video half green

Post by Cavalicious »

I already brought this up in another thread...multiple times. Nothing to report at the moment.

van
Veteran User
Posts: 417
Joined: Wed Aug 29, 2007 6:35 am

Re: [SVN 1797] Converted DV Video half green

Post by van »

This is happening because DV uses a different color space than most other video (4:1:1 instead of 4:2:0). There's no color space conversion code in HB yet. It's next on my list of things to add but I'm traveling so the earliest it could go in is next weekend.

Cavalicious
Moderator
Posts: 1804
Joined: Mon Mar 26, 2007 12:07 am

Re: [SVN 1797] Converted DV Video half green

Post by Cavalicious »

Thanks for the effort!

cvk_b
Veteran User
Posts: 527
Joined: Sun Mar 18, 2007 2:11 am

Re: [SVN 1797] Converted DV Video half green

Post by cvk_b »

van wrote:This is happening because DV uses a different color space than most other video (4:1:1 instead of 4:2:0). There's no color space conversion code in HB yet. It's next on my list of things to add but I'm traveling so the earliest it could go in is next weekend.
Thanks for including DV in your intentions. Many, many people will be thrilled.

cvk_b
Veteran User
Posts: 527
Joined: Sun Mar 18, 2007 2:11 am

Re: [SVN 1797] Converted DV Video half green

Post by cvk_b »

Oreo. Nice name for that cat.

sdm
Bright Spark User
Posts: 194
Joined: Mon Feb 19, 2007 4:53 pm

Re: [SVN 1797] Converted DV Video half green

Post by sdm »

cvk_b wrote: Many, many people will be thrilled.
including me! Thanks Van.

--sdm.

erise
Posts: 32
Joined: Thu Feb 21, 2008 6:07 am

Re: [SVN 1797] Converted DV Video half green

Post by erise »

Thanks from me too, Van!

van
Veteran User
Posts: 417
Joined: Wed Aug 29, 2007 6:35 am

Re: [SVN 1797] Converted DV Video half green

Post by van »

I just committed r1867 which should let HB handle DV video inputs correctly. Let me know if it works for you. Thanks.

dynaflash
Veteran User
Posts: 3820
Joined: Thu Nov 02, 2006 8:19 pm

Re: [SVN 1797] Converted DV Video half green

Post by dynaflash »

On a quick initial test on a dv stream, works great.
Sidenote: I now have *alot* of home dv footage of my kids to encode for the atv. Thanks van ;)

Cavalicious
Moderator
Posts: 1804
Joined: Mon Mar 26, 2007 12:07 am

Re: [SVN 1797] Converted DV Video half green

Post by Cavalicious »

Great...there goes all my spare time!

erise
Posts: 32
Joined: Thu Feb 21, 2008 6:07 am

Re: [SVN 1797] Converted DV Video half green

Post by erise »

van wrote:I just committed r1867 which should let HB handle DV video inputs correctly. Let me know if it works for you. Thanks.
Works perfectly for me. Thanks a lot, van!

Post Reply