FFmpeg报错:Specified pixel format yuvj420p is invalid or not supported(用ffmpeg程序查看编码器支持像素格式命令)

这篇具有很好参考价值的文章主要介绍了FFmpeg报错:Specified pixel format yuvj420p is invalid or not supported(用ffmpeg程序查看编码器支持像素格式命令)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

原因

这是因为我们把海康rtsp视频流packet解封装后,它frame的像素格式是yuvj420p(AV_PIX_FMT_YUVJ420P)的,然后我们又指定编码器上下文的像素格式pix_fmt = AV_PIX_FMT_YUVJ420P,指定编码器为AV_CODEC_ID_MPEG4,但是AV_CODEC_ID_MPEG4不支持AV_PIX_FMT_YUVJ420P像素格式,所以报了上述错误
FFmpeg报错:Specified pixel format yuvj420p is invalid or not supported(用ffmpeg程序查看编码器支持像素格式命令)

解决办法

ffmpeg -h encoder=mpeg4指令查看编码器支持哪些像素格式

发现:
x264编码器支持yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21 yuv420p10le yuv422p10le yuv444p10le nv20le gray gray10le
x265编码器支持yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p gbrp yuv420p10le yuv422p10le yuv444p10le gbrp10le yuv420p12le yuv422p12le yuv444p12le gbrp12le gray gray10le gray12le
mpeg4编码器支持yuv420p

那么解决方法只能是
①将yuvj420p的frame转换成yuv420p的frame,再输入给mpeg4编码器(我不知道ffmpeg有没这个功能。。。)
②换个编码器,比如x264或x265,它们都支持解析yuvj420p,同时能将输出packet的像素格式转换成其他的类型,比如yuv420p

C:\Users\Arnold\source\repos\20221114_ffmpeg_compile_test2\video>ffmpeg -h encoder=libx264
ffmpeg version n4.3.2-162-g4bbcaf7559 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 9.3-win32 (GCC) 20200320
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libtwolame --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Encoder libx264 [libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10]:
    General capabilities: delay threads
    Threading capabilities: auto
    Supported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21 yuv420p10le yuv422p10le yuv444p10le nv20le gray gray10le
