Neo wrote:Two issues.
1. Remove dot (.) before semicolon at the end of line
2. -vcodec mpeg4 should come together
Corrected line is given below.
Code: Select all
$cmd = 'ffmpeg -i '.$in.' -f mp4 -vcodec mpeg4 -newsubtitle '.$in_sub.' -slang eng -r 25 -b 560000 -s 610x340 -acodec aac -ac 2 -ab 64 -ar 44100 '.$out_vid;
thanks neo, but i couldn't get it to work even after typing it on ssh to test it
i've done something dirty lol i used mkvmerge like this
Code: Select all
$cmd = 'mkvmerge -o '.$out_vid.' '.$in_sub.' '.$in.' ';
its not really what im after but it does mux the srt to mkv
Code: Select all
FFmpeg version SVN-r21123, Copyright (c) 2000-2010 Fabrice Bellard, et al.
built on Jan 10 2010 14:15:54 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --ena ble-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore- amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid -- enable-x11grab
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.46. 0 / 52.46. 0
libavformat 52.46. 0 / 52.46. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 8. 0 / 0. 8. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'unidtf.xvid-lpd.avi':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf52.46.0
Duration: 00:07:19.94, start: 0.000000, bitrate: 571 kb/s
Stream #0.0(und): Video: mpeg4, yuv420p, 610x340 [PAR 255:254 DAR 915:508], 564 kb/s , 25 tbr, 25 tbn, 25 tbc
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 2 kb/s
At least one output file must be specified
root@mysoogal-1:/var/www#
Code: Select all
$cmd = 'ffmpeg -i '.$in.' -f mp4 -vcodec mpeg4 -newsubtitle '.$in_sub.' -slang eng -r 25 -b 560000 -s 610x340 -acodec aac -ac 2 -ab 64 -ar 44100 '.$out_vid;
do the '.$in_sub.' need be changed like this '.$in_sub' without .dot ? confused here