AVCHD to mp4 problem

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
pgg911
Posts: 3
Joined: Sun Oct 26, 2014 5:08 am

AVCHD to mp4 problem

Post by pgg911 »

Have just started with Handbrake and successfully encoded several AVCHD
files to mp4 files with no problems. However for a couple of others of
these AVCHD files I am not getting any video. That is, the AVCHD file is
being encoded into an mp4 file that has no video with it - just the audio.
I can see nothing wrong with these source AVCHD files - they play video and
audio just fine and are from a batch of files that were recorded at the
same time on the same camera and handbrake encoded the others with no
problems. Any suggestions?

ps. I have encoded this particular AVCHD file to mp4 more than several times now and am getting the same result every time: ie an mp4 file but with no video. I just tried it on another file and it encoded a mp4 with video no problem.

Code: Select all

HandBrake 0.9.9.5530 - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
Ram: 8138 MB, Screen: 1920x1080
Temp Dir: C:\Users\Phillip\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Phillip\AppData\Roaming\HandBrake\HandBrake\0.9.9.5530

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

CLI Query:  -i "D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts" -t 1 --angle 1 -c 1 -o "C:\Users\Phillip\Desktop\Blrc13-1.m4v"  -f mp4  -w 1920 --loose-anamorphic  --modulus 2 -e x264 -q 20 --vfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\Phillip\AppData\Local\Temp\Blrc13-1-1-chapters.csv" --x264-preset=veryfast  --x264-profile=main  --h264-level="4.0"  --verbose=1
User Query: False

[17:07:47] hb_init: starting libhb thread
HandBrake 0.9.9 (2013052900) - MinGW x86_64 - http://handbrake.fr
4 CPUs detected
Opening D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts...
[17:07:47] hb_scan: path=D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts) failed (000000000031E630)
[17:07:47] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: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:07:47] dvd: not a dvd - trying as a stream/file instead
[17:07:47] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[17:07:47] Found the following PIDS
[17:07:47]     Video PIDS : 
[17:07:47]       0x1011 type H.264 (0x1b)
[17:07:47]     Audio PIDS : 
[17:07:47]       0x1100 type AC3 (0x81)
[17:07:47]     Subtitle PIDS : 
[17:07:47]     Other PIDS : 
[17:07:47]       0x1001 type Unknown (0xff) (PCR)
[17:07:47] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
[17:07:47] scan: decoding previews for title 1
[17:07:47] scan: audio 0x1100: AC-3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 10, 100.00 %[17:07:47] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/20/152/152, aspect 16:9, PAR 1:1
[17:07:47] stream: 8 good frames, 0 errors (0%)
[17:07:47] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts
  + duration: 00:00:17
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
  + autocrop: 0/20/152/152
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:17
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
Last edited by Anonymous on Tue Oct 28, 2014 2:01 am, edited 1 time in total.
Reason: Logs must be placed between [code] [/code] blocks
Smithcraft
Veteran User
Posts: 2697
Joined: Thu Jan 22, 2009 8:04 pm

Re: AVCHD to mp4 problem

Post by Smithcraft »

How about an encode log where it does work, and where it doesn't work?

SC
Deleted User 13735

Re: AVCHD to mp4 problem

Post by Deleted User 13735 »

0.9.9 is near its end of life.
Try a nightly build.
If no luck, post the MediaInfo properties along with the logs Smithcraft requested.
pgg911
Posts: 3
Joined: Sun Oct 26, 2014 5:08 am

Re: AVCHD to mp4 problem

Post by pgg911 »

ok sorry SC - coming right up.

musicvid - thanks - what's a nightly build? and i'm not exactly sure what MediaInfo properties you are referring to... both are AVCHD Video (.mts) files. both recorded on the same device (Canon Legria) within a couple of days of each other. The one that worked is 17.4MB. The one that won't is 34.3MB. Sorry if i have misunderstood what you are referring to - I'm new to this side of things.

here's the log for one the worked:

Code: Select all

HandBrake 0.9.9.5530 - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
Ram: 8067 MB, Screen: 1920x1080
Temp Dir: C:\Users\Phillip\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Phillip\AppData\Roaming\HandBrake\HandBrake\0.9.9.5530

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

