[mythtv-users] Transcoding AVI files

Byron Poland wpoland at gmail.com
Thu Jan 18 19:31:39 UTC 2007


I'm running into a similar problem trying to transcode an mpeg2 (hd
recording) for the psp.  I compiled the current mplayer release from
source, since i'm running ubuntu dapper, and the mencoder encluded
didn't support the psp option.  I'm also running on an amd64 build.

It looks to me as if mplayer isn't detecting the audio track.. I know
s52 and dts were compiled into mplayer.... (at least they checked out
okay in the configure script)

Here's my command line output:

mencoder -aid 0 -oac lavc -ovc lavc -of lavf -lavcopts
aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac -af
lavcresample=24000:volume=10.1:0 -vf harddup -lavfopts
format=psp:i_certify_that_my_video_stream_does_not_use_b_frames -vf
scale=368:208 -info name="test" -o test.mp4
/myth/tv/1061_20061012210000.mpg
MEncoder 1.0rc1-4.0.3 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 31, Stepping: 0)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 0  data: 0x0 - 0x4d3fdf90
TS file format detected.
VIDEO MPEG2(pid=2048) NO AUDIO!  NO SUBS (yet)!  PROGRAM N. 0
VIDEO:  MPEG2  1280x720  (aspect 3)  59.940 fps  38810.4 kbps (4851.3 kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:1280x720  fps:59.94  ftime:=0.0167
** MUXER_LAVF *****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=368 h=208]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1280 x 720 (preferred colorspace: Mpeg PES)
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 15 -> 16
SwScaler: reducing / aligning filtersize 15 -> 16
SwScaler: reducing / aligning filtersize 15 -> 14
SwScaler: reducing / aligning filtersize 15 -> 14

SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
SwScaler: using n-tap MMX scaler for horizontal luminance scaling
SwScaler: using n-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 1280x720 -> 368x208
videocodec: libavcodec (368x208 fourcc=34504d46 [FMP4])
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
VIDEO CODEC ID: 13
Writing header...
[psp @ 0x8d77a0]PSP mode need one video and one audio stream
Floating point exception)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]




On 1/10/07, David Fishburn <fishburn at ianywhere.com> wrote:
>
> Myth 0.20
> Ubuntu Edgy
> Ivtv 0.81
> Kernel 2.6.18
>
> I have an AVI file I would like to resize for a PSP which has a nice wide
> display.  I was hoping to use the same settings I use for transcoding MPEG2
> recordings, but when I attempt this I get:
>
> Writing header...
> [psp @ 0xa932f0]PSP mode need one video and one audio stream
> [mpeg4 @ 0xc67e50]frame skip 8
>
> Here is the full output, does anyone have any suggestions?
>
> mythtv at myth:~/bin$ mencoder -aid 0 -oac lavc -ovc lavc -of lavf -lavcopts
> aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=600:acodec=aac -af
> lavcresample=24000:volume=10.1:0 -vf harddup -lavfopts
> format=psp:i_certify_that_my_video_stream_does_not_use_b_frames -vf
> scale=368:208 -quiet -o /media/mythtv/pda/Heroes.S01E01.mp4
> /myth_extras/videos/Heroes.S01E01.HDTV.XviD-LOL.avi
> MEncoder 2:0.99+1.0pre8-0ubuntu8 (C) 2000-2006 MPlayer Team
>
> CPU: AMD Athlon(tm) 64 Processor 3500+ (Family: 15, Model: 79, Stepping: 2)
> CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
> success: format: 0  data: 0x0 - 0x15d5f000
> AVI file format detected.
> AVI: invalid audio stream ID: 0 - ignoring (nosound)
> AVI_NI: No audio stream found -> no sound.
> VIDEO:  [XVID]  624x352  12bpp  23.976 fps  777.4 kbps (94.9 kbyte/s)
> [V] filefmt:3  fourcc:0x44495658  size:624x352  fps:23.98  ftime:=0.0417
> ** MUXER_LAVF
> *****************************************************************
> You have certified that your video stream does not contain B frames.
> REMEMBER: MEncoder's libavformat muxing is presently broken and will
> generate
> INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
> will play these INCORRECT files as if nothing were wrong!
> ****************************************************************************
> ***
> OK, exit
> Opening video filter: [expand osd=1]
> Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
> Opening video filter: [scale w=368 h=208]
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
> ==========================================================================
> VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
>
> SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
> videocodec: libavcodec (368x208 fourcc=34504d46 [FMP4])
> [mpeg4 @ 0xc67e50]frame skip 8
> VIDEO CODEC ID: 13
> Writing header...
> [psp @ 0xa932f0]PSP mode need one video and one audio stream
> [mpeg4 @ 0xc67e50]frame skip 8
>
>
> Thanks,
> Dave
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


More information about the mythtv-users mailing list