Skip to main content

Thread: need help encoding xvid with ffmpeg


i'm trying encode kids cartoon .ts source reasonable sized avi file. resulting output bit blocky.

have ffmpeg instruction use or see mistakes in instruction?

i'm using following ffmpeg instruction:
ffmpeg -i input.ts -y -pass 1 -c:v mpeg4 -s hd480 -b:v 1072k -bf 2 -level 5 -deinterlace -an -f avi /dev/null && ffmpeg -i input.ts -y -pass 2 -c:v mpeg4 -s hd480 -b:v 1072k -bf 2 -level 5 -deinterlace -c:a libmp3lame -b:a 128k -ac 2 output.avi

using source described here:
mediainfo input.ts

general
id : 1 (0x1)
complete name : input.ts
format : mpeg-ts
file size : 2.38 gib
duration : 25mn 32s
overall bit rate mode : variable
overall bit rate : 13.4 mbps

video
id : 2048 (0x800)
menu id : 1 (0x1)
format : mpeg video
format version : version 2
format profile : main@high
format settings, bvop : yes
format settings, matrix : default
format settings, gop : m=3, n=15
codec id : 2
duration : 25mn 32s
bit rate mode : variable
bit rate : 12.3 mbps
maximum bit rate : 14.5 mbps
width : 1 920 pixels
height : 1 080 pixels
display aspect ratio : 16:9
frame rate : 29.970 fps
color space : yuv
chroma subsampling : 4:2:0
bit depth : 8 bits
scan type : interlaced
scan order : top field first
compression mode : lossy
bits/(pixel*frame) : 0.198
stream size : 2.20 gib (92%)

mediainfo of result (sample) shows following:
mediainfo output.avi
general
complete name : output.avi
format : avi
format/info : audio video interleave
file size : 4.37 mib
duration : 30s 48ms
overall bit rate : 1 220 kbps
writing application : lavf53.24.2

video
id : 0
format : mpeg-4 visual
format profile : advanced simple@l5
format settings, bvop : 2
format settings, qpel : no
format settings, gmc : no warppoints
format settings, matrix : default (h.263)
codec id : fmp4
duration : 30s 30ms
bit rate : 1 076 kbps
width : 852 pixels
height : 480 pixels
display aspect ratio : 16:9
frame rate : 29.970 fps
color space : yuv
chroma subsampling : 4:2:0
bit depth : 8 bits
scan type : progressive
compression mode : lossy
bits/(pixel*frame) : 0.088
stream size : 3.85 mib (88%)
writing library : lavc53.42.4


pertinent version info
ffmpeg -version
ffmpeg 0.9.1-4:0.9.1-0ubuntu1~jon1
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 4 / 53. 42. 4
libavformat 53. 24. 2 / 53. 24. 2
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. 0. 0


uname -a
linux server 3.0.0-14-generic #23-ubuntu smp mon nov 21 20:28:43 utc 2011 x86_64 x86_64 x86_64 gnu/linux

do have particular reason using xvid , avi? better choice might x264 , mp4 or mkv...


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Multimedia Software [SOLVED] need help encoding xvid with ffmpeg


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account