Re: [Mlt-devel] help with h264 and good 16:9 blip.tv results
Brought to you by:
ddennedy,
lilo_booter
From: Brendan P. <br...@db...> - 2009-11-03 00:57:25
|
Dear MLT List It's hard to not come across as desperate when I am desperate, so here is another plea. I have a bunch of videos I need to upload for someone and I am at a dead end. Please help or direct me to somewhere I can get help. Desperately yours Brendan Brendan Pike wrote: > Hi all > > I'm a melt newbie and need some guidance please. I'm having trouble > getting a nice result with the encoding of my dv file and final display > on blip.tv. The main problem I've had so far is retaining the 16:9 > aspect ratio some times even when played locally and/or after encoded > into flv on blip. The best success I've had so far was with ffmpeg > (command included at the bottom for reference), but it would be good to > get it done directly from melt if possible and with good results. > > Sadly I had terrible luck with ogg's and Blip support suggested that > h.264 wrapped in an mp4 would most likely yield the best results so this > has been what I've been aiming at without success directly from melt so > far though. In fact I can't even get melt to output h264, perhaps I'm > missing a codec on my Ubuntu system.d > > Can anyone please help me with me melt command to achieve the best > results possible. Long encode times don't bother me much is the result > is worth it. > > Thanks heaps > Brendan > > # my current melt command > melt -verbose -profile dv_pal_wide /home/brendan/my-video.mlt -consumer > avformat:/home/brendan/my-video.mp4 acodec=libmp3lame ab=128k ar=44100 > vcodec=mpeg4 minrate=0 b=900k progressive=1 deinterlace_method=onefield > > > # my ealier ffmpeg command which so far gave the best results. > # ffmpeg command based on: > http://www.firstclown.us/2008/07/01/transcoding-dv-to-widescreen-mp4-in-linux/ > # http://juliensimon.blogspot.com/2009/01/howto-ffmpeg-x264-presets.html > > # params: pathname.dv show_dir file_root > echo pathname.dv: $1 > echo show_dir: $2 > echo file_root: $3 > > IN=$1 > OUT=$2/mp4/$3.mp4 > TEMP=$2/tmp/$3.mp4 > FINAL=$3.mp4 > > # First Pass > ffmpeg -f dv -i $IN -pass 1 -vcodec libx264 -vpre fastfirstpass -g 300 > -mbd 2 -cmp 2 -subcmp 2 -deinterlace -aspect 16:9 -s 640x360 -padtop 4 > -padbottom 4 -b 768k -acodec libfaac -y $TEMP > > # Second Pass > ffmpeg -f dv -i $IN -pass 2 -vcodec libx264 -vpre hq -g 300 -mbd 2 -cmp > 2 -subcmp 2 -deinterlace -aspect 16:9 -s 640x360 -padtop 4 -padbottom 4 > -b 768k -acodec libfaac -y $TEMP > > cd $2 > > MP4Box -add tmp/$3.mp4 mp4/$3.mp4 > > cd mp4 > > MP4Box -par 1=1:1 $FINAL > > > ------------------------------------------------------------------------------ > |