Advertisement
sam-zhang

Untitled

Dec 20th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1.  
  2. #!/bin/bash
  3. mkfifo tmp.wav
  4. mkfifo tmp.yuv
  5.  
  6.  
  7. mencoder dvd://1 -dvd-device ./test_dvd/ -slang zh -frames 1000 -vf format=i420 -nosound -ovc raw -of rawvideo -ofps 25 -o tmp.yuv < /dev/null &
  8. mplayer dvd://1 -dvd-device ./test_dvd/ -alang zh -frames 1000 -af resample=44100:0:2,channels=2,volnorm=1:0.25,format=s16le -ao pcm:file=tmp.wav -vc dummy -vo null < /dev/null &
  9. ffmpeg -s 720x576 -i tmp.yuv -vcodec libx264 -i tmp.wav -acodec libmp3lame test.mp4 < /dev/null &
  10. ffmpeg -s 720x576 -i tmp.yuv -vcodec libx264 -i tmp.wav -acodec libmp3lame test1.mp4 < /dev/null
  11.  
  12.  
  13. rm tmp.yuv
  14. rm tmp.wav
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement