[vlc-devel] [PATCH 0/2] Fix #3306: H.264/MP4 -> TS produces black
    Rafaël Carré 
    funman at videolan.org
       
    Sun Nov 13 06:27:06 CET 2011
    
    
  
These 2 patches fix streaming h264/mp4 in TS with the sample I have.
This sample has no ctts box so the PTS of all frames is 0.
Same stream works with FFmpeg TS muxer because all avformat muxers set 
PTS to DTS if codec is not using b frames (has_b_frames).
In the FFmpeg mp4 demux (mov.c) that flag is set only when ctts box is 
not found.
vlc demux   vlc mux     => fail
libav demux vlc mux     => fail (something weird going one, didn't investigate)
vlc demux   libav mux   => works
command: (use mux=ffmpeg{mux=mpegts} to test FFmpeg)
cvlc -vv --ignore-config --no-media-library --rt-priority --no-drop-late-frames --ttl 32 --sout "#std{access=udp,mux=ts,dst=224.1.1.1:1234}"
.... 
 modules/demux/mp4/mp4.c |    4 +---
 modules/mux/mpeg/ts.c   |   18 ++++++++++++------
 2 files changed, 13 insertions(+), 9 deletions(-)
    
    
More information about the vlc-devel
mailing list