obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
58.51k stars 7.81k forks source link

x264 encode failed #91

Closed KirillBibik closed 10 years ago

KirillBibik commented 10 years ago

Sometimes x264_encoder_encode return -1 Usualy when my output_width and output_height are (2560 x 1440)

also

libobs.dll!video_output_disconnect(video_output * video, void (void *, video_data *) * callback, void * param) Line 312 C
libobs.dll!remove_connection(obs_encoder * encoder) Line 159    C
libobs.dll!full_stop(obs_encoder * encoder) Line 496    C
libobs.dll!do_encode(obs_encoder * encoder, encoder_frame * frame) Line 514 C
libobs.dll!receive_video(void * param, video_data * frame) Line 555 C

libobs.dll!video_output_cur_frame(video_output * video) Line 118 C

freeze on video_output_disconnect in pthread_mutex_lock(&video->input_mutex); because

video_output_cur_frame lock mutex - video->input_mutex

jp9000 commented 10 years ago

We talked off github -- did you see if the replacement x264 library worked? I'll also check out the mutex lock

KirillBibik commented 10 years ago

still happening sometimes.

jp9000 commented 10 years ago

Unfortunately I can't seem to replicate the issue. Also, x264 is set to log to output if there are any errors/warnings, so you should check the log file to see if x264 messages popped up.

jp9000 commented 10 years ago

KirillBibik - I still have not encountered this issue, nor has anyone else in core development. I can't help but be concerned that there may be some issue with x264 or potentially some sort of custom configuration on your end. Please feel free to email me about this, however.