Subtitles codepage problem
Posted: Thu Feb 04, 2016 10:10 am
Hello,
I've started using UMS and I really excited about what it can do. However I have a problem with subtitles.
Currently I am using UMS 6 (last release available on the main page) running on CentOS Linux release 7.2.1511 (Core), which is fully updated.
The problem, based on debug log, seems to be with subtitles codepage. I have my subtitles in cp1250. When in UMS.conf nothing is set, the following is executed:
Which ends up in error. I have decided to change the codepage setting in UMS.conf to hardcode it to cp1250, but still no luck.
I have encoded subtitles into utf-8, which solved the problem:
Though I would like to have my subtitles in cp1250 if possible. Then, I have tried the ffmpeg command with charenc=cp1250 against local (provided by Centos/epel/nux) ffmpeg and that did work:
So I guess my question is, how do I make UMS to read the subtitles encoded in cp1250 correctly?
I've started using UMS and I really excited about what it can do. However I have a problem with subtitles.
Currently I am using UMS 6 (last release available on the main page) running on CentOS Linux release 7.2.1511 (Core), which is fully updated.
The problem, based on debug log, seems to be with subtitles codepage. I have my subtitles in cp1250. When in UMS.conf nothing is set, the following is executed:
Code: Select all
DEBUG 2016-02-03 21:12:44.590 [ffmpeg64-2] Starting /opt/ums-6.0.0/linux/ffmpeg64 -y -loglevel fatal -i /home/storage/public/seriale/H/Hfull.mkv -filter_complex subtitles=/home/storage/public/seriale/H/Hfull.txt:charenc=WINDOWS-1250 -bufsize 7000000 -maxrate 44000000 -g 5 -q:v 1 -qmin 2 -qmax 3 -c:a copy -c:v mpeg2video -f vob /tmp/UMS-ums/ffmpegvideo_42_1454530364285
DEBUG 2016-02-03 21:12:44.592 [ffmpeg64-2] Reading pipe: /tmp/UMS-ums/ffmpegvideo_42_1454530364285
DEBUG 2016-02-03 21:12:44.634 [ffmpeg64-2-2] Error initializing complex filters.
DEBUG 2016-02-03 21:12:44.634 [ffmpeg64-2-2] Invalid argument
Code: Select all
DEBUG 2016-02-03 21:10:55.544 [ffmpeg64-2] Starting /opt/ums-6.0.0/linux/ffmpeg64 -y -loglevel fatal -i /home/storage/public/seriale/H/Hfull.mkv -filter_complex subtitles=/home/storage/public/seriale/H/Hfull.txt:charenc=cp1250 -bufsize 7000000 -maxrate 44000000 -g 5 -q:v 1 -qmin 2 -qmax 3 -c:a copy -c:v mpeg2video -f vob /tmp/UMS-ums/ffmpegvideo_38_1454530255238
DEBUG 2016-02-03 21:10:55.546 [ffmpeg64-2] Reading pipe: /tmp/UMS-ums/ffmpegvideo_38_1454530255238
DEBUG 2016-02-03 21:10:55.603 [ffmpeg64-2-2] Error initializing complex filters.
DEBUG 2016-02-03 21:10:55.604 [ffmpeg64-2-2] Invalid argument
Code: Select all
DEBUG 2016-02-03 21:17:23.955 [ffmpeg64-2] Starting /opt/ums-6.0.0/linux/ffmpeg64 -y -loglevel fatal -i /home/storage/public/seriale/H/Hfull.mkv -filter_complex subtitles=/home/storage/public/seriale/H/Hfull.txt -bufsize 7000000 -maxrate 44000000 -g 5 -q:v 1 -qmin 2 -qmax 3 -c:a copy -c:v mpeg2video -f vob /tmp/UMS-ums/ffmpegvideo_42_1454530643649
DEBUG 2016-02-03 21:17:23.956 [ffmpeg64-2] Reading pipe: /tmp/UMS-ums/ffmpegvideo_42_1454530643649
DEBUG 2016-02-03 21:17:24.150 [ffmpeg64-2] Attaching thread: ffmpeg64-2
DEBUG 2016-02-03 21:17:24.152 [ffmpeg64-2] Unix process ID (/opt/ums-6.0.0/linux/ffmpeg64): 3795
Code: Select all
ffmpeg -y -loglevel fatal -i /home/storage/public/seriale/H/Hfull.mkv -filter_complex subtitles=/home/storage/public/seriale/H/Hfull.txt:charenc=cp1250 -bufsize 7000000 -maxrate 44000000 -g 5 -q:v 1 -qmin 2 -qmax 3 -c:a copy -c:v mpeg2video -f vob /tmp/UMS-ums/ffmpegvideo_38_1454530255238