[vlc-devel] FFmpeg video scaling problem

Brian C. Wiles brian at poldon.com
Thu Nov 15 20:59:23 CET 2007


It doesn't look like there's any difference.  As an experiment, I tried 
changing it to always set the level to 4, but that still didn't work.  
Apparently, the problem lies somewhere else or I missed something.

I should also note that this is the line I'm using to transcode a video:

#transcode{vcodec=mp2v,vb=8192,width=1920,height=1080,canvas-width=1920,canvas-height=1080,canvas-aspect=16:9}:gather:standard{mux=ts,access=udp,dst=239.255.1.1}

This doesn't work under the Qt4 interface either.  For some reason, it 
says it's streaming, but it doesn't.

    -Brian

Christophe Massiot wrote:
> On Wed, Nov 14, 2007, Brian C. Wiles wrote:
>   
>> I finally figured out the source of my video streaming problem.  For 
>> some reason, it works under vlc-0.8.6c, but not under 0.9.0-svn.
>>
>> In modules/codec/ffmpeg/encoder.c, starting at line 384, there is this 
>> chunk of code:
>>
>>         p_context->width = p_enc->fmt_in.video.i_width;
>>         p_context->height = p_enc->fmt_in.video.i_height;
>>         if( p_enc->fmt_out.i_codec == VLC_FOURCC('m', 'p', '2', 'v')
>>              && (p_context->width > 720 || p_context->height > 576) )
>>             p_context->level = 4; /* High level */
>>     
>
> What's the difference between 0.8.6c and 0.9.0-svn in those lines ?
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071115/241bd383/attachment.html>


More information about the vlc-devel mailing list