-
Notifications
You must be signed in to change notification settings - Fork 6k
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
playing modified MPEG-TS files #1101
Comments
ExoPlayer does not currently support this. Please clarify why you need to use UDP as opposed to TCP. I asked this on #966, but you didn't answer. Thanks! |
Sorry i missed that question...I'm trying to multicast a video from a master device to other decices using wifi-direct. |
there's a trick to fix that I just noticed it.....since a TS packet is of fixed size 188B, then all I have to do skip the stream to closest multiple of 188 if possible, this is in case I want to trim the first ~1MB of the file, and this helps in case of live streaming UDP. and in case of packet loss all i have to do is to fill the gap with random bytes as long as the total stream length is a multiple of 188. |
Note that #1083 will probably also (partially) fix this issue. Do you feel like generating and sharing some test files? I imagine the following cases are of interest:
|
oh nice good work...actually I already tried working on the sync byte such that if the first byte is not the sync byte then go the next byte and try again until it finds the sync byte, though I was not sure if it would work since there might be a a byte in the stream that has the same value (0x47) as the sync byte but it's not the sync byte and I guess that's why it did not work :( . |
1-https://drive.google.com/file/d/0B0tCREqCqqYccDBWSmU1eDkyem8/view?usp=sharing |
…r lost sync. Issue: #1332 Issue: #1101 Issue: #1083 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125659191
All three of the samples above appear to play fine in |
Great! Thank you! Though I couldn't wait for the v2 to be out to get these features. I already modified TsExtractor in order to get things done as I want. |
:). FYI the fixes are probably in the |
Hello...
I'm trying to play a sample from a TS file on my app...what i did was to trim the first ~1MB from the file which is ~5MB total...and i also tried to trim certain byte ranges from the file...both resulting files are played as expected on my PC with VLC and Windows media player....but exoplayer did not play them...my case is that im receiving a video with no reliable transmission(UDP) so there might be some packet loss... i learned that MPEG-TS was made for non reliable transmissions(TV broadcasting)...and i guess the way MPEG-TS is structured using packetized elementary streams is the reason why trimming the video file wont make the stream totally corrupted and it would still be playable on PC but i have no clue why it's not playing on exoplayer....any idea?
The text was updated successfully, but these errors were encountered: