The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
Hi,
I just finished re-designing the video conversion implementation (the main tests are finished, commands are finished, just working on the * -> php class). Here's how it works:
1. FLV. You have to options here:
a. Old FLV format (just the resizing calculations have changed here).
b. H264 with MP3 sound in FLV (will work exactly as FLV, fast-forward...everything, currently there is only one problem no fullscreen (fullscreen works in JW, so its a flowplayer bug))
A few examples for b:
symtab@symtab-laptop:/var/www/asp$ du -h Spider-man_3_trailer_480p.flv
14M Spider-man_3_trailer_480p.flv
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/Spider-man_3_trailer_480p.mov
68M /home/symtab/Work/test-videos/Spider-man_3_trailer_480p.mov
symtab@symtab-laptop:/var/www/asp$
symtab@symtab-laptop:/var/www/asp$ du -h 15.flv
2.8M 15.flv
symtab@symtab-laptop:/var/www/asp$
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/15.mp4
5.1M /home/symtab/Work/test-videos/15.mp4
symtab@symtab-laptop:/var/www/asp$
symtab@symtab-laptop:/var/www/asp$ du -h 115.flv
2.0M 115.flv
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/115.mpg
6.7M /home/symtab/Work/test-videos/115.mpg
symtab@symtab-laptop:/var/www/asp$ du -h 136.flv
16M 136.flv
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/136.mov
80M /home/symtab/Work/test-videos/136.mov
Quality is almost the same as in the original file.
2. MP4 (h264)
a. 1 pass without bitrate (using CRF) and size/aspect calculations
b. 2 pass with bitrate and size/aspect calculations
Examples for a/b:
symtab@symtab-laptop:/var/www/asp$ du -h 136.mp4
28M 136.mp4
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/136.mov
80M /home/symtab/Work/test-videos/136.mov
symtab@symtab-laptop:/var/www/asp$
symtab@symtab-laptop:/var/www/asp$ du -h Spider-man_3_trailer_480p.mp4
16M Spider-man_3_trailer_480p.mp4
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/Spider-man_3_trailer_480p.mov
68M /home/symtab/Work/test-videos/Spider-man_3_trailer_480p.mov
symtab@symtab-laptop:/var/www/asp$
symtab@symtab-laptop:/var/www/asp$ du -h 115.mp4
2.0M 115.mp4
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/115.mpg
6.7M /home/symtab/Work/test-videos/115.mpg
symtab@symtab-laptop:/var/www/asp$ du -h 5.mp4
1.8M 5.mp4
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/5.flv
2.5M /home/symtab/Work/test-videos/5.flv
symtab@symtab-laptop:/var/www/asp$
symtab@symtab-laptop:/var/www/asp$ du -h demo.flv
61M demo.flv
symtab@symtab-laptop:/var/www/asp$ du -h demo.flv
54M demo.flv (H264 + mp3 in FLV)
symtab@symtab-laptop:/var/www/asp$ du -h demo.mp4
98M demo.mp4
symtab@symtab-laptop:/var/www/asp$
symtab@symtab-laptop:/var/www/asp$ du -h /home/symtab/Work/test-videos/demo.mp4
178M /home/symtab/Work/test-videos/demo.mp4
I've tested the above (1 and 2) on 16 videos until now and it works perfectly. We should also take in consideration
that H264 (nor FLV) cant do magic, if the uploaded video is bad, then the resulting video is bad too.
All videos could be converted to h264, however only videos with width > 352 and height > 288 will be converted.
If you have any ideas/critics...please let us know.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
WOW!
That reads VERY good!
Thanks for your efforts, looking forward to get my hands on your new class
Maybe that fixes "our" vidz "problem" ( not your Problem, it seems that vidz works for you ).
BTW: I know that an reencoded file CANNOT be better than the source. If yes, that would be really magic
You can't make Gold out of Sh*t HAHAHA
Last edited by Coscast (2010-12-18 17:31:01)
Offline
The above should work, however i will need to wait until a lot of people test (or i could leave my computer run tests with all videos i have on my box).
The vidz thing is also my *problem*. I just dont know how to fix it yet, it works for me and i cannot reproduce the bug. I will try again tomorrow and see if i can find a fix. If i dont find a fix, we can simply re-encode the videos to h264. 99% of the people out there that have flash also have a flash version that support h264+aac.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Yeah, we talked about a complete reencode of the Vidz Videos somewhere else here. For me it would be no problem and i think it's the smartest solution as long as teh bug cannot be reproduced.
I think that it IS important to get that working because vidz has the most sponsor videos by far.
Offline
Hmm...so basically a option in the CSV admin part to re-encode the videos? This would do it (detect if video is flv, re-encode to flv, detect if video is h264 and re-encode to h264).
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Offline
very nice!!!
the option to reencode the videos from a csv sounds like a good idea as well.
Offline
Do you think only 16:9 videos should be converted to mp4? (it doesnt really matter, h264 was not designed for HD only, but its how most people see h264 as HD).
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Offline
I guess we can convert anything for h264 then :-) users that dont want h264 videos...can just disable from admin.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Will be finished tomorrow. I tested frontend video upload, admin video upload and now i'm at csv importing. I will need to run some more tests, so i will be able to update the archive only tomorrow. I apologise for the delay.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Ok. Its done. Integrated in frontend upload, backend upload, csv import (option to convert videos, although it would be better with no conversion, i think the bug is in the player, i
contacted flowplayer.org and probably they will check, because the video is re-converting to HD and its already HD, but the video bitrate is 300kb and audio 32kb and its a small size file, however reconverted to a higher bitrate and audio bitrate (and samplerate), the filesize will increase).
I'm at my parents house, will get back to my place later when i'll update the archive in avangate and email (or update) installations.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Offline
Pages: 1