New submission from mdbelt <[email protected]>:

What you were trying to accomplish:  I am trying to stream multiple 
formats from my webcam simultaneously.

The problem you encountered:  Once the second feed is configured the 
original feed 1) ignores the transpose command [ -vf "transpose=2" ];  
2) the output from is garbled & partially green.

The exact command line you were using:
sudo ffserver -f /etc/ffserver_broken.conf -loglevel debug &
###### Begin ffserver config file #####  
Port 8080
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
<Feed feed1.ffm>
File /ramdisk/feed1.ffm
FileMaxSize 4096K
Launch ffmpeg -v 9 -loglevel 99 -threads 0 -r 25 -s 320x176 -b 256 -vf 
"transpose=2" -f video4linux2 -i /dev/video0 -f alsa -i hw:1,0 -vol 
204800
ACL allow 127.0.0.1
</Feed>

<Stream LiveAquarium.flv>
Feed feed1.ffm
Format flv
Title "Michael's Live Aquarium"
VideoSize 320x176
VideoFrameRate 6
VideoBitRate 256
NoAudio
</Stream>

<Stream LiveAquarium.mjpg>
Feed feed1.ffm
Format mjpeg
Title "Michael's Live Aquarium"
VideoSize 320x176
VideoFrameRate 6
VideoBitRate 256
NoAudio
</Stream>

<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>

###### End ffserver config file #####

The full, uncut console output provided by ffmpeg -v 9 -loglevel 99:
###### Begin Console output ######
sudo ffserver -f /etc/ffserver_broken.conf -loglevel debug &

FFserver version git-7e06e0e, Copyright (c) 2000-2011 the FFmpeg 
developers
  built on Feb 25 2011 09:17:35 with gcc 4.4.5
  configuration: --enable-gpl --enable-version3 --enable-nonfree --
enable-postproc --enable-libfaac --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --
enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --
enable-x11grab
  libavutil    50. 39. 0 / 50. 39. 0
  libavcodec   52.113. 1 / 52.113. 1
  libavformat  52.102. 0 / 52.102. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 12. 0 /  0. 12. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Fri Feb 25 13:08:02 2011 Probed with size=2048 and score=101
Fri Feb 25 13:08:02 2011 FFserver started.
Fri Feb 25 13:08:02 2011 Launch commandline: ffmpeg -v 9 -loglevel 99 -
threads 0 -r 25 -s 320x176 -b 256 -vf transpose=2 -f video4linux2 -i 
/dev/video0 -f alsa -i hw:1,0 -vol 204800 
http://127.0.0.1:8080/feed1.ffm
Fri Feb 25 13:08:03 2011 Probed with size=2048 and score=101
Fri Feb 25 13:08:03 2011 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 
106549
Fri Feb 25 13:08:21 2011 Probed with size=2048 and score=101

###### End Console output ######

Notes:  If I comment out either of the Stream (flv or mjpg) the other 
works.  Also note the stat page shows the size of one feed transposed 
(as configured) & the other one not transposed.  Please let me know if 
more info is needed.  I really want to support multiple feeds to accommodate 
both flash & html5 clients.

----------
messages: 13764
nosy: mdbelt
priority: normal
status: new
substatus: new
title: FFserver stream multiple formats from webcam ignores transpose 
configuration and scrambles picture
topic: ffmpeg, ffserver
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2628>
________________________________________________

Reply via email to