lisamelton / video_transcoding

Tools to transcode, inspect and convert videos.
MIT License
2.39k stars 160 forks source link

Unexpected result #210

Closed RDYork closed 6 years ago

RDYork commented 6 years ago

Upfront: I am not a programmer, nor a power CLI user. I have a novice understanding of Unix/Linux.

When I input the following command:

transcode-video --add-audio 2="Commentary by Producer Jon Avent” --add-audio 3="Commentary by Kerry Conran, Steve Yamamoto, Darren Hawlings, and Kevin Conrad" --no-log --quick --output /Users/randall/Movies/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004)/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004).mkv --crop 0:0:0:0 /Users/randall/Movies/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004)/title00.mkv

Terminal just returns with a ">" prompt.

I have used "transcode-video" quite a bit (over 30 movies so far) and have only experienced this recently.

Any/all help would be gratefully accepted

Randall

lisamelton commented 6 years ago

@RDYork First, that's a good movie! I was just transcoding it (again) last night. Second, has this problem happened before?

I don't see anything wrong with your command line, i.e. your use of options and arguments. But I need to know more about your environment. Please add the following options to your command line: -vv --dry-run and paste the console output, properly formatted, into this issue. Thanks.

Note: The -vv options (prefixed with a single dash) increases the verbosity level twice in order to get debugging information. The --dry-run option (prefixed with two dashes) prints the actual command to HandBrakeCLI but doesn't execute it.

lisamelton commented 6 years ago

@RDYork BTW, if you don't get any result with those additions to your command line, please give me version information for your HandBrakeCLI and ruby executables. Thanks.

RDYork commented 6 years ago

Ok, point-by-point.... This has happened sporadically in the past, but re-entering the command (vs. using the up arrow) usually fixes it. I DID reenter the entire command, with minor edits to the audio track descriptions, and it ran ok. Following is that code....

transcode-video --add-audio 2="Producers Commentary" --add-audio 3="Directors Commentary" --no-log --quick --output /Users/randall/Movies/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004)/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004).mkv --crop 0:0:0:0 /Users/randall/Movies/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004)/title00.mkv

Here is the output of the command with "-v --dry-run" added