CLI Query:  -i "D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc9.mts" -t 1 --angle 1 -c 1 -o "C:\Users\Phillip\Desktop\testinghb\29a.mp4"  -f mp4  -w 1920 --loose-anamorphic  --modulus 2 -e x264 -q 20 --vfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 --markers="C:\Users\Phillip\AppData\Local\Temp\29a-1-chapters.csv" --x264-preset=veryfast  --x264-profile=main  --h264-level="4.0"  --verbose=1
User Query: False

[21:25:21] hb_init: starting libhb thread
HandBrake 0.9.9 (2013052900) - MinGW x86_64 - http://handbrake.fr
4 CPUs detected
Opening D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc9.mts...
[21:25:21] hb_scan: path=D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc9.mts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc9.mts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc9.mts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc9.mts) failed (000000000031E5F0)
[21:25:21] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[21:25:21] dvd: not a dvd - trying as a stream/file instead
[21:25:21] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[21:25:21] Found the following PIDS
[21:25:21]     Video PIDS : 
[21:25:21]       0x1011 type H.264 (0x1b)
[21:25:21]     Audio PIDS : 
[21:25:21]       0x1100 type AC3 (0x81)
[21:25:21]     Subtitle PIDS : 
[21:25:21]     Other PIDS : 
[21:25:21]       0x1001 type Unknown (0xff) (PCR)
[21:25:21] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
[21:25:21] scan: decoding previews for title 1
[21:25:21] scan: audio 0x1100: AC-3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 10, 100.00 %[21:25:21] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/18/112, aspect 16:9, PAR 1:1
[21:25:21] stream: 11 good frames, 0 errors (0%)
[21:25:21] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc9.mts
  + duration: 00:00:15
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
  + autocrop: 0/0/18/112
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:15
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
Reading chapter markers from file C:\Users\Phillip\AppData\Local\Temp\29a-1-chapters.csv
[21:25:21] 1 job(s) to process
[21:25:21] starting job
[21:25:21] work: sanitizing track 1 mixdown Dolby Pro Logic II to Stereo
[21:25:21] sync: expecting 391 video frames
[21:25:21] work: only 1 chapter, disabling chapter markers
[21:25:21] job configuration:
[21:25:21]  * source
[21:25:21]    + D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc9.mts
[21:25:21]    + title 1, chapter(s) 1 to 1
[21:25:21]  * destination
[21:25:21]    + C:\Users\Phillip\Desktop\testinghb\29a.mp4
[21:25:21]    + container: MPEG-4 (.mp4 and .m4v)
[21:25:21]  * video track
[21:25:21]    + decoder: h264
[21:25:21]      + bitrate 200 kbps
[21:25:21]    + frame rate: same as source (around 25.000 fps)
[21:25:21]    + filters
[21:25:21]      + Framerate Shaper (0:27000000:1080000)
[21:25:21]        + frame rate: same as source (around 25.000 fps)
[21:25:21]      + Crop and Scale (1920:1158:0:0:18:112)
[21:25:21]        + source: 1920 * 1080, crop (0/0/18/112): 1790 * 1080, scale: 1920 * 1158
[21:25:21]    + loose anamorphic
[21:25:21]      + storage dimensions: 1920 * 1158, mod 2
[21:25:21]      + pixel aspect ratio: 34547 / 34560
[21:25:21]      + display dimensions: 1919 * 1158
[21:25:21]    + encoder: H.264 (x264)
[21:25:21]      + x264 preset: veryfast
[21:25:21]      + h264 profile: main
[21:25:21]      + h264 level: 4.0
[21:25:21]      + quality: 20.00 (RF)
[21:25:21]  * audio track 1
[21:25:21]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1100)
[21:25:21]      + bitrate: 256 kbps, samplerate: 48000 Hz
[21:25:21]    + mixdown: Stereo
[21:25:21]    + encoder: AAC (faac)
[21:25:21]      + bitrate: 160 kbps, samplerate: 48000 Hz
[21:25:21] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[21:25:21] encx264: encoding with stored aspect 34547/34560
[21:25:21] encx264: Encoding at constant RF 20.000000
[21:25:21] hb_apply_h264_level [warning]: frame size (1920x1168, 8760 macroblocks) too high for level 4.0 (max. 8192 macroblocks)
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
[21:25:21] reader: first SCR 22 id 0x1011 DTS 86400
x264 [info]: using SAR=34547/34560
x264 [warning]: frame MB size (120x73) > level limit (8192)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
[21:25:21] h264: "Chapter 1" (1) at frame 0 time 3600
[21:25:21] sync: first pts is 3600
[21:25:28] hb_ts_stream_decode - eof
[21:25:28] reader: done. 1 scr changes
[21:25:29] work: average encoding speed for job is 50.300945 fps
[21:25:30] sync: got 391 frames, 391 expected
[21:25:30] render: lost time: 0 (0 frames)
[21:25:30] render: gained time: 0 (0 frames) (0 not accounted for)
[21:25:30] h264-decoder done: 391 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:11    Avg QP:16.64  size: 95675  PSNR Mean Y:48.65 U:49.40 V:49.86 Avg:48.95 Global:48.87
x264 [info]: frame P:209   Avg QP:19.49  size: 31033  PSNR Mean Y:46.54 U:47.28 V:48.06 Avg:46.88 Global:46.79
x264 [info]: frame B:171   Avg QP:20.57  size: 10454  PSNR Mean Y:45.66 U:46.48 V:47.32 Avg:46.03 Global:45.94
x264 [info]: consecutive B-frames: 25.8% 34.3% 39.9%  0.0%
x264 [info]: mb I  I16..4: 75.6%  0.0% 24.4%
x264 [info]: mb P  I16..4: 24.7%  0.0%  0.2%  P16..4: 50.9% 10.5%  3.4%  0.0%  0.0%    skip:10.2%
x264 [info]: mb B  I16..4:  0.8%  0.0%  0.0%  B16..8: 20.3%  2.4%  0.0%  direct:28.5%  skip:48.0%  L0:25.7% L1:72.3% BI: 1.9%
x264 [info]: coded y,uvDC,uvAC intra: 31.3% 90.7% 39.1% inter: 9.8% 52.8% 0.4%
x264 [info]: i16 v,h,dc,p: 35% 24% 27% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 15% 26%  7%  7%  6%  5%  5%  3%
x264 [info]: i8c dc,h,v,p: 57% 18% 20%  5%
x264 [info]: Weighted P-Frames: Y:0.5% UV:0.5%
x264 [info]: SSIM Mean Y:0.9778776 (16.552db)
x264 [info]: PSNR Mean Y:46.215 U:46.988 V:47.789 Avg:46.563 Global:46.440 kb/s:4770.35
[21:25:30] mux: track 0, 391 frames, 9325632 bytes, 4745.87 kbps, fifo 512
[21:25:30] mux: track 1, 737 frames, 314512 bytes, 160.06 kbps, fifo 1024
[21:25:30] stream: 392 good frames, 0 errors (0%)
[21:25:30] libhb: work result = 0
Encode done!
HandBrake has exited.
here's the encode log for one that didn't work (same one as before but another run):

