Quantcast FFmpeg: Two Passes, Plus Audio, with only one Command? - digitalFAQ.com Forums [Archives]
  #1  
09-15-2003, 11:50 AM
Razorblade2000 Razorblade2000 is offline
Free Member
 
Join Date: Aug 2002
Posts: 323
Thanks: 0
Thanked 0 Times in 0 Posts
ffmpeg -i '/windows/H/rip/Spinnenmann/VTS_01_1.VOB' -s 352x288 -r 25 -an -b 833 -minrate 300 -maxrate 2500 -g 18 -bf 1 -y -pass 1 -passlogfile '/windows/E/spimalog.log' '/windows/E/Spiderman.mpg' && ffmpeg -i '/windows/H/rip/Spinnenmann/VTS_01_1.VOB' -s 352x288 -r 25 -an -b 833 -minrate 300 -maxrate 2500 -g 18 -bf 1 -y -pass 2 -passlogfile '/windows/E/spimalog.log' '/windows/E/Spiderman.mpg' && ffmpeg -i '/windows/H/rip/Spinnenmann/VTS_01_1.VOB' -vn -map 0:3 -ac 2 -ar 44100 -ab 112 '/windows/E/SpiderGER.mp2' && ffmpeg -i '/windows/H/rip/Spidermann/VTS_01_1.VOB' -vn -map 0:4 -ac 2 -ar 44100 -ab 112 '/windows/E/SpiderENG.mp2'

This is how I do the Spiderman DVD at the moment...
1 2-pass video encoding without having to enter a 2nd commandline or pressing Y to overwrite sth
2 audio streams are beeing made (in my case the german and the english audio track)

(of course you have to change this commandline according to your params)

