[streaming] H264 streaming using VLC
Robert Howard
howard.robert4 at gmail.com
Mon Dec 17 13:34:07 CET 2007
Hi
I need some help with streaming H264 encoded video using VLC.
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,
=============================================
[00000452] main input debug: starting in sync mode
[00000452] main input debug: `enc.h264' successfully opened
[00000473] packetizer_h264 packetizer debug: found NAL_SPS
[00000473] packetizer_h264 packetizer debug: found NAL_PPS
status change: ( new input: enc.h264 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000452] main input debug: EOF reached
[00000452] main input debug: closing input
[00000473] main packetizer debug: removing module "packetizer_h264"
[00000471] main demuxer debug: removing module "h264"
[00000462] main access debug: removing module "access_file"
[00000452] main input debug: destroying sout
[00000455] main private debug: destroying chain... (name=rtp)
[00000458] main http server debug: thread 3031296944 joined
(network/httpd.c:1134)
[00000458] main http server debug: HTTP host removed
[00000457] main http server debug: no host left, stopping httpd
[00000455] main private debug: removing module "stream_out_rtp"
[00000455] main private debug: destroying chain done
Length of buffer to be read = 912858status change: ( stop state: 0 )
[00000452] main input debug: thread 3041786800 joined (input/input.c:412)
[00000446] main playlist: nothing to play
signal 2 received, terminating vlc - do it again in case it gets stuck
status change: ( stop state: 0 )
status change: ( quit )
=============================================
After parsing the entire file, the streamer just stops without streaming.
Any idea what H264 format VLC is looking for?
I am also attaching the H.264 encoded file.
MPEG4IP Tool output for the encoded file is as follows:
Nal length 13 start code 4 bytes
ref 3 type 7 Sequence parameter set
profile: 66
constaint_set0_flag: 0
constaint_set1_flag: 0
constaint_set2_flag: 0
constaint_set3_flag: 0
level_idc: 30
seq parameter set id: 0
log2_max_frame_num_minus4: 1
pic_order_cnt_type: 0
log2_max_pic_order_cnt_lsb_minus4: 2
num_ref_frames: 1
gaps_in_frame_num_value_allowed_flag: 0
pic_width_in_mbs_minus1: 39 (640)
pic_height_in_map_minus1: 29
frame_mbs_only_flag: 1
derived height: 480
direct_8x8_inference_flag: 1
frame_cropping_flag: 0
vui_parameters_present_flag: 0
Nal length 8 start code 4 bytes
ref 3 type 8 Picture parameter set
pic_parameter_set_id: 0
seq_parameter_set_id: 0
entropy_coding_mode_flag: 0
pic_order_present_flag: 0
num_slice_groups_minus1: 0
num_ref_idx_l0_active_minus1: 0
num_ref_idx_l1_active_minus1: 0
weighted_pred_flag: 0
weighted_bipred_idc: 0
pic_init_qp_minus26: 0
pic_init_qs_minus26: 0
chroma_qp_index_offset: 0
deblocking_filter_control_present_flag: 0
constrained_intra_pred_flag: 0
redundant_pic_cnt_present_flag: 0
Nal length 1428 start code 4 bytes
ref 3 type 5 Coded slice of an IDR picture
first_mb_in_slice: 0
slice_type: 7 (I)
pic_parameter_set_id: 0
frame_num: 0 (5 bits)
idr_pic_id: 0
pic_order_cnt_lsb: 0
Nal length 1733 start code 4 bytes
ref 2 type 1 Coded slice of non-IDR picture
first_mb_in_slice: 0
slice_type: 5 (P)
pic_parameter_set_id: 0
frame_num: 1 (5 bits)
pic_order_cnt_lsb: 2
Nal is new picture
Nal length 134 start code 4 bytes
ref 2 type 1 Coded slice of non-IDR picture
first_mb_in_slice: 0
slice_type: 5 (P)
pic_parameter_set_id: 0
frame_num: 2 (5 bits)
pic_order_cnt_lsb: 4
Nal is new picture
- Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/streaming/attachments/20071217/84c3565c/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enc.h264
Type: application/octet-stream
Size: 912858 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/streaming/attachments/20071217/84c3565c/attachment.obj
More information about the streaming
mailing list