Randalls-iMac:~ randall$ transcode-video --add-audio 2="Producers Commentary" --add-audio 3="Directors Commentary" --no-log --quick -vv --dry-run --output /Users/randall/Movies/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004)/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004).mkv --crop 0:0:0:0 /Users/randall/Movies/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004)/title00.mkv transcode-video 0.19.0 Copyright (c) 2013-2018 Don Melton HandBrake 1.1.0 found... Processing: /Users/randall/Movies/Sky Captain and the World of Tomorrow (2004)/title00.mkv... Scanning media title 1 with HandBrakeCLI... [17:45:11] hb_init: starting libhb thread [17:45:11] thread 700009cef000 started ("libhb") HandBrake 1.1.0 (2018040900) - Darwin x86_64 - https://handbrake.fr 4 CPUs detected Opening /Users/randall/Movies/Sky Captain and the World of Tomorrow (2004)/title00.mkv... [17:45:12] CPU: Intel(R) Core(TM) i5-4570S CPU @ 2.90GHz [17:45:12] - Intel microarchitecture Haswell [17:45:12] - logical processor count: 4 [17:45:12] hb_scan: path=/Users/randall/Movies/Sky Captain and the World of Tomorrow (2004)/title00.mkv, title_index=1 udfread ERROR: ECMA 167 Volume Recognition failed disc.c:323: failed opening UDF image /Users/randall/Movies/Sky Captain and the World of Tomorrow (2004)/title00.mkv disc.c:424: error opening file BDMV/index.bdmv disc.c:424: error opening file BDMV/BACKUP/index.bdmv [17:45:12] bd: not a bd - trying as a stream/file instead libdvdnav: Using dvdnav version 5.0.3 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.IFO. libdvdnav: vm: failed to read VIDEO_TS.IFO [17:45:12] dvd: not a dvd - trying as a stream/file instead Input #0, matroska,webm, from '/Users/randall/Movies/Sky Captain and the World of Tomorrow (2004)/title00.mkv': Duration: 01:46:36.99, start: 0.000000, bitrate: N/A Chapter #0:0: start 0.000000, end 363.029333 Metadata: title : Chapter 01 Chapter #0:1: start 363.029333, end 687.970617 Metadata: title : Chapter 02 Chapter #0:2: start 687.970617, end 1007.172833 Metadata: title : Chapter 03 Chapter #0:3: start 1007.172833, end 1428.593833 Metadata: title : Chapter 04 Chapter #0:4: start 1428.593833, end 1689.854833 Metadata: title : Chapter 05 Chapter #0:5: start 1689.854833, end 2207.405200 Metadata: title : Chapter 06 Chapter #0:6: start 2207.405200, end 2464.795667 Metadata: title : Chapter 07 Chapter #0:7: start 2464.795667, end 2773.220450 Metadata: title : Chapter 08 Chapter #0:8: start 2773.220450, end 3208.305100 Metadata: title : Chapter 09 Chapter #0:9: start 3208.305100, end 3694.857833 Metadata: title : Chapter 10 Chapter #0:10: start 3694.857833, end 3965.411450 Metadata: title : Chapter 11 Chapter #0:11: start 3965.411450, end 4359.355000 Metadata: title : Chapter 12 Chapter #0:12: start 4359.355000, end 4676.038033 Metadata: title : Chapter 13 Chapter #0:13: start 4676.038033, end 5093.254833 Metadata: title : Chapter 14 Chapter #0:14: start 5093.254833, end 5467.295167 Metadata: title : Chapter 15 Chapter #0:15: start 5467.295167, end 5762.423333 Metadata: title : Chapter 16 Chapter #0:16: start 5762.423333, end 6396.990600 Metadata: title : Chapter 17 Stream #0:0(eng): Video: mpeg2video (Main) yuv420p, tv, smpte170m/smpte170m/smpte170m 720x480 [PAR 32:27 DAR 16:9], 9800 kb/s, PAR 186:157 DAR 279:157 29.97 fps, 1k tbn Metadata: BPS-eng : 2328263 DURATION-eng : 01:46:36.990600000 NUMBER_OF_FRAMES-eng: 153388 NUMBER_OF_BYTES-eng: 1861734803 SOURCE_ID-eng : 0100E0 _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 darwin(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-16 16:06:35 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:1(eng): Audio: ac3 48000 Hz, 5.1, fltp, 448 kb/s (default) Metadata: title : Surround 5.1 BPS-eng : 448000 DURATION-eng : 01:46:37.024000000 NUMBER_OF_FRAMES-eng: 199907 NUMBER_OF_BYTES-eng: 358233344 SOURCE_ID-eng : 0180BD _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 darwin(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-16 16:06:35 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:2(eng): Audio: ac3 48000 Hz, stereo, fltp, 192 kb/s Metadata: title : Stereo BPS-eng : 192000 DURATION-eng : 01:46:37.024000000 NUMBER_OF_FRAMES-eng: 199907 NUMBER_OF_BYTES-eng: 153528576 SOURCE_ID-eng : 0182BD _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 darwin(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-16 16:06:35 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID Stream #0:3(eng): Audio: ac3 48000 Hz, stereo, fltp, 192 kb/s Metadata: title : Stereo BPS-eng : 192000 DURATION-eng : 01:46:37.024000000 NUMBER_OF_FRAMES-eng: 199907 NUMBER_OF_BYTES-eng: 153528576 SOURCE_ID-eng : 0183BD _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 darwin(x64-release) _STATISTICS_WRITING_DATE_UTC-eng: 2018-06-16 16:06:35 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID [17:45:12] scan: decoding previews for title 1 [17:45:12] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) [17:45:12] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) [17:45:12] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) [17:45:12] scan: 2 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 32:27 [17:45:12] libhb: scan thread found 1 valid title(s)

  • title 1:
    • stream: /Users/randall/Movies/Sky Captain and the World of Tomorrow (2004)/title00.mkv
    • duration: 01:46:36
    • size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 29.970 fps
    • autocrop: 0/0/0/0
    • chapters:
    • 1: cells 0->0, 0 blocks, duration 00:06:03
    • 2: cells 0->0, 0 blocks, duration 00:05:25
    • 3: cells 0->0, 0 blocks, duration 00:05:19
    • 4: cells 0->0, 0 blocks, duration 00:07:01
    • 5: cells 0->0, 0 blocks, duration 00:04:21
    • 6: cells 0->0, 0 blocks, duration 00:08:38
    • 7: cells 0->0, 0 blocks, duration 00:04:17
    • 8: cells 0->0, 0 blocks, duration 00:05:08
    • 9: cells 0->0, 0 blocks, duration 00:07:15
    • 10: cells 0->0, 0 blocks, duration 00:08:07
    • 11: cells 0->0, 0 blocks, duration 00:04:31
    • 12: cells 0->0, 0 blocks, duration 00:06:34
    • 13: cells 0->0, 0 blocks, duration 00:05:17
    • 14: cells 0->0, 0 blocks, duration 00:06:57
    • 15: cells 0->0, 0 blocks, duration 00:06:14
    • 16: cells 0->0, 0 blocks, duration 00:04:55
    • 17: cells 0->0, 0 blocks, duration 00:10:35
    • audio tracks:
    • 1, English (AC3) (5.1 ch) (iso639-2: eng), 48000Hz, 448000bps
    • 2, English (AC3) (2.0 ch) (Dolby Surround) (iso639-2: eng), 48000Hz, 192000bps
    • 3, English (AC3) (2.0 ch) (Dolby Surround) (iso639-2: eng), 48000Hz, 192000bps
    • subtitle tracks: HandBrake has exited.

