Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Higgins committed Aug 5, 2017
1 parent ebfdfbd commit 2f4b38f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ General MP4 Configuration
- `ios-audio` = creates a 2nd copy of an audio stream that will be iOS compatible (AAC Stereo) if the normal output will not be. If a stereo source stream is detected with this option enabled, an AAC stereo stream will be the only one produced (essentially overriding the codec option) to avoid multiple stereo audio stream copies in different codecs. Instead of 'true' you may also set this option to a specific codec to override the default.
- `ios-first-track-only` = Applies the `ios-audio` option only to the first audio track encountered in the source video file. This prevents making dual audio streams for additional alternative language codecs or commentary tracks that may be present in the source file.
- `ios-audio-filter` = Applies FFMPEG audio filter option to ONLY the iOS audio channels created by the script. iOS audio counterpart to the `audio-filter` option below.
- `ios-move-last` = Rearranges the iOS audio track to be after the converted track instead of first and changes the default disposition accordingly
- `max-audio-channels` = Sets a maximum number of audio channels. This may provide an alternative to the iOS audio option, where instead users can simply select the desired output codec and the max number of audio channels without the creation of an additional audio track.
- `video-codec` = set your desired video codecs. May specify multiple comma separated values (ex: h264, x264). The first value specified will be the default conversion choice when an undesired codec is encountered; any codecs specified here will be remuxed/copied rather than converted.
- `video-bitrate` = allows you to set a maximum video bitrate in Kbps. If the source file exceeds the video-bitrate it will be transcoded to the specified video-bitrate, even if they source file is already in the correct video codec. If the source file is in the correct video codec and does not exceed the video-bitrate setting, then it will be copied without transcoding. Leave blank to disable this setting.
Expand All @@ -78,6 +79,7 @@ General MP4 Configuration
- `audio-default-language` = If an audio stream with an unidentified/untagged language is detected, you can default that language tag to whatever this value is (ex: eng). This is useful for many single-audio releases which don't bother to tag the audio stream as anything
- `audio-filter` = Applies FFMPEG audio filter. Make sure you specify all parameters as you would using the `-af` option with FFMPEG command line
- `aac_adtstoasc` = Applies the aac_adtstoasc filter to AAC channels being copied. Useful if your source of mkv's uses raw ADTS AAC containers but can cause some playback issues with certain audio encoders
- `audio-copy-original` = Copies the original audio stream to the destination regardless of codec to preserve it. Will not redundantly copy the steam if its already a valid/supported codec
- `subtitle-codec` = set your desired subtitle codec. If you're embedding subs, `mov_text` is the only option supported. If you're creating external subtitle files, `srt` or `webvtt` are accepted.
- `subtitle-language` = same as audio-language but for subtitles. Set to `nil` to disable copying of subtitles.
- `subtitle-language-default` = same as audio-language-default but for subtitles
Expand Down

17 comments on commit 2f4b38f

@justinglock40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we manually add those two lines to autoProcess.ini? and do we just change to true or false?

@mdhiggins
Copy link
Owner

@mdhiggins mdhiggins commented on 2f4b38f Aug 5, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justinglock40
Copy link

@justinglock40 justinglock40 commented on 2f4b38f Aug 5, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justinglock40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if you're aware or not, but keeping the original audio stream works when it's met with DTS. However, if the file is already AC3 and AAC only it duplicates both.

@mdhiggins
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't duplicate unless for some reason a conversion is taking place, if you're getting duplicate streams then that is an error
Can you provide some more info on the source file and the output file? If you run it through manual.py and just put the console output that will be good enough

