Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with mplayer 1.0_rc1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
nutznboltz
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 239

PostPosted: Sun Jan 28, 2007 9:01 pm    Post subject: Problem with mplayer 1.0_rc1 Reply with quote

I try to convert a video
Code:
$ any2vob --format=ntsc --surround=no --aspect=4:3 -i ~/Desktop/PrettyDyanaAGypsyrec.avi

Eventually the any2vob script runs this command:
Code:
transcode -H0 -i "/home/nutz/Desktop/PrettyDyanaAGypsyrec.avi" -x mplayer="-mc 0",mplayer -f 25.000 -g 480x360 -n 0x1 -e 0,16,0 -y ffmpeg -F mpeg2 -Z 720x480 --export_asr 2  -J resample,modfps=clonetype=3 --export_fps 29.970 -D0 -N 0x2000 -E 48000,16,2 -b 384 -s2 -m "tmp_any2dvd/PrettyDyanaAGypsyrec.ac3" -o "tmp_any2dvd/PrettyDyanaAGypsyrec"

Zero is not a valid sampling rate so '-e 0,16,0' causes transcode to refuse to do any work.

The zero is coming from an attempt to analyze the video with mplayer. The command that any2vob builds is similar to this:
Code:
$ mplayer -vo dummy -identify -aid 1 ~/Desktop/PrettyDyanaAGypsyrec.avi
MPlayer 1.0rc1-4.1.1 (C) 2000-2006 MPlayer Team
CPU: AMD Opteron(tm) Processor 246 (Family: 15, Model: 5, Stepping: 8)
MMX2 supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX SSE SSE2

Playing /home/kstailey/Desktop/PrettyDyanaAGypsyrec.avi.
AVI file format detected.
ID_VIDEO_ID=0
ID_AUDIO_ID=1
VIDEO:  [divx]  480x360  24bpp  25.000 fps  920.0 kbps (112.3 kbyte/s)
ID_FILENAME=/home/kstailey/Desktop/PrettyDyanaAGypsyrec.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=divx
ID_VIDEO_BITRATE=920048
ID_VIDEO_WIDTH=480
ID_VIDEO_HEIGHT=360
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=2700.00
Error opening/initializing the selected video_out (-vo) device.

The ID_AUDIO_RATE=0 and ID_AUDIO_NCH=0 from the mplayer output are reprocessed into the poison -e option passed to transcode.

I think even trying to use mplayer in this way is a mistake. When I use tcprobe it produces the correct -e line:
Code:
$ tcprobe -i ~/Desktop/PrettyDyanaAGypsyrec.avi
[tcprobe] RIFF data, AVI video
[avilib] V: 25.000 fps, codec=divx, frames=67500, width=480, height=360
[avilib] A: 44100 Hz, format=0x55, bits=0, channels=2, bitrate=128 kbps,
[avilib]    103357 chunks, 43199007 bytes, CBR
[tcprobe] summary for /home/kstailey/Desktop/PrettyDyanaAGypsyrec.avi, (*) = not default, 0 = not detected
import frame size: -g 480x360 [720x576] (*)
       frame rate: -f 25.000 [25.000] frc=3
      audio track: -a 0 [0] -e 44100,0,2 [48000,16,2] -n 0x55 [0x2000] (*)
                   bitrate=128 kbps
           length: 67500 frames, frame_time=40 msec, duration=0:45:00.000


Last edited by nutznboltz on Mon Jan 29, 2007 12:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
nutznboltz
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 239

PostPosted: Mon Jan 29, 2007 12:17 pm    Post subject: Reply with quote

On amd64 mplayer 1.0_rc1 (stable version) causes ID_AUDIO_RATE=0 and ID_AUDIO_NCH=0 when the -identify option is used (see previous post for examples.)

I tried with mplayer-bin 1.0_pre8 on the same amd64 and I see correct values for ID_AUDIO_RATE= and ID_AUDIO_NCH=
Code:
$ mplayer-bin -vo dummy -identify -aid 1 ~/vids/PrettyDyanaAGypsyrec.avi 2> /dev/null | egrep 'ID_AUDIO_RATE|ID_AUDIO_NCH'
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
$


So I symlink ~/bin/mplayer to /usr/bin/mplayer-bin and put ~/bin at the front of my $PATH and any2vob starts working.
Back to top
View user's profile Send private message
sabbat
n00b
n00b


Joined: 16 Dec 2003
Posts: 34
Location: Australia

PostPosted: Mon Feb 12, 2007 12:16 pm    Post subject: Reply with quote

I'm running into the same problem with any2vob/dvd.
I'm running ~x86, and there's no mplayer-bin anymore for x86, only amd64.

I was wondering if anyone else was having this problem with mplayer, not picking up the ID_AUDIO_RATE and ID_AUDIO_NCH. Or, if their version does, please tell me a version number.

I'm using mplayer-1.0_rc1-r2.

I'm going to try stepping back a couple of versions to see if that has an effect, and if not, I'll try an SVN version.

Apart from that, I'm at a loss.
_________________
I'm not as think you confused I am!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum