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 2011-07-07 19:54:55

sebo1992
Member
Registered: 2011-07-04
Posts: 40

HD videos

Hi again,

I just got a short question. How do you upload HD videos? it always converts them to .flv, when I am uploading any 1280x720 HD videos.

Thanks,
Sebo

Offline

#2 2011-07-07 20:30:22

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: HD videos

u have to go :

admin -->  videos --> configure and convertion tab

and choose Convert to MP4 Yes

Offline

#3 2011-07-07 20:34:22

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

Hi,

thanks for your reply. It is already enabled. I am trying to upload 720p avi files.

Offline

#4 2011-07-07 21:11:56

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: HD videos

my setting is :

th_072748496_ScreenHunter_01Jul.0800.07_122_380lo.jpg th_072753747_ScreenHunter_02Jul.0800.07_122_194lo.jpg

and convert mp4.

see details

Last edited by thiva7 (2011-07-07 21:12:30)

Offline

#5 2011-07-07 22:04:43

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

Hmm, that's really weird. Let me try it again, I'll post if it's working.

Offline

#6 2011-07-07 22:17:45

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

Hmm, I just uploaded another HD video (.avi) and it got converted to .flv again.

Any other suggestions?

Offline

#7 2011-07-07 22:20:02

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: HD videos

u have correct paths for ffmpeg mplayer mencoder flvtool2  yamdi?

Offline

#8 2011-07-07 22:29:55

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

Everything is marked with a tick under System Check so those paths should be correct.

Where do I have to put the paths for mplayer and mencoder in?

Offline

#9 2011-07-07 22:52:55

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: HD videos

go www.yourdomain.com/admin/index.php?q=tools/check

and see if all paths is correct

Offline

#10 2011-07-07 22:57:44

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

yes, everything is with a tick there.

Offline

#11 2011-07-07 23:02:49

thiva7
Member
Registered: 2011-04-30
Posts: 1,022

Re: HD videos

hmm...i dont know man. i thing adrian can help u with now

Offline

#12 2011-07-08 07:29:18

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

Re: HD videos

Check tmp/logs/video_id.log There should be a section about the MP4 conversion (maybe a ffmpeg preset is missing).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#13 2011-07-08 08:44:43

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

Hmm, there is just one log from the mobile video I converted, but logging is enabled under conversion.

Offline

#14 2011-07-10 14:21:44

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

Hmm any solution?

26267 ?        S      0:00 /usr/bin/php /srv/thepornstuff.com/modules/video/scripts/convert.php 268 mp4 1
26271 ?        S      0:00 sh -c /usr/local/bin/ffmpeg -i /srv/thepornstuff.com/media/videos/vid/268.mp4 -y -f flv -acodec libmp3lame -ar 22050 -ab 128k -aspect 16:9 -s 630x354 -b 800k /srv/thepornstuff.com/media/videos/flv/268.nometa.fl
26272 ?        R      0:04 /usr/local/bin/ffmpeg -i /srv/thepornstuff.com/media/videos/vid/268.mp4 -y -f flv -acodec libmp3lame -ar 22050 -ab 128k -aspect 16:9 -s 630x354 -b 800k /srv/thepornstuff.com/media/videos/flv/268.nometa.flv
ffmpeg version N-31210-g96676e1, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul  4 2011 20:09:25 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
  configuration: --prefix=/usr/local --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libx264 --enable-libxvid
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  5. 0 / 53.  5. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 3 /  2. 24. 3
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Last edited by sebo1992 (2011-07-10 14:23:47)

Offline

#15 2011-07-10 14:49:41

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

I just got a log of one:

Loaded video from: /srv/thepornstuff.com/media/videos/vid/269.mp4
cmd => /usr/local/bin/ffmpeg -i /srv/thepornstuff.com/media/videos/vid/269.mp4
container => mov,mp4,m4a,3gp,3g2,mj2
duration_timecode => 00:07:11.44
duration_seconds => 431.44
start => 0.000000
bitrate => 3139
audio => aac
audio_frequency => 44100
audio_stereo => stereo
audio_bitrate => 100
format => h264 (Main)
colorspace => yuv420p
framerate => 3033
frames => 1308558
width => 960
height => 540
dar => 16:9
dar_float => 1.7777777777778