Code: Select all

[10:30:15] Found the following PIDS
[10:30:15]     Video PIDS : 
[10:30:15]       0x1011 type H.264 (0x1b)
[10:30:15]     Audio PIDS : 
[10:30:15]       0x1100 type AC3 (0x81)
[10:30:15]     Subtitle PIDS : 
[10:30:15]     Other PIDS : 
[10:30:15]       0x1001 type Unknown (0xff) (PCR)
[10:30:15] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
[10:30:15] scan: decoding previews for title 1
[10:30:15] scan: audio 0x1100: AC-3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 10, 100.00 %[10:30:16] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/20/152/152, aspect 16:9, PAR 1:1
[10:30:16] stream: 8 good frames, 0 errors (0%)
[10:30:16] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts
  + duration: 00:00:17
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
  + autocrop: 0/20/152/152
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:17
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 256000bps
  + subtitle tracks:
[10:30:16] 1 job(s) to process
[10:30:16] starting job
[10:30:16] work: mixdown not specified, track 1 setting mixdown Stereo
[10:30:16] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[10:30:16] sync: expecting 426 video frames
[10:30:16] job configuration:
[10:30:16]  * source
[10:30:16]    + D:\VEGAS\3. video files for vegas\videos for lookout sunrise\1. lunar eclipse\2. clearing\blrc13.mts
[10:30:16]    + title 1, chapter(s) 1 to 1
[10:30:16]  * destination
[10:30:16]    + C:\Users\Phillip\Desktop"  -f mp4  -w 1920 --loose-anamorphic  --modulus 2 -e x264 -q 20 --vfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 -m --x264-preset=veryfast  --x264-profile=main  --h264-level=4.0  --verbose=1
[10:30:16]    + container: MPEG-4 (.mp4 and .m4v)
[10:30:16]  * video track
[10:30:16]    + decoder: h264
[10:30:16]      + bitrate 200 kbps
[10:30:16]    + frame rate: same as source (around 25.000 fps)
[10:30:16]    + filters
[10:30:16]      + Framerate Shaper (0:27000000:1080000)
[10:30:16]        + frame rate: same as source (around 25.000 fps)
[10:30:16]      + Crop and Scale (1616:1056:0:20:152:152)
[10:30:16]        + source: 1920 * 1080, crop (0/20/152/152): 1616 * 1060, scale: 1616 * 1056
[10:30:16]    + dimensions: 1616 * 1056, mod 0
[10:30:16]    + encoder: MPEG-4 (FFmpeg)
[10:30:16]      + bitrate: 1000 kbps, pass: 0
[10:30:16]  * audio track 1
[10:30:16]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1100)
[10:30:16]      + bitrate: 256 kbps, samplerate: 48000 Hz
[10:30:16]    + mixdown: Stereo
[10:30:16]    + encoder: AAC (faac)
[10:30:16]      + bitrate: 160 kbps, samplerate: 48000 Hz
[10:30:16] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[10:30:16] reader: first SCR 22 id 0x1011 DTS 86400
[10:30:16] encavcodecInit: MPEG-4 ASP encoder
MP4ERROR: MP4Open: failed
ERROR: muxmp4.c: MP4Create failed!
[10:30:16] work: average encoding speed for job is 0.000000 fps
[10:30:16] reader: done. 1 scr changes
[10:30:16] sync: got 0 frames, 426 expected
[10:30:16] render: lost time: 0 (0 frames)
[10:30:16] render: gained time: 0 (0 frames) (0 not accounted for)
[10:30:16] h264-decoder done: 0 frames, 0 decoder errors, 0 drops
[10:30:16] stream: 36 good frames, 0 errors (0%)
[10:30:16] libhb: work result = 0
Encode done!
HandBrake has exited.
Last edited by Anonymous on Tue Oct 28, 2014 2:02 am, edited 1 time in total.
Reason: Logs must be placed between [code] [/code] blocks
Deleted User 11865

