Selecting audio stream for input
I am trying to convert a VOB stream (Pixar's Bug's Life) into a .mp4 stream, but: The VOB files have got six streams (five for audio and one for the video). This is the mapping: 0x80 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 29 / PTS: 00:00:00.280 / Delay: 0ms 0x81 - Audio - AC3 / 6ch / 48kHz / DRC / Deutsch / LBA: 30 / PTS: 00:00:00.280 / Delay: 0ms 0x82 - Audio - AC3 / 6ch / 48kHz / DRC / Espa?ol / LBA: 31 / PTS: 00:00:00.280 / Delay: 0ms 0x83 - Audio - AC3 / 2ch / 48kHz / DRC / Norsk / LBA: 32 / PTS: 00:00:00.280 / Delay: 0ms 0x84 - Audio - AC3 / 2ch / 48kHz / DRC / Dansk / LBA: 33 / PTS: 00:00:00.280 / Delay: 0ms 0xE0 - Video - MPEG-2 / 720x576 (PAL) / 16:9 / Letterboxed / LBA: 1 / PTS: 00:00:00.280 / Delay: 0ms The output could be smoothly playable in mplayer, VLC or the like...any free mediaplayer. I would like to extract 0x82 (spanish) in order to create a .mp4 with audio in spanish. The question is: How do I tell ffmpeg to decode that one (and *only* that one)? If nothing is told, ffmpeg creates a .mp4 file with audio in english which comprises only the first .vob (around the first twenty minutes of film). Which leads to another question relating to video: Since I have got vts_01_x.vob files numbered from 1 to 6...How do I join them in order to create a single .mp4 clip for the whole movie? I tried ffmpeg -i vts_01_1.vob vts_01_2.vob vts_01_3.vob vts_01_4.vob...up until vts_01_6.vob, but when ffmpeg finishes encoding the fist .vob, it terminates. No more vobs are added. How to work around this? Cheers, Juanjavier.
On Sep 28, 2006, at 3:20 PM, Juanjavier wrote:
I am trying to convert a VOB stream (Pixar's Bug's Life) into a .mp4 stream, but:
The VOB files have got six streams (five for audio and one for the video). This is the mapping: 0x80 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 29 / PTS: 00:00:00.280 / Delay: 0ms 0x81 - Audio - AC3 / 6ch / 48kHz / DRC / Deutsch / LBA: 30 / PTS: 00:00:00.280 / Delay: 0ms 0x82 - Audio - AC3 / 6ch / 48kHz / DRC / Espa?ol / LBA: 31 / PTS: 00:00:00.280 / Delay: 0ms 0x83 - Audio - AC3 / 2ch / 48kHz / DRC / Norsk / LBA: 32 / PTS: 00:00:00.280 / Delay: 0ms 0x84 - Audio - AC3 / 2ch / 48kHz / DRC / Dansk / LBA: 33 / PTS: 00:00:00.280 / Delay: 0ms 0xE0 - Video - MPEG-2 / 720x576 (PAL) / 16:9 / Letterboxed / LBA: 1 / PTS: 00:00:00.280 / Delay: 0ms
The output could be smoothly playable in mplayer, VLC or the like...any free mediaplayer.
I would like to extract 0x82 (spanish) in order to create a .mp4 with audio in spanish.
The question is: How do I tell ffmpeg to decode that one (and *only* that one)?
If nothing is told, ffmpeg creates a .mp4 file with audio in english which comprises only the first .vob (around the first twenty minutes of film).
Which leads to another question relating to video:
Since I have got vts_01_x.vob files numbered from 1 to 6...How do I join them in order to create a single .mp4 clip for the whole movie? I tried ffmpeg -i vts_01_1.vob vts_01_2.vob vts_01_3.vob vts_01_4.vob...up until vts_01_6.vob, but when ffmpeg finishes encoding the fist .vob, it terminates. No more vobs are added.
How to work around this?
You can join the vob's with cat cat *.vob > big.vob You map the audio by adding: -map 0.0:0.0 -map 0.3:0.1 This maps the video stream 0.0 to 0.0 and the third audio stream 0.3 to the first audio stream of the output file 0.1 Jon ___________________________________________________________ $0 Web Hosting with up to 200MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com
Jon Martin wrote:
On Sep 28, 2006, at 3:20 PM, Juanjavier wrote:
I am trying to convert a VOB stream (Pixar's Bug's Life) into a .mp4 stream, but:
The VOB files have got six streams (five for audio and one for the video). This is the mapping: 0x80 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 29 / PTS: 00:00:00.280 / Delay: 0ms 0x81 - Audio - AC3 / 6ch / 48kHz / DRC / Deutsch / LBA: 30 / PTS: 00:00:00.280 / Delay: 0ms 0x82 - Audio - AC3 / 6ch / 48kHz / DRC / Espa?ol / LBA: 31 / PTS: 00:00:00.280 / Delay: 0ms 0x83 - Audio - AC3 / 2ch / 48kHz / DRC / Norsk / LBA: 32 / PTS: 00:00:00.280 / Delay: 0ms 0x84 - Audio - AC3 / 2ch / 48kHz / DRC / Dansk / LBA: 33 / PTS: 00:00:00.280 / Delay: 0ms 0xE0 - Video - MPEG-2 / 720x576 (PAL) / 16:9 / Letterboxed / LBA: 1 / PTS: 00:00:00.280 / Delay: 0ms
The output could be smoothly playable in mplayer, VLC or the like...any free mediaplayer.
I would like to extract 0x82 (spanish) in order to create a .mp4 with audio in spanish.
The question is: How do I tell ffmpeg to decode that one (and *only* that one)?
If nothing is told, ffmpeg creates a .mp4 file with audio in english which comprises only the first .vob (around the first twenty minutes of film).
Which leads to another question relating to video:
Since I have got vts_01_x.vob files numbered from 1 to 6...How do I join them in order to create a single .mp4 clip for the whole movie? I tried ffmpeg -i vts_01_1.vob vts_01_2.vob vts_01_3.vob vts_01_4.vob...up until vts_01_6.vob, but when ffmpeg finishes encoding the fist .vob, it terminates. No more vobs are added.
How to work around this?
You can join the vob's with cat cat *.vob > big.vob
You map the audio by adding: -map 0.0:0.0 -map 0.3:0.1
This maps the video stream 0.0 to 0.0 and the third audio stream 0.3 to the first audio stream of the output file 0.1
Jon
___________________________________________________________ $0 Web Hosting with up to 200MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Huge thx for your *real* fast response, Jon. Let's give it a try, and see if it works. Keep you informed about the results. Best whishes, Juanjavier.
Juanjavier wrote:
Jon Martin wrote:
On Sep 28, 2006, at 3:20 PM, Juanjavier wrote:
I am trying to convert a VOB stream (Pixar's Bug's Life) into a .mp4 stream, but:
The VOB files have got six streams (five for audio and one for the video). This is the mapping: 0x80 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 29 / PTS: 00:00:00.280 / Delay: 0ms 0x81 - Audio - AC3 / 6ch / 48kHz / DRC / Deutsch / LBA: 30 / PTS: 00:00:00.280 / Delay: 0ms 0x82 - Audio - AC3 / 6ch / 48kHz / DRC / Espa?ol / LBA: 31 / PTS: 00:00:00.280 / Delay: 0ms 0x83 - Audio - AC3 / 2ch / 48kHz / DRC / Norsk / LBA: 32 / PTS: 00:00:00.280 / Delay: 0ms 0x84 - Audio - AC3 / 2ch / 48kHz / DRC / Dansk / LBA: 33 / PTS: 00:00:00.280 / Delay: 0ms 0xE0 - Video - MPEG-2 / 720x576 (PAL) / 16:9 / Letterboxed / LBA: 1 / PTS: 00:00:00.280 / Delay: 0ms
The output could be smoothly playable in mplayer, VLC or the like...any free mediaplayer.
I would like to extract 0x82 (spanish) in order to create a .mp4 with audio in spanish.
The question is: How do I tell ffmpeg to decode that one (and *only* that one)?
If nothing is told, ffmpeg creates a .mp4 file with audio in english which comprises only the first .vob (around the first twenty minutes of film).
Which leads to another question relating to video:
Since I have got vts_01_x.vob files numbered from 1 to 6...How do I join them in order to create a single .mp4 clip for the whole movie? I tried ffmpeg -i vts_01_1.vob vts_01_2.vob vts_01_3.vob vts_01_4.vob...up until vts_01_6.vob, but when ffmpeg finishes encoding the fist .vob, it terminates. No more vobs are added.
How to work around this?
You can join the vob's with cat cat *.vob > big.vob
You map the audio by adding: -map 0.0:0.0 -map 0.3:0.1
This maps the video stream 0.0 to 0.0 and the third audio stream 0.3 to the first audio stream of the output file 0.1
Jon
___________________________________________________________ $0 Web Hosting with up to 200MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Huge thx for your *real* fast response, Jon. Let's give it a try, and see if it works.
Keep you informed about the results.
The output of "cat *.vob > big.vob" is an error message: "Maximum size of file reached". Mind that a full single .vob for the entire film would suppose something like 7 or 8 Gb. How could I overcome this? Greetings and thanks in advance, Juanjavier.
On Sep 28, 2006, at 3:49 PM, Juanjavier Mart?nez wrote:
Juanjavier wrote:
Jon Martin wrote:
On Sep 28, 2006, at 3:20 PM, Juanjavier wrote:
I am trying to convert a VOB stream (Pixar's Bug's Life) into a .mp4 stream, but:
The VOB files have got six streams (five for audio and one for the video). This is the mapping: 0x80 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 29 / PTS: 00:00:00.280 / Delay: 0ms 0x81 - Audio - AC3 / 6ch / 48kHz / DRC / Deutsch / LBA: 30 / PTS: 00:00:00.280 / Delay: 0ms 0x82 - Audio - AC3 / 6ch / 48kHz / DRC / Espa?ol / LBA: 31 / PTS: 00:00:00.280 / Delay: 0ms 0x83 - Audio - AC3 / 2ch / 48kHz / DRC / Norsk / LBA: 32 / PTS: 00:00:00.280 / Delay: 0ms 0x84 - Audio - AC3 / 2ch / 48kHz / DRC / Dansk / LBA: 33 / PTS: 00:00:00.280 / Delay: 0ms 0xE0 - Video - MPEG-2 / 720x576 (PAL) / 16:9 / Letterboxed / LBA: 1 / PTS: 00:00:00.280 / Delay: 0ms
The output could be smoothly playable in mplayer, VLC or the like...any free mediaplayer.
I would like to extract 0x82 (spanish) in order to create a .mp4 with audio in spanish.
The question is: How do I tell ffmpeg to decode that one (and *only* that one)?
If nothing is told, ffmpeg creates a .mp4 file with audio in english which comprises only the first .vob (around the first twenty minutes of film).
Which leads to another question relating to video:
Since I have got vts_01_x.vob files numbered from 1 to 6...How do I join them in order to create a single .mp4 clip for the whole movie? I tried ffmpeg -i vts_01_1.vob vts_01_2.vob vts_01_3.vob vts_01_4.vob...up until vts_01_6.vob, but when ffmpeg finishes encoding the fist .vob, it terminates. No more vobs are added.
How to work around this?
You can join the vob's with cat cat *.vob > big.vob
You map the audio by adding: -map 0.0:0.0 -map 0.3:0.1
This maps the video stream 0.0 to 0.0 and the third audio stream 0.3 to the first audio stream of the output file 0.1
Jon
___________________________________________________________ $0 Web Hosting with up to 200MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Huge thx for your *real* fast response, Jon. Let's give it a try, and see if it works.
Keep you informed about the results.
The output of "cat *.vob > big.vob" is an error message: "Maximum size of file reached". Mind that a full single .vob for the entire film would suppose something like 7 or 8 Gb. How could I overcome this?
I wonder if that is a file size limitation of your operating system. You could try to pipe the cat to ffmpeg, but you may have the same results. cat *.vob | ffmpeg -i - -map 0.0:0.0 -map 0.3:0.1 -ab 128 -ar 44100 - s 608x256 /home/juanja/bugs.mp4
On 9/29/06, Juanjavier Mart?nez <debian at juanjaviermartinez.com> wrote:
Juanjavier wrote:
Jon Martin wrote:
On Sep 28, 2006, at 3:20 PM, Juanjavier wrote:
I am trying to convert a VOB stream (Pixar's Bug's Life) into a .mp4 stream, but:
The VOB files have got six streams (five for audio and one for the video). This is the mapping: 0x80 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 29 / PTS: 00:00:00.280 / Delay: 0ms 0x81 - Audio - AC3 / 6ch / 48kHz / DRC / Deutsch / LBA: 30 / PTS: 00:00:00.280 / Delay: 0ms 0x82 - Audio - AC3 / 6ch / 48kHz / DRC / Espa?ol / LBA: 31 / PTS: 00:00:00.280 / Delay: 0ms 0x83 - Audio - AC3 / 2ch / 48kHz / DRC / Norsk / LBA: 32 / PTS: 00:00:00.280 / Delay: 0ms 0x84 - Audio - AC3 / 2ch / 48kHz / DRC / Dansk / LBA: 33 / PTS: 00:00:00.280 / Delay: 0ms 0xE0 - Video - MPEG-2 / 720x576 (PAL) / 16:9 / Letterboxed / LBA: 1 / PTS: 00:00:00.280 / Delay: 0ms
The output could be smoothly playable in mplayer, VLC or the like...any free mediaplayer.
I would like to extract 0x82 (spanish) in order to create a .mp4 with audio in spanish.
The question is: How do I tell ffmpeg to decode that one (and *only* that one)?
If nothing is told, ffmpeg creates a .mp4 file with audio in english which comprises only the first .vob (around the first twenty minutes of film).
Which leads to another question relating to video:
Since I have got vts_01_x.vob files numbered from 1 to 6...How do I join them in order to create a single .mp4 clip for the whole movie? I tried ffmpeg -i vts_01_1.vob vts_01_2.vob vts_01_3.vob vts_01_4.vob...up until vts_01_6.vob, but when ffmpeg finishes encoding the fist .vob, it terminates. No more vobs are added.
How to work around this?
You can join the vob's with cat cat *.vob > big.vob
You map the audio by adding: -map 0.0:0.0 -map 0.3:0.1
This maps the video stream 0.0 to 0.0 and the third audio stream 0.3 to the first audio stream of the output file 0.1
Jon
___________________________________________________________ $0 Web Hosting with up to 200MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Huge thx for your *real* fast response, Jon. Let's give it a try, and see if it works.
Keep you informed about the results.
The output of "cat *.vob > big.vob" is an error message: "Maximum size of file reached". Mind that a full single .vob for the entire film would suppose something like 7 or 8 Gb. How could I overcome this?
I believe the solution would be to use a real file system. As far as I know, of the currently used filesystems, only FAT doesn't support files larger than 2GB (or is it 4GB, I forget :)). If you're on Windows, NTFS supports files bigger than 4 GB. I seem to remember some patches for a cat:// input format, which would do what you're after. Check out the ffmpeg-devel mailing list archives for that.
participants (4)
-
chalserogers@gmail.com -
debian@juanjaviermartinez.com -
ffmpeg@juanjaviermartinez.com -
jonmartin77@concavity.org