libx264 AVOptions:
  -preset            <string>     E..V...... Set the encoding preset (cf. x264 --fullhelp) (default "medium")
  -tune              <string>     E..V...... Tune the encoding params (cf. x264 --fullhelp)
  -profile           <string>     E..V...... Set profile restrictions (cf. x264 --fullhelp)
  -fastfirstpass     <boolean>    E..V...... Use fast settings when encoding first pass (default true)
  -level             <string>     E..V...... Specify level (as defined by Annex A)
  -passlogfile       <string>     E..V...... Filename for 2 pass stats
  -wpredp            <string>     E..V...... Weighted prediction for P-frames
  -a53cc             <boolean>    E..V...... Use A53 Closed Captions (if available) (default true)
  -x264opts          <string>     E..V...... x264 options
  -crf               <float>      E..V...... Select the quality for constant quality mode (from -1 to FLT_MAX) (default -1)
  -crf_max           <float>      E..V...... In CRF mode, prevents VBV from lowering quality beyond this point. (from -1 to FLT_MAX) (default -1)
  -qp                <int>        E..V...... Constant quantization parameter rate control method (from -1 to INT_MAX) (default -1)
  -aq-mode           <int>        E..V...... AQ method (from -1 to INT_MAX) (default -1)
     none            0            E..V......
     variance        1            E..V...... Variance AQ (complexity mask)
     autovariance    2            E..V...... Auto-variance AQ
     autovariance-biased 3            E..V...... Auto-variance AQ with bias to dark scenes
  -aq-strength       <float>      E..V...... AQ strength. Reduces blocking and blurring in flat and textured areas. (from -1 to FLT_MAX) (default -1)
  -psy               <boolean>    E..V...... Use psychovisual optimizations. (default auto)
  -psy-rd            <string>     E..V...... Strength of psychovisual optimization, in <psy-rd>:<psy-trellis> format.
  -rc-lookahead      <int>        E..V...... Number of frames to look ahead for frametype and ratecontrol (from -1 to INT_MAX) (default -1)
  -weightb           <boolean>    E..V...... Weighted prediction for B-frames. (default auto)
  -weightp           <int>        E..V...... Weighted prediction analysis method. (from -1 to INT_MAX) (default -1)
     none            0            E..V......
     simple          1            E..V......
     smart           2            E..V......
  -ssim              <boolean>    E..V...... Calculate and print SSIM stats. (default auto)
  -intra-refresh     <boolean>    E..V...... Use Periodic Intra Refresh instead of IDR frames. (default auto)
  -bluray-compat     <boolean>    E..V...... Bluray compatibility workarounds. (default auto)
  -b-bias            <int>        E..V...... Influences how often B-frames are used (from INT_MIN to INT_MAX) (default INT_MIN)
  -b-pyramid         <int>        E..V...... Keep some B-frames as references. (from -1 to INT_MAX) (default -1)
     none            0            E..V......
     strict          1            E..V...... Strictly hierarchical pyramid
     normal          2            E..V...... Non-strict (not Blu-ray compatible)
  -mixed-refs        <boolean>    E..V...... One reference per partition, as opposed to one reference per macroblock (default auto)
  -8x8dct            <boolean>    E..V...... High profile 8x8 transform. (default auto)
  -fast-pskip        <boolean>    E..V...... (default auto)
  -aud               <boolean>    E..V...... Use access unit delimiters. (default auto)
  -mbtree            <boolean>    E..V...... Use macroblock tree ratecontrol. (default auto)
  -deblock           <string>     E..V...... Loop filter parameters, in <alpha:beta> form.
  -cplxblur          <float>      E..V...... Reduce fluctuations in QP (before curve compression) (from -1 to FLT_MAX) (default -1)
  -partitions        <string>     E..V...... A comma-separated list of partitions to consider. Possible values: p8x8, p4x4, b8x8, i8x8, i4x4, none, all
  -direct-pred       <int>        E..V...... Direct MV prediction mode (from -1 to INT_MAX) (default -1)
     none            0            E..V......
     spatial         1            E..V......
     temporal        2            E..V......
     auto            3            E..V......
  -slice-max-size    <int>        E..V...... Limit the size of each slice in bytes (from -1 to INT_MAX) (default -1)
  -stats             <string>     E..V...... Filename for 2 pass stats
  -nal-hrd           <int>        E..V...... Signal HRD information (requires vbv-bufsize; cbr not allowed in .mp4) (from -1 to INT_MAX) (default -1)
     none            0            E..V......
     vbr             1            E..V......
     cbr             2            E..V......
  -avcintra-class    <int>        E..V...... AVC-Intra class 50/100/200 (from -1 to 200) (default -1)
  -me_method         <int>        E..V...... Set motion estimation method (from -1 to 4) (default -1)
     dia             0            E..V......
     hex             1            E..V......
     umh             2            E..V......
     esa             3            E..V......
     tesa            4            E..V......
  -motion-est        <int>        E..V...... Set motion estimation method (from -1 to 4) (default -1)
     dia             0            E..V......
     hex             1            E..V......
     umh             2            E..V......
     esa             3            E..V......
     tesa            4            E..V......
  -forced-idr        <boolean>    E..V...... If forcing keyframes, force them as IDR frames. (default false)
  -coder             <int>        E..V...... Coder type (from -1 to 1) (default default)
     default         -1           E..V......
     cavlc           0            E..V......
     cabac           1            E..V......
     vlc             0            E..V......
     ac              1            E..V......
  -b_strategy        <int>        E..V...... Strategy to choose between I/P/B-frames (from -1 to 2) (default -1)
  -chromaoffset      <int>        E..V...... QP difference between chroma and luma (from INT_MIN to INT_MAX) (default -1)
  -sc_threshold      <int>        E..V...... Scene change threshold (from INT_MIN to INT_MAX) (default -1)
  -noise_reduction   <int>        E..V...... Noise reduction (from INT_MIN to INT_MAX) (default -1)
  -x264-params       <dictionary> E..V...... Override the x264 configuration using a :-separated list of key=value parameters


C:\Users\Arnold\source\repos\20221114_ffmpeg_compile_test2\video>ffmpeg -h encoder=libx265
ffmpeg version n4.3.2-162-g4bbcaf7559 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 9.3-win32 (GCC) 20200320
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libtwolame --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Encoder libx265 [libx265 H.265 / HEVC]:
    General capabilities: delay threads
    Threading capabilities: auto
    Supported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p gbrp yuv420p10le yuv422p10le yuv444p10le gbrp10le yuv420p12le yuv422p12le yuv444p12le gbrp12le gray gray10le gray12le
libx265 AVOptions:
  -crf               <float>      E..V...... set the x265 crf (from -1 to FLT_MAX) (default -1)
  -qp                <int>        E..V...... set the x265 qp (from -1 to INT_MAX) (default -1)
  -forced-idr        <boolean>    E..V...... if forcing keyframes, force them as IDR frames (default false)
  -preset            <string>     E..V...... set the x265 preset
  -tune              <string>     E..V...... set the x265 tune parameter
  -profile           <string>     E..V...... set the x265 profile
  -x265-params       <dictionary> E..V...... set the x265 configuration using a :-separated list of key=value parameters


C:\Users\Arnold\source\repos\20221114_ffmpeg_compile_test2\video>
C:\Users\Arnold\source\repos\20221114_ffmpeg_compile_test2\video>ffmpeg -h encoder=mpeg4
ffmpeg version n4.3.2-162-g4bbcaf7559 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 9.3-win32 (GCC) 20200320
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libtwolame --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Encoder mpeg4 [MPEG-4 part 2]:
    General capabilities: delay threads
    Threading capabilities: slice
    Supported pixel formats: yuv420p
MPEG4 encoder AVOptions:
  -data_partitioning <boolean>    E..V...... Use data partitioning. (default false)
  -alternate_scan    <boolean>    E..V...... Enable alternate scantable. (default false)
  -mpv_flags         <flags>      E..V...... Flags common for all mpegvideo-based encoders. (default 0)
     skip_rd                      E..V...... RD optimal MB level residual skipping
     strict_gop                   E..V...... Strictly enforce gop size
     qp_rd                        E..V...... Use rate distortion optimization for qp selection
     cbp_rd                       E..V...... use rate distortion optimization for CBP
     naq                          E..V...... normalize adaptive quantization
     mv0                          E..V...... always try a mb with mv=<0,0>
  -luma_elim_threshold <int>        E..V...... single coefficient elimination threshold for luminance (negative values also consider dc coefficient) (from INT_MIN to INT_MAX) (default 0)
  -chroma_elim_threshold <int>        E..V...... single coefficient elimination threshold for chrominance (negative values also consider dc coefficient) (from INT_MIN to INT_MAX) (default 0)
  -quantizer_noise_shaping <int>        E..V...... (from 0 to INT_MAX) (default 0)
  -error_rate        <int>        E..V...... Simulate errors in the bitstream to test error concealment. (from 0 to INT_MAX) (default 0)
  -qsquish           <float>      E..V...... how to keep quantizer between qmin and qmax (0 = clip, 1 = use differentiable function) (from 0 to 99) (default 0)
  -rc_qmod_amp       <float>      E..V...... experimental quantizer modulation (from -FLT_MAX to FLT_MAX) (default 0)
  -rc_qmod_freq      <int>        E..V...... experimental quantizer modulation (from INT_MIN to INT_MAX) (default 0)
  -rc_eq             <string>     E..V...... Set rate control equation. When computing the expression, besides the standard functions defined in the section 'Expression Evaluation', the following functions are available: bits2qp(bits), qp2bits(qp). Also the following constants are available: iTex pTex tex mv fCode iCount mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex avgTex.
  -rc_init_cplx      <float>      E..V...... initial complexity for 1-pass encoding (from -FLT_MAX to FLT_MAX) (default 0)
  -rc_buf_aggressivity <float>      E..V...... currently useless (from -FLT_MAX to FLT_MAX) (default 1)
  -border_mask       <float>      E..V...... increase the quantizer for macroblocks close to borders (from -FLT_MAX to FLT_MAX) (default 0)
  -lmin              <int>        E..V...... minimum Lagrange factor (VBR) (from 0 to INT_MAX) (default 236)
  -lmax              <int>        E..V...... maximum Lagrange factor (VBR) (from 0 to INT_MAX) (default 3658)
  -ibias             <int>        E..V...... intra quant bias (from INT_MIN to INT_MAX) (default 999999)
  -pbias             <int>        E..V...... inter quant bias (from INT_MIN to INT_MAX) (default 999999)
  -rc_strategy       <int>        E..V...... ratecontrol method (from 0 to 1) (default ffmpeg)
     ffmpeg          0            E..V...... deprecated, does nothing
     xvid            0            E..V...... deprecated, does nothing
  -motion_est        <int>        E..V...... motion estimation algorithm (from 0 to 2) (default epzs)
     zero            0            E..V......
     epzs            1            E..V......
     xone            2            E..V......
  -force_duplicated_matrix <boolean>    E..V...... Always write luma and chroma matrix for mjpeg, useful for rtp streaming. (default false)
  -b_strategy        <int>        E..V...... Strategy to choose between I/P/B-frames (from 0 to 2) (default 0)
  -b_sensitivity     <int>        E..V...... Adjust sensitivity of b_frame_strategy 1 (from 1 to INT_MAX) (default 40)
  -brd_scale         <int>        E..V...... Downscale frames for dynamic B-frame decision (from 0 to 3) (default 0)
  -skip_threshold    <int>        E..V...... Frame skip threshold (from INT_MIN to INT_MAX) (default 0)
  -skip_factor       <int>        E..V...... Frame skip factor (from INT_MIN to INT_MAX) (default 0)
  -skip_exp          <int>        E..V...... Frame skip exponent (from INT_MIN to INT_MAX) (default 0)
  -skip_cmp          <int>        E..V...... Frame skip compare function (from INT_MIN to INT_MAX) (default dctmax)
     sad             0            E..V...... Sum of absolute differences, fast
     sse             1            E..V...... Sum of squared errors
     satd            2            E..V...... Sum of absolute Hadamard transformed differences
     dct             3            E..V...... Sum of absolute DCT transformed differences
     psnr            4            E..V...... Sum of squared quantization errors, low quality
     bit             5            E..V...... Number of bits needed for the block
     rd              6            E..V...... Rate distortion optimal, slow
     zero            7            E..V...... Zero
     vsad            8            E..V...... Sum of absolute vertical differences
     vsse            9            E..V...... Sum of squared vertical differences
     nsse            10           E..V...... Noise preserving sum of squared differences
     dct264          14           E..V......
     dctmax          13           E..V......
     chroma          256          E..V......
     msad            15           E..V...... Sum of absolute differences, median predicted
  -sc_threshold      <int>        E..V...... Scene change threshold (from INT_MIN to INT_MAX) (default 0)
  -noise_reduction   <int>        E..V...... Noise reduction (from INT_MIN to INT_MAX) (default 0)
  -mpeg_quant        <int>        E..V...... Use MPEG quantizers instead of H.263 (from 0 to 1) (default 0)
  -ps                <int>        E..V...... RTP payload size in bytes (from INT_MIN to INT_MAX) (default 0)
  -mepc              <int>        E..V...... Motion estimation bitrate penalty compensation (1.0 = 256) (from INT_MIN to INT_MAX) (default 256)
  -mepre             <int>        E..V...... pre motion estimation (from INT_MIN to INT_MAX) (default 0)
  -intra_penalty     <int>        E..V...... Penalty for intra blocks in block decision (from 0 to 1.07374e+09) (default 0)
  -a53cc             <boolean>    E..V...... Use A53 Closed Captions (if available) (default true)


