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.
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
u have to go :
admin --> videos --> configure and convertion tab
and choose Convert to MP4 Yes
Offline
Hi,
thanks for your reply. It is already enabled. I am trying to upload 720p avi files.
Offline
Offline
Hmm, that's really weird. Let me try it again, I'll post if it's working.
Offline
Hmm, I just uploaded another HD video (.avi) and it got converted to .flv again.
Any other suggestions?
Offline
u have correct paths for ffmpeg mplayer mencoder flvtool2 yamdi?
Offline
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
go www.yourdomain.com/admin/index.php?q=tools/check
and see if all paths is correct
Offline
yes, everything is with a tick there.
Offline
hmm...i dont know man. i thing adrian can help u with now
Offline
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
Hmm, there is just one log from the mobile video I converted, but logging is enabled under conversion.
Offline
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
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
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
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
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
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
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
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
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
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
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
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