Code Monkey home page Code Monkey logo

Comments (5)

jacek-marchwicki avatar jacek-marchwicki commented on May 18, 2024
  1. Do you have:
    [url "ssh://review.appunite.com"]
    insteadOf = https://review.appunite.com
    in your ~/.gitconfig ?
    if you have just remove those lines - those lines is only for people who have key on our company review system.
  2. I did not use RTP streams with ffmpeg - and I do not know if this works. But im quite sure that http streams work. (I do not know i live streams work too). To test simple streams just upload some mp4/h264 video file on your http server (apache2/Twisted) and it should work via url.
  3. This is some tip from ffmpeg "(pthread support is required)" - maybe you have to compile pthreads to ffmpeg?

from androidffmpeg.

EduardMe avatar EduardMe commented on May 18, 2024

Hi Jacek,

thanks for the quick response.

  1. No this is the only thing I didnt try. But anyways, I could successfully build the project without fribidi, freetype and ass libraries. I commented out the #define SUBTITLES and got no errors. You think this could cause problems?
  2. In fact I just tried live streams. I will try this too.
  3. I have also tried a build with --enable-pthreads flag. It gave me the same error messages. Perhaps I missed out something.

Another thought: Live streaming produces a few error even in normal use, where it works. These errors are related to the fact that the player is not playing from the beginning and so not receiving headers or keyframes in time, but after some time. It also needs to figure out other settings as I can see from the command line. Perhaps the player implementation in Android is not that patient and throws an exception as soon as it doesnt all fit?

from androidffmpeg.

EduardMe avatar EduardMe commented on May 18, 2024

One more finding:

I have modified udp.c to output the hostname given to the function. The output is:

"v=0"

Checking the sdp file, I find "v=0" in the second line:

SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 53.21.0
m=video 8888 RTP/AVP 96
b=AS:200
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=1

Furthermore I have changed "v=0" to some ip address. In this case it gives me the first segment of the ip address. For example "127." for "127.0.0.1".

Im using the localhost address, because Im streaming directly to the client.

So it seems the SDP file is not correctly read for the IP-Address and this is why it can not resolve the hostname.

Any suggestions why? Where could I start debugging?

from androidffmpeg.

jacek-marchwicki avatar jacek-marchwicki commented on May 18, 2024
  1. You can use this library safely without subtitles
  2. Are you sure that pthreads are compiled in? I do not know what this error exacly mean - maybe you have to ask some ffmpeg expoert or look in to source code of ffmpeg.

I do not know sdp. but http://helixforum.realnetworks.com/helix_support/topics/what_are_the_required_sdp_file_parameters_for_rtp_sdp_live_ingest_to_helix_universal_media_server - says that v=0 it is version number

just grep ffmpeg source code for your errors and maybe you will find something.

from androidffmpeg.

fgal9363 avatar fgal9363 commented on May 18, 2024

I'm having the same problems with the pthreads compilation.
I've enabled pthreads both in configure and build_android but I still get the same error.

'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)

Have you found any solution for that?

Thanks,

from androidffmpeg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.