Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行main.py时提示 [Media Service][ERROR] can't sync to MPEG frame #4

Closed
eGluZl opened this issue Aug 14, 2018 · 7 comments
Closed

Comments

@eGluZl
Copy link

eGluZl commented Aug 14, 2018

image

@smilecc
Copy link
Owner

smilecc commented Aug 16, 2018

一运行就提示这个吗?

@eGluZl
Copy link
Author

eGluZl commented Aug 16, 2018

是的是的,不过后来我发现这是因为music的目录里面有flac格式的音乐,替换成MP3格式的之后就没这个错误了。但是再次运行main.py却提示“Permission denied”。我是在我的云服务器上面运行的,系统是Arch x64 , X264以及ffmpeg都是直接用pacman安装的,不知道是否是因为这个??
image

另外可否拿个联系方式?tg?

@eGluZl
Copy link
Author

eGluZl commented Aug 16, 2018 via email

@smilecc
Copy link
Owner

smilecc commented Aug 16, 2018

看起来是./log/ffmpeg.log没有写入权限,尝试一下

$ chmod 777 ./log/ffmpeg.log

@eGluZl
Copy link
Author

eGluZl commented Aug 16, 2018

测试了一下,没加777权限前,ffmpeg里面是有内容的。
我截取了里面的一段:

ffmpeg version n4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.1.1 (GCC) 20180531
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvenc --enable-omx --enable-shared --enable-version3
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, image2, from './resource/img/darksouls.jpg':
Duration: 00:00:00.33, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 3 fps, 3 tbr, 3 tbn, 3 tbc
[mp3 @ 0x55786b5dbd00] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from './resource/music/withme.mp3':
Metadata:
track : 11
title : With Me
artist : Sum 41
album : All the Good Shit: 14 Solid Gold Hits, 2001-2008
genre : 朋克/新浪潮【Punk&New Wave Music】
comment : 163 key(Don't modify):6YURAByiRHQ6CI5tvtxzQg==
date : 2009
Duration: 00:04:50.38, start: 0.000000, bitrate: 320 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
Codec AVOption crf (Select the quality for constant quality mode) specified for output file #0 (rtmp://live-send.acg.tv/livelive_597174_1502522?streamname=live_597174_1502522&key=d78125ad74b985583938ba4d4d8ce400) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Codec AVOption preset (Configuration preset) specified for output file #0 (rtmp://live-send.acg.tv/livelive_597174_1502522?streamname=live_597174_1502522&key=d78125ad74b985583938ba4d4d8ce400) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[rtmp @ 0x55786b600100] Server error: Failed to publish
rtmp://live-send.acg.tv/livelive_597174_1502522?streamname=live_597174_1502522&key=d78125ad74b985583938ba4d4d8ce400: Operation not permitted

log里面都是这一段东西。

此外,config里面的cookie是填小号的还是大号的呢?
话说,tg搜索不到你的id,233.刚想起,现在+86的手机号不能私聊了,联系方式就罢了吧~

@smilecc
Copy link
Owner

smilecc commented Aug 16, 2018

你确认这个rtmp地址是可用的吗?因为我看到我bilibili的推流地址是rtmp://qn.live-send.acg.tv/live-qn/为开头的,当然也有可能是不同用户的不一样。
可以尝试用OBS向这个地址推流试一下。

cookie的话大号小号都可以,我个人建议用小号。

@eGluZl
Copy link
Author

eGluZl commented Aug 16, 2018 via email

@smilecc smilecc closed this as completed Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants