#776 Preferred Audio Setting Loves English

smplayer
open
nobody
subtitle (6)
5
2016-10-16
2016-10-08
Grady
No

Hello. I use 16.9.0 (8142) on Arch Linux and am no longer able to produce the desired effect from the preferred audio setting. I first noticed the issue within the past year or so and now wish that I had reported it promptly.

The following table shows results with a file having track #1 (eng) and track #2 (jpn). I hope you are viewing in a monospace font.

Preferred Audio | Default Track | Selected Track
jpn|eng | 1 | 1
eng|jpn | 1 | 1
jpn|eng | 2 | 1
jpn | 1 | 2

SMPlayer should select tracks like the following, of course:

Preferred Audio | Default Track | Selected Track
jpn|eng | 1 | 2
eng|jpn | 1 | 1
jpn|eng | 2 | 2
jpn | 1 | 2

Thank you for the best video player so far. Please do not hesitate to let me know if I can provide additional information.

Discussion

  • Grady

    Grady - 2016-10-08

    Observed Outcome:

    Preferred Audio Default Track Selected Track
    jpn│eng 1 1
    eng│jpn 1 1
    jpn│eng 2 1
    jpn 1 2

    Expected Outcome:

    Preferred Audio Default Track Selected Track
    jpn│eng 1 2
    eng│jpn 1 1
    jpn│eng 2 2
    jpn 1 2
     
    Last edit: Grady 2016-10-08
  • Ricardo Villalba

    Could you send the mplayer/mpv log after playing a video with this problem? (menu View).

     
  • Grady

    Grady - 2016-10-09

    Aboslutely. Thank you for the response.

    /usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-file=/dev/stdin --no-fs --hwdec=no --sub-auto=all --vo=vdpau, --ao=alsa, --framedrop=vo --autosync=1 --no-input-default-bindings --input-x11-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=81788947 --monitorpixelaspect=1 --osd-scale=1 --sub-ass --embeddedfonts --ass-line-spacing=0 --sub-scale=1 --sub-text-font=さざなみゴシック --sub-text-color=#000000 --sub-text-shadow-color=#101010 --sub-text-border-color=#ffffff --sub-text-border-size=10 --sub-text-shadow-offset=10 --sub-text-font-size=90 --sub-text-bold=yes --sub-text-italic=no --ass-force-style=PlayResX=512,PlayResY=320,Name=Default,Fontname=さざなみゴシック,Fontsize=36,PrimaryColour=&H00000000,BackColour=&H00101010,OutlineColour=&H00ffffff,Bold=1,Italic=0,Alignment=2,BorderStyle=1,Outline=4,Shadow=4,MarginL=20,MarginR=20,MarginV=0 --sub-codepage=utf8:UTF-8 --sub-pos=100 --volume=80 --cache=auto --osd-level=0 --vf-add=lavfi=[pp=l5] --vf-add=lavfi=[pp] --screenshot-template=%tY年%tm月%td日、%tH時%tM分%tS秒 %#00n --screenshot-format=jpg --screenshot-directory=/home --audio-channels=2 --audio-pitch-correction=yes --af-add=equalizer=0:-0.2:-0.6:-1:-1.7:-1.8:-1.8:-1.2:-1:-0.8 --volume-max=100 --term-playing-msg=MPV_VERSION=${=mpv-version:}
    INFO_VIDEO_WIDTH=${=width}
    INFO_VIDEO_HEIGHT=${=height}
    INFO_VIDEO_ASPECT=${=video-aspect}
    INFO_VIDEO_FPS=${=fps}
    INFO_VIDEO_FORMAT=${=video-format}
    INFO_VIDEO_CODEC=${=video-codec}
    INFO_AUDIO_FORMAT=${=audio-codec-name}
    INFO_AUDIO_CODEC=${=audio-codec}
    INFO_AUDIO_RATE=${=audio-params/samplerate}
    INFO_AUDIO_NCH=${=audio-params/channel-count}
    INFO_LENGTH=${=duration:${=length}}
    INFO_DEMUXER=${=demuxer}
    INFO_SEEKABLE=${=seekable}
    INFO_TITLES=${=disc-titles}
    INFO_CHAPTERS=${=chapters}
    INFO_TRACKS_COUNT=${=track-list/count}
    METADATA_TITLE=${metadata/by-key/title:}
    METADATA_ARTIST=${metadata/by-key/artist:}
    METADATA_ALBUM=${metadata/by-key/album:}
    METADATA_GENRE=${metadata/by-key/genre:}
    METADATA_DATE=${metadata/by-key/date:}
    METADATA_TRACK=${metadata/by-key/track:}
    METADATA_COPYRIGHT=${metadata/by-key/copyright:}
    INFO_MEDIA_TITLE=${=media-title:}
     --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} 100.mkv
    
    Playing: 100.mkv
     (+) Video --vid=1 (*) (h264)
     (+) Audio --aid=1 --alang=eng (*) 'English 5.1' (aac)
         Audio --aid=2 --alang=jpn 'Japanese Stereo' (aac)
     (+) Subs  --sid=1 --slang=eng (*) 'Sign / Title' (hdmv_pgs_subtitle)
         Subs  --sid=2 --slang=eng 'English Subtitles' (hdmv_pgs_subtitle)
    File tags:
     Title: 100
    Opening video filter: [lavfi graph=pp=l5]
    Opening video filter: [lavfi graph=pp]
    AO: [alsa] 48000Hz stereo 2ch float
    VO: [vdpau] 1920x1080 yuv420p
    INFO_VIDEO_DSIZE=1920x1080
    MPV_VERSION=mpv 0.20.0
    INFO_VIDEO_WIDTH=1920
    INFO_VIDEO_HEIGHT=1080
    INFO_VIDEO_ASPECT=1.777778
    INFO_VIDEO_FPS=23.976025
    INFO_VIDEO_FORMAT=h264
    INFO_VIDEO_CODEC=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
    INFO_AUDIO_FORMAT=aac
    INFO_AUDIO_CODEC=AAC (Advanced Audio Coding) [lavc:aac]
    INFO_AUDIO_RATE=48000
    INFO_AUDIO_NCH=6
    INFO_LENGTH=1466.889000
    INFO_DEMUXER=mkv
    INFO_SEEKABLE=yes
    INFO_TITLES=
    INFO_CHAPTERS=6
    INFO_TRACKS_COUNT=5
    METADATA_TITLE=100
    METADATA_ARTIST=
    METADATA_ALBUM=
    METADATA_GENRE=
    METADATA_DATE=
    METADATA_TRACK=
    METADATA_COPYRIGHT=
    INFO_MEDIA_TITLE=100
    INFO_CHAPTER_0_NAME=Chapter 01
    INFO_CHAPTER_1_NAME=Chapter 02
    INFO_CHAPTER_2_NAME=Chapter 03
    INFO_CHAPTER_3_NAME=Chapter 04
    INFO_CHAPTER_4_NAME=Chapter 05
    INFO_CHAPTER_5_NAME=Chapter 06
    INFO_TRACK_0: video 1 '' '' yes
    INFO_TRACK_1: audio 1 'eng' 'English 5.1' yes
    INFO_TRACK_2: audio 2 'jpn' 'Japanese Stereo' no
    INFO_TRACK_3: sub 1 'eng' 'Sign / Title' yes
    INFO_TRACK_4: sub 2 'eng' 'English Subtitles' no
    Track switched:
     (+) Video --vid=1 (*) (h264)
     (+) Audio --aid=1 --alang=eng (*) 'English 5.1' (aac)
         Audio --aid=2 --alang=jpn 'Japanese Stereo' (aac)
         Subs  --sid=1 --slang=eng (*) 'Sign / Title' (hdmv_pgs_subtitle)
         Subs  --sid=2 --slang=eng 'English Subtitles' (hdmv_pgs_subtitle)
    Track switched:
     (+) Video --vid=1 (*) (h264)
     (+) Audio --aid=1 --alang=eng (*) 'English 5.1' (aac)
         Audio --aid=2 --alang=jpn 'Japanese Stereo' (aac)
         Subs  --sid=1 --slang=eng (*) 'Sign / Title' (hdmv_pgs_subtitle)
         Subs  --sid=2 --slang=eng 'English Subtitles' (hdmv_pgs_subtitle)
    Track switched:
     (+) Video --vid=1 (*) (h264)
     (+) Audio --aid=1 --alang=eng (*) 'English 5.1' (aac)
         Audio --aid=2 --alang=jpn 'Japanese Stereo' (aac)
         Subs  --sid=1 --slang=eng (*) 'Sign / Title' (hdmv_pgs_subtitle)
         Subs  --sid=2 --slang=eng 'English Subtitles' (hdmv_pgs_subtitle)
    INFO_VIDEO_BITRATE=1935087
    INFO_AUDIO_BITRATE=488265
    
     
  • Ricardo Villalba

    You need to use just "jpn", not "jpn|eng", because if the first audio track is "eng" it will match "jpn|eng" as regular expression and will select that track.

    jpn|eng means japanese or english

     
    Last edit: Ricardo Villalba 2016-10-15
    • Grady

      Grady - 2016-10-16

      Edit: SourceForge will post an email reply... It just takes a few hours.

       
      Last edit: Grady 2016-10-17
  • Grady

    Grady - 2016-10-16

    I see. That explains the behavior.

    I seem to remember SMPlayer treating the preffered audio setting as an ordered list of precedence, though perhaps the regex matcher underneath the hood only conveniently matched as such.

    Order of precedence is nice because, continuing with the example, a bilingual speaker of Japanese and English could run into a file that contains "rus" and "eng" tracks. By using just "jpn," SMPlayer would select Russian audio--but being able to specify a native language followed by a secondary language would correctly select the secondary, when a native one is not available.

    I imagine English would be a popular fallback language for many users.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks