1 |
I'm trying to create a streaming server using ffmpeg, and I'm stuck, so |
2 |
please advise if You can. |
3 |
I've tested : |
4 |
|
5 |
* *ffmpeg-0.4.9_p20080326* |
6 |
* *ffmpeg-0.4.9_p20070616* |
7 |
|
8 |
Both versions behave the same way. This is my emerge -pv ffmpeg |
9 |
/media-video/ffmpeg-0.4.9_p20080326 USE="a52 aac amr bindist debug doc |
10 |
encode imlib mmx mp3 network theora threads x264 xvid zlib -X (-altivec) |
11 |
-hardcoded-tables -ieee1394 -ipv6 -sdl -test -truetype -vorbis"/ |
12 |
|
13 |
This command: |
14 |
*# ffmpeg -r 25 -s 352x288 -y -f video4linux2 -vc 1 -i /dev/video0 -f |
15 |
oss -itsoffset 00:00:00.500 -i /dev/dsp -isync -vcodec wmv1 -acodec |
16 |
wmav1 /tmp/test.wmv |
17 |
*gives me a perfect wmv file created from bt878 card and audio card |
18 |
|
19 |
Unfortunatelly when I run: |
20 |
*# ffserver -f /etc/ffserver/ffserver.conf |
21 |
# ffmpeg -r 25 -s vga -y -f video4linux2 -vc 1 -i /dev/video0 -f oss |
22 |
-itsoffset 00:00:00.500 -i /dev/dsp -isync http://localhost:8090/feed.ffm* |
23 |
I get no viewable steam from ffserver, although everything is encoding |
24 |
like it should (at least that is what shell tells me) |
25 |
|
26 |
My ffserver.conf : (the important parts atleast) |
27 |
|
28 |
############################################# |
29 |
Port 8090 |
30 |
BindAddress 0.0.0.0 |
31 |
MaxClients 1000 |
32 |
MaxBandwidth 20000 |
33 |
CustomLog /var/log/ffserver/access_log |
34 |
|
35 |
<Feed feed.ffm> |
36 |
FileMaxSize 200K |
37 |
ACL allow 127.0.0.1 |
38 |
</Feed> |
39 |
|
40 |
<Stream stream.asf> |
41 |
Feed feed.ffm |
42 |
Format asf |
43 |
AudioBitRate 64 |
44 |
AudioChannels 1 |
45 |
AudioSampleRate 22050 |
46 |
VideoBitRate 256 |
47 |
VideoBufferSize 400 |
48 |
VideoFrameRate 15 |
49 |
VideoSize 160x128 |
50 |
VideoGopSize 25 |
51 |
AudioCodec wmav1 |
52 |
VideoCodec wmv1 |
53 |
VideoQMin 3 |
54 |
VideoQMax 16 |
55 |
Preroll 15 |
56 |
StartSendOnKey |
57 |
</Stream> |
58 |
########################################### |