chenxiaoqino / getusermedia-to-rtmp

186 stars 61 forks source link

ffmpeg error #2

Closed notedit closed 6 years ago

notedit commented 6 years ago
SERVER:Hello from mediarecorder-to-rtmp server!
SERVER:Please set rtmp destination before start streaming.
SERVER:rtmp destination set to:rtmp://localhost:1935/live/live
FFMPEG:ffmpeg version N-86822-g3aca16e Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.38)
  configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-gpl --enable-sdl2 --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libx264 --enable-libopus --enable-libxvid
  libavutil      55. 68.100 / 55. 68.100
  libavcodec     57.102.100 / 57.102.100

FFMPEG:  libavformat    57. 76.100 / 57. 76.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 95.100 /  6. 95.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100

FFMPEG:[libvpx @ 0x7f959a806800] v1.6.1

FFMPEG:[libvpx @ 0x7f959a806800] Invalid sync code 426701.
[libvpx @ 0x7f959a806800] Invalid sync code e06101.

FFMPEG:    Last message repeated 98 times
[libvpx @ 0x7f959a806800] Invalid sync code 426701.
[libvpx @ 0x7f959a806800] Invalid sync code d06101.

FFMPEG:    Last message repeated 2 times
[matroska,webm @ 0x7f959a000a00] Could not find codec parameters for stream 1 (Video: vp8, none(progressive), 480x360): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options

FFMPEG:Input #0, matroska,webm, from 'pipe:':
  Metadata:
    encoder         : Chrome
  Duration: N/A, start: 0.299000, bitrate: N/A
    Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)
    Stream #0:1(eng): Video: vp8, none(progressive), 480x360, SAR 1:1 DAR 4:3, 1k tbr, 1k tbn, 1k tbc (default)

FFMPEG:[libvpx @ 0x7f959b019e00] v1.6.1
Stream mapping:
  Stream #0:1 -> #0:0
FFMPEG: (vp8 (libvpx) -> h264 (libx264))
[NULL @ 0x7f959a806800] Invalid sync code d06101.

FFMPEG:    Last message repeated 95 times
[NULL @ 0x7f959a806800] Invalid sync code 426701.

FFMPEG:[NULL @ 0x7f959a806800] Invalid sync code d86101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7f959a806800] Invalid sync code 426701.
[NULL @ 0x7f959a806800] Invalid sync code c86101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7f959a806800] Invalid sync code 426701.

FFMPEG:[NULL @ 0x7f959a806800] Invalid sync code ca6101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7f959a806800] Invalid sync code 426701.

FFMPEG:[NULL @ 0x7f959a806800] Invalid sync code cc6101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7f959a806800] Invalid sync code 426701.
[NULL @ 0x7f959a806800] Invalid sync code ce6101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7f959a806800] Invalid sync code 426701.
[NULL @ 0x7f959a806800] Invalid sync code c46101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7f959a806800] Invalid sync code 426701.
[NULL @ 0x7f959a806800] Invalid sync code c46101.

if i change to rtmp to a local file, stile the same error.

chenxiaoqino commented 6 years ago

This is not how to report issues on github. Please at least be respectful and provide some more details, otherwise there's no way people can understand and reproduce your scenario. See this before submitting any issue.

notedit commented 6 years ago

sorry for that

this is my ffmpeg info:

ffmpeg version N-86822-g3aca16e Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.38)
  configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-gpl --enable-sdl2 --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libx264 --enable-libopus --enable-libxvid
  libavutil      55. 68.100 / 55. 68.100
  libavcodec     57.102.100 / 57.102.100
  libavformat    57. 76.100 / 57. 76.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 95.100 /  6. 95.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

i use https://github.com/illuspas/Node-Media-Server to test rtmp server.

ffmpeg push a mp4 file to this rtmp server works fine.

this is the error log:


SERVER:Hello from mediarecorder-to-rtmp server!
SERVER:Please set rtmp destination before start streaming.
SERVER:rtmp destination set to:rtmp://localhost:1935/live/live
FFMPEG:ffmpeg version N-86822-g3aca16e Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.38)
  configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-gpl --enable-sdl2 --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libx264 --enable-libopus --enable-libxvid

FFMPEG:  libavutil      55. 68.100 / 55. 68.100
  libavcodec     57.102.100 / 57.102.100
  libavformat    57. 76.100 / 57. 76.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 95.100 /  6. 95.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100

FFMPEG:  libpostproc    54.  6.100 / 54.  6.100

FFMPEG:[libvpx @ 0x7fa62d800600] v1.6.1

FFMPEG:[libvpx @ 0x7fa62d800600] Invalid sync code 426701.
[libvpx @ 0x7fa62d800600] Invalid sync code e06101.

FFMPEG:    Last message repeated 16 times
[libvpx @ 0x7fa62d800600] Invalid sync code 426701.
[libvpx @ 0x7fa62d800600] Invalid sync code d06101.

FFMPEG:    Last message repeated 98 times
[libvpx @ 0x7fa62d800600] Invalid sync code 426701.

FFMPEG:[libvpx @ 0x7fa62d800600] Invalid sync code d86101.
    Last message repeated 3 times
[matroska,webm @ 0x7fa62d00bc00] Could not find codec parameters for stream 1 (Video: vp8, none(progressive), 480x360): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options

FFMPEG:Input #0, matroska,webm, from 'pipe:':
  Metadata:
    encoder         : Chrome
  Duration: N/A, start: 0.359000, bitrate: N/A
    Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)
    Stream #0:1(eng): Video: vp8, none(progressive), 480x360, SAR 1:1 DAR 4:3, 1k tbr, 1k tbn, 1k tbc (default)

FFMPEG:[libvpx @ 0x7fa62c802c00] v1.6.1
Stream mapping:
  Stream #0:1 -> #0:0 (vp8 (libvpx) -> h264 (libx264))
[NULL @ 0x7fa62d800600] Invalid sync code d86101.

FFMPEG:    Last message repeated 94 times
[NULL @ 0x7fa62d800600] Invalid sync code 426701.
[NULL @ 0x7fa62d800600] Invalid sync code c86101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7fa62d800600] Invalid sync code 426701.
[NULL @ 0x7fa62d800600] Invalid sync code ca6101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7fa62d800600] Invalid sync code 426701.

FFMPEG:[NULL @ 0x7fa62d800600] Invalid sync code cc6101.

FFMPEG:    Last message repeated 98 times
[NULL @ 0x7fa62d800600] Invalid sync code 426701.
[NULL @ 0x7fa62d800600] Invalid sync code ce6101.

my os version is mac 10.12.6
chrome version v62

notedit commented 6 years ago

i try to add '-analyzeduration 11000000' but still does not work.

maybe we can not just feed the blob data to ffmpeg?