ekisu / mpv-webm

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

Can Webm used in IINA, are there other convenient methods for video editing? #202

Open sherlock-png opened 2 days ago

sherlock-png commented 2 days ago

MacOS 15.1

mpv version mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects built on Sep 29 2024 18:48:10 libplacebo version: v7.349.0 FFmpeg version: 6.1.2 FFmpeg library versions: libavcodec 60.31.102 libavdevice 60.3.100 libavfilter 9.12.100 libavformat 60.16.100 libavutil 58.29.100 libswresample 4.12.100 libswscale 7.5.100

$ mpv --ovc=help Can't find libx264, so I use @frozenpandaman https://github.com/ekisu/mpv-webm/issues/188#issuecomment-2198253512 function change the libx264 to h264_videotoolbox.

But it's not as good as libx264. Are there any better methods? Also, can I use WebM in IINA? Thank you.

mrfragger commented 2 days ago

brew install mpv

should show --ovc=libvpx-vp9 libvpx VP9 --ovc=libwebp_anim libwebp WebP image --ovc=libwebp libwebp WebP image --ovc=libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 --ovc=libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB --ovc=libx265 libx265 H.265 / HEVC --ovc=libxvid libxvidcore MPEG-4 part 2 --ovc=h264_videotoolbox VideoToolbox H.264 Encoder --ovc=hevc_videotoolbox VideoToolbox H.265 Encoder

sherlock-png commented 2 days ago

brew install mpv

should show --ovc=libvpx-vp9 libvpx VP9 --ovc=libwebp_anim libwebp WebP image --ovc=libwebp libwebp WebP image --ovc=libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 --ovc=libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB --ovc=libx265 libx265 H.265 / HEVC --ovc=libxvid libxvidcore MPEG-4 part 2 --ovc=h264_videotoolbox VideoToolbox H.264 Encoder --ovc=hevc_videotoolbox VideoToolbox H.265 Encoder

I install mpv use brew install stolendata-mpv $ mpv --ovc=help

