Stream webcam between local computers

Anything that does not fit into the other categories.
Post Reply
xav12358
Posts: 1
Joined: Sun Jul 21, 2019 6:31 pm

Stream webcam between local computers

Post by xav12358 » Sun Jul 21, 2019 6:41 pm

Hello,

I have my first computer with my ffserver and my ffserver.conf file:
On my computer A I get that configuration file:

Code: Select all

HttpPort 8090 
RtspPort 5554
HttpBindAddress 0.0.0.0 
MaxClients 1000 
MaxBandwidth 10000 
NoDaemon 

<Feed feed1.ffm> 
File /tmp/feed1.ffm 
FileMaxSize 128k 
ACL allow 127.0.0.1
ACL allow 192.168.1.17
</Feed> 

<Stream test.mpeg4>
Feed feed1.ffm
Format rtp
VideoCodec mpeg4
VideoFrameRate 15
VideoBufferSize 80000
VideoBitRate 100
VideoQMin 1
VideoQMax 5
VideoSize 352x288
PreRoll 0
Noaudio
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>
On the A computer I launch the stream:

Code: Select all

ffmpeg -f v4l2 -s 352x288 -r 25 -i /dev/video1  http://127.0.0.1:8090/feed1.ffm
When I run that command :

Code: Select all

ffplay http://127.0.0.1:8090/feed1.ffm
I get the stream from the ffserver. But When I do that on my computer B (IP : 192.168.1.17) I get no stream :

Code: Select all

    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
But when I stop the the stream on computer A I get a image on computer B and then the error:

Code: Select all

[m4v @ 0x7f61c0000b80] Format m4v detected only with low score of 5, misdetection possible!
[mpeg4 @ 0x7f61c0004700] time_increment_bits 0 is invalid in relation to the current bitstream, this is likely caused by a missing VOL header
[mpeg4 @ 0x7f61c0004700] time_increment_bits set to 3 bits, based on bitstream analysis
[mpeg4 @ 0x7f61c0004700] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
Input #0, m4v, from 'http://192.168.1.13:8090/feed1.ffm':
  Duration: N/A, start: 0.040000, bitrate: N/A
    Stream #0:0: Video: mpeg4 (Simple Profile), yuv420p, 352x288 [SAR 1:1 DAR 11:9], 15 fps, 15 tbr, 1200k tbn, 15 tbc
[mpeg4 @ 0x7f61c0039880] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x7f61c0039880] warning: first frame is no keyframe
[mpeg4 @ 0x7f61c0039880] slice end not reached but screenspace end (135 left 7E0002, score= -3)
[mpeg4 @ 0x7f61c0039880] concealing 88 DC, 88 AC, 88 MV errors in P frame
[mpeg4 @ 0x7f61c0043740] Error at MB: 324
[mpeg4 @ 0x7f61c0043740] marker does not match f_code
    Last message repeated 3 times
[mpeg4 @ 0x7f61c0043740] concealing 88 DC, 88 AC, 88 MV errors in P frame
[NULL @ 0x7f61c0004700] framerate==0
[mpeg4 @ 0x7f61c0043740] slice end not reached but screenspace end (132 left 700010, score= -42)
[mpeg4 @ 0x7f61c0043740] concealing 88 DC, 88 AC, 88 MV errors in P frame
[mpeg4 @ 0x7f61c0048ac0] illegal dc vlcvq=   24KB sq=    0B f=0/1   
[mpeg4 @ 0x7f61c0048ac0] Error at MB: 25
[mpeg4 @ 0x7f61c0048ac0] marker does not match f_code
    Last message repeated 2 times
[mpeg4 @ 0x7f61c0048ac0] concealing 88 DC, 88 AC, 88 MV errors in I frame
[NULL @ 0x7f61c0004700] framerate==0
[mpeg4 @ 0x7f61c0048ac0] ac-tex damaged at 18 6KB sq=    0B f=0/1   
[mpeg4 @ 0x7f61c0048ac0] Error at MB: 156
[mpeg4 @ 0x7f61c0048ac0] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x7f61c0048ac0] concealing 57 DC, 57 AC, 57 MV errors in P frame
[mpeg4 @ 0x7f61c0048ac0] ac-tex damaged at 7 64KB sq=    0B f=0/1   
[mpeg4 @ 0x7f61c0048ac0] Error at MB: 145
[mpeg4 @ 0x7f61c0048ac0] marker does not match f_code
    Last message repeated 2 times
[mpeg4 @ 0x7f61c0048ac0] concealing 66 DC, 66 AC, 66 MV errors in P frame
[mpeg4 @ 0x7f61c0040f00] slice end not reached but screenspace end (132 left 700010, score= -97)
[mpeg4 @ 0x7f61c0040f00] concealing 88 DC, 88 AC, 88 MV errors in P frame
[mpeg4 @ 0x7f61c002df00] Error at MB: 19q=   22KB sq=    0B f=0/1   
[mpeg4 @ 0x7f61c002df00] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x7f61c002df00] concealing 88 DC, 88 AC, 88 MV errors in P frame
[mpeg4 @ 0x7f61c0039880] framerate==0B vq=   25KB sq=    0B f=0/1   
[mpeg4 @ 0x7f61c0039880] header damaged
[mpeg4 @ 0x7f61c0048ac0] ac-tex damaged at 6 32KB sq=    0B f=0/1   
[mpeg4 @ 0x7f61c0048ac0] Error at MB: 75
[mpeg4 @ 0x7f61c0048ac0] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x7f61c0048ac0] concealing 67 DC, 67 AC, 67 MV errors in P frame
[mpeg4 @ 0x7f61c002df00] slice end not reached but screenspace end (130 left 400040, score= -140)
[mpeg4 @ 0x7f61c002df00] concealing 88 DC, 88 AC, 88 MV errors in P frame
[mpeg4 @ 0x7f61c0043740] ac-tex damaged at 17 7
[mpeg4 @ 0x7f61c0043740] Error at MB: 178
[mpeg4 @ 0x7f61c0043740] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x7f61c0043740] concealing 88 DC, 88 AC, 88 MV errors in I frame
[mpeg4 @ 0x7f61c0040f00] framerate==0
[mpeg4 @ 0x7f61c0040f00] header damaged
[mpeg4 @ 0x7f61c0043740] Error at MB: 127=   13KB sq=    0B f=1/2   
[mpeg4 @ 0x7f61c0043740] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x7f61c0043740] concealing 66 DC, 66 AC, 66 MV errors in P frame
[mpeg4 @ 0x7f61c0043740] ac-tex damaged at 0 52KB sq=    0B f=1/2   
[mpeg4 @ 0x7f61c0043740] Error at MB: 115
[mpeg4 @ 0x7f61c0043740] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x7f61c0043740] concealing 66 DC, 66 AC, 66 MV errors in P frame
[mpeg4 @ 0x7f61c0048ac0] slice end not reached but screenspace end (135 left 7E0002, score= -172)
[mpeg4 @ 0x7f61c0048ac0] concealing 88 DC, 88 AC, 88 MV errors in P frame
[mpeg4 @ 0x7f61c0043740] ac-tex damaged at 7 5
[mpeg4 @ 0x7f61c0043740] Error at MB: 122
[mpeg4 @ 0x7f61c0043740] concealing 66 DC, 66 AC, 66 MV errors in P frame
I don't understand the behaviour on the computer B. Can someone explain me why?
Then I want to use rstp stream. On the configuration file it seems the rtsp is activate but I can stream with rtp or rtsp on the computer A and B. How can I use rtp or rtsp ?

Post Reply
'