Skip to content

[Help] subprocess.CalledProcessError: Command returned non-zero exit status 251. #15

Description

@AlfredoJamesPacino

你好老铁,
我是这样设置的,

looplive add -bs "rtmp://live-push.bilivideo.com/live-bvc/" -bk "?streamname=live_xxxx&key=xxxxxx&schedule=rtmp&pflag=1" -f "/vo"

运行后返回以数据,麻烦 看下哈.谢.

looplive bili
ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5bdeaac8bb00] Unknown cover type: 0x1.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '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/vo/430pig.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 2025-04-30T11:55:21.000000Z
Hw : 1
bitrate : 10200000
maxrate : 0
te_is_reencode : 1
encoder : Lavf61.1.100
Duration: 00:17:05.91, start: 0.000000, bitrate: 7317 kb/s
Stream #0:00x1: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 7117 kb/s, 30 fps, 30 tbr, 30 tbn (default)
Metadata:
creation_time : 2025-04-30T11:55:21.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 194 kb/s (default)
Metadata:
creation_time : 2025-04-30T11:55:21.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]
[out#0/flv @ 0x5bdeaac909c0] Error opening output rtmp://live-push.bilivideo.com/live-bvc/?streamname=live_xxxx&key=xxxxxx&schedule=rtmp&pflag=1: Input/output error
Error opening output file rtmp://live-push.bilivideo.com/live-bvc/?streamname=live_xxxx&key=xxxxx&schedule=rtmp&pflag=1.
Error opening output files: Input/output error
Traceback (most recent call last):
File "/root/myenv/bin/looplive", line 8, in
sys.exit(cli())
^^^^^
File "/root/myenv/lib/python3.12/site-packages/looplive/cli.py", line 93, in cli
BiliController(cc).stream()
File "/root/myenv/lib/python3.12/site-packages/looplive/controller/bili_controller.py", line 19, in stream
scan_folder_and_execute(self.folder, self.stream_url)
File "/root/myenv/lib/python3.12/site-packages/looplive/execute/scan_and_execute.py", line 13, in scan_folder_and_execute
subprocess.run(command, shell=True, check=True)
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'ffmpeg -re -i /vo/430pig.mp4 -c copy -f flv "rtmp://live-push.bilivideo.com/live-bvc/?streamname=live_xxxxx&key=xxxxx&schedule=rtmp&pflag=1"' returned non-zero exit status 251.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions