Adult Script Pro Community Forums

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.

#1 2010-12-18 17:07:58

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Video Conversion

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 sad (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

#2 2010-12-18 17:27:35

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Video Conversion

WOW!

That reads VERY good!

Thanks for your efforts, looking forward to get my hands on your new class smile

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 smile

You can't make Gold out of Sh*t HAHAHA

Last edited by Coscast (2010-12-18 17:31:01)


sgt-halfsize-banner.jpg

Offline

#3 2010-12-18 18:08:33

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video Conversion

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

#4 2010-12-18 18:14:19

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Video Conversion

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.


sgt-halfsize-banner.jpg

Offline

#5 2010-12-18 18:20:58

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video Conversion

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

#6 2010-12-18 19:31:10

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Video Conversion

Yeah, that's what i mean, make an option to reencode the videos from a csv.


sgt-halfsize-banner.jpg

Offline

#7 2010-12-19 03:10:10

mfeat50
Member
Registered: 2010-10-25
Posts: 114
Website

Re: Video Conversion

very nice!!!

the option to reencode the videos from a csv sounds like a good idea as well.

Offline

#8 2010-12-19 13:25:44

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video Conversion

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

#9 2010-12-19 13:29:27

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Video Conversion

A Plus for h264 is the Filesize, they are smaller with better Quality ( of course not better than the source material ).


sgt-halfsize-banner.jpg

Offline

#10 2010-12-19 13:37:19

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video Conversion

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

#11 2010-12-19 17:33:29

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video Conversion

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

#12 2010-12-20 13:03:08

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video Conversion

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

#13 2010-12-21 15:42:24

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Video Conversion

Hi Adrian,

Any news on that ?
I think you're waiting for the flowplayer reply.


sgt-halfsize-banner.jpg

Offline

Board footer

Powered by FluxBB