Please help: [ffmpeg muxer: 'adv_stream'] os_process_pipe_write for packet data failed

PaxFelix

New Member
Every time exactly after 1 hour streaming my live stream stops. The only way to proceed is to shut down and restart OBS. It always happens at the second, when one hour is over of the time then I pressed the button "Start streaming".

Log file says:

[ffmpeg muxer: 'adv_stream'] os_process_pipe_write for packet data failed

but why and what can I do to fix it?

OBS_stops.jpg


Log file:
(started strange behaving here with audio at 21:35)
21:35:13.053: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mikrofon/Aux)
21:35:13.053:
21:49:32.747: [ffmpeg muxer: 'adv_stream'] os_process_pipe_write for packet data failed
21:49:32.748: [ffmpeg muxer: 'adv_stream'] Output of file 'https://a.upload.youtube.com/http_upload_hls?cid={stream_key}&copy=0&file=out.m3u8' stopped
21:49:32.748: Output 'adv_stream': stopping
21:49:32.748: Output 'adv_stream': Total frames output: 108074
21:49:32.748: Output 'adv_stream': Total drawn frames: 108071 (108080 attempted)
21:49:32.748: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 9 (0.0%)
21:49:32.749: ==== Streaming Stop ================================================
21:49:32.796: ==== Streaming Stop ================================================


------------------------------------------------------------------------------------------------------------------------------------------------------------------------
It's macOS Big Sur
MacBook Pro (16-inch, 2019)
Processor 2,4 GHz 8-core Intel Core i9
Memory 32 GB 2667 MHz DDR4
Graphics AMD Radeon Pro 5500M 8 GB
 

ckai.obs

New Member
I'm having the exact same issue every time after streaming for an hour, literally, every time passing one hour.

Please help~~~~~
Code:
10:37:48.657: CPU Name: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
10:37:48.657: CPU Speed: 2400MHz
10:37:48.657: Physical Cores: 8, Logical Cores: 16
10:37:48.657: Physical Memory: 65536MB Total
10:37:48.657: OS Name: Mac OS X
10:37:48.657: OS Version: Version 12.1 (Build 21C52)
10:37:48.657: Kernel Version: 21.2.0
10:37:48.672: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
10:37:48.673: Current Date/Time: 2022-01-11, 10:37:48
10:37:48.673: Browser Hardware Acceleration: true
10:37:48.673: Portable mode: false
10:37:48.773: OBS 27.1.3 (mac)

Code:
09:34:47.547: ==== Recording Start ===============================================
09:34:47.547: [ffmpeg muxer: 'adv_file_output'] Writing file '/Users/kai/Movies/LeetCode/2022-01-11 09-34-47.mkv'...
09:34:49.062: [VideoToolbox streaming_h264: 'h264']: session created with hardware encoding
09:34:49.063: [VideoToolbox streaming_h264: 'h264']: settings:
09:34:49.063:     vt_encoder_id          com.apple.videotoolbox.videoencoder.h264.gva
09:34:49.063:     bitrate:               4000 (kbps)
09:34:49.063:     fps_num:               30
09:34:49.063:     fps_den:               1
09:34:49.063:     width:                 1920
09:34:49.063:     height:                1080
09:34:49.063:     keyint:                2 (s)
09:34:49.063:     limit_bitrate:         on
09:34:49.063:     rc_max_bitrate:        6000 (kbps)
09:34:49.063:     rc_max_bitrate_window: 1.500000 (s)
09:34:49.063:     hw_enc:                on
09:34:49.063:     profile:               high
09:34:49.063:
09:34:49.066: [CoreAudio AAC: 'adv_stream_aac']: settings:
09:34:49.066:     mode:          AAC
09:34:49.066:     bitrate:       160
09:34:49.066:     sample rate:   48000
09:34:49.066:     cbr:           on
09:34:49.066:     output buffer: 1536
09:34:49.066: [ffmpeg muxer: 'adv_stream'] Using muxer settings:
09:34:49.066:     method=PUT
09:34:49.066:     http_persistent=1
09:34:49.066:     ignore_io_errors=1
09:34:49.066:     http_user_agent=libobs/27.1.3
09:34:49.066:     hls_time=2
09:34:49.067: ==== Streaming Start ===============================================
09:34:49.067: [ffmpeg hls muxer: 'adv_stream'] Writing to path 'https://a.upload.youtube.com/http_upload_hls?cid={stream_key}&copy=0&file=out.m3u8'...
09:35:43.603: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
09:35:43.646: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
09:37:56.704: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
09:37:56.713: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
09:37:58.673: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
09:38:00.812: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
09:38:01.305: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
10:34:51.852: [ffmpeg muxer: 'adv_stream'] os_process_pipe_write for packet data failed
10:34:51.852: [ffmpeg muxer: 'adv_stream'] Output of file 'https://a.upload.youtube.com/http_upload_hls?cid={stream_key}&copy=0&file=out.m3u8' stopped
10:34:51.852: Output 'adv_stream': stopping
10:34:51.852: Output 'adv_stream': Total frames output: 108068
10:34:51.852: Output 'adv_stream': Total drawn frames: 108082
10:34:51.854: ==== Streaming Stop ================================================
 

smash678

New Member
I'm having the exact same issue every time after streaming for an hour, literally, every time passing one hour.

Please help~~~~~
Code:
10:37:48.657: CPU Name: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
10:37:48.657: CPU Speed: 2400MHz
10:37:48.657: Physical Cores: 8, Logical Cores: 16
10:37:48.657: Physical Memory: 65536MB Total
10:37:48.657: OS Name: Mac OS X
10:37:48.657: OS Version: Version 12.1 (Build 21C52)
10:37:48.657: Kernel Version: 21.2.0
10:37:48.672: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
10:37:48.673: Current Date/Time: 2022-01-11, 10:37:48
10:37:48.673: Browser Hardware Acceleration: true
10:37:48.673: Portable mode: false
10:37:48.773: OBS 27.1.3 (mac)

Code:
09:34:47.547: ==== Recording Start ===============================================
09:34:47.547: [ffmpeg muxer: 'adv_file_output'] Writing file '/Users/kai/Movies/LeetCode/2022-01-11 09-34-47.mkv'...
09:34:49.062: [VideoToolbox streaming_h264: 'h264']: session created with hardware encoding
09:34:49.063: [VideoToolbox streaming_h264: 'h264']: settings:
09:34:49.063:     vt_encoder_id          com.apple.videotoolbox.videoencoder.h264.gva
09:34:49.063:     bitrate:               4000 (kbps)
09:34:49.063:     fps_num:               30
09:34:49.063:     fps_den:               1
09:34:49.063:     width:                 1920
09:34:49.063:     height:                1080
09:34:49.063:     keyint:                2 (s)
09:34:49.063:     limit_bitrate:         on
09:34:49.063:     rc_max_bitrate:        6000 (kbps)
09:34:49.063:     rc_max_bitrate_window: 1.500000 (s)
09:34:49.063:     hw_enc:                on
09:34:49.063:     profile:               high
09:34:49.063:
09:34:49.066: [CoreAudio AAC: 'adv_stream_aac']: settings:
09:34:49.066:     mode:          AAC
09:34:49.066:     bitrate:       160
09:34:49.066:     sample rate:   48000
09:34:49.066:     cbr:           on
09:34:49.066:     output buffer: 1536
09:34:49.066: [ffmpeg muxer: 'adv_stream'] Using muxer settings:
09:34:49.066:     method=PUT
09:34:49.066:     http_persistent=1
09:34:49.066:     ignore_io_errors=1
09:34:49.066:     http_user_agent=libobs/27.1.3
09:34:49.066:     hls_time=2
09:34:49.067: ==== Streaming Start ===============================================
09:34:49.067: [ffmpeg hls muxer: 'adv_stream'] Writing to path 'https://a.upload.youtube.com/http_upload_hls?cid={stream_key}&copy=0&file=out.m3u8'...
09:35:43.603: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
09:35:43.646: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
09:37:56.704: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
09:37:56.713: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
09:37:58.673: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
09:38:00.812: hotkeys-cocoa: Using layout 'com.apple.keylayout.PinyinKeyboard'
09:38:01.305: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
10:34:51.852: [ffmpeg muxer: 'adv_stream'] os_process_pipe_write for packet data failed
10:34:51.852: [ffmpeg muxer: 'adv_stream'] Output of file 'https://a.upload.youtube.com/http_upload_hls?cid={stream_key}&copy=0&file=out.m3u8' stopped
10:34:51.852: Output 'adv_stream': stopping
10:34:51.852: Output 'adv_stream': Total frames output: 108068
10:34:51.852: Output 'adv_stream': Total drawn frames: 108082
10:34:51.854: ==== Streaming Stop ================================================
Hi were you ever able to get this fixed? We're starting to experience the exact same issue.
 
Top