WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.9k stars 971 forks source link

Video upload fails - 'null' is not a suitable output format #5184

Closed m-schmale closed 3 years ago

m-schmale commented 3 years ago

Hi,

I installed AVideo today, but the video upload does not work. Could you please help me to fix this?

Thanks, Mark

avideo.log

[20-May-2021 18:00:31 UTC] getReturn_vars {"videos_id":8,"video_id_hash":"Z2E1dm44YU04THBtZ0Q0dHY4UmpzQT09"}
[20-May-2021 18:00:31 UTC] Duration found: 0:01:00
[20-May-2021 18:00:31 UTC] getImage: file exists /var/www/AVideo/upload/videos/7_tmpFile.mp4.jpg
[20-May-2021 18:00:31 UTC] getWebpImage: takes 0.028584957122803 sec to complete
[20-May-2021 18:00:31 UTC] getWebpImage:  Image error : ffmpeg   -y -ss 00:00:30 -t 3 -i /var/www/AVideo/upload/videos/7_tmpFile.mp4 -vcodec libwebp -lossless 1 -vf fps=10,scale=640:-1 -q 60 -preset default -loop 0 -an -vsync 0 /var/www/AVideo/upload/videos/7_tmpFile.mp4.webp ["ffmpeg version 4.2.4-1ubuntu0.1bbb2~18.04 Copyright (c) 2000-2020 the FFmpeg developers","  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)","  configuration: --prefix=\/usr --extra-version='1ubuntu0.1bbb2~18.04' --toolchain=hardened --libdir=\/usr\/lib\/x86_64-linux-gnu --incdir=\/usr\/include\/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-librsvg --enable-librubberband --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libxml2 --enable-sdl2 --disable-decoders --enable-decoder='aac,ass,bmp,ffv1,ffvhuff,flac,flashsv,flashsv2,flv,gif,h264,huffyuv,libopus,librsvg,libspeex,mjpeg,mp3float,mpeg2video,opus,pcm_f32le,pcm_s16le,pcm_s16le_planar,png,rawvideo,srt,ssa,subrip,vorbis,vp6,vp6a,vp6f,vp8,vp9,webp,webvtt' --disable-encoders --enable-encoder='aac,ass,bmp,ffv1,ffvhuff,flac,flashsv,flashsv2,flv,gif,h264_vaapi,huffyuv,libmp3lame,libopus,libspeex,libvorbis,libvpx_vp8,libvpx_vp9,libx264,libx264rgb,mjpeg,mjpeg_vaapi,mpeg2_vaapi,mpeg2video,pcm_f32le,pcm_s16le,pcm_s16le_planar,png,rawvideo,srt,ssa,subrip,vp8_vaapi,vp9_vaapi,webvtt' --disable-hwaccels --enable-hwaccel='h264_vaapi,h264_vdpau,mjpeg_vaapi,mpeg2_vaapi,mpeg2_vdpau,vp8_vaapi,vp9_vaapi' --disable-parsers --enable-parser='aac,bmp,flac,gif,h264,mjpeg,mpegaudio,mpegvideo,opus,png,vorbis,vp8,vp9' --disable-demuxers --enable-demuxer='aac,alsa,ass,avi,bmp_pipe,caf,concat,dash,ffmetadata,flac,flv,gif,gif_pipe,h264,hls,image2,image2pipe,ivf,jpeg_pipe,kmsgrab,lavfi,matroska,mjpeg,mov,mp3,mpegts,mpegtsraw,nut,ogg,pcm_f32le,pcm_s16le,png_pipe,pulse,rawvideo,rtp,rtsp,srt,swf,w64,wav,webvtt,yuv4mpegpipe' --disable-muxers --enable-muxer='adts,ass,avi,caf,dash,ffmetadata,flac,flv,framecrc,framehash,framemd5,gif,h264,hash,hls,image2,image2pipe,ipod,ivf,matroska,matroska_audio,md5,mjpeg,mkvtimestamp_v2,mov,mp3,mp4,mpeg2video,mpegts,nut,oga,ogg,ogv,opus,pcm_f32le,pcm_s16le,rawvideo,rtp,rtp_mpegts,rtsp,segment,singlejpeg,srt,stream_segment,swf,tee,uncodedframecrc,w64,wav,webm,webm_chunk,webm_dash_manifest,webvtt,yuv4mpegpipe' --disable-protocols --enable-protocol='async,cache,concat,data,file,hls,http,httpproxy,https,icecast,md5,pipe,rtmp,rtmps,rtmpt,rtmpts,rtp,subfile,tcp,tee,tls,udp,unix' --disable-bsfs --enable-bsf='aac_adtstoasc,chomp,filter_units,h264_metadata,h264_mp4toannexb,h264_redundant_pps,mjpeg2jpeg,mpeg2_metadata,noise,null,vp9_metadata,vp9_raw_reorder,vp9_superframe,vp9_superframe_split' --disable-indevs --enable-indev='alsa,lavfi,v4l2,fbdev,xcbgrab,kmsgrab' --disable-outdevs --enable-outdev='alsa,sdl2,xv,fbdev,v4l2' --disable-libdc1394 --enable-libdrm --disable-libiec61883 --disable-chromaprint --disable-frei0r --enable-libx264 --enable-shared","  libavutil      56. 31.100 \/ 56. 31.100","  libavcodec     58. 54.100 \/ 58. 54.100","  libavformat    58. 29.100 \/ 58. 29.100","  libavdevice    58.  8.100 \/ 58.  8.100","  libavfilter     7. 57.100 \/  7. 57.100","  libavresample   4.  0.  0 \/  4.  0.  0","  libswscale      5.  5.100 \/  5.  5.100","  libswresample   3.  5.100 \/  3.  5.100","  libpostproc    55.  5.100 \/ 55.  5.100","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\/var\/www\/AVideo\/upload\/videos\/7_tmpFile.mp4':","  Metadata:","    major_brand     : mp42","    minor_version   : 1","    compatible_brands: mp42avc1","    creation_time   : 2010-02-09T01:55:39.000000Z","  Duration: 00:01:00.10, start: 0.000000, bitrate: 733 kb\/s","    Stream #0:0(eng): Audio: aac (LC) (mp4a \/ 0x6134706D), 22050 Hz, stereo, fltp, 65 kb\/s (default)","    Metadata:","      creation_time   : 2010-02-09T01:55:39.000000Z","      handler_name    : Apple Sound Media Handler","    Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 \/ 0x31637661), yuv420p(tv, smpte170m\/smpte170m\/bt709), 640x360, 612 kb\/s, 23.96 fps, 24 tbr, 600 tbn, 1200 tbc (default)","    Metadata:","      creation_time   : 2010-02-09T01:55:39.000000Z","      handler_name    : Apple Video Media Handler","    Stream #0:2(eng): Data: none (rtp  \/ 0x20707472), 45 kb\/s","    Metadata:","      creation_time   : 2010-02-09T01:55:39.000000Z","      handler_name    : hint media handler","    Stream #0:3(eng): Data: none (rtp  \/ 0x20707472), 5 kb\/s","    Metadata:","      creation_time   : 2010-02-09T01:55:39.000000Z","      handler_name    : hint media handler","[NULL @ 0x557e2f328700] Unable to find a suitable output format for '\/var\/www\/AVideo\/upload\/videos\/7_tmpFile.mp4.webp'","\/var\/www\/AVideo\/upload\/videos\/7_tmpFile.mp4.webp: Invalid argument"]
[20-May-2021 18:00:31 UTC] sendImages: {"error":false,"file":"\/var\/www\/AVideo\/upload\/videos\/7_tmpFile.mp4","target":"http:\/\/live.xxx.de\/objects\/aVideoEncoderReceiveImage.json.php","postFields":8,"response_raw":"{\"error\":false,\"video_id\":8,\"jpgDest\":\"\\\/var\\\/www\\\/AVideo\\\/videos\\\/video_210520175325_b8dd\\\/video_210520175325_b8dd.jpg\",\"gifDest\":\"\\\/var\\\/www\\\/AVideo\\\/videos\\\/video_210520175325_b8dd\\\/video_210520175325_b8dd.gif\",\"webpDest\":\"\\\/var\\\/www\\\/AVideo\\\/videos\\\/video_210520175325_b8dd\\\/video_210520175325_b8dd.webp\",\"webpDestSize\":\"2.00MB\",\"video_id_hash\":\"Z2E1dm44YU04THBtZ0Q0dHY4UmpzQT09\"}","response":{"error":false,"video_id":8,"jpgDest":"\/var\/www\/AVideo\/videos\/video_210520175325_b8dd\/video_210520175325_b8dd.jpg","gifDest":"\/var\/www\/AVideo\/videos\/video_210520175325_b8dd\/video_210520175325_b8dd.gif","webpDest":"\/var\/www\/AVideo\/videos\/video_210520175325_b8dd\/video_210520175325_b8dd.webp","webpDestSize":"2.00MB","video_id_hash":"Z2E1dm44YU04THBtZ0Q0dHY4UmpzQT09"}}
[20-May-2021 18:00:31 UTC] AVideo-Encoder Format::run(/var/www/AVideo/upload/videos/7_tmpFile.mp4, 7)
[20-May-2021 18:00:31 UTC] run (else): 7
[20-May-2021 18:00:31 UTC] AVideo-Encoder Format::getFromOrder(7)
[20-May-2021 18:00:31 UTC] AVideo-Encoder Format::exec [31, /var/www/AVideo/upload/videos/7_tmpFile.mp4, /var/www/AVideo/upload/videos/avideoTmpFile_7_streamers_id_1_.mp4, 7] code=(-vf scale=-2:{$resolution} -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -b:a {$autioBitrate}k  -max_muxing_queue_size 1024 -y {$destinationFile})
[20-May-2021 18:00:31 UTC] getResolution: ffprobe   -v quiet -print_format json -show_format -show_streams "/var/www/AVideo/upload/videos/7_tmpFile.mp4"
[20-May-2021 18:00:31 UTC] getResolution: success 360
[20-May-2021 18:00:31 UTC] Encoder:Format:: getDynamicCommandFromFormat(/var/www/AVideo/upload/videos/7_tmpFile.mp4, 31) [resolutions=[360]] [height=360]
[20-May-2021 18:00:31 UTC] Encoder:Format:: getDynamicCommandFromFormat::return(ffmpeg   -i {$pathFileName}  -vf scale=-2:360 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -b:a 128k  -max_muxing_queue_size 1024 -y /var/www/AVideo/upload/videos/avideoTmpFile_7_streamers_id_1__360.mp4) 
[20-May-2021 18:00:31 UTC] AVideo-Encoder Format::exec  Start Encoder [ffmpeg     -i /var/www/AVideo/upload/videos/7_tmpFile.mp4  -vf scale=-2:360 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -b:a 128k  -max_muxing_queue_size 1024 -y /var/www/AVideo/upload/videos/avideoTmpFile_7_streamers_id_1__360.mp4] 
[20-May-2021 18:00:41 UTC] videoFileHasErrors: errors found on video file /var/www/AVideo/upload/videos/avideoTmpFile_7_streamers_id_1__360.mp4 
[NULL @ 0x560a6ac26a00] Requested output format 'null' is not a suitable output format
pipe:: Invalid argument

[20-May-2021 18:00:41 UTC] progressFileHasVideosWithErrors: error found /var/www/AVideo/upload/videos/avideoTmpFile_7_streamers_id_1__360.mp4
[20-May-2021 18:00:41 UTC] AVideo-Encoder Format::exec ERROR (0) progressFile=/var/www/AVideo/upload/videos/7_tmpFile_progress.txt
null
[20-May-2021 18:00:41 UTC] Encoder::run: Trying again: [1] => Execute code error 1 "" 
 Code: ffmpeg     -i /var/www/AVideo/upload/videos/7_tmpFile.mp4  -vf scale=-2:360 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -b:a 128k  -max_muxing_queue_size 1024 -y /var/www/AVideo/upload/videos/avideoTmpFile_7_streamers_id_1__360.mp4

7_tmpFile_progress.txt

ffmpeg version 4.2.4-1ubuntu0.1bbb2~18.04 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version='1ubuntu0.1bbb2~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-librsvg --enable-librubberband --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libxml2 --enable-sdl2 --disable-decoders --enable-decoder='aac,ass,bmp,ffv1,ffvhuff,flac,flashsv,flashsv2,flv,gif,h264,huffyuv,libopus,librsvg,libspeex,mjpeg,mp3float,mpeg2video,opus,pcm_f32le,pcm_s16le,pcm_s16le_planar,png,rawvideo,srt,ssa,subrip,vorbis,vp6,vp6a,vp6f,vp8,vp9,webp,webvtt' --disable-encoders --enable-encoder='aac,ass,bmp,ffv1,ffvhuff,flac,flashsv,flashsv2,flv,gif,h264_vaapi,huffyuv,libmp3lame,libopus,libspeex,libvorbis,libvpx_vp8,libvpx_vp9,libx264,libx264rgb,mjpeg,mjpeg_vaapi,mpeg2_vaapi,mpeg2video,pcm_f32le,pcm_s16le,pcm_s16le_planar,png,rawvideo,srt,ssa,subrip,vp8_vaapi,vp9_vaapi,webvtt' --disable-hwaccels --enable-hwaccel='h264_vaapi,h264_vdpau,mjpeg_vaapi,mpeg2_vaapi,mpeg2_vdpau,vp8_vaapi,vp9_vaapi' --disable-parsers --enable-parser='aac,bmp,flac,gif,h264,mjpeg,mpegaudio,mpegvideo,opus,png,vorbis,vp8,vp9' --disable-demuxers --enable-demuxer='aac,alsa,ass,avi,bmp_pipe,caf,concat,dash,ffmetadata,flac,flv,gif,gif_pipe,h264,hls,image2,image2pipe,ivf,jpeg_pipe,kmsgrab,lavfi,matroska,mjpeg,mov,mp3,mpegts,mpegtsraw,nut,ogg,pcm_f32le,pcm_s16le,png_pipe,pulse,rawvideo,rtp,rtsp,srt,swf,w64,wav,webvtt,yuv4mpegpipe' --disable-muxers --enable-muxer='adts,ass,avi,caf,dash,ffmetadata,flac,flv,framecrc,framehash,framemd5,gif,h264,hash,hls,image2,image2pipe,ipod,ivf,matroska,matroska_audio,md5,mjpeg,mkvtimestamp_v2,mov,mp3,mp4,mpeg2video,mpegts,nut,oga,ogg,ogv,opus,pcm_f32le,pcm_s16le,rawvideo,rtp,rtp_mpegts,rtsp,segment,singlejpeg,srt,stream_segment,swf,tee,uncodedframecrc,w64,wav,webm,webm_chunk,webm_dash_manifest,webvtt,yuv4mpegpipe' --disable-protocols --enable-protocol='async,cache,concat,data,file,hls,http,httpproxy,https,icecast,md5,pipe,rtmp,rtmps,rtmpt,rtmpts,rtp,subfile,tcp,tee,tls,udp,unix' --disable-bsfs --enable-bsf='aac_adtstoasc,chomp,filter_units,h264_metadata,h264_mp4toannexb,h264_redundant_pps,mjpeg2jpeg,mpeg2_metadata,noise,null,vp9_metadata,vp9_raw_reorder,vp9_superframe,vp9_superframe_split' --disable-indevs --enable-indev='alsa,lavfi,v4l2,fbdev,xcbgrab,kmsgrab' --disable-outdevs --enable-outdev='alsa,sdl2,xv,fbdev,v4l2' --disable-libdc1394 --enable-libdrm --disable-libiec61883 --disable-chromaprint --disable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/AVideo/upload/videos/7_tmpFile.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    creation_time   : 2010-02-09T01:55:39.000000Z
  Duration: 00:01:00.10, start: 0.000000, bitrate: 733 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 65 kb/s (default)
    Metadata:
      creation_time   : 2010-02-09T01:55:39.000000Z
      handler_name    : Apple Sound Media Handler
    Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 640x360, 612 kb/s, 23.96 fps, 24 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
      creation_time   : 2010-02-09T01:55:39.000000Z
      handler_name    : Apple Video Media Handler
    Stream #0:2(eng): Data: none (rtp  / 0x20707472), 45 kb/s
    Metadata:
      creation_time   : 2010-02-09T01:55:39.000000Z
      handler_name    : hint media handler
    Stream #0:3(eng): Data: none (rtp  / 0x20707472), 5 kb/s
    Metadata:
      creation_time   : 2010-02-09T01:55:39.000000Z
      handler_name    : hint media handler
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55f2f65c43c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55f2f65c43c0] profile High, level 3.0
[libx264 @ 0x55f2f65c43c0] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/var/www/AVideo/upload/videos/avideoTmpFile_7_streamers_id_1__360.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    encoder         : Lavf58.29.100
    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x360, q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2010-02-09T01:55:39.000000Z
      handler_name    : Apple Video Media Handler
      encoder         : Lavc58.54.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2010-02-09T01:55:39.000000Z
      handler_name    : Apple Sound Media Handler
      encoder         : Lavc58.54.100 aac
[mp4 @ 0x55f2f65aa100] Starting second pass: moving the moov atom to the beginning of the file   
frame= 1440 fps=149 q=28.0 Lsize=    4696kB time=00:01:00.13 bitrate= 639.7kbits/s speed=6.23x    
video:3714kB audio:949kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.702760%
[libx264 @ 0x55f2f65c43c0] frame I:9     Avg QP:20.11  size: 35406
[libx264 @ 0x55f2f65c43c0] frame P:801   Avg QP:23.24  size:  3813
[libx264 @ 0x55f2f65c43c0] frame B:630   Avg QP:26.54  size:   683
[libx264 @ 0x55f2f65c43c0] consecutive B-frames: 38.9%  5.6%  8.3% 47.2%
[libx264 @ 0x55f2f65c43c0] mb I  I16..4:  9.1% 10.0% 80.8%
[libx264 @ 0x55f2f65c43c0] mb P  I16..4:  2.2%  1.0%  0.3%  P16..4: 33.5% 11.1%  5.9%  0.0%  0.0%    skip:46.1%
[libx264 @ 0x55f2f65c43c0] mb B  I16..4:  1.3%  0.2%  0.0%  B16..8: 12.0%  4.7%  0.8%  direct: 3.7%  skip:77.2%  L0:45.2% L1:41.3% BI:13.5%
[libx264 @ 0x55f2f65c43c0] 8x8 transform intra:21.9% inter:29.5%
[libx264 @ 0x55f2f65c43c0] coded y,uvDC,uvAC intra: 32.9% 45.0% 15.7% inter: 10.9% 10.2% 0.8%
[libx264 @ 0x55f2f65c43c0] i16 v,h,dc,p: 56% 28% 14%  3%
[libx264 @ 0x55f2f65c43c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 31% 30%  2%  2%  2%  3%  2%  3%
[libx264 @ 0x55f2f65c43c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 17% 15%  7%  8%  7%  8%  8%  8%
[libx264 @ 0x55f2f65c43c0] i8c dc,h,v,p: 60% 23% 13%  5%
[libx264 @ 0x55f2f65c43c0] Weighted P-Frames: Y:2.1% UV:1.4%
[libx264 @ 0x55f2f65c43c0] kb/s:507.06
[aac @ 0x55f2f65c24c0] Qavg: 466.542
m-schmale commented 3 years ago

Ok, I got it to work. I updated ffmpeg to a newer version.

https://ubuntuhandbook.org/index.php/2019/08/install-ffmpeg-4-2-ubuntu-18-04/