• Nicolas George's avatar
    ffserver: set the sample aspect ratio · 6741f7c9
    Nicolas George authored
    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: 's avatarNicolas George <nicolas.george@normalesup.org>
    6741f7c9
Name
Last commit
Last update
doc Loading commit data...
ffpresets Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswscale Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
subdir.mak Loading commit data...
version.sh Loading commit data...