digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   FFMPEG: Two Passes, plus audio, with only one command? (http://www.digitalfaq.com/archives/encode/5607-ffmpeg-two-passes.html)

Razorblade2000 09-15-2003 11:50 AM

FFMPEG: Two Passes, plus audio, with only one command?
 
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 :?:

kwag 09-15-2003 04:03 PM

Thank God that Copy & Paste exists :mrgreen:
Check the script that "El Mozo" posted :idea:
I haven't tested it yet, but it's supposed to automate the complete process :cool:

-kwag

Razorblade2000 09-15-2003 04:13 PM

It uses mpeg2enc --> slow?!
Also its only divx2kvcd?

or isn't it? too tired right now :-/

totonho03 09-15-2003 05:11 PM

Well:

I can see that you guys are light years ahead of me, not on age, but on ffmpeg wisdom :D
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

kwag 09-15-2003 05:25 PM

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

kwag 09-15-2003 05:29 PM

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 :roll:

-kwag

Dialhot 09-15-2003 06:02 PM

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 ?

kwag 09-15-2003 06:11 PM

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

totonho03 09-15-2003 06:19 PM

Thank you for your answers:

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

Regards

Otto

totonho03 09-16-2003 01:25 PM

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 :D

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 :D

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....

Razorblade2000 09-16-2003 01:57 PM

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)

kwag 09-16-2003 02:24 PM

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

Razorblade2000 09-16-2003 02:39 PM

I know Knoppix... but I thought it was a boot-cd only preject?

kwag 09-16-2003 03:34 PM

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

Razorblade2000 09-16-2003 03:42 PM

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?)

kwag 09-16-2003 04:34 PM

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

Razorblade2000 09-16-2003 04:42 PM

just downloading knoppix... :D
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

totonho03 09-16-2003 10:13 PM

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

kwag 09-17-2003 01:39 AM

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

totonho03 09-17-2003 09:23 AM

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

rhino 09-17-2003 10:04 AM

does Knoppix support reading AND writing to NTFS paritions? Or is an additional kernel module required?

Cheers,

kwag 09-17-2003 11:34 AM

Quote:

Originally Posted by rhino
does Knoppix support reading AND writing to NTFS paritions? Or is an additional kernel module required?

Cheers,

Read only.
Check here: http://linux-ntfs.sourceforge.net/info/ntfs.html#3.2

-kwag

japie 09-18-2003 09:50 AM

I have no idea how the partitions are seen in knoppix, but I gues they yust showup on your kde-desktop.
If you mount as partition as user, that user has control over the partition (if alls well)
unless: knoppix is standard configured to read-only to prevent U (the unexperienced linux user) to screw up your windows instalation. (this is probably the problem) or unless you write partition is NTFS since ntfs-write support is highly unstable.
If you have a dual sytem, the best thing you can do is create a fat32 partition for sharing your files between win and lin.
From the icon on the kde desktop you can set preferences for mounting R or R/W from commandline it's something like:
Code:

mount /dev/hda1 /mnt/windows
Wich mount the first partition of the first disk on the /mnt/windows directory.

I'am very glad to see that linux is gaiming interest, but personaly I think that linux usage discussions are a bit off-topic.
There are thousends of news-groups available in different languiges where you can ask questions about linux in general and the usage...

totonho03 09-18-2003 10:35 AM

Hello Japie:

You are correct. Perhaps a "linux" thread should be open in this forum and newbies like myself will post there our questions and possible solutions to such linux questions. I am also posting my questions in the linux.iso forum, so far no one has answer the firewire question that I placed there.
As mentioned in an earlier post, Knoppix is seeing, and have mounted hda1 and hda5, but my problem is that it can not see the external drive, nor can it see the dvd recorder; however, I was able to learn that knoppix is seeing the firewire card, but is not using it. I am guessing, that linux wants to see the "drive" for the machines in question, but do not know for sure if this the case.

Sorry for tainting this thread with question regarding linux.

Totonho03

kwag 09-18-2003 11:34 AM

Hi Otto,

Have you looked here ;) http://www.linux1394.org/

-kwag

kwag 09-18-2003 11:35 AM

Quote:

Originally Posted by totonho03
Perhaps a "linux" thread should be open in this forum and newbies like myself will post there our questions and possible solutions to such linux questions.

Will do :)

-kwag

totonho03 09-18-2003 11:44 AM

Hi Kwag:

No, I had no idea that this existed. I just took a quick peak at their site, and it appears that they may have the answers that I am looking for. So far, what I know fore sure, is that the usbcore, hte ohci 1394 and the ieee 1394, are being detected by knoppix. However, it appears that USBcore is the only one being used, (I see a 1 under use for the USB, and 0 for the other 2)..

Thank you for the help

Otto

totonho03 09-18-2003 11:54 AM

Quote:

totonho03 wrote:
Perhaps a "linux" thread should be open in this forum and newbies like myself will post there our questions and possible solutions to such linux questions.

Will do :D

-kwag

Thank you kwag. This linux OS may just take off.............

Otto

japie 09-18-2003 12:13 PM

Quote:

Originally Posted by totonho03
Perhaps a "linux" thread should be open in this forum and newbies like myself will post there our questions and possible solutions to such linux questions.

That would be nice, however personaly I alwas prefer a news server, it's a lot faster and needs a lot less bandwith, I already looked for a way to feed the kvcd-bbforum in a local news server but that's not possible :-(
Quote:

Originally Posted by totonho03
As mentioned in an earlier post, Knoppix is seeing, and have mounted hda1 and hda5, but my problem is that it can not see the external drive, nor can it see the dvd recorder; however, I was able to learn that knoppix is seeing the firewire card, but is not using it.

What kind off external drive are you refering to?
In case off the dvd-recorder, normaly any cd/dvd/r/rw is seen as normal cd/dvd read-only drive, you need a program to burn with it.
Fire-wire is a story apart, but I have no clue about that..

totonho03 09-18-2003 12:44 PM

Hi japie:

The external drive is a Western Digital, 120 Giga USB/Firewire version. Both the W.D. drive and the dvd writter are connected to the main computer via firewire. If you are interested in firewire for linux, then you should check the link that kwag posted above.

Thanks

Totonho

P.S.- This is going to be my last linux post here. From now on I will use the newly created linux thread. Thanks again kwag.


All times are GMT -5. The time now is 11:44 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.