Available output video codecs:
  --ovc=a64multi     Multicolor charset for Commodore 64
  --ovc=a64multi5    Multicolor charset for Commodore 64, extended with 5th color (colram)
  --ovc=alias_pix    Alias/Wavefront PIX image
  --ovc=amv          AMV Video
  --ovc=apng         APNG (Animated Portable Network Graphics) image
  --ovc=asv1         ASUS V1
  --ovc=asv2         ASUS V2
  --ovc=avrp         Avid 1:1 10-bit RGB Packer
  --ovc=avui         Avid Meridien Uncompressed
  --ovc=ayuv         Uncompressed packed MS 4:4:4:4
  --ovc=bitpacked    Bitpacked
  --ovc=bmp          BMP (Windows and OS/2 bitmap)
  --ovc=cfhd         GoPro CineForm HD
  --ovc=cinepak      Cinepak
  --ovc=cljr         Cirrus Logic AccuPak
  --ovc=dnxhd        VC3/DNxHD
  --ovc=dpx          DPX (Digital Picture Exchange) image
  --ovc=dvvideo      DV (Digital Video)
  --ovc=exr          OpenEXR image
  --ovc=ffv1         FFmpeg video codec #1
  --ovc=ffvhuff      Huffyuv FFmpeg variant
  --ovc=fits         Flexible Image Transport System
  --ovc=flashsv      Flash Screen Video
  --ovc=flashsv2     Flash Screen Video Version 2
  --ovc=flv          FLV / Sorenson Spark / Sorenson H.263 (Flash Video)
  --ovc=gif          GIF (Graphics Interchange Format)
  --ovc=h261         H.261
  --ovc=h263         H.263 / H.263-1996
  --ovc=h263p        H.263+ / H.263-1998 / H.263 version 2
  --ovc=huffyuv      Huffyuv / HuffYUV
  --ovc=jpeg2000     JPEG 2000
  --ovc=jpegls       JPEG-LS
  --ovc=ljpeg        Lossless JPEG
  --ovc=magicyuv     MagicYUV video
  --ovc=mjpeg        MJPEG (Motion JPEG)
  --ovc=mpeg1video   MPEG-1 video
  --ovc=mpeg2video   MPEG-2 video
  --ovc=mpeg4        MPEG-4 part 2
  --ovc=msmpeg4v2    MPEG-4 part 2 Microsoft variant version 2
  --ovc=msmpeg4      MPEG-4 part 2 Microsoft variant version 3
  --ovc=msrle        Microsoft RLE
  --ovc=msvideo1     Microsoft Video-1
  --ovc=pam          PAM (Portable AnyMap) image
  --ovc=pbm          PBM (Portable BitMap) image
  --ovc=pcx          PC Paintbrush PCX image
  --ovc=pfm          PFM (Portable FloatMap) image
  --ovc=pgm          PGM (Portable GrayMap) image
  --ovc=pgmyuv       PGMYUV (Portable GrayMap YUV) image
  --ovc=phm          PHM (Portable HalfFloatMap) image
  --ovc=png          PNG (Portable Network Graphics) image
  --ovc=ppm          PPM (Portable PixelMap) image
  --ovc=prores       Apple ProRes
  --ovc=prores_aw    Apple ProRes
  --ovc=prores_ks    Apple ProRes (iCodec Pro)
  --ovc=qoi          QOI (Quite OK Image format) image
  --ovc=qtrle        QuickTime Animation (RLE) video
  --ovc=r10k         AJA Kona 10-bit RGB Codec
  --ovc=r210         Uncompressed RGB 10-bit
  --ovc=rawvideo     raw video
  --ovc=roqvideo     id RoQ video
  --ovc=rpza         QuickTime video (RPZA)
  --ovc=rv10         RealVideo 1.0
  --ovc=rv20         RealVideo 2.0
  --ovc=sgi          SGI image
  --ovc=smc          QuickTime Graphics (SMC)
  --ovc=snow         Snow
  --ovc=speedhq      NewTek SpeedHQ
  --ovc=sunrast      Sun Rasterfile image
  --ovc=svq1         Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
  --ovc=targa        Truevision Targa image
  --ovc=tiff         TIFF image
  --ovc=utvideo      Ut Video
  --ovc=v210         Uncompressed 4:2:2 10-bit
  --ovc=v308         Uncompressed packed 4:4:4
  --ovc=v408         Uncompressed packed QT 4:4:4:4
  --ovc=v410         Uncompressed 4:4:4 10-bit
  --ovc=vbn          Vizrt Binary Image
  --ovc=vc2          SMPTE VC-2
  --ovc=wbmp         WBMP (Wireless Application Protocol Bitmap) image
  --ovc=wrapped_avframe AVFrame to AVPacket passthrough
  --ovc=wmv1         Windows Media Video 7
  --ovc=wmv2         Windows Media Video 8
  --ovc=xbm          XBM (X BitMap) image
  --ovc=xface        X-face image
  --ovc=xwd          XWD (X Window Dump) image
  --ovc=y41p         Uncompressed YUV 4:1:1 12-bit
  --ovc=yuv4         Uncompressed packed 4:2:0
  --ovc=zlib         LCL (LossLess Codec Library) ZLIB
  --ovc=zmbv         Zip Motion Blocks Video
  --ovc=hdr          HDR (Radiance RGBE format) image
  --ovc=libopenjpeg  OpenJPEG JPEG 2000
  --ovc=libvpx       libvpx VP8
  --ovc=libvpx-vp9   libvpx VP9
  --ovc=h264_videotoolbox VideoToolbox H.264 Encoder
  --ovc=hevc_videotoolbox VideoToolbox H.265 Encoder
  --ovc=prores_videotoolbox VideoToolbox ProRes Encoder
  --ovc=vnull        null video

but i can't find libx264, can you help me? really thank your reply!

mrfragger commented 2 days ago

it was frustrating cuz stolendata didn't update it for like a year I believe...finally about a month ago he added 0.39 so check brew info mpv and that should be 0.39 which is stolendata and install it brew install mpv and should have the appropriate codecs

cuz even if you install a nightly it's not gonna have the runtime which is needed.

sherlock-png commented 2 days ago

it was frustrating cuz stolendata didn't update it for like a year I believe...finally about a month ago he added 0.39 so check brew info mpv and that should be 0.39 which is stolendata and install it brew install mpv and should have the appropriate codecs

cuz even if you install a nightly it's not gonna have the runtime which is needed.

Thank you My stolendata mpv version is 0.39 but can't find libx264 codecs so I try to uninstall the solendata-mpv use

brew install mpv

I install the the command-line version formulae mpv $ mpv --ovc=help

  --ovc=libx264      libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
  --ovc=libx264rgb   libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB
  --ovc=libx265      libx265 H.265 / HEVC
  --ovc=libxvid      libxvidcore MPEG-4 part 2
  --ovc=h264_videotoolbox VideoToolbox H.264 Encoder
  --ovc=hevc_videotoolbox VideoToolbox H.265 Encoder

if only install the formulae mpv, i can only use the command-line,but i can use the libx264 codec so i think it's stolendata-mpv's problem.but i don't now how to fix....