Page 1 of 1

Subtitle & Transcoding Information

Posted: Tue May 19, 2015 7:48 am
by michaelt
Looking for more of a detailed description of the Subtitle & Transcoding handling and the configuration options.

I see reoccurring (error) messages about 'ass' files and filters. I would like to understand what if any thing I can do to eliminate these.
The messages include:

Code: Select all

DEBUG [ffmpeg-1-2] [AVFilterGraph @ 0x7faa42d01360] No such filter: 'ass'
DEBUG [ffmpeg-1-2] Error opening filters!

Re: Subtitle & Transcoding Information

Posted: Wed May 20, 2015 10:31 pm
by ExSport
Are you using built-in ffmpeg/mencoder builds? I don't know if UMS for Linux/MacOS include custom binaries or you have to install one from some repository.
On windows there is ffmpeg/mencoder packed with UMS itself and is already compiled with required componends like libass library. Maybe your one is not compiled with it so try installing other one or disable "Subtitle Styling" which uses -ass param (I suppose)

Re: Subtitle & Transcoding Information

Posted: Thu May 21, 2015 12:11 am
by michaelt
ExSport wrote:Are you using built-in ffmpeg/mencoder builds?
I don't know if UMS for Linux/MacOS include custom binaries or you have to install one from some repository.
OSX uses a pre-build version.
The UMS version causes a Segment Fault so now using the latest version - no fault.
I am attempting to build it locally to see how it handles libass.
On windows there is ffmpeg/mencoder packed with UMS itself and is already compiled with required componends like libass library. Maybe your one is not compiled with it so try installing other one
Yes - done that.
disable "Subtitle Styling" which uses -ass param (I suppose)
No option "Subtitle Styling".
Tried "Use embedded style" enable/disable - no effect.
Tried "Disable subtitles" - OK, no error. This works.

So I'll do the local build of ffmpeg to see if I can find the problem.

Re: Subtitle & Transcoding Information

Posted: Thu May 21, 2015 12:23 pm
by ExSport
Play with this:
- Transcoding setings / FFmpeg / FontConfig Embedded Fonts
- Transcoding setings / MEncoder / FontConfig Embedded Fonts + Use SSA/ASS Subtitle Styling
- Transcoding setings /Common Transcode Settings / Subtitle settings / Use embedded style

Re: Subtitle & Transcoding Information

Posted: Fri May 22, 2015 2:02 pm
by michaelt
Progress: it was not easy but I succeeded in building a static ffmpeg binary and no 'ass' errors:

Code: Select all

DEBUG 22:02:30.797 [ffmpeg-1] Starting /Users/umsmkv/UMS_J8/ums_OSX-Java8_x2/target/ums-5.1.2_x2-distribution/Universal Media Server.app/Contents/Resources/osx/ffmpeg -y -f lavfi -i nullsrc=s=720x480:d=1:r=1 -vf ass=DummyInput.ass -target ntsc-dvd -
TRACE 22:02:30.798 [ffmpeg-1] Setting FONTCONFIG_PATH to "/Users/umsmkv/UMS_J8/ums_OSX-Java8_x2/target/ums-5.1.2_x2-distribution/Universal Media Server.app/Contents/Resources/fonts"
TRACE 22:02:30.921 [ffmpeg-1] Successfully initialized buffer to 52,428,800 bytes.
DEBUG 22:02:30.935 [ffmpeg-1] Attaching thread: ffmpeg-1
DEBUG 22:02:30.991 [ffmpeg-1] Unix process ID (/Users/umsmkv/UMS_J8/ums_OSX-Java8_x2/target/ums-5.1.2_x2-distribution/Universal Media Server.app/Contents/Resources/osx/ffmpeg): 13594
DEBUG 22:02:31.207 [ffmpeg-1-2] ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
DEBUG 22:02:31.207 [ffmpeg-1-2]   built with Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
DEBUG 22:02:31.207 [ffmpeg-1-2]   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-static --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libass --enable-ffplay --enable-libfdk-aac --enable-libopus --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda
DEBUG 22:02:31.207 [ffmpeg-1-2]   libavutil      54. 20.100 / 54. 20.100
DEBUG 22:02:31.207 [ffmpeg-1-2]   libavcodec     56. 26.100 / 56. 26.100
DEBUG 22:02:31.207 [ffmpeg-1-2]   libavformat    56. 25.101 / 56. 25.101
DEBUG 22:02:31.207 [ffmpeg-1-2]   libavdevice    56.  4.100 / 56.  4.100
DEBUG 22:02:31.207 [ffmpeg-1-2]   libavfilter     5. 11.102 /  5. 11.102
DEBUG 22:02:31.207 [ffmpeg-1-2]   libavresample   2.  1.  0 /  2.  1.  0
DEBUG 22:02:31.207 [ffmpeg-1-2]   libswscale      3.  1.101 /  3.  1.101
DEBUG 22:02:31.207 [ffmpeg-1-2]   libswresample   1.  1.100 /  1.  1.100
DEBUG 22:02:31.207 [ffmpeg-1-2]   libpostproc    53.  3.100 / 53.  3.100
DEBUG 22:02:31.210 [ffmpeg-1-2] Input #0, lavfi, from 'nullsrc=s=720x480:d=1:r=1':
DEBUG 22:02:31.210 [ffmpeg-1-2]   Duration: N/A, start: 0.000000, bitrate: N/A
DEBUG 22:02:31.210 [ffmpeg-1-2]     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480 [SAR 1:1 DAR 3:2], 1 tbr, 1 tbn, 1 tbc
DEBUG 22:02:53.592 [ffmpeg-1-2] [Parsed_ass_0 @ 0x7fd7b2e01ea0] Added subtitle file: 'DummyInput.ass' (6 styles, 1 events)
DEBUG 22:02:53.595 [ffmpeg-1-2] Output #0, dvd, to 'pipe:':
DEBUG 22:02:53.595 [ffmpeg-1-2]   Metadata:
DEBUG 22:02:53.595 [ffmpeg-1-2]     encoder         : Lavf56.25.101
DEBUG 22:02:53.595 [ffmpeg-1-2]     Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 1:1 DAR 3:2], q=2-31, 6000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
DEBUG 22:02:53.595 [ffmpeg-1-2]     Metadata:
DEBUG 22:02:53.595 [ffmpeg-1-2]       encoder         : Lavc56.26.100 mpeg2video
DEBUG 22:02:53.595 [ffmpeg-1-2] Stream mapping:
DEBUG 22:02:53.595 [ffmpeg-1-2]   Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
DEBUG 22:02:53.595 [ffmpeg-1-2] Press [q] to stop, [?] for help
DEBUG 22:02:53.599 [ffmpeg-1-2] frame=    1 fps=0.0 q=1.6 Lsize=       8kB time=00:00:00.03 bitrate=1964.1kbits/s    
DEBUG 22:02:53.599 [ffmpeg-1-2] video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 51.227615%
TRACE 22:02:53.609 [ffmpeg-1] EOF
TRACE 22:02:53.609 [ffmpeg-1] Ready to Stop: true
DEBUG 22:02:56.110 [ffmpeg-1-Cleanup] Stopping Unix process 13594: ffmpeg-1
TRACE 22:02:56.110 [ffmpeg-1-Cleanup] Killing the Unix process: 13594
TRACE 22:02:56.111 [ffmpeg-1-Cleanup] Destroying buffer
Not sure if the rest is sane but now I know I can build and run.

I will need a little help in testing if it really works - subtitles, never seen any.

This file is 14.7MB vs 20.0MB for the pre-packaged v2.6.2. I might not have all the libraries configured. Check later.

Re: Subtitle & Transcoding Information

Posted: Fri May 22, 2015 2:50 pm
by michaelt
ExSport wrote:Play with this:
- Transcoding setings / FFmpeg / FontConfig Embedded Fonts
No such option. Tried: "Defer to MEncoder" - no effect
- Transcoding setings / MEncoder / FontConfig Embedded Fonts + Use SSA/ASS Subtitle Styli
Both were checked, tried unchecking - no effect
- Transcoding setings /Common Transcode Settings / Subtitle settings / Use embedded style
Unchecked - no effect

Tried combinations - no effect.
Only Check "Disable subtitles" suppresses the error message.