Jump to content

Problemas con subtitulos que no aparecen


GusPS

Recommended Posts

Hola,

 

Hace poco instalé Emby, y no logro hacer funcionar los subtítulos.

Estoy medio perdido ya que no tengo idea cual puede ser el problema. Estuve mirando los logs como para ver si allí aparecía algún error que me diera un indicio de donde empezar a mirar, pero no encuentro nada.

 

La configuración que tengo es:

Emby Server 3.2.50.0 (up-to-date), corriendo en un servidor Ubuntu 17.10, que es un LXC ejecutándose en un Proxmox 4.4.

Los archivos los tomo de un Open Media Vault, referenciados vía smb://

En estos Shares, los archivos mp4, mkv, avi, etc están acompañados de sus respectivos .srt

También he probado hacer uso de la opción de descarga vía OpenSubtitles.

En mi perfil tengo "Preffered: Spanish;Castillan", "Mode: Default", "Burn: Auto"

En el server tengo "Download for: Movies / Episodes", Download Languages "English y Spanish", Los otros 3 checks, desmarcados.

 

He probado ver en Chromecast, en Roku con la App de Emby, en Firefox en la PC (Linux - ver 57), en Chrome en la PC (Linux - Version 62.0.3202.94).

En ningún caso se logran ver los subtitulos.

 

Lo que he notado es que siempre se activa el "transconding".

 

Alguna idea qué me puede faltar configurar? Algún paquete que falte instalar en el server?

 

Gracias

Link to comment
Share on other sites

Los nombres coinciden con el nombre del video. Ej: abc.mkv | abc.srt, ubicados en el mismo directorio.

He probado también ponerle abc.default.srt y también abc.spa.srt

En ningún caso ha funcionado.

Ese link lo he tenido en cuenta.

 

Por lo que mencionás, estimo que en base a lo que he contado, me debería funcionar, no?

 

También he probado ver en el celular, usando la App de Emby, pero tampoco funciona.

Es como si tuviera los subtitulos desactivados.

 

Viendo el "media info" de un ejemplo, observo:

5a37e69292580_Selection_050.png

No dice nada más.

 

En el NAS, tengo:

5a37e6ba328be_Selection_051.png

 

 

Puede ser que el problema sea el acceso vía "smb://" ?

Link to comment
Share on other sites

En el servidor se muestra que reconoce los subtitulos? Intenta entrar a la pelicula desde el navegador web, y hasta abajo de la pagina muestra la informacion del medio, ahi deberia de mostrar la informacion del codecs del archivo y si tiene subtitulos ya sean internos o externos. Asi descartaremos si no reconoce los subtitulos o si no los puede mostrar por otro motivo.

 

 Edito: Me acabo de fijar que ya viste eso, al parecer no te muestra informacion alguna de los codecs, lo que significa que el servidor esta teniendo problemas para leer los medios. Intenta en el servidor quitar "smb://" de la ruta y dejarlo solo como "//:"

 

5a37f48f00e2b_Infodemedio.png

Edited by Mibok
Link to comment
Share on other sites

Hola, sí, compruebe la parte inferior de la pantalla de detalles como dice Mibok y vea si aparecen los subtítulos.

 

¿Aparecen allí? Gracias !

Link to comment
Share on other sites

El cambio de smb:// a \\ no funcionó. De hecho, parece que internamente sigue siendo "smb://"

 

Debido a que el Media Info no aparecía, me puse a investigar puntualmente eso y encontré que la ejecución de ffprobe daba error de

/opt/emby-server/bin/ffprobe: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory

Probé con "apt install libavdevice57" y ahora el error era otro:

smb://nas.local/media/movies/In A World/In A World.mp4: Protocol not found

Eso mismo lo probé en mi PC, vía smb, y también da ese error. Así que probé copiar el archivo de forma local, volví a ejecutar, y ahí el ffprobe funcionó ok. Evidentemente el smb no le gusta.

Quizás lo mejor es dejar de lado Ubuntu 17.10 y usar alguno anterior. Con 16.04 va bien? O mejor sería ir a 16.10 o 17.04?

 

Gracias!

Edited by GusPS
Link to comment
Share on other sites

Probé con 17.04 (LXC) y con 16.04 (VM normal), y en ambos casos se comportó igual que con el 17.10. Hice la prueba de instalar smbclient, pero ffprobe sigue dando el mismo problema. Lo que voy a hacer es montar el NAS vía cifs a través del fstab o autofs.

