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

[1.x] Failed to compile on Debian9 with --enable-post-processing #3064

Closed
Cossack9989 opened this issue Sep 13, 2022 · 3 comments
Closed

[1.x] Failed to compile on Debian9 with --enable-post-processing #3064

Cossack9989 opened this issue Sep 13, 2022 · 3 comments
Labels
multistream Related to Janus 1.x

Comments

@Cossack9989
Copy link

Cossack9989 commented Sep 13, 2022

What version of Janus is this happening on?
1.1.0(master)

Have you tested a more recent version of Janus too?
Yes, 1.0.4

Was this working before?
In 1.1.0

postprocessing/pp-h264.c: In function ‘janus_pp_h264_create’:
postprocessing/pp-h264.c:76:20: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 fctx->video_codec = codec;
          ^
postprocessing/pp-h264.c:125:6: error: ‘AVFormatContext {aka struct AVFormatContext}’ has no member named ‘url’
 fctx->url = g_strdup(filename);
   ^~
postprocessing/pp-h264.c: In function ‘janus_pp_h264_close’:
postprocessing/pp-h264.c:557:14: error: ‘AVFormatContext {aka struct AVFormatContext}’ has no member named ‘url’
  g_free(fctx->url);
       ^~
Makefile:2591: recipe for target 'postprocessing/janus_pp_rec-pp-h264.o' failed
make[2]: *** [postprocessing/janus_pp_rec-pp-h264.o] Error 1
make[2]: Leaving directory '/home/tiger/janus-gateway/src'
Makefile:1379: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/tiger/janus-gateway/src'
Makefile:565: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

In 1.0.4

postprocessing/pp-av1.c: In function ‘janus_pp_av1_create’:
postprocessing/pp-av1.c:61:46: error: ‘AV_CODEC_ID_AV1’ undeclared (first use in this function)
 vStream = janus_pp_new_video_avstream(fctx, AV_CODEC_ID_AV1, max_width, max_height);
                       ^~~~~~~~~~~~~~~
postprocessing/pp-av1.c:61:46: note: each undeclared identifier is reported only once for each function it appears in
Makefile:2605: recipe for target 'postprocessing/janus_pp_rec-pp-av1.o' failed
make[2]: *** [postprocessing/janus_pp_rec-pp-av1.o] Error 1
make[2]: Leaving directory '/home/tiger/janus-gateway/src'
Makefile:1379: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/tiger/janus-gateway/src'
Makefile:565: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Additional context
OS: Debian9
libavformat: 57.56.101
libavcodec: 57.64.101
libavutil: 55
CC: gcc
CXX: g++

@Cossack9989 Cossack9989 added the multistream Related to Janus 1.x label Sep 13, 2022
@atoppi
Copy link
Member

atoppi commented Sep 13, 2022

libavcodec: 57.64.101

that version is from 2017, I guess anything AV1 related is missing.

@lminiero
Copy link
Member

The check we have seems to suggest it should have it though:

#if !LIBAVCODEC_VER_AT_LEAST(57, 25)

Maybe we should fix that check. The

AVFormatContext {aka struct AVFormatContext}’ has no member named ‘url’

error instead is something different, and caused by a recent fix on broken faststart support: again probably an API change we should address with a precondition, assuming we can figure out when this API changed.

@lminiero
Copy link
Member

lminiero commented Sep 13, 2022

The commit above should fix it. That said, for next time please do not shove a full log inline as you did: if you have to, use the details collapsed feature in github (I'll edit your post to use that shortly).

Edit: sorry, I was thinking of a different issue, nevermind!

mwalbeck pushed a commit to mwalbeck/docker-janus-gateway that referenced this issue Oct 4, 2022
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [meetecho/janus-gateway](https://github.com/meetecho/janus-gateway) | minor | `v1.0.4` -> `v1.1.0` |

---

### Release Notes

<details>
<summary>meetecho/janus-gateway</summary>

### [`v1.1.0`](https://github.com/meetecho/janus-gateway/blob/HEAD/CHANGELOG.md#v110---2022-10-03)

[Compare Source](meetecho/janus-gateway@v1.0.4...v1.1.0)

-   Added versioning to .so files \[[PR-3075](meetecho/janus-gateway#3075)]
-   Allow plugins to specify msid in SDPs \[[PR-2998](meetecho/janus-gateway#2998)]
-   Fixed broken RTCP timestamp on 32bit architectures \[[Issue-3045](meetecho/janus-gateway#3045)]
-   Fixed problems compiling against recent versions of libwebsockets \[[Issue-3039](meetecho/janus-gateway#3039)]
-   Updated deprecated DTLS functions to OpenSSL v3.0 [PR-3048](meetecho/janus-gateway#3048)]
-   Switched to SHA256 for signing self signed DTLS certificates (thanks [@&#8203;tgabi333](https://github.com/tgabi333)!) \[[PR-3069](meetecho/janus-gateway#3069)]
-   Started using strnlen to optimize performance of some strlen calls (thanks [@&#8203;tmatth](https://github.com/tmatth)!) \[[PR-3059](meetecho/janus-gateway#3059)]
-   Added checks to avoid RTX payload type collisions \[[PR-3080](meetecho/janus-gateway#3080)]
-   Added new APIs for cascading VideoRoom publishers \[[PR-3014](meetecho/janus-gateway#3014)]
-   Fixed deadlock when using legacy switch in VideoRoom \[[Issue-3066](meetecho/janus-gateway#3066)]
-   Fixed disabled property not being advertized to subscribers when VideoRoom publishers removed tracks
-   Fixed occasional deadlock when using G.711 in the AudioBridge \[[Issue-3062](meetecho/janus-gateway#3062)]
-   Added new way of capturing devices/tracks in janus.js \[[PR-3003](meetecho/janus-gateway#3003)]
-   Removed call to .stop() for remote tracks in demos \[[PR-3056](meetecho/janus-gateway#3056)]
-   Fixed missing message/info/transfer buttons in SIP demo page
-   Fixed postprocessing compilation issue on older FFmpeg versions \[[PR-3064](meetecho/janus-gateway#3064)]
-   Other smaller fixes and improvements (thanks to all who contributed pull requests and reported issues!)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMTMuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIxMy4wIn0=-->

Reviewed-on: https://git.walbeck.it/walbeck-it/docker-janus-gateway/pulls/91
Co-authored-by: renovate-bot <[email protected]>
Co-committed-by: renovate-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multistream Related to Janus 1.x
Projects
None yet
Development

No branches or pull requests

3 participants