我想替换Video-DVD中的音频流。但是我在替换音频流时遇到问题。
DVD-VOB具有3个流。 流0是dvd_nav_packet。 流1是视频。 流2是音频。
我还尝试使用-map 0:d和-map 0:d:1更改ffmepg的导出信息。另外,是否包含编解码器信息-f vob -target ntsc-dvd -vcodec复制-acodec复制。并更新ffmpeag /使用旧版本。但是我只会收到错误消息。
ffmpeg首先是vb.net程序,该程序决定哪个视频需要新的音频文件。
有人可以告诉我我做错了什么吗?
ffmpeg.exe -i "F:\VIDEO_TS\VTS_01_1.VOB" -i "%CD%\tfpat.mp2" -map 0:0 -map 0:1 -map 1:0 -f vob -target ntsc-dvd -vcodec copy -acodec copy "C:\Users\Timo\AppData\Local\Microsoft\Windows\Burn\Burn\VIDEO_TS\VTS_01_1.VOB"
ffmpeg version N-88514-gd5995c531d Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
libavutil 56. 0.100 / 56. 0.100
libavcodec 58. 1.100 / 58. 1.100
libavformat 58. 0.102 / 58. 0.102
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 0.101 / 7. 0.101
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Input #0, mpeg, from 'F:\VIDEO_TS\VTS_01_1.VOB':
Duration: 00:01:51.17, start: 0.300300, bitrate: 7273 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 16:9], 6800 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 320 kb/s
[ac3 @ 037ee700] Estimating duration from bitrate, this may be inaccurate
Input #1, ac3, from 'D:\SkyDrive\Projekte\AtmosFX_Syncro_Projekt\AtmosFX-Translator\AlteVersionen\Version 2\tfpat.mp2':
Duration: 00:01:51.26, start: 0.000000, bitrate: 320 kb/s
Stream #1:0: Audio: ac3, 48000 Hz, stereo, fltp, 320 kb/s
File 'C:\Users\Timo\AppData\Local\Microsoft\Windows\Burn\Burn\VIDEO_TS\VTS_01_1.VOB' already exists. Overwrite ? [y/N] y
[dvd @ 037fbd20] Invalid media type data for output stream #0
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (copy)
Last message repeated 1 times
答案 0 :(得分:0)
FFmpeg不会复制现有的导航数据包,因此请跳过它。
ffmpeg.exe -i "F:\VIDEO_TS\VTS_01_1.VOB" -i "%CD%\tfpat.mp2" -map 0:v -map 1:a -f vob -target ntsc-dvd -vcodec copy -acodec copy "C:\Users\Timo\AppData\Local\Microsoft\Windows\Burn\Burn\VIDEO_TS\VTS_01_1.VOB"