<div class="gmail_quote">
<div>Hi </div>
<div> </div>
<div>I need some help with streaming H264 encoded video using VLC. </div>
<div> </div>
<div>I have a hardware encoder using which I am encoding H.264 file. I am able to play the file in latest version of VLC 0.8.6d, however I am unable to stream the file. I am getting following trace while streaming,</div>
<div> </div>
<div>=============================================</div>
<div>[00000452] main input debug: starting in sync mode<br>[00000452] main input debug: `enc.h264' successfully opened<br>[00000473] packetizer_h264 packetizer debug: found NAL_SPS<br>[00000473] packetizer_h264 packetizer debug: found NAL_PPS
<br>status change: ( new input: enc.h264 )<br>status change: ( audio volume: 256 )<br>status change: ( play state: 1 )<br>[00000452] main input debug: EOF reached<br>[00000452] main input debug: closing input<br>[00000473] main packetizer debug: removing module "packetizer_h264"
<br>[00000471] main demuxer debug: removing module "h264"<br>[00000462] main access debug: removing module "access_file"</div>
<div>[00000452] main input debug: destroying sout<br>[00000455] main private debug: destroying chain... (name=rtp)<br>[00000458] main http server debug: thread 3031296944 joined (network/httpd.c:1134)<br>[00000458] main http server debug: HTTP host removed
<br>[00000457] main http server debug: no host left, stopping httpd<br>[00000455] main private debug: removing module "stream_out_rtp"<br>[00000455] main private debug: destroying chain done<br>Length of buffer to be read = 912858status change: ( stop state: 0 )
<br>[00000452] main input debug: thread 3041786800 joined (input/input.c:412)<br>[00000446] main playlist: nothing to play<br>signal 2 received, terminating vlc - do it again in case it gets stuck<br>status change: ( stop state: 0 )
<br>status change: ( quit )</div>
<div>
<div>=============================================</div>
<div> </div>
<div>After parsing the entire file, the streamer just stops without streaming. Any idea what H264 format VLC is looking for?</div>
<div> </div>
<div>I am also attaching the H.264 encoded file.</div>
<div> </div>
<div>MPEG4IP Tool output for the encoded file is as follows:</div>
<div> </div>
<div>Nal length 13 start code 4 bytes <br> ref 3 type 7 Sequence parameter set<br> profile: 66<br> constaint_set0_flag: 0<br> constaint_set1_flag: 0<br> constaint_set2_flag: 0<br> constaint_set3_flag: 0<br> level_idc: 30
<br> seq parameter set id: 0<br> log2_max_frame_num_minus4: 1<br> pic_order_cnt_type: 0<br> log2_max_pic_order_cnt_lsb_minus4: 2<br> num_ref_frames: 1<br> gaps_in_frame_num_value_allowed_flag: 0<br> pic_width_in_mbs_minus1: 39 (640)
<br> pic_height_in_map_minus1: 29<br> frame_mbs_only_flag: 1<br> derived height: 480<br> direct_8x8_inference_flag: 1<br> frame_cropping_flag: 0<br> vui_parameters_present_flag: 0<br>Nal length 8 start code 4 bytes
<br> ref 3 type 8 Picture parameter set<br> pic_parameter_set_id: 0<br> seq_parameter_set_id: 0<br> entropy_coding_mode_flag: 0<br> pic_order_present_flag: 0<br> num_slice_groups_minus1: 0<br> num_ref_idx_l0_active_minus1: 0
<br> num_ref_idx_l1_active_minus1: 0<br> weighted_pred_flag: 0<br> weighted_bipred_idc: 0<br> pic_init_qp_minus26: 0<br> pic_init_qs_minus26: 0<br> chroma_qp_index_offset: 0<br> deblocking_filter_control_present_flag: 0
<br> constrained_intra_pred_flag: 0<br> redundant_pic_cnt_present_flag: 0<br>Nal length 1428 start code 4 bytes <br> ref 3 type 5 Coded slice of an IDR picture<br> first_mb_in_slice: 0<br> slice_type: 7 (I)<br> pic_parameter_set_id: 0
<br> frame_num: 0 (5 bits)<br> idr_pic_id: 0<br> pic_order_cnt_lsb: 0<br>Nal length 1733 start code 4 bytes <br> ref 2 type 1 Coded slice of non-IDR picture<br> first_mb_in_slice: 0<br> slice_type: 5 (P)<br> pic_parameter_set_id: 0
<br> frame_num: 1 (5 bits)<br> pic_order_cnt_lsb: 2<br>Nal is new picture<br>Nal length 134 start code 4 bytes <br> ref 2 type 1 Coded slice of non-IDR picture<br> first_mb_in_slice: 0<br> slice_type: 5 (P)<br> pic_parameter_set_id: 0
<br> frame_num: 2 (5 bits)<br> pic_order_cnt_lsb: 4<br>Nal is new picture</div>
<div> </div>
<div>- Rob</div>
<div> </div></div></div><br>