[FFmpeg-user] Feeding DVR to ffserver

Alex Povolotsky tarkhil at corp.infotel.ru
Wed Feb 24 15:41:47 CET 2016


On 24.02.2016 17:36, Alex Povolotsky wrote:
>>> <Feed feed1.ffm>
>>> File /tmp/feed1.ffm
>>
>> Can ffserver write to this location?

Yes.

Just in case:

[16:59] superbook:~ % ls -ls /tmp/feed1.ffm
5 -rw-r--r--  1 root  wheel  4096 Feb 24 17:39 /tmp/feed1.ffm
[17:39] superbook:~ % date
Wed Feb 24 17:39:33 MSK 2016

Yes I know that running ffserver as root is bad, but I'm doing it only
as long as I'm testing the whole thing.

>>> AudioChannels 0
>>
>> Instead of AudioChannels 0 use NoAudio

Done.

# /usr/local/bin/tanidvr -m 1 -c 1 -m 1 -t dvr -u admin -w admin |
ffmpeg -i -  http://localhost:8090/feed1.ffm

...

INFO (main): Media container: DHAV
Invalid UE golomb code
    Last message repeated 1 times
Input #0, matroska,webm, from 'pipe:':
  Metadata:
    encoder         : TaniDVR 1.4.1
  Duration: 00:00:00.27, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 352x288,
SAR 12:11 DAR 4:3, 24.98 fps, 24.98 tbr, 1000k tbn, 2000k tbc
[mpeg1video @ 0x808476400] bitrate tolerance 21333 too small for bitrate
64000, overriding
[mpeg1video @ 0x808476400] too many threads/slices (9), reducing to 8
[mpeg1video @ 0x808476400] MPEG1/2 does not support 3/1 fps
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Metadata:
    encoder         : TaniDVR 1.4.1
    creation_time   : 2016-02-24 17:41:07
    Stream #0:0: Video: mpeg1video, none, 160x128, q=2-31, 64 kb/s, SAR
16:15 DAR 4:3, 25 fps, 3 tbc
    Metadata:
      encoder         : Lavc56.60.100 mpeg1video
    Stream #0:1: Video: msmpeg4v3 (msmpeg4), none, 352x240, q=2-31, 256
kb/s, SAR 10:11 DAR 4:3, 24.98 fps, 15 tbc
    Metadata:
      encoder         : Lavc56.60.100 msmpeg4
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg1video (native))
  Stream #0:0 -> #0:1 (h264 (native) -> msmpeg4v3 (msmpeg4))
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
FATAL ERROR (main): Unable to write to target: -1.


Same error here

Alex


More information about the ffmpeg-user mailing list