imbrianj / switchBoard

Control of Internet connected devices within a given network via web interface.
MIT License
201 stars 53 forks source link

ffmpeg on Raspbian throwing errors #67

Closed imbrianj closed 7 years ago

imbrianj commented 7 years ago

Using this precompiled binary: https://github.com/ccrisan/motioneye/wiki/Install-On-Raspbian

I imagine I need to have some other lib installed, but not sure which. This same code does work on my Ubuntu machine.

ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (Raspbian 4.9.2-10)
  configuration: --prefix=/usr --enable-gpl --enable-libx264 --enable-nonfree --enable-shared --disable-static

  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100

Input #0, mjpeg, from 'http://192.168.1.7/videostream.cgi?user=USER&pwd=PASSWORD':
  Duration: N/A, start: 1476661773.238119, bitrate: N/A

    Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 25 tbr, 1200k tbn, 25 tbc

http://192.168.1.7/videostream.asf?user=USER&pwd=PASSWORD: Invalid data found when processing input
imbrianj commented 7 years ago

asf only provides sound for the combined ffmpeg output.

VLC lists videostream.asf as:

Stream 0: Type: Video Codec: Motion JPEG Video (MJPG) Decoded format: Planar 4:2:2 YUV full scale

Stream 1: Type: Audio Codec: IMA WAV ADPCM Audio (ms) Channels: Mono Sample rate: 8000 Hz Bits per sample: 16

imbrianj commented 7 years ago

Google suggests -acodec adpcm_ima_wav

imbrianj commented 7 years ago

Could also set a flag to disable audio, which would reduce internal bandwidth as well as act as a temporary work-around.

imbrianj commented 7 years ago

Welp, looks like it was a temporary hiccup. Not sure why, but no additional changes necessary and I'm pulling in seemingly good data. ¯(ツ)