Closed dramirvf closed 3 years ago
Please post logs of the conversion for this one
Please post logs of the conversion for this one
Here is the log:
2020-11-04 21:47:56 - MANUAL - INFO - Manual processor started.
2020-11-04 21:47:56 - MANUAL - INFO - /usr/local/bin/python3
2020-11-04 21:47:56 - MANUAL - INFO - Loading config file /volume1/Amir Synology/Local SMA/config/autoProcess.ini.
2020-11-04 21:47:59 - MANUAL - INFO - Matched movie title as: The Craft: Legacy 2020-10-28 (TMDB ID: 590995)
2020-11-04 21:47:59 - MANUAL - INFO - Processing The Craft: Legacy
2020-11-04 21:47:59 - MANUAL - INFO - Input Data
2020-11-04 21:47:59 - MANUAL - INFO - {
"video": {
"field_order": "unknown",
"fps": 23.976023976023978,
"dimensions": "1920x800",
"index": 0,
"codec": "hevc",
"pix_fmt": "yuv420p10le",
"level": 12.0,
"profile": "main 10"
},
"subtitle": [
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "eng",
"index": 3,
"codec": "subrip"
},
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "fra",
"index": 4,
"codec": "subrip"
},
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "spa",
"index": 5,
"codec": "subrip"
},
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "fas",
"index": 6,
"codec": "subrip"
},
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "tur",
"index": 7,
"codec": "subrip"
}
],
"format-fullname": "Matroska / WebM",
"format": "matroska,webm",
"attachment": [],
"audio": [
{
"bitrate": 256000,
"language": "eng",
"index": 1,
"codec": "ac3",
"channels": 2,
"samplerate": 48000,
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired"
},
{
"language": "eng",
"index": 2,
"codec": "aac",
"channels": 6,
"samplerate": 48000,
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired"
}
]
}
2020-11-04 21:47:59 - MANUAL - INFO - Reading video stream.
2020-11-04 21:47:59 - MANUAL - INFO - Video codec detected: hevc.
2020-11-04 21:47:59 - MANUAL - INFO - Pix Fmt: yuv420p10le.
2020-11-04 21:47:59 - MANUAL - INFO - Profile: main 10.
2020-11-04 21:47:59 - MANUAL - INFO - Video codec parameters None.
2020-11-04 21:47:59 - MANUAL - INFO - Creating copy video stream from source stream 0.
2020-11-04 21:47:59 - MANUAL - INFO - Reading audio streams.
2020-11-04 21:47:59 - MANUAL - INFO - Audio detected for stream 2 - aac eng 6 channel.
2020-11-04 21:47:59 - MANUAL - INFO - Creating ac3 audio stream source audio stream 2 [universal-audio].
2020-11-04 21:47:59 - MANUAL - INFO - Creating copy audio stream from source stream 2.
2020-11-04 21:47:59 - MANUAL - INFO - Audio detected for stream 1 - ac3 eng 2 channel.
2020-11-04 21:47:59 - MANUAL - INFO - Creating copy audio stream from source stream 1.
2020-11-04 21:47:59 - MANUAL - INFO - Default audio stream set to eng copy 6 channel stream [default-more-channels: True].
2020-11-04 21:47:59 - MANUAL - INFO - Reading subtitle streams.
2020-11-04 21:47:59 - MANUAL - INFO - Text-based subtitle detected for stream 3 - subrip eng.
2020-11-04 21:47:59 - MANUAL - INFO - Creating mov_text subtitle stream from source stream 3.
2020-11-04 21:47:59 - MANUAL - INFO - Text-based subtitle detected for stream 4 - subrip fra.
2020-11-04 21:48:00 - MANUAL - INFO - Text-based subtitle detected for stream 5 - subrip spa.
2020-11-04 21:48:00 - MANUAL - INFO - Text-based subtitle detected for stream 6 - subrip fas.
2020-11-04 21:48:00 - MANUAL - INFO - Text-based subtitle detected for stream 7 - subrip tur.
2020-11-04 21:48:00 - MANUAL - INFO - Scanned for external subtitles and found 0 results in your approved languages.
2020-11-04 21:48:00 - MANUAL - INFO - Tagging copied video stream as hvc1
2020-11-04 21:48:00 - MANUAL - INFO - Output Data
2020-11-04 21:48:00 - MANUAL - INFO - {
"video": {
"bitrate": 2340.241,
"crf": -1,
"title": "FHD",
"debug": "video",
"width": null,
"maxrate": null,
"pix_fmt": null,
"preset": null,
"field_order": "unknown",
"map": 0,
"params": null,
"filter": null,
"codec": "copy",
"level": 0.0,
"profile": null,
"bufsize": null
},
"subtitle": [
{
"language": "eng",
"title": "",
"debug": "subtitle.embed-subs",
"codec": "mov_text",
"disposition": "-lyrics+default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"map": 3
}
],
"format": "mp4",
"source": [
"Source - Copy.mkv"
],
"attachment": [],
"audio": [
{
"bitrate": 256,
"language": "eng",
"title": "Stereo",
"filter": null,
"codec": "ac3",
"debug": "universal-audio",
"samplerate": null,
"channels": 2,
"map": 2,
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired"
},
{
"bitrate": 1536,
"language": "eng",
"title": "5.1 Channel",
"filter": null,
"bsf": null,
"codec": "copy",
"debug": "audio",
"samplerate": null,
"channels": 6,
"map": 2,
"disposition": "-lyrics+default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired"
},
{
"bitrate": 256,
"language": "eng",
"title": "Stereo",
"filter": null,
"bsf": null,
"codec": "copy",
"debug": "universal-audio",
"samplerate": null,
"channels": 2,
"map": 1,
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired"
}
]
}
2020-11-04 21:48:00 - MANUAL - INFO - Preopts
2020-11-04 21:48:00 - MANUAL - INFO - [
"-fix_sub_duration"
]
2020-11-04 21:48:00 - MANUAL - INFO - Postopts
2020-11-04 21:48:00 - MANUAL - INFO - [
"-threads",
"0",
"-metadata:g",
"encoding_tool=SMA",
"-tag:v",
"hvc1"
]
2020-11-04 21:48:00 - MANUAL - INFO - Starting conversion.
2020-11-04 21:48:00 - MANUAL - INFO - FFmpeg command:
2020-11-04 21:48:00 - MANUAL - INFO - ======================
2020-11-04 21:48:00 - MANUAL - INFO - /usr/local/bin/ffmpeg -fix_sub_duration -i Source - Copy.mkv -vcodec copy -map 0:0 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -c:a:0 ac3 -map 0:2 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired-captions -c:a:1 copy -map 0:2 -metadata:s:a:1 title=5.1 Channel -metadata:s:a:1 handler_name=5.1 Channel -metadata:s:a:1 language=eng -disposition:a:1 -lyrics+default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired-captions -c:a:2 copy -map 0:1 -metadata:s:a:2 title=Stereo -metadata:s:a:2 handler_name=Stereo -metadata:s:a:2 language=eng -disposition:a:2 -lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired-captions -c:s:0 mov_text -map 0:3 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=eng -disposition:s:0 -lyrics+default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -tag:v hvc1 -y /volume1/video/Test - Test/Tag/Tag 2/2A - 1V - 5T/Source - Copy.mp4
2020-11-04 21:48:00 - MANUAL - INFO - ======================
2020-11-04 21:48:01 - MANUAL - INFO - /volume1/video/Test - Test/Tag/Tag 2/2A - 1V - 5T/Source - Copy.mp4 created.
2020-11-04 21:48:01 - MANUAL - INFO - Tagging file: /volume1/video/Test - Test/Tag/Tag 2/2A - 1V - 5T/Source - Copy.mp4.
2020-11-04 21:48:04 - MANUAL - INFO - Trying to write tags.
2020-11-04 21:48:04 - MANUAL - INFO - Tags written successfully using mutagen.
2020-11-04 21:48:04 - MANUAL - INFO - Relocating MOOV atom to start of file.
There's your issue
"subtitle": [
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "eng",
"index": 3,
"codec": "subrip"
},
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "fra",
"index": 4,
"codec": "subrip"
},
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "spa",
"index": 5,
"codec": "subrip"
},
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "fas",
"index": 6,
"codec": "subrip"
},
{
"disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired",
"language": "tur",
"index": 7,
"codec": "subrip"
}
You have used the wrong 3 letter language codes for the 2 languages that aren't working
You should use fra
not fre
and fas
not pre
or just add all of them to your language list
MediaInfo isnt' super helpful since the script uses FFProbe to pull all the data. You would be better served to check info using that for the future
There's your issue
"subtitle": [ { "disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired", "language": "eng", "index": 3, "codec": "subrip" }, { "disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired", "language": "fra", "index": 4, "codec": "subrip" }, { "disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired", "language": "spa", "index": 5, "codec": "subrip" }, { "disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired", "language": "fas", "index": 6, "codec": "subrip" }, { "disposition": "-lyrics-default-original-comment-visual_impaired-forced-karaoke-dub-hearing_impaired", "language": "tur", "index": 7, "codec": "subrip" }
You have used the wrong 3 letter language codes for the 2 languages that aren't working You should use
fra
notfre
andfas
notpre
or just add all of them to your language listMediaInfo isnt' super helpful since the script uses FFProbe to pull all the data. You would be better served to check info using that for the future
I have written the 3-chacater codes according to "ISO 639-2/B". What you suggested is 3-chacater codes according to "ISO 639-2/T". So all language codes should be based on "ISO 639-2/T"?
Its based on whatever the person who encoded the video you're using as your input decided to use
Its based on whatever the person who encoded the video you're using as your input decided to use
So it's looks more logical to keep all variations as below?
languages = eng, fre, fra, per, fas
Yeah that should catch all possible scenarios
Thanks!
I have a video file in MKV Format with the following information:
Here is the AutoProcess.ini regarding subtitles:
Expected behavior: Subtitles in English, French, and Persian languages are embedded. Subtitles in Turkish and Spanish languages are discarded.
Result: Subtitle in English language is embedded. Subtitles in French, Persian, Turkish, and Spanish languages are discarded.
Any idea?