Re: AVCHD to mp4 problem

Post by Deleted User 11865 »

pgg911 wrote:ok sorry SC - coming right up.

musicvid - thanks - what's a nightly build? and i'm not exactly sure what MediaInfo properties you are referring to... both are AVCHD Video (.mts) files. both recorded on the same device (Canon Legria) within a couple of days of each other. The one that worked is 17.4MB. The one that won't is 34.3MB. Sorry if i have misunderstood what you are referring to - I'm new to this side of things.

here's the log for one the worked:

Code: Select all

[21:25:21]  * destination
[21:25:21]    + C:\Users\Phillip\Desktop\testinghb\29a.mp4
here's the encode log for one that didn't work (same one as before but another run):

Code: Select all

[10:30:16]  * destination
[10:30:16]    + C:\Users\Phillip\Desktop"  -f mp4  -w 1920 --loose-anamorphic  --modulus 2 -e x264 -q 20 --vfr -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 0 --gain 0 --audio-fallback ffac3 -m --x264-preset=veryfast  --x264-profile=main  --h264-level=4.0  --verbose=1
Deleted User 13735

Re: AVCHD to mp4 problem

Post by Deleted User 13735 »

pgg911
Posts: 3
Joined: Sun Oct 26, 2014 5:08 am

Re: AVCHD to mp4 problem

Post by pgg911 »

ok thanks musicvid.

got a solution to the problem another way.

handbrake has trouble with encoding or won't encode at least a AVCHD file that is made up of sections of that have been selected from a larger file and then stuck together into one smaller file.

thanks for your time
Deleted User 13735

Re: AVCHD to mp4 problem

Post by Deleted User 13735 »

handbrake has trouble with encoding or won't encode at least a AVCHD file that is made up of sections of that have been selected from a larger file and then stuck together into one smaller file.
That's correct. They need to be joined with the utility that came with your camcorder, or a program that corrects indexing. Concatenation is hit-or-miss with long-GOP source.
Post Reply