LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2007, 01:22 AM   #1
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
DVD to AVI


Hey All,
Ok, I understand how to do avi to dvd converting. But now I would like to learn how to go the other way around, without the use of the guiness. I looked around online and came up with the command:
Code:
cat *VOB | nice -+19 mencoder -oac copy -o mymovie.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vpass=2:vqmin=2:vqmax=31 -
This converts the audio and video in one swoop, however as I am sure many of you guessed, the sound is off by like 5 minutes. Also, when I was converting, mencoder skipped alot of frames, and came to the point where every about quarter of a second it said:
Code:
Too many video packets in the buffer: (4096 in 8259436 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
So I tried the -ni option, but that didn't fix it at all. It gave the same message. I ran the command:
Code:
nice -19 cat *VOB | nice -19 mencoder -ovc frameno -o frameno.avi -oac mp3lame -lameopts abr:br=128 -aid 128 -
Which from my understanding extracted just the audio from the VOB files.
However, when I ran this it also gave the same "too many packets in buffer" error. However the sound appears to be ok, even though it shows it made 10 hours out of a 2 hour movie. My video from the previous command appears to be ok. With the exception of the sound being off. Any ideas on something I may have done wrong? Or maybe some info about that error message?

Thanks,
DragonM15
 
Old 05-17-2007, 11:37 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Take a look at dvd::rip. It does a nice job. http://www.exit1.org/dvdrip/
 
Old 05-17-2007, 05:45 PM   #3
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by lazlow
Take a look at dvd::rip. It does a nice job. http://www.exit1.org/dvdrip/
Yeah, I have tried dvd::rip before, but it doesnt work for me. It installs fine, I can make a new project, select my VOB files but when I hit transcode, it thinks about it for about 10 seconds and makes an avi file that has no sound or video at all. If I have it show me a preview all it shows me is a black window. My log file says:
Code:
Thu May 17 15:39:56 2007 Start job 'Transcode multipass - title #17'
Thu May 17 15:39:56 2007 Start job 'Transcode video - title #17, pass 1'
Thu May 17 15:39:56 2007 Executing command: mkdir -m 0775 -p '/home/user/dvdrip-data/Resident_Evil/tmp' && cd /home/user/dvdrip-data/Resident_Evil/tmp && mkdir -p /home/user/dvdrip-data/Resident_Evil/avi/017 && execflow -n 0 transcode -H 10 -a 0 -T 17,-1,1 -x dvd -i \/home\/user\/resident\/RESIDENT_EVIL\/ -w 9000,50 -b 128,0,0 --a52_drc_off -I 3 -f 24,1 -M 2 -J preview=xv -R 1 -y xvid4,null -o /dev/null --print_status 25 && echo EXECFLOW_OK
Thu May 17 15:40:00 2007 Start job 'Transcode video - title #17, pass 2'
Thu May 17 15:40:00 2007 Executing command: mkdir -m 0775 -p '/home/user/dvdrip-data/Resident_Evil/tmp' && cd /home/user/dvdrip-data/Resident_Evil/tmp && mkdir -p /home/user/dvdrip-data/Resident_Evil/avi/017 && execflow -n 0 transcode -H 10 -a 0 -T 17,-1,1 -x dvd -i \/home\/user\/resident\/RESIDENT_EVIL\/ -w 9000,50 -b 128,0,0 --a52_drc_off -I 3 -f 24,1 -M 2 -J preview=xv -R 2 -y xvid4 -o /home/user/dvdrip-data/Resident_Evil/avi/017/Resident_Evil-017.avi --print_status 25 && echo EXECFLOW_OK
Thu May 17 15:40:00 2007 Job 'Transcode video - title #17, pass 1' finished
Thu May 17 15:40:00 2007 Transcode multipass - title #17: 50% done.
Thu May 17 15:40:04 2007 Job 'Transcode multipass - title #17' finished
Thu May 17 15:40:04 2007 Job 'Transcode video - title #17, pass 2' finished
But if I open the avi file it created it says:
Code:
Playing Resident_Evil-017.avi.
AVI file format detected.
AVI: Missing video stream!? Contact the author, it may be a bug :(
Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/codecs/avisynth.dll, /u
sr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
libavformat file format detected.
[avi @ 0x86807a0]Could not find codec parameters (Video: mpeg4, 720x480)
VIDEO:  [XVID]  720x480  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:   0.0 V:   0.0 A-V:  0.000 ct:  0.000   0/  0 ??% ??% ??,?% 0 0 

Exiting... (End of file)
So it is obviously something that dvd::rip is not doing.
For my video settings I have it set to the xvid4 codec, 2-pass encoding, zoom to full frame, and my audio is set to the default. Also, I can play the VOB file I am trying to convert in the 'Rip Title' tab and/or just open the VOB file via mplayer. Any ideas what is causing this to happen?

Thanks,
DragonM15
 
Old 05-17-2007, 05:46 PM   #4
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
I have also tried the xvid codec. The DivX4 and 5 give me errors.

DragonM15
 
Old 05-17-2007, 06:05 PM   #5
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
since it says it's opening ffmpeg to try to view the stream, try encoding with that. ffmpeg always works the best for me anyway.
 
Old 05-17-2007, 06:16 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I usually just use dvd::rip to get the separate vob titles. I then use avidemux2 to convert them into whatever I need.
 
Old 05-17-2007, 07:26 PM   #7
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by slackhack
since it says it's opening ffmpeg to try to view the stream, try encoding with that. ffmpeg always works the best for me anyway.
I just tried switching the codec to ffmpeg and I get the error message:
Code:
Job 'Transcode video - title #17, pass 2' failed with error message:
Command exits with failure code:
Command: mkdir -m 0775 -p '/home/user/dvdrip-data/Resident_Evil/tmp' && cd /home/user/dvdrip-data/Resident_Evil/tmp && mkdir -p /home/user/dvdrip-data/Resident_Evil/avi/017 && execflow -n 0 transcode -H 10 -a 0 -T 17,-1,1 -x dvd -i \/home\/user\/resident\/RESIDENT_EVIL\/ -w 9000,50 -F mpeg4 -b 128,0,0 --a52_drc_off -I 3 -f 24,1 -M 2 -J preview=xv -R 2 -y ffmpeg -o /home/user/dvdrip-data/Resident_Evil/avi/017/Resident_Evil-017.avi --print_status 25 && echo EXECFLOW_OK

Output: transcode v1.0.3 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
(dvd_reader.c) DVD title 17/21: 2 chapter(s), 1 angle(s), title set 3
(dvd_reader.c) title playback time: 00:04:30.21  271 sec
(dvd_reader.c) [Chapter 01] 00:00:00.000 , block from 277463 to 347694
(dvd_reader.c) [Chapter 02] 00:04:29.367 , block from 347695 to 347985
tc_memcpy: using sse for memcpy
[import_dvd.so] v0.4.0 (2003-10-02) (video) DVD | (audio) MPEG/AC3/PCM
Xv: NV17 Video Texture: ports 275 - 306
Xv: grabbed port 275
 Using Xv for display
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc51.40.4 | (audio) MPEG/AC3/PCM
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source /home/user/resident/RESIDENT_EVIL/ (ok)
[transcode] V: import format    | MPEG-2 DVD NTSC (V=dvd|A=dvd)
[transcode] V: AV demux/sync    | (2) initial MPEG sequence / enforce frame rate
[transcode] V: import frame     | 720x480  1.50:1  encoded @ 4:3
[transcode] V: de-interlace     | (mode=3) zoom to full frame (slow)
[transcode] V: bits/pixel       | 1.086
[transcode] V: decoding fps,frc | 23.976,1
[transcode] V: multi-pass       | (mode=2) reading data (pass2) from divx4.log
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]
[transcode] A: export format    | 0x55    MPEG layer-3 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 23.976,1
[transcode] A: language         | en
[transcode] A: bytes per frame  | 8008 (8008.000000)
[transcode] A: adjustment       | 0@1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
[transcode] V: video buffer     | 10 @ 720x480
[filter_preview.so] v0.1.4 (2002-10-08) xv/sdl/gtk preview plugin
[filter_preview.so] options=xv
[filter_preview.so] preview window 720x480
[import_dvd.so] tccat -T 17,-1,1 -i "/home/user/resident/RESIDENT_EVIL/" -t dvd -d 0 -L | tcdemux -a 0 -x ac3 -S 0 -M 2 -d 0 | tcextract -t vob -x ac3 -a 0 -d 0 | tcdecode -x ac3 -d 0 -s 1.000000,1.000000,1.000000 -A 1
[import_dvd.so] tccat -T 17,-1,1 -i "/home/user/resident/RESIDENT_EVIL/" -t dvd -d 0 | tcdemux -s 0x80 -x mpeg2 -S 0 -M 2 -f 23.976024 -P /tmp/fileciEHrZ -d 0 | tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode -x mpeg2 -d 0 -y yv12
[import_dvd.so] delaying DVD access by 3 second(s)
.tc_memcpy: using sse for memcpy
..tc_memcpy: using sse for memcpy
tcdecode: symbol lookup error: tcdecode: undefined symbol: mpeg2_accel
[export_ffmpeg.so] Using FFMPEG codec 'mpeg4' (FourCC 'DIVX', MPEG4 compliant video).
[export_ffmpeg.so]: WARNING: Interlacing parameters unknown, use --encode_fields
[export_ffmpeg.so]: INFO: No profile selected
[export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg'
[export_ffmpeg.so] found. Default settings will be used instead.
[export_ffmpeg.so]: INFO: Starting 1 thread(s)
[export_ffmpeg.so]: INFO: Set display aspect ratio to input
[export_ffmpeg.so] Could not read the complete 2pass log file "divx4.log".
[transcode] warning : (encoder.c) video export module error: init failed

[transcode] critical: failed to init encoder

--------------------------------------------------------------------------------
What should I do for this?

DragonM15
 
Old 05-17-2007, 07:29 PM   #8
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by lazlow
I usually just use dvd::rip to get the separate vob titles. I then use avidemux2 to convert them into whatever I need.
I have never used avidemux2 before... Would that take a single VOB file and convert it to AVI without a problem? Or are there extra steps necessary? For example, when I convert from avi to DVD I usually separate the sound and video to ensure synchronization. Is this also the case for avidemux2?

DragonM15
 
Old 05-17-2007, 07:40 PM   #9
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by DragonM15
I have never used avidemux2 before... Would that take a single VOB file and convert it to AVI without a problem? Or are there extra steps necessary? For example, when I convert from avi to DVD I usually separate the sound and video to ensure synchronization. Is this also the case for avidemux2?

DragonM15
Nevermind.... its an AVI Editor.... it cant open VOB files
 
Old 05-17-2007, 08:28 PM   #10
Ryptyde
Member
 
Registered: Jun 2004
Location: Tragic City,Michigan,USA
Distribution: Fedora 23 Fedora 22
Posts: 244

Rep: Reputation: 39
I have used dvd::rip to make an .avi from a DVD a while back.
Here's one of the log files that was generated:
Code:
# Movie information file. Generated by dvd::rip; http://www.exit1.org/dvdrip

[General]
Title:                 ICEAGE
Data source:           DVD
DVD title number:      60
Runtime:               01:30:35

[Video]
Video format:          NTSC
FPS:                   23.976
Size:                  640 x 352
Video bitrate (kbps):  2021
Video codec:           xvid
2-pass-encoded:        yes
Fast resizing:         yes
Deinterlacer filter:   
Antialiasing filter:   No antialiasing

[Audio 1]
DVD audio track id:    0
Language:              en
Audio codec:           mp3
MP3 quality:           2
Channels:              2
Sample rate:           48000
Audio bitrate (kbps):  128
Volume rescaling:      1.397
Audio filter:          None, volume rescale only

[Programs]
dvd::rip version:      0.98.2
transcode version:     1.0.2
also I can view the finished .avi in VLC,Kaboodle,mplayer,movie player,noatun and xine to name a few.
 
Old 05-18-2007, 12:44 PM   #11
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
I changed everything so that it is exactly as your config looks to be. The versions of dvdrip and transcode I am using is:
Code:
sh-3.1$ dvdrip --version
0.98.6
sh-3.1$ transcode --version
transcode v1.0.3 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
What is going on? I am able to convert my movie with the command:
Code:
mencoder dvd://1 -dvd-device /home/user/resident/RESIDENT_EVIL/ -ovc xvid -xvidencopts pass=1 -aid 128 -oac copy -o /dev/null && mencoder dvd://1 -dvd-device /home/user/resident/RESIDENT_EVIL/ -ovc xvid -xvidencopts pass=2:bitrate=1000 -aid 128 -oac mp3lame -lameopts vbr=3 -o resident.avi
However, the video is kinda choppy at parts.... not too bad, and the sound doesnt work, it just kinda jumps a little bit on some parts.... But it works, and the sound is in sync. So that works So, any ideas for dvdrip?

DragonM15
 
Old 05-18-2007, 01:24 PM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Dragon

Avidemux can open .vob files (as well as most others). .vob files are just mpeg2 files.
 
Old 05-18-2007, 01:39 PM   #13
karpi
Member
 
Registered: Oct 2005
Location: Germany
Distribution: Suse
Posts: 134

Rep: Reputation: 15
hello,

if you want to convert a DVD to avi try the following with mencoder.

mencoder dvd://X -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000 myavi.avi

where X is the title number from the dvd. Maybe you can use the parameter -dvd_device /Path/to/the/dvd/files.

for more options check the docs under /usr/share/docs/packages/mplayer
they have a lot of good examples there.

HTH
 
Old 05-18-2007, 04:55 PM   #14
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by lazlow
Dragon

Avidemux can open .vob files (as well as most others). .vob files are just mpeg2 files.
Ok, how about this... It wont open the resident evil vobs that I have on my hard drive that I have been trying to convert, but it will open my spiderman 2 vobs for some reason.... I will try spiderman 2 in dvdrip.

Karpi, you command works wonders and does exactly what i wanted to do. Thanks!

DragonM15
 
Old 05-18-2007, 05:04 PM   #15
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
and it still doesnt work in dvdrip for some reason.... I tried telling it to encode the dvd on the fly, and the dvd doesnt even spin. Just something to add to the question of why this isnt working with dvdrip.

DragonM15
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
AVI to DVD ptesone Linux - Software 9 07-21-2009 08:11 PM
dvd vs avi rgreeves Ubuntu 12 03-18-2007 10:34 PM
avi/dvd stasik Linux - Newbie 4 01-01-2006 11:21 PM
DVD AVI rip to DVD mooreted Mandriva 4 02-20-2005 08:57 AM
AVI on dvd? benne Linux - Software 3 02-05-2005 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration