[FFmpeg-devel] [PATCH] ffserver: set the sample aspect ratio

Nicolas George nicolas.george
Wed Feb 16 14:53:08 CET 2011


It seems that ffserver sets sample_aspect_ratio to an invalid value and lavf
rejects it.

I am not sure what I am doing here, but the attached patch actually solves
something: using the following config:

CustomLog -
RTSPPort 5454
<Stream test1-rtsp.mpg>
Format rtp
File "/tmp/test1-rtsp.mpg"

it allows a somewhat old ffplay (unaffected by the content-base issue I
spoke of in another thread) to play the stream.

Without it, ffserver logs this and closes the stream:

Wed Feb 16 14:52:14 2011 [rtp @ 0x1399de0]Aspect ratio mismatch between encoder and muxer layer


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ffserver-set-the-sample-aspect-ratio.patch
Type: text/x-diff
Size: 888 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110216/3044f32b/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110216/3044f32b/attachment.pgp>

More information about the ffmpeg-devel mailing list