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

Mpeg2Ts support #4

Closed
a4tech opened this issue Nov 10, 2015 · 9 comments
Closed

Mpeg2Ts support #4

a4tech opened this issue Nov 10, 2015 · 9 comments

Comments

@a4tech
Copy link

a4tech commented Nov 10, 2015

I have compiled project and got issue on mpeg2ts stream files:

Could you help me to implement support for RAW TS stream ?

Here are 2 sample files:

http://sendfile.es/pokaz/560365---89rs.html
http://sendfile.es/pokaz/560366---d4yy.html

  1. RAW format - which should be supported
  2. Same file fixed by TS_Doctor

Both files should be able to play. Only Audio is working on it.

@imoreapps
Copy link
Owner

It seemed that i can not download these files, can you share them via Google Drive, Dropbox, Box, or OneDrive? Thanks.

@a4tech
Copy link
Author

a4tech commented Nov 10, 2015

https://www.dropbox.com/s/g0b603knd8ro86b/tstTS3_fixed.ts?dl=0
https://www.dropbox.com/s/6x74wgpq2vsbnq4/tstTS3.ts?dl=0

This is TS from Sattelite which I save to file and try play by Your player.

It is mpeg2ts format.

Thanks !

@a4tech
Copy link
Author

a4tech commented Nov 10, 2015

I did some changes and looks like files are playable.

Problem is that player does not play PipeFile. I mean:

I retrive data to a pipFile, ( test.ts ), I put NSURL to that file, but player can not make a playback for that.

"Failed to load video !"

I guess that it miss some function such as av_getcodecinfo() from the file and wait till stream appear in the file.

@imoreapps
Copy link
Owner

Please try to update the "avFormatName" property of FFAVPlayerController instance with "mjpeg" string value before you load it.

@a4tech
Copy link
Author

a4tech commented Nov 11, 2015

It does not help. Faild to load video.

It is pipeFile. File URL to which i write constantly data with stream.

I did following change:

// if (!self.mediaURL.isFileURL) {
options[AVOptionNameAVProbeSize] = @(256*1024); // 256kb, default is 5Mb
options[AVOptionNameAVAnalyzeduration] = @(5); // default is 5 seconds
options[AVOptionNameHttpUserAgent] = @"Mozilla/5.0";
// }

// if (self.avFormatName) {
options[AVOptionNameAVFormatName] = @"mjpeg";
// }

[_avplayController openMedia:self.mediaURL withOptions:options];

@a4tech
Copy link
Author

a4tech commented Nov 11, 2015

I have tried to play pipeFile by:

https://github.com/kolyvan/kxmovie

I noticed it has no problems. but It is quite old. I would cooperate to fix it in Your app.

@a4tech
Copy link
Author

a4tech commented Nov 12, 2015

Do You think We can try to add support for loading movie from pipefile ?

@imoreapps
Copy link
Owner

We could not find any pipfile informations, can you provide more details about how to setup pipfile?

@imoreapps imoreapps reopened this Jan 31, 2016
@imoreapps
Copy link
Owner

The latest version has already supported most of FFmpeg protocols, includes pipfile. Thanks.

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