Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Гоним DVD в Xvid и "Проблема с AC3"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
AkhIL
n00b
n00b


Joined: 15 Jul 2005
Posts: 48
Location: Siberia

PostPosted: Sat Oct 22, 2005 7:55 am    Post subject: Гоним DVD в Xvid и "Проблема с AC3" Reply with quote

На днях я озадачился перегоном двд в иксвид, вот результат:

dvd2xvid.sh
Code:

#!/bin/bash
ab=160
tmpb=4000
outsize=700
mencopt=$@ #на всякий случай

mkfifo stream.yuv
mplayer dvd:// -identify $mencopt -noframedrop -vo yuv4mpeg:interlaced -ao pcm:file=audio.wav &
ffmpeg -f yuv4mpegpipe -i stream.yuv -b $tmpb -vcodec xvid -deinterlace -pass 1 -passlogfile passlog -y video.avi

dur=`ffmpeg -i audio.wav 2>&1 | grep Duration | tr "." " " | awk '{print $2}' | tr -d "," | tr ":" " "`
durH=`echo $dur | awk '{print $1}'`
durM=`echo $dur | awk '{print $2}'`
durS=`echo $dur | awk '{print $3}'`
dur=$(( $durH * 60 * 60 + $durM * 60 + $durS ))
br=$(( $outsize * 1024 / $dur * 8 - $ab ))

mplayer dvd:// -identify $mencopt -noframedrop -vo yuv4mpeg:interlaced -nosound > /dev/null&
ffmpeg -i audio.wav -acodec mp3 -ab $ab -f yuv4mpegpipe -i stream.yuv -b $br -vcodec xvid -deinterlace -pass 2 -passlogfile passlog -y -hq out.avi
rm stream.yuv audio.wav video.avi passlog*


Но возникла проблема, mplayer у меня отказывается играть ac3 звук. Что нужно сделать чтоб научить мплеер слушать ас3?
Back to top
View user's profile Send private message
sa10
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 251
Location: Minsk

PostPosted: Mon Oct 24, 2005 3:12 pm    Post subject: Reply with quote

Руками получается медленнее, но гораздо красивше
http://www.opennet.ru/base/X/mencoder_dvd2avi.txt.html

И вот еще полезняк
http://www.opennet.ru/base/X/mencoder_divx.txt.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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