MiyukiQAQ / MissAV-Downloader

A tool for downloading videos from the "MissAV" website that can help you build your own private video library.
MIT License
74 stars 16 forks source link

Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument #14

Closed hydrogen1222 closed 1 month ago

hydrogen1222 commented 1 month ago

Progress: [##################################################] 3615/3615 Miyuki - 2024-09-09 14:40:36 - INFO - Complete save jpegs for: miyuki_movies_folder/mizd-391.mp4 Miyuki - 2024-09-09 14:40:36 - INFO - total files count: 3615 , found files count: 3615 Miyuki - 2024-09-09 14:40:36 - INFO - file integrity is 100.00% ffmpeg version 4.1.9 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.2.0 (GCC) configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --disable-stripping --enable-version3 --enable-encoders --enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-cuvid --disable-nvenc --disable-decoder=aac --disable-decoder=aac_fixed --disable-encoder=aac --disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-encoder=hevc_vaapi --disable-decoder=hevc --disable-muxer=hevc --disable-demuxer=hevc --disable-parser=hevc --disable-bsf=hevc_mp4toannexb --x86asmexe=yasm --cc=/usr/local/x86_64-pc-linux-gnu/bin/ccache/x86_64-pc-linux-gnu-wrap-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264 libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 [mpegts @ 0x5646072e5600] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, 4 kb/s): unspecified sample rate Consider increasing the value for the 'analyzeduration' and 'probesize' options Last message repeated 1 times [concat @ 0x56460723a380] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, 4 kb/s): unspecified sample rate Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, concat, from 'input.txt': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn, 48 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, 4 kb/s [mp4 @ 0x5646076e9440] sample rate not set Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy)

hydrogen1222 commented 1 month ago

On synology linux and enabled proxy. ffmpeg version is 4.1.9

MiyukiQAQ commented 1 month ago

On synology linux and enabled proxy. ffmpeg version is 4.1.9

Miyuki - 2024-09-09 03:26:49 - INFO - Search mizd-391 successfully: https://missav.com/dm28/mizd-391 Miyuki - 2024-09-09 03:26:49 - INFO - Processing URL: https://missav.com/dm28/mizd-391 Miyuki - 2024-09-09 03:26:49 - INFO - Matching uuid successfully: 14d97c10-a155-44e7-9ab3-3445827c7052 Progress: [##################################################] 3615/3615 Miyuki - 2024-09-09 03:33:00 - INFO - Complete save jpegs for: miyuki_movies_folder/mizd-391.mp4 Miyuki - 2024-09-09 03:33:00 - INFO - total files count: 3615 , found files count: 3615 Miyuki - 2024-09-09 03:33:00 - INFO - file integrity is 100.00% ffmpeg version 7.0.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2024 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 59. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 Input #0, concat, from 'input.txt': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 5 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Output #0, mp4, to 'miyuki_movies_folder/mizd-391.mp4': Metadata: encoder : Lavf61.1.100 Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 24 fps, 24 tbr, 90k tbn Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 5 kb/s Press [q] to stop, [?] for help [out#0/mp4 @ 0x83a3bc0] video:2939198KiB audio:426665KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.154858% size= 3371075KiB time=04:05:07.11 bitrate=1877.7kbits/s speed= 135x
Miyuki - 2024-09-09 03:34:50 - INFO - FFmpeg execution completed. Miyuki - 2024-09-09 03:34:50 - INFO - Processing URL Complete: https://missav.com/dm28/mizd-391

[root@miyuki playground]# ffmpeg -version ffmpeg version 7.0.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2024 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 59. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 [root@miyuki playground]#

I tested it on centos and it worked fine. You can refer to my ffmpeg version and try it again.

hydrogen1222 commented 1 month ago

.

OK thanks a lot. I'm going to upgrade my ffmpeg version,but this linux is based on Synology NAS and it's a challenge maybe