OSDN Git Service

ffserver: set the sample aspect ratio
authorNicolas George <nicolas.george@normalesup.org>
Wed, 16 Feb 2011 13:53:08 +0000 (14:53 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 16 Feb 2011 23:37:00 +0000 (00:37 +0100)
commit6741f7c9be4913e084ad067571f3f29853ec5d5a
treed9f37f32e2d0f2c2e47c0e52b3ab780e00d5e675
parent0fa904c9d845d4a47372e619067e21991bb39b06
ffserver: set the sample aspect ratio

Hi.

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 -
NoDaemon
RTSPPort 5454
<Stream test1-rtsp.mpg>
Format rtp
File "/tmp/test1-rtsp.mpg"
</Stream>

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

Regards,

--
  Nicolas George

From 1b89c3c2164335060e87567b27deb0d354e0a814 Mon Sep 17 00:00:00 2001
From: Nicolas George <nicolas.george@normalesup.org>
Date: Wed, 16 Feb 2011 14:44:31 +0100
Subject: [PATCH] ffserver: set the sample aspect ratio.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
ffserver.c