View Single Post
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#5
ladoga,

For the second command I think you mean to put it as -vb 1024k instead of 1536k


Edit: I know you hate resolutions higher than the stock but i tried and it works perfectly fine with 1280x720; will now attempt to use movgrab to download a file and encode it to 720p baseline at the same time so that one file can be played across your desktop and device...


Edit 2: I missed out on the "" marks in the movgrab stage and it wasn't working but it works now

Code:
~ $ X=input.mp4 ; movgrab -o "$X" -f mp4:1280x720 "http://www.youtube.com/watch?v=xxxxxxx" ; ffmpeg -i $X -s 1280x720 -r 25 -g 25 -vcodec libx264 -vb 1024k -vprofile baseline -acodec ac3 -ab 192k -ac 6 output.mp4 ; rm -rf $X

Edit 3: Update second edit with a cleaner command and changed fps to 25fps with 1 I-frame being created per second as per ladoga's method which results in smoother seeking in the video.


Edit 4: Just realized that the command in edit 2 says 1024k for the video bitrate; it can be safely increased to 1536k as per ladoga's first post.

Last edited by thedead1440; 2012-12-26 at 04:02. Reason: Edited one-line command for better usability
 

The Following 3 Users Say Thank You to thedead1440 For This Useful Post: