Announcement

Collapse
No announcement yet.

DVDbab 9.1.2.5 fails to output properly formed M2TS file when passthrough is used. D

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    DVDbab 9.1.2.5 fails to output properly formed M2TS file when passthrough is used. D

    I cannot find log files for DVDFab9 on my Win7 Pro installation at this time. All that I have are DVDfab 8 logs Please direct me as appropriate so that I can attach them to this thread. Per your faq:

    http://www.dvdfab.com/faq

    C:\Users\User Name\My Documents\DVDFab\Log

    At first I thought that this problem was merely an aberration however I am able to duplicate this behavior.

    1) Insert the Blu-ray "The Blues Brothers" into your Blu-ray player.

    2) Open up DVDfab9 and select the extended version.

    3) Use M2TS Passthrough.Default

    4) Output your file.

    5) Play the M2TS file. I use Media Player Classic Home Cinema. The file will play fine.

    6) Perform the above procedure with DVDfab8. You will be able to play that M2TS file just fine as well.

    File sizes on my hard drive:
    02/02/2014 04:19 PM 28,014,526,464 tbb-fab8.m2ts
    02/02/2014 08:56 AM 28,020,965,376 tbb-fab9-bad.m2ts
    02/02/2014 04:46 PM 28,020,965,376 THE_BLUES_BROTHERS.Title801.m2ts

    The times for the three videos are reported by Windows Explorer as 02:27:37, 02:27:46, and 02:27:45 respectively. I am unsure why there is a file size difference between the DVDfab8 and DVDfab9 files. The settings appear to be identical. MediaInfo confirms it.

    My workflow in this instance is to import the M2TS video into Sony Vegas however it hates that format. I use FFmpeg to create a lossless (pass through from source, actually) output of the video and convert the audio to stereo AAC audio. From there I will perform my editing as appropriate.

    The command line is included however only the bottom of the output is shown for brevity.

    C:\Graphics\ffmpeg>ffmpeg.exe -i e:\cygin\tbb-fab8.m2ts -vsync 1 -vcodec copy -bsf:a aac_adtstoasc -acodec copy -strict experimental -acodec aac -b:a 262144 -ac 2 -ar 48000 -af "aresample=async=1:min_hard_comp=0.100000:first_pt s=0" -f mp4 -y f:\zcygin\tbb-fab8-out.mp4
    [mp4 @ 000000000520a2e0] Non-monotonous DTS in output stream 0:0; previous: 797818262, current: 797814508; changing to 797818263. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000520a2e0] Non-monotonous DTS in output stream 0:0; previous: 797829523, current: 797822015; changing to 797829524. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000520a2e0] Non-monotonous DTS in output stream 0:0; previous: 797829524, current: 797825769; changing to 797829525. This may result in incorrect timestamps in the output file.
    frame=212594 fps=484 q=-1.0 Lsize=25499771kB time=02:27:44.96 bitrate=23564.0kbits/s
    video:25207829kB audio:283741kB subtitle:0 global headers:0kB muxing overhead 0.032170%

    Please note that the messages above are "normal", albeit annoying, in that many people run into this when remuxing content. This does not affect the playback of the video. The example above ran to completion and provides the length of the output video after the remux/reencode of the source file. No frames were duplicated or dropped.

    Below is the same output as above. I did not complete the conversion because the "Non-monotonous DTS in output stream" warning stopped both the first time I did this and the second time I did this.

    The command line is included however only the bottom of the output, once again, is shown for brevity.

    C:\Graphics\ffmpeg>ffmpeg.exe -i e:\cygin\tbb-fab9-bad.m2ts -vsync 1 -vcodec copy -bsf:a aac_adtstoasc -acodec copy -strict experimental -acodec aac -b:a 262144 -ac 2 -ar 48000 -af "aresample=async=1:min_hard_comp=0.100000:first_pt s=0" -f mp4 -y f:\zcygin\tbb-fab9-bad-out.mp4
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33021739, current: 33017985; changing to 33021740. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33033000, current: 33025492; changing to 33033001. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33033001, current: 33029246; changing to 33033002. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33044261, current: 33036753; changing to 33044262. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33051768, current: 33044261; changing to 33051769. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33051769, current: 33048015; changing to 33051770. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33063030, current: 33055522; changing to 33063031. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33063031, current: 33059276; changing to 33063032. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33063032, current: 33063030; changing to 33063033. This may result in incorrect timestamps in the output file.
    [mp4 @ 000000000539a5a0] Non-monotonous DTS in output stream 0:0; previous: 33078045, current: 33070537; changing to 33078046. This may result in incorrect timestamps in the output file.
    frame=12129 fps=356 q=-1.0 size= 1438934kB time=00:11:40.16 bitrate=16835.7kbits/s

    I run FFmpeg under bash in Cygwin because I am very particular about how my content looks. Below is the complete first pass using the DVDfab9 M2TS file as input.

    Pass 1
    /cygdrive/c/Graphics/ffmpeg/ffmpeg.exe -fpsprobesize 120 -i e:/cygin/tbb-fab9-bad.m2ts -pix_fmt yuv420p -vsync 1 -vcodec libx264 -map 0:0 -r 23.976 -vf crop=1920:1080:0:0,scale=1920:1080 -threads 0 -b:v:0:0 23615400 -bufsize 23877544 -maxrate 35423100 -minrate 15743600 -strict experimental -acodec aac -map 0:1 -b:a:0:1 262144 -ac 2 -ar 48000 -af aresample=async=1:min_hard_comp=0.100000:first_pts =0 -pass 1 -preset medium -tune film -profile:v high444 -qmin 0 -qmax 63 -keyint_min 12 -g 120 -x264opts no-scenecut -map_metadata -1 -f mp4 -y f:/zcygin/tbb-fab9-bad.mp4
    ffmpeg version N-59852-g785dc14 Copyright (c) 2000-2014 the FFmpeg developers
    built on Jan 14 2014 22:07:30 with gcc 4.8.2 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable
    -libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp
    --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-lib
    wavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
    libavutil 52. 62.100 / 52. 62.100
    libavcodec 55. 48.101 / 55. 48.101
    libavformat 55. 23.103 / 55. 23.103
    libavdevice 55. 5.102 / 55. 5.102
    libavfilter 4. 1.100 / 4. 1.100
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 17.104 / 0. 17.104
    libpostproc 52. 3.100 / 52. 3.100
    [mpegts @ 000000000276ecc0] Stream #2: not enough frames to estimate rate; consider increasing probesize
    [NULL @ 000000000276df00] start time is not set in estimate_timings_from_pts
    [mpegts @ 000000000276ecc0] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mpegts, from 'e:/cygin/tbb-fab9-bad.m2ts':
    Duration: 02:27:45.93, start: 11.692700, bitrate: 25284 kb/s
    Program 1
    Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100]: Audio: dts (DTS) ([130][0][0][0] / 0x0082), 48000 Hz, 5.1(side), fltp, 768 kb/s
    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    [libx264 @ 00000000027e2c80] using SAR=1/1
    [libx264 @ 00000000027e2c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 00000000027e2c80] profile Main, level 4.1
    [libx264 @ 00000000027e2c80] 264 - core 140 r2377 1ca7bb9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:-1:-1 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.15 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=120 keyint_min=12 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=23615 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=63 qpstep=4 vbv_maxrate=35423 vbv_bufsize=23877 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'f:/zcygin/tbb-fab9-bad.mp4':
    Metadata:
    encoder : Lavf55.23.103
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=0-63, pass 1, 23615 kb/s, 11988 tbn, 23.98 tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 262 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 -> libx264)
    Stream #0:1 -> #0:1 (dca -> aac)
    Press [q] to stop, [?] for help
    frame=178615 fps= 80 q=21.0 size=21816638kB time=02:04:09.87 bitrate=23989.9kbits/s dup=51252 drop=3061

    When I perform an encode against the DVDFab9 created file multiple problems happen. Please note the duration of the input file is 02:27:45.93. The original output file, which has since been deleted, was just over three hours long due to the high number of frames duplicated. The results were aborted during the second encode for replication purposes.

    My script performs a check for the input frame rate using MediaInfo CLI so that I can calculate the right bit per pixel density and two pass encoding for bitrate accuracy (H.264 runs just under the specified bitrate in it's first pass, single pass, and for live content). Frames will be duplicated or deleted to maintain proper cadence (See also Scott Pilgrim vs The World or "Moon" for cruddy examples of frame rates changing from once scene to another in the same MPEG-PS VOB file).

    The output line from my encode shows "dup=51252 drop=3061" This is not the case when I use the M2TS file from DVDfab8.

    There is a time correlation between when FFmpeg performs it's demux of the DVDfab9 content in that:

    1) DVDfab9 content ceases to report the "Non-monotonous DTS in output stream" when it is converting to MP4. DVDfab8 content continues on with that message until the video is finished.

    2) DVDfab9 content needs to have frames duplicated and dropped "dup=51252 drop=3061". DVDfab8 content neither duplicates nor drops frames.

    When I play back the DVDfab9 content that was converted to MP4 by FFmpeg it has horrific stuttering. DVDfab8 content does not.

    I believe, however I cannot verify, that I have used DVDfab9 previously (2011-08-21) on this same source content without issue. In my reproduction I did not remove the Blu-ray from the drive. In my initial encode I did.

    This is the only piece of content that I have had an issue with when using DVDfab 9.

    Again, please direct as appropriate so that I can attach the DVDfab 9 log files to this thread, but to the best of my knowledge DVDfab 9 is not creating them.

    #2
    On a Win7 machine with unaltered settings the v9 logs are located in the ...\Libraries\Documents\DVDFab\Log folder. From the GUI, you can select 'Open Log Folder' in the settings dropdown for convenient access.
    Supplying DVDFab Logs in the Forum ...........................User Manual PDF for DVDFab v11................................ Guide: Using Images in Posts
    Supplying DMS Logs to Developers................................Enlarger AI FAQ.....

    Comment


      #3
      Please see attached logs. I hope that they are able to help.
      Attached Files

      Comment


        #4
        I had a problem with RED 2. Since it had many m2ts files in it's playlist, I used the Ripper module, m2ts passthrough so that it muxed all the m2ts files into one.

        The result was A/V out of sync. It started out just barely out of sync and gradually got worse as the movie played. At around the 1 hour 30 minute mark, the movie was badly out of sync and unwatchable.

        Comment


          #5
          Originally posted by eightysix View Post
          I had a problem with RED 2. Since it had many m2ts files in it's playlist, I used the Ripper module, m2ts passthrough so that it muxed all the m2ts files into one.

          The result was A/V out of sync. It started out just barely out of sync and gradually got worse as the movie played. At around the 1 hour 30 minute mark, the movie was badly out of sync and unwatchable.
          That is very odd as I did the same thing that you did with the same movie (Region 1) and had no A/V sync issue with either the source m2ts file or the FFmpeg converted mp4 file.

          Comment

          Working...
          X