ekisu / mpv-webm

Simple WebM maker for mpv, with no external dependencies.
MIT License
571 stars 33 forks source link

Encoding fails with static linked ffmpeg #18

Closed StylinGreymon closed 6 years ago

StylinGreymon commented 6 years ago

mpv version

mpv 0.28.0-423-g596f66cccf

[cplayer] Command line options: '-v'                                                                                 
[cplayer] mpv 0.28.0-423-g596f66cccf Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects                             
[cplayer]  built on UNKNOWN                                                                                          
[cplayer] ffmpeg library versions:                                                                                   
[cplayer]    libavutil       56.13.100                                                                               
[cplayer]    libavcodec      58.17.100                                                                               
[cplayer]    libavformat     58.10.100                                                                               
[cplayer]    libswscale      5.0.102                                                                                 
[cplayer]    libavfilter     7.14.100                                                                                
[cplayer]    libswresample   3.0.101                                                                                 
[cplayer] ffmpeg version: N-90610-g2accdd3871                                                                        
[cplayer]                                                                                                            
[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --htmldir=/usr/share/doc/mpv/html --disable
-test --disable-build-date --disable-vapoursynth-lazy --lua=luajit --enable-cdda --enable-dvbin --enable-dvdnav --ena
ble-dvdread --enable-html-build --enable-libarchive --enable-libmpv-shared --enable-libsmbclient --enable-openal --en
able-sdl2 --enable-tv --enable-zsh-comp                                                                              
[cplayer] List of enabled features: alsa asm atomics audio-input caca cdda cplayer cplugins crossc cuda-hwaccel debug
-build drm drmprime dvbin dvdnav dvdread dvdread-common egl-drm egl-helpers egl-x11 encoding fchmod ffmpeg gbm gbm.h 
gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack javascript jpeg lcms2 libaf libarchive lib
ass libass-osd libav-any libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient libv4l2 linux-f
statfs lua luajit openal optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pul
se rsound rubberband sdl2 shaderc shaderc-shared stdatomic tv tv-v4l2 uchardet vaapi vaapi-drm vaapi-egl vaapi-glx va
api-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 videodev vt.h vulkan wayland wayland-protocols x11 xv zlib zsh-c
omp                                                                                                                  
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Reading config file /home/greymon/.config/mpv/config
[ifo] Opening /home/greymon/.config/mpv/input.conf
[ifo_dvdnav] Opening /home/greymon/.config/mpv/input.conf
[bdmv/bluray] Opening /home/greymon/.config/mpv/input.conf
[file] Opening /home/greymon/.config/mpv/input.conf
[input] Parsing input config file /home/greymon/.config/mpv/input.conf
[input] Input config file /home/greymon/.config/mpv/input.conf parsed: 12 binds
[cplayer] mpv 0.28.0-423-g596f66cccf Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.13.100
[cplayer]    libavcodec      58.17.100
[cplayer]    libavformat     58.10.100
[cplayer]    libswscale      5.0.102
[cplayer]    libavfilter     7.14.100
[cplayer]    libswresample   3.0.101
[cplayer] ffmpeg version: N-90610-g2accdd3871
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --htmldir=/usr/share/doc/mpv/html --disable-test --disable-build-date --disable-vapoursynth-lazy --lua=luajit --enable-cdda --enable-dvbin --enable-dvdnav --enable-dvdread --enable-html-build --enable-libarchive --enable-libmpv-shared --enable-libsmbclient --enable-openal --enable-sdl2 --enable-tv --enable-zsh-comp
[cplayer] List of enabled features: alsa asm atomics audio-input caca cdda cplayer cplugins crossc cuda-hwaccel debug-build drm drmprime dvbin dvdnav dvdread dvdread-common egl-drm egl-helpers egl-x11 encoding fchmod ffmpeg gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack javascript jpeg lcms2 libaf libarchive libass libass-osd libav-any libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient libv4l2 linux-fstatfs lua luajit openal optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rsound rubberband sdl2 shaderc shaderc-shared stdatomic tv tv-v4l2 uchardet vaapi vaapi-drm vaapi-egl vaapi-glx vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 videodev vt.h vulkan wayland wayland-protocols x11 xv zlib zsh-comp
[osd/libass] Shaper: FriBidi 1.0.1 (SIMPLE) HarfBuzz-ng 1.7.6 (COMPLEX)
[osd/libass] Setting up fonts...
[ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[stats] lua-settings/stats.conf not found. 
[cplayer] mpv 0.28.0-423-g596f66cccf Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.13.100
[cplayer]    libavcodec      58.17.100
[cplayer]    libavformat     58.10.100
[cplayer]    libswscale      5.0.102
[cplayer]    libavfilter     7.14.100
[cplayer]    libswresample   3.0.101
[cplayer] ffmpeg version: N-90610-g2accdd3871
[cplayer]
[cplayer] Usage:   mpv [options] [url|path/]filename
[cplayer]
[cplayer] Basic options:
[cplayer]  --start=<time>    seek to given (percent, seconds, or hh:mm:ss) position
[cplayer]  --no-audio        do not play sound
[cplayer]  --no-video        do not play video
[cplayer]  --fs              fullscreen playback
[cplayer]  --sub-file=<file> specify subtitle file to use
[cplayer]  --playlist=<file> specify playlist file
[cplayer]
[cplayer]  --list-options    list all mpv options
[cplayer]  --h=<string>      print options which contain the given string in their name
[cplayer]
[ytdl_hook] Exiting...
[stats] Exiting...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[osc] Exiting...

Description

running the script returns "Encode Failed!"

Log file

[ 10.147][v][webm] Command failed! Reason: nil Killed by us? no [ 10.147][v][webm] Command stdout:
[ 10.147][v][webm] [encode-lavc] neither audio nor video codec was found [ 10.147][v][webm] [encode-lavc] vo-lavc: encoded 0 bytes [ 10.147][v][webm] [encode-lavc] ao-lavc: encoded 0 bytes [ 10.147][v][webm] Encoding initialization failed. [ 10.147][v][webm] [ 10.147][v][webm] Exiting... (Fatal error) [ 10.147][v][webm]

ekisu commented 6 years ago

Post the output of mpv --ovc=help and mpv --oac=help

It seems your mpv was built without encoding support for those codecs, in which case there's not much I can do. It's not really related to static builds, because Windows builds are static too, but it works there.

StylinGreymon commented 6 years ago

mpv --ovc=help https://pastebin.com/H1Jfk0fK

mpv --oac=help https://pastebin.com/Cm3GDEsu

ekisu commented 6 years ago

Your mpv doesn't support neither libvpx or libvorbis. You need to (re)compile your mpv install to enable encoding with those codecs. I'll close this for now, but feel free to ask any questions or reopen this issue.