On 26/10/13 22:58, Fabian Marr wrote: > Hello, > I'm Johann and I'm novice with avconv. > I've got the following problem: > I have a *.vob file and would like to extract the contained mpeg-ps (without > reencoding). > I used the following command: > "avconv -i input.vob -map 0:0 -map 0:a -c:v copy -c:a copy output.mpg" > I think this command should extract the video and all of the audio streams. But > the result is a mpg-file, that contains only the video stream without any audio > streams. > While avconv was creating the *.mpg, one part of the output was: > " > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Stream #0:2 -> #0:2 (copy) > Stream #0:3 -> #0:3 (copy) > " if you output in in a mkv does it behave differently?
lu
Hi, thank You for Your answer.
I tried this command:
"avconv -i test.vob -map 0:0 -map 0:a -c:v copy -c:a copy test.mkv"
This was the result:
"avconv version 0.8.8-4:0.8.8-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Oct 22 2013 12:35:42 with gcc 4.6.3
[mpeg2video @ 0x8caa1c0] ac-tex damaged at 22 7
[mpeg2video @ 0x8caa1c0] Warning MVs not available
[mpeg2video @ 0x8caa1c0] concealing 1305 DC, 1305 AC, 1305 MV errors
[mpeg @ 0x8ca8260] max_analyze_duration reached
Input #0, mpeg, from 'test.vob':
Duration: 00:04:39.80, start: 0.287267, bitrate: 3264 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream #0.2[0x81]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Stream #0.3[0x82]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Stream #0.4[0x83]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
File 'test.mkv' already exists. Overwrite ? [y/N] y
Output #0, matroska, to 'test.mkv':
Metadata:
encoder : Lavf53.21.1
Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 9800 kb/s, 1k tbn, 90k tbc
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, 5.1, 384 kb/s
Stream #0.4: Audio: ac3, 48000 Hz, 5.1, 384 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Stream #0:4 -> #0:4 (copy)
Press ctrl-c to stop encoding
[matroska @ 0x8caa5c0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
"
built on Oct 22 2013 12:35:42 with gcc 4.6.3
[mpeg2video @ 0x8caa1c0] ac-tex damaged at 22 7
[mpeg2video @ 0x8caa1c0] Warning MVs not available
[mpeg2video @ 0x8caa1c0] concealing 1305 DC, 1305 AC, 1305 MV errors
[mpeg @ 0x8ca8260] max_analyze_duration reached
Input #0, mpeg, from 'test.vob':
Duration: 00:04:39.80, start: 0.287267, bitrate: 3264 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream #0.2[0x81]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Stream #0.3[0x82]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Stream #0.4[0x83]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
File 'test.mkv' already exists. Overwrite ? [y/N] y
Output #0, matroska, to 'test.mkv':
Metadata:
encoder : Lavf53.21.1
Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 9800 kb/s, 1k tbn, 90k tbc
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, 5.1, 384 kb/s
Stream #0.4: Audio: ac3, 48000 Hz, 5.1, 384 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Stream #0:4 -> #0:4 (copy)
Press ctrl-c to stop encoding
[matroska @ 0x8caa5c0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
"
Unfortunately it didnt work.
This command works:
"avconv -i test.vob -map 0:0 -map 0:a -c:v libx264 -c:a copy test.mkv"
But this is not without reencoding.
A VOB-File contains a MPG-File, so I thought there must be a way to extract it without reencoding.
Johann
_______________________________________________ libav-tools mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-tools
