[vlc-devel] Re: sout h264

Derk-Jan Hartman hartman at videolan.org
Mon Oct 17 17:39:10 CEST 2005


OK, i just ran into this issue myself and it is definitely NOT fixed.
The cause is quite simply actually. It's this line in livedotcom.cpp

     if( i_pts != tk->i_pts && !tk->b_muxed )
     {
         p_block->i_dts = ( tk->fmt.i_cat == VIDEO_ES ) ? 0 : i_pts;
         p_block->i_pts = i_pts;
     }

This causes blocks with i_dts == 0 to be sent to the h264 packetizer  
which doesn't know how to fix this and sends packets with the i_dts=0  
to stream_output which doesn't accept this, because it needs an i_dts

Test URL:
rtsp://a2047.v1411b.c1411.g.vq.akamaistream.net/ 
5/2047/1411/2_h264_650/1a1a1ae454c430950065de4cbb2f94c226950c7ae655b61a4 
8a91475e243acda3dac194879adde0f/oct_event_2_h264_650.mov

Just receive and stream to MPEG-TS or anything else and you will get  
the problem.

I added a ticket for this:
http://trac.videolan.org/vlc/ticket/397

DJ

On 13 sep 2005, at 18:19, Tom Van Leeuwen wrote:

> Hello,
>
> I'm trying to save a streamed H264 video (encoded with QT7-pro and  
> streaming with Darwin) to a file using VLC. Unfortunately I get  
> error messages.
>
> Following piece of code is the culprit (stream_output.c):
>
>     if( p_buffer->i_dts <= 0 )
>     {
>         msg_Warn( p_sout, "trying to send non-dated packet to  
> stream output!");
>         block_Release( p_buffer );
>         return VLC_SUCCESS;
>     }
>
> It seams that i_dts has a zero value.
>
> Anybody any suggestions on how to solve this ?
>
> Thanks,
>
> TVL
>
> -- 
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
>
>
>

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list