帆船模型に再挑戦

趣味の王様(本当か?)帆船模型製作に再挑戦する記録

VLCで壊れたtsファイルを修復

壊れているtsファイルを試験的に変換してみると

ffmpeg -i エンド・オブ・ホワイトハウス.ts tmp.ts


[abuffer @ 0x9f2a1c0] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
Last message repeated 3 times
[abuffer @ 0x9f2a1c0] Error setting option time_base to value 1/0.
[graph 1 input from stream 0:1 @ 0x9f2a260] Error applying options to the filter.
Error opening filters!

とエラーになって変換できない。

cvlc エンド・オブ・ホワイトハウス.ts :sout="#standard{mux=ts,dst=/media/TS1/Videos/EOWfixed.ts,access=file}" vlc://quit

としてやると

Stream mapping:
Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Stream #0:0 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
frame= 188 fps=112 q=31.0 Lsize= 1670kB time=00:00:06.30 bitrate=2171.0kbits/s dup=26 drop=0
video:1219kB audio:296kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.260268%
Received signal 2: terminating.
と問題なく変換できるようになる。

このように修復してから、h264+ac3に変換すればよさそう。