|
Post by jaki123 on Mar 7, 2012 15:09:06 GMT -6
Hi, Yeah the videos are converting to mp4 files. But here the codec is "mpeg4", which is not supported by flowplayer and Jwplayer. Flowplayer and Jwplayer needs video codec to be "aac" and audio codec to be "h.264". I tried changing: echo "$FFMPEG -i $WDIR/$FULLNAME -acodec libfaac -ab 128k -vcodec mpeg4 -b 448k -mbd 2 -cmp 2 -subcmp 2 -s 448x360 $WDIR/$FILENAME.mp4" $FFMPEG -i $WDIR/$FULLNAME -acodec libfaac -ab 128k -vcodec mpeg4 -b 448k -mbd 2 -cmp 2 -subcmp 2 -s 448x360 $WDIR/$FILENAME.mp4 to echo "$FFMPEG -i $WDIR/$FULLNAME -acodec libfaac -ab 128k -vcodec libx264 -b 448k -mbd 2 -cmp 2 -subcmp 2 -s 448x360 $WDIR/$FILENAME.mp4" $FFMPEG -i $WDIR/$FULLNAME -acodec libfaac -ab 128k -vcodec libx264 -b 448k -mbd 2 -cmp 2 -subcmp 2 -s 448x360 $WDIR/$FILENAME.mp4 But its shows "Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height 0 videos converted" Can anyone please help me? ( Please check - h264.code-shop.com/trac/wiki/Encoding )
|
|
|
Post by jaki123 on Mar 8, 2012 14:22:01 GMT -6
Hi, yeah now the videos are converting to mp4 with aac and h.264 codec.
echo "$FFMPEG -i $WDIR/$FULLNAME -s 480x360 -vcodec libx264 -acodec libfaac -vpre fast -b 300k -bt 128k -threads 0 $WDIR/$FILENAME.mp4" $FFMPEG -i $WDIR/$FULLNAME -s 480x360 -vcodec libx264 -acodec libfaac -vpre fast -b 300k -bt 128k -threads 0 $WDIR/$FILENAME.mp4
But the video is not playing in the players. It gets play after downloading in the player. Its may be due to mp4 moov atom.
Does it possible to bring the mp4 moov atom to the begining of the mp4 file using MP4Box in the converter file?
|
|