Si hay alguna otra opción o alternativa para hacer funcionar el "smb://", avisen y pruebo.

Muchas gracias.

Link to comment
Share on other sites

Ahí funcionó ok. Lo monté con fstab.

Algún problema con smb y ffprobe debe haber ya que todo funcionaba de 10, salvo los subtítulos.

Link to comment
Share on other sites

¿Puede adjuntar el registro completo del servidor emby? Gracias !

 

Aquí paso la parte relevante:

 

2017-12-19 20:23:09.448 Debug App: Running FFProbeProvider for smb://nas/Media/movies/In A World/In A World.mp4
2017-12-19 20:23:09.464 Debug MediaEncoder: /opt/emby-server/bin/ffprobe -i "smb://nas/Media/movies/In A World/In A World.mp4" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format
2017-12-19 20:23:09.720 Error App: Error in ffprobe
*** Error Report ***
Version: 3.2.50.0
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.4.95.1
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 4
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
System.Runtime.Serialization.SerializationException: Type definitions should start with a '{', expecting serialized type 'InternalMediaInfoResult', got string starting with: mkdir failed on directory /srv/buildbot/x64/libsmb
   at ServiceStack.Text.Common.DeserializeTypeRefJson.StringToType(TypeConfig typeConfig, String strType, EmptyCtorDelegate ctorFn, Dictionary`2 typeAccessorMap)
   at ServiceStack.Text.JsonSerializer.DeserializeFromString[T](String value)
   at ServiceStack.Text.JsonSerializer.DeserializeFromStream[T](Stream stream)
   at Emby.Server.MediaEncoding.Encoder.MediaEncoder.<GetMediaInfoInternal>d__61.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.<ProbeVideo>d__15`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RunCustomProvider>d__26.MoveNext()
System.Runtime.Serialization.SerializationException
   at ServiceStack.Text.Common.DeserializeTypeRefJson.StringToType(TypeConfig typeConfig, String strType, EmptyCtorDelegate ctorFn, Dictionary`2 typeAccessorMap)
   at ServiceStack.Text.JsonSerializer.DeserializeFromString[T](String value)
   at ServiceStack.Text.JsonSerializer.DeserializeFromStream[T](Stream stream)
   at Emby.Server.MediaEncoding.Encoder.MediaEncoder.<GetMediaInfoInternal>d__61.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.<ProbeVideo>d__15`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RunCustomProvider>d__26.MoveNext()


2017-12-19 20:23:09.728 Debug App: Running MovieDbProvider for smb://nas/Media/movies/In A World/In A World.mp4
2017-12-19 20:23:09.739 Debug JsonSerializer: Deserializing file /var/lib/emby/cache/tmdb-movies2/157360/all-en.json
2017-12-19 20:23:09.798 Info HttpClient: GET: https://api.themoviedb.org/3/configuration?api_key=f6bd687ffa63cd282b6ff2c6877f2669
2017-12-19 20:23:10.522 Debug App: Running OmdbItemProvider for smb://nas/Media/movies/In A World/In A World.mp4
2017-12-19 20:23:10.558 Debug App: Running MovieNfoProvider for smb://nas/Media/movies/In A World/In A World.mp4
2017-12-19 20:23:10.570 Debug App: MovieNfoProvider returned no metadata for smb://nas/Media/movies/In A World/In A World.mp4
2017-12-19 20:23:10.640 Debug XmlSerializer: Deserializing file /var/lib/emby/config/xbmcmetadata.xml
2017-12-19 20:23:10.641 Debug App: Saving smb://nas/Media/movies/In A World/In A World.mp4 to database.

Si ejecuto a mano ffprobe, obtengo:

 

# export LD_LIBRARY_PATH=/opt/emby-server/lib:/opt/emby-server/lib/samba
root@embytest:/opt/emby-server/lib# /opt/emby-server/bin/ffprobe -i "smb://nas/Media/movies/In A World/In A World.mp4" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format
ffprobe version 3.4 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
  configuration: --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --arch=x86_64 --target-os=linux --prefix=/srv/buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-static --disable-cuda --disable-cuvid --disable-iconv --disable-nvenc --disable-doc --disable-ffplay --disable-ffserver --disable-xlib --enable-shared --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libsmbclient --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-vaapi --enable-version3 --extra-libs='-laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -ldl -ldrm -lexpat -lflag-mapping-samba4 -lfreetype -lfribidi -lfontconfig -lgenrand-samba4 -lgensec-samba4 -lgmp -lgse-samba4 -lgssapi_krb5 -lhogweed -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lnettle -lpng -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -lwbclient -lwinbind-client-samba4'
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
{
mkdir failed on directory /srv/buildbot/x64/libsmbclient-x64/staging/var/cache/samba: No such file or directory
mkdir failed on directory /srv/buildbot/x64/libsmbclient-x64/staging/var/cache/samba: No such file or directory
mkdir failed on directory /srv/buildbot/x64/libsmbclient-x64/staging/var/cache/samba: No such file or directory
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'smb://nas/Media/movies/In A World/In A World.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2014-01-12T12:52:29.000000Z
  Duration: 01:32:57.64, start: 0.000000, bitrate: 1137 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/unknown), 1280x536, 1039 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      creation_time   : 2014-01-12T12:52:29.000000Z
      handler_name    : video.264#trackID=1:fps=23.976 - Imported with GPAC 0.5.0-rev
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 93 kb/s (default)
    Metadata:
      creation_time   : 2014-01-12T12:52:49.000000Z
      handler_name    : GPAC ISO Audio Handler
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "High",
            "codec_type": "video",
            "codec_time_base": "1001/48000",
            "codec_tag_string": "avc1",
            "codec_tag": "0x31637661",
            "width": 1280,
            "height": 536,
            "coded_width": 1280,
            "coded_height": 536,
            "has_b_frames": 2,
            "sample_aspect_ratio": "0:1",
            "display_aspect_ratio": "0:1",
            "pix_fmt": "yuv420p",
            "level": 41,
            "color_range": "tv",
            "color_space": "bt709",
            "color_primaries": "bt709",
            "chroma_location": "left",
            "refs": 1,
            "is_avc": "true",
            "nal_length_size": "4",
            "r_frame_rate": "24000/1001",
            "avg_frame_rate": "24000/1001",
            "time_base": "1/24000",
            "start_pts": 2002,
            "start_time": "0.083417",
            "duration_ts": 133860727,
            "duration": "5577.530292",
            "bit_rate": "1039193",
            "bits_per_raw_sample": "8",
            "nb_frames": "133727",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0
            },
            "tags": {
                "creation_time": "2014-01-12T12:52:29.000000Z",
                "language": "und",
                "handler_name": "video.264#trackID=1:fps=23.976 - Imported with GPAC 0.5.0-rev"
            }
        },
        {
            "index": 1,
            "codec_name": "aac",
            "codec_long_name": "AAC (Advanced Audio Coding)",
            "profile": "LC",
            "codec_type": "audio",
            "codec_time_base": "1/48000",
            "codec_tag_string": "mp4a",
            "codec_tag": "0x6134706d",
            "sample_fmt": "fltp",
            "sample_rate": "48000",
            "channels": 2,
            "channel_layout": "stereo",
            "bits_per_sample": 0,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/48000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 267726848,
            "duration": "5577.642667",
            "bit_rate": "93810",
            "max_bit_rate": "101400",
            "nb_frames": "261452",
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0
            },
            "tags": {
                "creation_time": "2014-01-12T12:52:49.000000Z",
                "language": "eng",
                "handler_name": "GPAC ISO Audio Handler"
            }
        }
    ],
    "chapters": [


    ],
    "format": {
        "filename": "smb://nas/Media/movies/In A World/In A World.mp4",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
        "format_long_name": "QuickTime / MOV",
        "start_time": "0.000000",
        "duration": "5577.641667",
        "size": "792815482",
        "bit_rate": "1137133",
        "probe_score": 100,
        "tags": {
            "major_brand": "isom",
            "minor_version": "1",
            "compatible_brands": "isomavc1",
            "creation_time": "2014-01-12T12:52:29.000000Z"
        }
    }
}

Luego creé 2 directorios:

 

- mkdir -p /srv/buildbot/x64/libsmbclient-x64/staging/var/cache/samba

- mkdir -p /srv/buildbot/x64/libsmbclient-x64/staging/var/lock/samba

 

Una vez hecho esto, ejecuté un Refresh Metadata, y el Media Info se completó con lo faltante y los subtítulos empezaron a funcionar.

 

Conclusión: hay que crear a mano los 2 directorios que hacen referencia a samba.

 

Espero que sirva, y sino avísenme y hago alguna otra prueba.

Saludos

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...