@justinglock40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Script triggered from NZBGet (11.0 or later).
2017-08-06 18:12:15 - readSettings - INFO - C:\Python27\python.exe
2017-08-06 18:12:15 - readSettings - WARNING - Audio bitrate was invalid, defaulting to 256 per channel.
2017-08-06 18:12:15 - readSettings - WARNING - Invalid external subtitle codec mov_text, ignoring.
2017-08-06 18:12:15 - readSettings - WARNING - No valid subtitle formats found, defaulting to 'srt'.
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Reading video stream.
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Video codec detected: h264.
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Pix Fmt: yuv420p.
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Reading audio streams.
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Audio detected for stream #1: dts [ger].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Audio detected for stream #2: dts [eng].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Creating audio stream 0 from source audio stream 2 [iOS-audio].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Audio track is number 0 setting disposition to default
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Creating audio stream 1 from source stream 2.
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Audio Track is number 2 setting disposition to none
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Adding copy of original audio track in format dts
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Audio detected for stream #3: ac3 [eng].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Creating audio stream 2 from source stream 3.
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Audio Track is number 3 setting disposition to none
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Adding copy of original audio track in format ac3
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Reading subtitle streams.
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #4: hdmv_pgs_subtitle [ger].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #5: dvd_subtitle [ger].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #6: dvd_subtitle [ger].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #7: dvd_subtitle [ger].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #8: dvd_subtitle [ger].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #9: dvd_subtitle [eng].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #10: dvd_subtitle [eng].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #11: dvd_subtitle [eng].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #12: dvd_subtitle [ita].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #13: dvd_subtitle [ita].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #14: dvd_subtitle [spa].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #15: dvd_subtitle [spa].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #16: dvd_subtitle [tur].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Subtitle detected for stream #17: dvd_subtitle [tur].
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Starting conversion.
2017-08-06 18:17:56 - NZBGetPostProcess - INFO - G:\Complete\A.Bugs.Life.1998.BluRay.1080p.DTSHD-MA.h264.Remux-HiFi\f2t15oOpPViT0e.mp4 created.
2017-08-06 18:17:56 - NZBGetPostProcess - INFO - Successfully processed G:\Complete\A.Bugs.Life.1998.BluRay.1080p.DTSHD-MA.h264.Remux-HiFi\f2t15oOpPViT0e.mkv.
2017-08-06 18:17:56 - autoprocess.radarr - INFO - [INFO] Radarr notifier started.
2017-08-06 18:17:56 - autoprocess.radarr - INFO - [INFO] Requesting Radarr to scan directory 'G:\Complete\A.Bugs.Life.1998.BluRay.1080p.DTSHD-MA.h264.Remux-HiFi'.

@mdhiggins
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is that the AC3 channel is getting converted or downsampled in some way (bitrate too high or too many channels or something) and even though the codec is the same (AC3) its actually not identical to the source steam so it still gets copied. If you post your autoProcess.ini and perhaps an ffmepg -show_steams of the output file I can probably sort out what's happened but I think that's why you're getting 2 copies

It doesn't actually copy it twice though I would bet the two AC3 streams in your output file are not identical, one has been reduced in quality in some fashion

@justinglock40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The crazy thing though is that the original DTS track gets deleted...?

ffmpeg = C:\ffmpeg\bin\ffmpeg.exe
ffprobe = C:\ffmpeg\bin\ffprobe.exe
threads = auto
output_directory =
copy_to =
move_to =
output_extension = mp4
output_format = mp4
delete_original = True
relocate_moov = True
video-codec = h264,x264,hevc,h265,x265,HEVC,mpeg4,MPEG-4,MPEG-H,h.265,h.264,nvenc_h264,nvenc_h265,h264qsv
video-bitrate =
video-crf =
video-max-width =
h264-max-level = 4.1
use-qsv-decoder-with-encoder = True
ios-audio = True
ios-first-track-only = False
ios-audio-filter =
max-audio-channels = 8
audio-codec = ac3,eac3
audio-language = eng
audio-default-language = eng
audio-channel-bitrate =
audio-filter =
subtitle-codec = mov_text
subtitle-language = eng
subtitle-default-language = eng
subtitle-encoding =
fullpathguess = False
convert-mp4 = False
tagfile = True
tag-language = en
download-artwork = Thumbnail
download-subs = False
embed-subs = False
sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles
permissions = 0777
post-process = False
pix-fmt =
aac_adtstoasc = False
postopts =
preopts =
audio-copy-original = True
ios-move-last = False

@mdhiggins
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be getting deleted
2017-08-06 18:12:15 - NZBGetPostProcess - INFO - Adding copy of original audio track in format dts
I see in the log that its supposed to be added

@justinglock40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In some movies, They have one of each (AAC,DTS, AC3), and in others it has two AAC and AC3 after remux.

@mdhiggins
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wanna upload one of these files to a dropbox or some cloud storage (the original file) and send me the link via email (mdhiggins23@gmail.com) I can try and reproduce this, probably the easiest way to get things sorted out

@justinglock40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok does True-HD get treated as DCA by FFmpeg?

@justinglock40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it maybe that those files are TrueHD and TrueHD can't be in mp4 files right? only mkv?

@mdhiggins
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that's what's happening

@justinglock40
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know what DTS DL is (Mulan.1998.1080p.BluRay.DTS.DL.x264-HDC)?
All the files that have that in the name have the duplication issue.

Also the AC3 files are differents; one is 5.1 and the other is 2.0

@mdhiggins
Copy link
Owner

@mdhiggins mdhiggins commented on 2f4b38f Aug 7, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mdhiggins
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any updates?

Please sign in to comment.