All I have to do now is wait some time and multiplex these 3 files under windows...
(maybe I have to demultiplex the m1v (only video) from the mpeg file
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
09-15-2003, 04:03 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Thank God that Copy & Paste exists
Check the script that "El Mozo" posted
I haven't tested it yet, but it's supposed to automate the complete process

-kwag
Reply With Quote
  #3  
09-15-2003, 04:13 PM
Razorblade2000 Razorblade2000 is offline
Free Member
 
Join Date: Aug 2002
Posts: 323
Thanks: 0
Thanked 0 Times in 0 Posts
It uses mpeg2enc --> slow?!
Also its only divx2kvcd?

or isn't it? too tired right now :-/
Reply With Quote
  #4  
09-15-2003, 05:11 PM
totonho03 totonho03 is offline
Free Member
 
Join Date: Apr 2003
Location: Fallston, MD. USA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
Well:

I can see that you guys are light years ahead of me, not on age, but on ffmpeg wisdom
I have been trying to do a 2nd pass, but am not able to do so. I have deleted lines of the log, as per maestro kwag, as well as to trying to use razorblades' script, but there are some commands that my W98SE does not like. (-an is one of them). So after playing around with his script for about 2 hours, I went back to step 1, and tried to encode one vob with the following script:

Code:
E:\ffmpeg>ffmpeg.exe -i E:\ffmpeg\vob\Vts_13_4.vob -s 720X480 -r 29.97 -ab 112 -b 1800 -minrate 300 -maxrate 3000 -g 18 -bf 1 -y -pass 1 -passlogfile E:\ffmpeg\test\out\SLBE1vob13.log1 E:\ffmpeg\test\out\SLBE1vob13.mpg
Seems that stream 0 comes from film source: 29.97->24.47
Seems that stream 4 comes from film source: [color=red]25.00->-1.#J[/color]?? Why is this?
Input #0, mpeg, from 'E:\ffmpeg\vob\Vts_13_4.vob':
  Duration: 00:01:15.7, bitrate: 67940 kb/s
  Stream #0.0: Video: mpegvideo, 720x480, 29.97 fps, 9800 kb/s
  Stream #0.1: Audio: ac3, 48000 Hz, 5:1, 448 kb/s
  Stream #0.2: Audio: ac3, 48000 Hz, 5:1, 384 kb/s
  Stream #0.3: Audio: ac3, 48000 Hz, stereo, 192 kb/s
  Stream #0.4: Video: mpegvideo
Output #0, mpeg, to 'E:\ffmpeg\test\out\SLBE1vob13.mpg':
  Stream #0.0: Video: mpeg1video, 720x480, 29.97 fps, q=2-31, pass 1, 1800 kb/s
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 112 kb/s
Stream mapping:
  Stream #0.4 -> #0.0
  Stream #0.3 -> #0.1
frame=    0 q=0.0 size=   10268kB time=747.0 bitrate= 112.6kbits/s
and as you can see, it did not encod the video, only the audio, and the audio is scratchy at best.
Sooo, my next step was to encode the previous vob file Vts_13_3.vob, and it encoded both video and audio.........no scratchy sound..........
Power dvd plays Vts_13_4.vob with no problems.
Result of the tests I was doing in the past 4 hours:
1.- Found a new problem (vob 13.4 encoding audio only, no video)
2.- Still can not perform pass 2. Not even when I delete the last 5, 10, 15, 30, etc lines of the log, which in my case is very, very.........very long. (1335 pages and 56 lines per page for a 1.04 giga vob file)

I am going to rest for a little while, and come back to it in about an hour or so.

Any other advise on how to accomplish this 2nd pass? The encoding of the audio and not of the video?

Thanks for your help

Totonho03
Reply With Quote
  #5  
09-15-2003, 05:25 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Razorblade2000
It uses mpeg2enc --> slow?!
Also its only divx2kvcd?

or isn't it? too tired right now :-/
Yes, you're right
And ffmpeg's quality is FAR FAR better than mpeg2enc.
So disregard my previous message

-kwag
Reply With Quote
  #6  
09-15-2003, 05:29 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Totonho03,

I did a test, encoding a VOB, and the log error seems to happen only on Windows
I took the same VOB and the log file to Mac OS X, and it encoded the second pass perfectly.
So apparently, there's some weird error when processing on Windows

-kwag
Reply With Quote
  #7  
09-15-2003, 06:02 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
This old stupid "^M" that DOS loooooovvvvvveeeessssssss to add at the end of each line and that cause us loooooooooooot of problems while back in UNIX world ?

hugh ?
Reply With Quote
  #8  
09-15-2003, 06:11 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
This old stupid "^M" that DOS loooooovvvvvveeeessssssss to add
I thought of that, but that's not the case. Every line has a "^M", but the error is reported only on the last line, after parsing the complete file.
The log file I transfered from DOS to UNIX, was perfectly processed on OS X, with the "^M".
So it has to be something else.

-kwag
Reply With Quote
  #9  
09-15-2003, 06:19 PM
totonho03 totonho03 is offline
Free Member
 
Join Date: Apr 2003
Location: Fallston, MD. USA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you for your answers:

It appears that I need to become familiar with linux eh?

Regards

Otto
Reply With Quote
  #10  
09-16-2003, 01:25 PM
totonho03 totonho03 is offline
Free Member
 
Join Date: Apr 2003
Location: Fallston, MD. USA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
Gentlemen:

This is being sent to you via linux. I was able to download the iso file and burnt it with no problems at all. It is somewhat weird to work with different screens, but the look of the screen reminds of Apple more so than Windows, or like someone put it somewhere like windass

My next step is to figure out how to work with this cd and the window files.

Regards

Totonho03

This is of course step 1. Step 2 is to use ffmpeg with linux

Edit 1.- I am now able to open up window files, on C and E (E is the partition created a month or so ago)so far I have been able to open .doc, excel and pps files. One thing that it is not doing, it is not recognizing my external drive, which is a bummer, because all of my video & audio programs are there. I guess it is not recognizing the IEEE (firewire) card. This is strange, because during the loading of the linux OS, I was able to read that it recognized the PCMCIA? card. Will post in their site for an answer....
Reply With Quote
  #11  
09-16-2003, 01:57 PM
Razorblade2000 Razorblade2000 is offline
Free Member
 
Join Date: Aug 2002
Posts: 323
Thanks: 0
Thanked 0 Times in 0 Posts
which distro are you using?

edit:
he'll maybe detect your external drive, but you may have to mount (this is the process of giving a device such as a harddisc or a cd-writer a directory in which the content of the partition is shown... similar to the windows "subst" command)
Reply With Quote
  #12  
09-16-2003, 02:24 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Razorblade2000
which distro are you using?
He's using "Knoppix". A Debian based distro. ( So am I )
I'm setting that up today, to run MythTV.

-kwag
Reply With Quote
  #13  
09-16-2003, 02:39 PM
Razorblade2000 Razorblade2000 is offline
Free Member
 
Join Date: Aug 2002
Posts: 323
Thanks: 0
Thanked 0 Times in 0 Posts
I know Knoppix... but I thought it was a boot-cd only preject?
Reply With Quote
  #14  
09-16-2003, 03:34 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Razorblade2000
I know Knoppix... but I thought it was a boot-cd only preject?
Yes. But once you boot from CD, if you want to make a full HD install, go to a shell prompt, and type: knx-hdinstall

-kwag
Reply With Quote
  #15  
09-16-2003, 03:42 PM
Razorblade2000 Razorblade2000 is offline
Free Member
 
Join Date: Aug 2002
Posts: 323
Thanks: 0
Thanked 0 Times in 0 Posts
ohhhhhhhhhhh.... NICE!
I liked knoppix very much...
I am playing with the ideo to install Knoppix instead of my suse linux... (or shouldn't I?)
Reply With Quote
  #16  
09-16-2003, 04:34 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
I've installed it twice today. On my notebook, and now on a PC, which will be the PVR for our livingroom (with the WinTV PVR-250 MPEG real-time capture board ).
I'll let you know how it comes out
I'm currently checking the installation on the PC, followed by the MythTV full download and installation.

-kwag
Reply With Quote
  #17  
09-16-2003, 04:42 PM
Razorblade2000 Razorblade2000 is offline
Free Member
 
Join Date: Aug 2002
Posts: 323
Thanks: 0
Thanked 0 Times in 0 Posts
just downloading knoppix...
96 kb/s ... nice speed

At least for germans, a nice page 4 installing knoppix on HD:
http://www.stefanlanger.de/linux/knoppix-hd.html


or an english translation (at least some english words are recognizable...*g*):
http://translate.google.com/translat...language_tools
Reply With Quote
  #18  
09-16-2003, 10:13 PM
totonho03 totonho03 is offline
Free Member
 
Join Date: Apr 2003
Location: Fallston, MD. USA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
OK all you linux wizzards:

Earlier I reported that when in linux, I can open the windows files, so far so good. But then later on the day, I tried to copy files from one "mounted" drive to the other, but the command was rejected. In one ocassion it told me that I need "permission" to do that.

3 questions:

1.- How do I copy files from one monted drive to the other?
2.- Still can not see my externald drive, how can I 'mount" the drive and the hp 200e writter, and printer (for the printer is asking me for "cups" which I imagine are similar to the drivers needed for that particular application?
3.- Where can I get an easy to read linux guide? I have tried a couple of them, but they are not easy to follow.

Thanks and best regards

Totonho03
Reply With Quote
  #19  
09-17-2003, 01:39 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Otto,

Drop into a shell, and type "su", which means, Super User.
It will ask you for the "root" password.
Enter it, now you have full control of your machine. Be careful
You can now do anything, even destroy your OS
For Linux guides, go here: http://tldp.org/

-kwag
Reply With Quote
  #20  
09-17-2003, 09:23 AM
totonho03 totonho03 is offline
Free Member
 
Join Date: Apr 2003
Location: Fallston, MD. USA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Kwag.

No, I do not want to break my machine at all, so I am going to check the guide and learn a little more about linux.

I am waiting for some sort of a code to enter the linux forum, and as soon as I get there I will post the question as well. I am sure that someone has run into this problem there. Another thing that I have noticed is that the Knoppix web page is not on the air. Something to do with the new German or European copyright rules and regiulations.

Thanks again

Otto
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD-RB + CCE: How many passes is enough? audioslave Video Encoding and Conversion 20 11-06-2004 09:55 PM
FFMPEG: Using FFVFW from command-line vmesquita Video Encoding and Conversion 1 03-29-2004 07:05 PM
FFMPEG: Encoding Audio: toolame,mp2enc or ffmpeg Razorblade2000 Video Encoding and Conversion 0 10-18-2003 03:04 PM
FFMPEG: no Audio on dvd player? adame Video Encoding and Conversion 4 10-13-2003 01:50 PM
FFMPEG: Current Command line Razorblade2000 Video Encoding and Conversion 5 09-10-2003 08:49 AM

Thread Tools



 
All times are GMT -5. The time now is 04:04 AM  —  vBulletin © Jelsoft Enterprises Ltd