smplayer-dev / smplayer

Free Media Player for Windows, Linux and Mac OS with YouTube support.
https://smplayer.info
GNU General Public License v2.0
685 stars 94 forks source link

Error at the end of a video #1050

Open Salvaju29ro opened 2 months ago

Salvaju29ro commented 2 months ago

Describe the bug When a video ends, it gives me an error

To Reproduce The video ends and the "Oops, something went wrong" screen appears.

Screenshots

Schermata_20240914_195638

Your Enviroment

Logs

/usr/bin/mpv --no-quiet --terminal --no-msg-color --input-ipc-server=/tmp/smplayer-mpv-3859 --msg-level=ffmpeg/demuxer=error --video-rotate=no --no-config --no-fs --vd-lavc-threads=4 --hwdec=vaapi --sub-auto=fuzzy --vo=xv,x11, --no-stop-screensaver --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=29360152 --monitorpixelaspect=1 --osd-level=1 --osd-scale=1 --osd-bar-align-y=0.6 --sub-ass --embeddedfonts --sub-ass-line-spacing=0 --sub-scale=1 --sub-font=Arial --sub-color=#ffffffff --sub-shadow-color=#ff000000 --sub-border-color=#ff000000 --sub-border-size=0.75 --sub-shadow-offset=2.5 --sub-font-size=50 --sub-bold=no --sub-italic=no --sub-margin-y=8 --sub-margin-x=20 --sub-codepage=ISO-8859-1 --vid=1 --sid=auto --sub-pos=100 --volume=54 --cache=auto --start=16 --audio-pitch-correction=yes --volume-max=200 video-aspect-override=16:9 --term-playing-msg=MPV_VERSION=${=mpv-version:} INFO_VIDEO_WIDTH=${=width} INFO_VIDEO_HEIGHT=${=height} INFO_VIDEO_ASPECT=${=video-params/aspect} INFO_VIDEO_FPS=${=container-fps:${=fps}} INFO_VIDEO_FORMAT=${=video-format} INFO_VIDEO_CODEC=${=video-format} INFO_DEMUX_ROTATION=${=track-list/0/demux-rotation} INFO_AUDIO_FORMAT=${=audio-codec-name} INFO_AUDIO_CODEC=${=audio-codec-name} INFO_AUDIO_RATE=${=audio-params/samplerate} INFO_AUDIO_NCH=${=audio-params/channel-count} INFO_LENGTH=${=duration:${=length}} INFO_DEMUXER=${=current-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:} INFO_STREAM_PATH=${stream-path} --audio-client-name=SMPlayer --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} VB: ${=video-bitrate:0} AB: ${=audio-bitrate:0} /Dati/Video/Video by beatitonia.mp4

Playing: video-aspect-override=16:9 [file] Cannot open file 'video-aspect-override=16:9': No such file or directory Failed to open video-aspect-override=16:9. Playing: /Dati/Video/Video by beatitonia.mp4 (+) Video --vid=1 () (h264 1080x1920 30.000fps) (+) Audio --aid=1 () (aac 2ch 44100Hz) File tags: Title: 694806686066321 [vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO. AO: [pipewire] 44100Hz stereo 2ch floatp VO: [xv] 1080x1920 yuv420p INFO_VIDEO_DSIZE=1080x1920 MPV_VERSION=mpv v0.38.0-dirty INFO_VIDEO_WIDTH=1080 INFO_VIDEO_HEIGHT=1920 INFO_VIDEO_ASPECT=0.562500 INFO_VIDEO_FPS=30.000000 INFO_VIDEO_FORMAT=h264 INFO_VIDEO_CODEC=h264 INFO_DEMUX_ROTATION= INFO_AUDIO_FORMAT=aac INFO_AUDIO_CODEC=aac INFO_AUDIO_RATE=44100 INFO_AUDIO_NCH=2 INFO_LENGTH=16.185011 INFO_DEMUXER=lavf INFO_SEEKABLE=yes INFO_TITLES= INFO_CHAPTERS=0 INFO_TRACKS_COUNT=2 METADATA_TITLE=694806686066321 METADATA_ARTIST= METADATA_ALBUM= METADATA_GENRE= METADATA_DATE= METADATA_TRACK= METADATA_COPYRIGHT= INFO_MEDIA_TITLE=694806686066321 INFO_STREAM_PATH=/Dati/Video/Video by beatitonia.mp4 INFO_TRACK_0: video 1 '' '' yes INFO_TRACK_1: audio 1 '' '' yes Exiting... (Some errors happened)

I tried changing the Output drive but without success

It seems that the error is from MPV, but if I use native MPV without Smplayer it doesn't give any error at the end of the video. Maybe it's because MPV doesn't have an interface for errors?

Salvaju29ro commented 2 months ago

I tried removing the video-aspect-override=16:9 option from "Advanced" and it no longer reproduces the problem. I apologize for reporting the bug. Does anyone know of an alternative?