Coder Social home page Coder Social logo

devileo / dlgplayer Goto Github PK

View Code? Open in Web Editor NEW
167.0 10.0 58.0 360 KB

A media player for iOS based on FFmpeg 4.0

License: GNU Lesser General Public License v3.0

Objective-C 97.49% GLSL 0.12% CSS 0.19% HTML 0.42% JavaScript 1.78%
kxmovie ios objective-c ffmpeg media-player

dlgplayer's People

Contributors

devileo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dlgplayer's Issues

Hello i have a question

Hello! I have a question, i want to get each frame to change uiimage to do something, how can i do?
Can you leave a contact information? or add my QQ:654303855 thanks!

record/save streamed file?

not a bug but a request, can you add the functionality to record or save any streamed media?
ex: playing rtsp stream on the player and you press a button to record the current media into a mp4 (any other format) on the app?

Cannot select the correct url according to the current bandwidth

DLGPlayer can not auto select the url of the highest resolution stream when the bandwidth reaches 2048000 as the following stream url:
http://cntv.hls.cdn.myqcloud.com/asp/hls/main/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/main.m3u8?maxbr=2048&minbr=400

m3u8 content:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=204800, RESOLUTION=320x180
/asp/hls/200/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/200.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=460800, RESOLUTION=480x270
/asp/hls/450/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/450.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=870400, RESOLUTION=640x360
/asp/hls/850/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/850.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=2048000, RESOLUTION=1280x720
/asp/hls/2000/0303000a/3/default/4ec8c6c1bdd941b0b11280769b036e8b/2000.m3u8

DLGPlayer.play() not starting video automatically

When calling .play() nothing happens visually (but I can hear the audio of a stream). When calling .play again with a delay of about 1 - 2 seconds the stream gets displayed.

My only guessI would be that it might have something to do with the buffer not triggering the playback after it's fully loaded.

Multiple channel streaming

Sorry, not really an issue but a question. Does this support multiple channel streaming (RTSP) playing simultaneously?

Closing player

hi i was testing the video player, didn't have any problem adding it to my view , but when I dismiss the view I added the close method , view is dismissed but audio still plays in background!

Xcode 9.4.1 compile warnings

Currently, compiling the demo will create about 421 warnings like this:

Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior

Low image quality

Everything works well but the image quality of the rendered frame is not high.
Obviously I can found some zigzag effects.
How can I improve it?

How to include the DLGPlayer into an already existing project.

I added the DLGPlayer into my project hierarchy.

I followed the instructions for ffmpeg ios build.

I set the header and library paths to the resulting location from the ffmpeg ios build ../include and ../lib.

I linked binaries with library getting all the *.a from ffmpeg under ../lib.

I end up with /Users/user/Programming/iOS/app/externals/DLGPlayer/codec/DLGPlayerDecoder.m:16:9: 'libavformat/avformat.h' file not found.

My only guess could be perhaps I didn't properly import the library or link ffmpeg properly.

Delay

It will delay about 5 seconds when I compare with other software, How do we optimize it

今日头条互娱研发上海HR Sunny的问候

您好,我是今日头条互娱研发上海HR Sunny,有幸看到您的palyer相关项目分享,希望有机会和您认识,不知道是否方便加个微信沟通,我的微信是fengzhigu-s,期待您的回复。

Building FFmpeg with openssl: Error "openssl not found"

I'm following every step here https://github.com/DeviLeo/DLGPlayer/blob/master/How_to_build_ffmpeg_with_openssl.md Finally, running "build-ffmpeg-openssl.sh", the script will stop after a few seconds saying "Error: openssl not found"

I found out that openssl is not in the list of external libraries of ffmpeg, but I couldn't find a way to set it. Maybe you know how to do that. Setting the path with CFLAGS and LDFLAGS seems to be not enough anymore.

格式问题他

您好。播放mkv格式的本地视频,内存暴涨,然后崩溃。这个能解决吗?播放高码率的ts本地视频时,播放卡顿严重。

No sound after playing the first video using WowzaStreamingEngine

Situation:
Use VLC to stream playlist to WowzaStreamingEngine.

Detail:
When the audio frame's position reach the end of the first video, the second video has started playing (the video frames of the second video has been read and rendering).

At this point, the position of audio frame(1st video) is later than the position of video frame(2nd video), then DLGPlayer will ignore the audio frame and continue playing until the position of the video frame reach the same position of the audio frame.

Code:

// DLGPlayer.m
- (void)readAudioFrame:(float *)data frames:(UInt32)frames channels:(UInt32)channels {
        ...
        const double dt = _mediaPosition - frame.position;
        if (dt < -0.1) { // audio is faster than video, silence
                ...
                break;
        }
        ...
}

Could not open local flv file

I'm try to paly a local .flv file,failed.But loacl .mp4 file is OK. And kxMovie can play the .flv file,the same file。
Here is the code.
_vcDLGPlayer.url = [[NSBundle mainBundle] pathForResource:@"339" ofType:@"flv"];
[_vcDLGPlayer open];

Is there something wrong whit my code?
log below:
platform initialization successful
2018-06-25 15:30:08.729441+0800 DLGPlayer[407:86589] [MC] Lazy loading NSBundle MobileCoreServices.framework
2018-06-25 15:30:08.729903+0800 DLGPlayer[407:86589] [MC] Loaded MobileCoreServices.framework
2018-06-25 15:30:08.748490+0800 DLGPlayer[407:86589] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-06-25 15:30:08.803927+0800 DLGPlayer[407:86589] refreshPreferences: HangTracerEnabled: 0
2018-06-25 15:30:08.803956+0800 DLGPlayer[407:86589] refreshPreferences: HangTracerDuration: 500
2018-06-25 15:30:08.803967+0800 DLGPlayer[407:86589] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
2018-06-25 15:30:31.465856+0800 DLGPlayer[407:86589] Metal GPU Frame Capture Enabled
2018-06-25 15:30:31.466897+0800 DLGPlayer[407:86589] Metal API Validation Enabled
Input #0, flv, from '/var/containers/Bundle/Application/A5145BF5-6A8F-4B4F-AC3F-B43642E986C2/DLGPlayer.app/339.flv':
Duration: N/A, start: 0.000000, bitrate: N/A
[flv @ 0x10489b000] Packet mismatch 352 15 340
[flv @ 0x10489b000] Packet mismatch 2111492634 8975 7932380
2018-06-25 15:30:36.040882+0800 DLGPlayer[407:86967] read frame error: End of file

Swift

Hi
do you have any example in swift? Or can you please help me to migrate the example to swift?

Thank you so much

mutil window Error

I'm comfused about something
When I create mutil player view in ios app I find only last view can play
I check other view the backwidth and backheight is zero
what happen???

Playing local files

I have a question. Does this player plays also local files (on iPad/iPhone) or only by http streaming? Thanks in response.

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.