{:title=>1, :size=>2531942085, :directory=>false, :duration=>6396, :width=>720, :height=>480, :fps=>29.97, :autocrop=>nil, :audio=>{1=>{:format=>"AC3", :channels=>5.1, :language=>"eng", :bps=>448000, :stream=>1, :default=>true, :name=>"Surround 5.1"}, 2=>{:format=>"AC3", :channels=>2.0, :language=>"eng", :bps=>192000, :stream=>2, :default=>false, :name=>"Stereo"}, 3=>{:format=>"AC3", :channels=>2.0, :language=>"eng", :bps=>192000, :stream=>3, :default=>false, :name=>"Stereo"}}, :subtitle=>{}, :h264=>false, :hevc=>false, :mpeg2=>true, :stream=>0, :bd=>false, :dvd=>false, :mkv=>true, :mp4=>false} HandBrakeCLI --input=/Users/randall/Movies/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004)/title00.mkv --output=/Users/randall/Movies/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004)/Sky\ Captain\ and\ the\ World\ of\ Tomorrow\ (2004).mkv --markers --encoder=x264 --crop=0:0:0:0 --auto-anamorphic --rate=23.976 --cfr --encoder-preset=medium --encoder-profile=high --encoder-level=3.0 --quality=1 --audio=1,1,2,3 --aencoder=copy,ca_aac,ca_aac,ca_aac --aname=,,Producers\ Commentary,Directors\ Commentary --encopts=vbv-maxrate=1500:vbv-bufsize=3000:crf-max=25:qpmax=34:partitions=none:ref=1:rc-lookahead=30 Done.

And finally

ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] and HandBrake 1.1.0

I have gone back and listened to the original Vector 22 podcast several time and learn something new each time. I have also listened to the recent Vectors with you and Renee.

God Bless, Randall

lisamelton commented 6 years ago

@RDYork So the command transcoded correctly now after you retyped it? If so, that's good. Because I don't see anything wrong with the (nicely formatted!) diagnostic information you provided. In fact, your environment is very similar to mine.

Thanks for listening to my podcasts, sir! I'm actually think about starting a new one dedicated to transcoding. Would you be interested in listening to something like?

RDYork commented 6 years ago

Would you be interesting in something like? Absolutely!!! Thanks for your help. Have a great (rest of the) weekend

lisamelton commented 6 years ago

@RDYork You are very welcome, sir! And thanks for the feedback on the podcast idea.

I'll close this issue now since you've resolved it yourself. But feel free to comment again here or open other issues as necessary.