C:\Users\Arnold\source\repos\20221114_ffmpeg_compile_test2\video>

参考文章:关于ffmpeg必须知道的

20221125:注意,支持的像素格式要具体查看你的ffmpeg!

我在我们英伟达8核盒子上查看

x264编码:

ffmpeg -h encoder=h264

FFmpeg报错:Specified pixel format yuvj420p is invalid or not supported(用ffmpeg程序查看编码器支持像素格式命令)文章来源地址https://www.toymoban.com/news/detail-412579.html

到了这里,关于FFmpeg报错:Specified pixel format yuvj420p is invalid or not supported(用ffmpeg程序查看编码器支持像素格式命令)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • AndroidStudio打包 Invalid keystore format 报错

    先贴出报错信息 Execution failed for task \\\':examplecases:packageRelease\\\'. A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable     com.android.ide.common.signing.KeytoolException: Failed to read key aaa from store \\\"C:UsersaDesktopNewProjectaaa.jks\\\": Invalid keystore format * Try: Ru

    2024年02月16日
    浏览(27)
  • docker报错:docker: invalid reference format.

    1.‘-‘写成’-’ :记住一定时英文短横线 2: 与前面内容缺少空格 3: 后面多敲了tab建 或者空格 省流 如果是copy现成命令导致的 直接手敲一遍 即可解决 说说我的情况叭 我是直接copy现成写好的以至于出现这种错误(pdf)中copy以至于格式会乱 这样复制过去直接出现invalid refe

    2024年02月11日
    浏览(31)
  • Android编译打包报错Invalid keystore format

    运行一个开源老项目,编译出现以下错误。 按照错误提示,是debug的签名格式有问题。 我们只需要打开c盘,在当前用户的目录,有个.android目录,删除里面的debug.keystore。 如果删除的时候提示进程被占用,先退出Android Studio。然后再删除就可以了。 最后重新运行项目,会自动

    2024年02月16日
    浏览(24)
  • 解决问题:Key is invalid. You must supply a key in OpenSSH public key format

    背景: 我们在github上面添加秘钥的时候,保存会出现这个错误 Key is invalid. You must supply a key in OpenSSH public key format 原因分析: 这个原因是由于我们直接用工具打开id_rsa文件,然后粘贴复制上去的,但是id_rsa文件被打开之后,格式就会发生变化,所以就会一直报错 解决方案:

    2024年02月11日
    浏览(38)
  • mcr.microsoft.com/dotnet/aspnet:3.1 AS base“ is not a valid repository/tag: invalid reference format

    今天在运行dockerfile时出现错误:Error parsing reference: \\\"mcr.microsoft.com/dotnet/aspnet:3.1 AS base\\\" is not a valid repository/tag: invalid reference format 经过很多资料了解到时由于Docker的版本错误导致, Docker版本:Docker version 1.13.1,需要安装docker-ce 1、删除docker 2、更新yum 3、安装 yum-utils 4、添加

    2024年02月13日
    浏览(26)
  • 区块链报错7 | invalid address | Error: [ethjs-query] while formatting outputs from RPC: “message“

    初学记录 · 欢迎交流 区块链DApp从零开始学 (一) | DApp抓包 区块链DApp从零开始学 (二) | 超详细 DApp创建 | 发行代币token |宠物领养 区块链知识(一) | 实例化合约Contract 区块链报错1 | npm run dev 无法解析json格式 | npm ERR JSON.parse Failed to parse json 区块链报错2 | 区块链npm run dev失败

    2023年04月08日
    浏览(53)
  • FFMpeg: “Invalid audio stream. Exactly one MP3 audio stream is required“

    I am trying to adapt this FFmpeg script that encodes all video files in a directory, to instead convert mp3 files present in that directory with similar preferences. This works for .MOV - .MOV encoding. Throws errors: What is wrong with the script? ffmpeg Share Improve this question Follow edited Mar 19, 2016 at 11:23 asked Mar 16, 2016 at 18:04 P A N 1,61

    2024年02月10日
    浏览(33)
  • IDEA运行报错:Cannot start compilation: the output path is not specified.

    报错信息: “Cannot start compilation: the output path is not specified for module \\\"TestJar\\\". Specify the output path in the Project Structure dialog.” 原因分析: Output directory is not specified 报错的意思是没有指定输出路径。idea需要在项目下生成一个out输出文件目录,该目录下会存放java文件运行后的字节

    2024年02月12日
    浏览(38)
  • JS报错Uncaught (in promise) TypeError: (intermediate value).format is not a function

    出现“date.format is not a function”错误是因为格式方法未在 JavaScript 中实现。 意思是说Format不是一个方法。去查了一下,发现是javascript已经去掉此方法了,要使用的话,需要添加第三方库。 要解决该错误,需要使用第三方包来格式化我们的日期,例如 moment 或 date-fns。 再或者

    2024年02月17日
    浏览(39)
  • 微信小程序报错:invalid credential, access_token is invalid or not latest

    获取到了 access_token,用 access_token 去生成小程序二维码报错: invalid credential, access_token is invalid or not latest 在 微信开放社区 搜索解决方案 获取accessToken接口 Access token 的存储与更新 生成微信小程序码接口(永久有效,数量暂无限制) access_token 的有效期是 2小时 ,看下是不是

    2024年02月10日
    浏览(44)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包