Preparing video to FLV conversion!
/usr/local/bin/ffmpeg -i /srv/thepornstuff.com/media/videos/vid/269.mp4 -y -f flv -acodec libmp3lame -ar 22050 -ab 128k -aspect 16:9 -s 630x354 -b 800k /srv/thepornstuff.com/media/videos/flv/269.nometa.flv

Offline

#16 2011-07-10 18:26:40

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

Re: HD videos

And after that FLV conversion in the log file, does anything appear about MP4 or Mobile conversion? (if the log is deleted just check the log while uploading/converting).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#17 2011-07-10 19:22:00

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

Hmm, that is the full log (I think it's the full as it get's deleted):

http://thepornstuff.com/hdissue.txt

It seems that mp4 conversation is mentioned

Offline

#18 2011-07-11 06:30:12

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

Re: HD videos

In the log file at some point the following ffmpeg message appears:

File for preset 'slow' not found

So the problem is that you dont have the slow present for ffmpeg. Check /usr/share/ffmpeg and /usr/local/share/ffmpeg for the presets. If you have a slow present in those folders, then you need to edit libraries/framework/video.php and replace:

define('PRESET', 'slow');

with:

define('PRESENT', 'the-slow-preset-you-have-here');

If you dont have the slow present, you can try with lossless_slow.

UPDATE: Seems like recent ffmpeg versions (just tested git one) dont pack the slow present anymore, so i will
have to find another solution (will also test lossless_slow).

UPDATE2: Ffmpeg changed the way it handles the conversion now, seems like you the x264 options directly now (or in presets, profiles, tunes, levels) and not the ffmpeg mappings. I will have to do some more research in the near future.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#19 2011-07-11 08:28:24

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

Hi,

thanks for your help. I've just tried it with lossless_slow, but it doesn't also seem to work.

Please let me know as soon as you found a solution.

Thanks,
Sebo

Offline

#20 2011-07-11 09:27:11

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

Re: HD videos

Save the following content to /usr/share/ffmpeg/libx264-slow.ffpreset

coder=1
flags=+loop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=umh
subq=8
me_range=16
g=250
keyint_min=25
sc_threshold=40
i_qfactor=0.71
b_strategy=2
qcomp=0.6
qmin=0
qmax=69
qdiff=4
bf=3
refs=5
directpred=3
trellis=1
flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip
wpredp=2
rc_lookahead=50

In admin make sure  you enable CRF. If it still does not work please email me ssh root access and i will test from the ssh console.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#21 2011-07-11 09:50:39

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

Re: HD videos

The above worked for me. Just tested (i also have a new version of ffmpeg that does not have the slow present, on my devel box, just upgraded).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#22 2011-07-11 09:53:11

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

I've just done it like you said, but it's stopping at the step (I've killed the processes since it's doing that since 15mins):

Preparing video to H264 conversion!
/usr/local/bin/ffmpeg -i /srv/thepornstuff.com/media/videos/vid/296.mp4 -y -keyint_min 25 -vcodec libx264 -aspect 16:9 -s 960x540 -crf 22 -acodec libfaac -ab 128k -ar 44100 -vpre slow /srv/thepornstuff.com/media/videos/mp4/296.nomov.mp4

I've just emailed you the SSH details to support@adultscriptpro.com.

Thank you very much for your help!
Sebo

Offline

#23 2011-07-11 10:07:54

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

Re: HD videos

It is working. I just tested on your site. I uploaded a video and it was converted to hd.  HD conversion needs a lot of time compared to FLV, but the resulting file has better quality and a lower filesize.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#24 2011-07-11 11:20:39

sebo1992
Member
Registered: 2011-07-04
Posts: 40

Re: HD videos

works now, thanks! takes almost a hour for one 160mb hd video on a single core processor. Would a dual/quad core make the conversation faster?

Offline

#25 2011-07-11 15:55:37

nowhereman
Member
Registered: 2011-07-03
Posts: 18

Re: HD videos

There was this one zip file that contained all presets, if anyone wants it I might be able to upload it so that you guys can distribute it with the script. however my issue (running 6-7 ffmpeg to convert a video to mobile, and the mobile file always being at least double the size of the original FLV) is still there.. Couldnt figure out why.

Offline

Board footer

Powered by FluxBB