22 個の投稿 / 0 new
最終投稿
#1 2017-11-14 07:53

[Issue] Encode mp4 for steaming

Half of videos on this site ain't really made for streaming. They can only get started once they are fully downloaded. The moov metadata is placed at the end of the video instead of beginning, and so the player has to wait.

https://stackoverflow.com/questions/10328401/html5-how-to-stream-large-m...

To quickly check if video is made with streaming support, you can delete the latter half of a video and see if player can still play it.

You guys are really good at making websites, aren't you? But this is exactly why I like you.

I don't know how easy it is to convert between one and another. If it's cpu expensive, you probably can detect that video is in a wrong format early, and stop uploading, telling the user to encode it properly.

2017-11-14 18:10

It's really easy. Using the popular program ffmpeg, you just add a single option and copy the video to a new file. 'ffmpeg -i original.mp4 -c copy -movflags faststart [-map_metadata 0] fixed.mp4' . There's even a standalone program called 'qt-faststart' that's less than 1 MB in size, that can do the same thing.

A good player can download the end of the file first, so the location of the index isn't a problem. But this is more complicated.

2017-11-15 05:35

Well, half of videos... I never came across one which cant start right away.
Any examples?

2017-11-16 14:24

@Tomaa
This one doesn't play until fully downloaded, in the Source quality.
http://ecchi.iwara.tv/videos/xryl3ujwghwazjdz

I'm encountering more videos like this probably because I download every video in the Source quality. I don't know if 360p and others have the same problem.

2017-11-17 01:16

Plays right away for me just fine.
Frankly, the only time this should ever actually be an issue is when the server somehow decides the video is perfectly suitable for web streaming as it is, while failing to detect that it is not web optimized. But it has been incredibly rare that I come across this.

2017-11-17 11:36

Well, looks like I'm that rare case. Windows 7, firefox 47. I'd update, but a lot of extensions no longer work, and I'm dependant on them. I planned to switch to Palemoon, but it doesn't display videos at all, at least I haven't figured out how it works yet.

Just checked, p360 videos are also without faststart. Can you please make it so they are encoded with faststart? At least the new ones.

2017-11-17 18:18

Try Waterfox, it's kept up to date with Firefox and supports all extensions.
As a bonus you'll get rid of the telemetry in Firefox.

Alternatively you can try Firefox ESR

2017-11-18 16:03

@boopboop999; I have never seen a video that didnt start right away, must be a rare case. at least all 320p videos working thats enough to have a preview at the video and than i download it anyways without watching it completely. video arnt loading when iwara has trafic issue

I would keep my Browser allways up-to-date to have a protection against dangerous advertisment, also its more save to have windows 8.1/10 instead of win 7 . I mean my old windows XP computer is still working, when i turn it on and log in to the internet it will get infected by many virus emediately xD

i dont know if its necessary to make iware working on "older" computers

2017-11-18 13:54

So, will you reencode videos? It's really easy to do on the server.

2017-11-18 16:50

Waterfox works surprisingly well. Thanks Woodscrew.

2017-11-19 10:55

Since its only you who is having this issue, its very unlikely there is any problem with the video itself.
Cant do anything about it unless I can reproduce the issue.

2017-11-20 09:57

How to reproduce it:

1) Start downloading a video
2) Try playing it midway download
3) You can't, because it needs metadata that is placed at the very end of the video for some reason

I probably can work around this by making 3 http requests instead of one (get size, download the end of the video, download the rest). Will trash the file system a bit less, as a bonus. I wonder if I'll be able to.

Guys, I pinpointed the exact reason for you, and you just ignore this. Well, fuck you too.

2017-11-20 20:11

I see what you mean now.
To simply put this, clicking download button is not streaming. For streaming, you have to play the video using site player and it will start right away.
They are handled differently server side.

2017-11-23 10:54

Will you please convert to faststart? It's lossless. You have no reasons not to do it. It's very important to me.

2017-11-23 19:34

Sure, I will take a look into it.

2017-12-01 08:45

So, how's the progress? Any problems with it?

2017-12-01 20:52

it will take some time, infrastructure is not yet ready for such change.

2017-12-04 21:20

Just qt-faststart them, it's not that hard.

Example of one that is encoded properly, they are pretty rare: http://ecchi.iwara.tv/videos/NoGQhGmrIl2zJwR

2017-12-07 09:06
2017-12-07 10:56

like I said, it will take some time.
if I just started conversion, all affected videos would become unavailable for up to 2 days. that would be quite steep price to pay, just so people can watch videos while they are downloading them to disk.

btw, qt-faststart only works in case moov is the last atom in file. moov atom is often followed by free atom which breaks qt-faststart.

2017-12-10 14:12

moov change has finished processing few hours ago. you should be able to watch all videos while downloading them to disk.

2017-12-14 15:26

Thank you, everything works.