Newest 'libx264' Questions - Stack Overflow
Les articles publiés sur le site
-
Streaming output of x264_encoder_encode
11 octobre 2013, par user2660369how can I stream the output of x264_encoder_encode over UDP?
This is my Init_x264-function:
x264_param_t param; x264_param_default_preset(¶m, "veryfast", "zerolatency"); param.i_threads = 1; param.i_width = width; param.i_height = height; param.i_fps_num = 30; param.i_fps_den = 1; param.i_keyint_max = 30; param.b_intra_refresh = 1; param.rc.i_rc_method = X264_RC_CRF; param.rc.f_rf_constant = 25; param.rc.f_rf_constant_max = 35; param.b_annexb = 1; param.b_repeat_headers = 1; param.i_log_level = X264_LOG_DEBUG; x264_param_apply_profile(¶m, "baseline"); encoder = x264_encoder_open(¶m); picIn = new x264_picture_t; picOut = new x264_picture_t; x264_picture_alloc(picIn, X264_CSP_I420, width, height); x264_encoder_parameters(encoder, ¶m);
Now instead of saving the output of x264_encoder_encode to disk (using fwrite) I tried to just send it over UDP to my destination. I tried to play it with avplay, but it fails:
[h264 @ 0x7f83f0012e80] non-existing PPS 0 referenced [h264 @ 0x7f83f0012e80] decode_slice_header error [h264 @ 0x7f83f0012e80] no frame! [h264 @ 0x7f83f0012e80] non-existing PPS 0 referenced [h264 @ 0x7f83f0012e80] decode_slice_header error [h264 @ 0x7f83f0012e80] no frame!
With vlc I got different error messages, mostly about missing headers.
-
Use ActionScript and Lib Flash to Record h.264 Webcam In Browser w/o Media Server ?
10 octobre 2013, par Jake SteeleWas wondering if its possible to use ActionScript and maybe wrap libx264 to record and encode a video inside the browser in h.264 format for playback.
If anyone has any examples of something close to this please hook me up!
-
libx264 - Setting up AVCodecContext for HD & SD capturing
8 octobre 2013, par mooseI'm trying to configure the
AVCodecContext
properly in order to capture HD in real-time (1080i) and SD (720 x 576) - also interlaced. I'm using libx264 with the ffmpeg static lib on Windows OS. If anybody can help withflags
,gop_size
,max_b_frames
and all other AVCodecContext's members...For example, I guess I should have
CODEC_FLAG_INTERLACED_ME | CODEC_FLAG_INTERLACED_DCT
flags set. However, what I need is the whole story on how to set all this up. -
X264 Decoder complete frame not come in one NAL Unit
8 octobre 2013, par user894554I am using libX264 library for encoding purpose . After encoding data is in form of NAL Unit ()..... .This is same format( AVC) what I require but problem is one frame come in two Nal Unit ( One frame = (length,data) + (length,data) ) and i need ( One frame = (length,data) in single nal unit).While I am converting into file then play , it show first upper part of screen and then lower . My config parameter are below
param.i_width = 1680//; param.i_height = 948; param.i_fps_num = some no; param.i_fps_den = 1; param.i_keyint_max = 1 ; param.rc.i_rc_method = //; param.rc.f_rf_constant = //; param.rc.f_rf_constant_max = //; param.rc.b_mb_tree = 1; param.rc.i_vbv_max_bitrate = ; // Convert to Kbps param.rc.i_vbv_buffer_size = param.rc.i_vbv_max_bitrate / param.i_fps_num; param.b_repeat_headers = 0; param.b_annexb = 0;
-
Whats the difference between the output of mencoder and libx264 ?
30 septembre 2013, par عبدالمؤمن كاظمi want to know the difference between video output of these two encoders (mencoder and libx264). i guess they're not, since the video information of the codec have different names. thanks in advance.