2017-02-24 29 views
0

ライブテレビを録画するのにHDHomrun Primeを使用していますが、結果ファイルは.tsファイルです。私はこのファイルを.mp4に変換したいと思います。私はしばらくかかる変換するVLCプレーヤーを試みた。私の研究は、ffmpegがこれを行うことができることを示していますが、私はエラーに走りました。私は端末でこのコードを実行しました。 (OS ubuntu 16.04)ライブテレビ録画.tsからmp4へffmpegで

ffmpeg -i gsgame.ts -c copy -bsf:a aac_adtstoasc ford_ffmpeg.mp4 

これを取得します。

[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] SPS unavailable in decode_picture_timing 
[h264 @ 0x561db2eba2e0] non-existing PPS 0 referenced 
[h264 @ 0x561db2eba2e0] decode_slice_header error 
[h264 @ 0x561db2eba2e0] no frame! 
[h264 @ 0x561db2eba2e0] Increasing reorder buffer to 2 
[mpegts @ 0x561db2eb57c0] start time for stream 3 is not set in estimate_timings_from_pts 
[mpegts @ 0x561db2eb57c0] PES packet size mismatch 
    Last message repeated 1 times 
[mpegts @ 0x561db2eb57c0] Could not find codec parameters for stream 4 (Unknown: none (ETV1/0x31565445)): unknown codec 
Consider increasing the value for the 'analyzeduration' and 'probesize' options 
[mpegts @ 0x561db2eb57c0] Could not find codec parameters for stream 5 (Unknown: none (ETV1/0x31565445)): unknown codec 
Consider increasing the value for the 'analyzeduration' and 'probesize' options 
[mpegts @ 0x561db2eb57c0] Could not find codec parameters for stream 6 (Unknown: none ([192][0][0][0]/0x00C0)): unknown codec 
Consider increasing the value for the 'analyzeduration' and 'probesize' options 
Input #0, mpegts, from 'gsgame.ts': 
    Duration: 02:38:20.56, start: 14821.384111, bitrate: 3998 kb/s 
    Program 3 
    Stream #0:0[0x1167]: Video: h264 (High) ([27][0][0][0]/0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc 
    Stream #0:1[0x1168](eng): Audio: ac3 ([129][0][0][0]/0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s 
    Stream #0:2[0x1169](spa): Audio: ac3 ([129][0][0][0]/0x0081), 48000 Hz, stereo, fltp, 192 kb/s 
    Stream #0:3[0x116a]: Data: scte_35 
    Stream #0:4[0x116b]: Unknown: none (ETV1/0x31565445) 
    Stream #0:5[0x116c]: Unknown: none (ETV1/0x31565445) 
    Stream #0:6[0x116d]: Unknown: none ([192][0][0][0]/0x00C0) 
[AVBSFContext @ 0x561db2ebade0] Codec 'ac3' (86019) is not supported by the bitstream filter 'aac_adtstoasc'. Supported codecs are: aac (86018) 
Error initializing bitstream filter: aac_adtstoasc 
Stream mapping: 
    Stream #0:0 -> #0:0 (copy) 
    Stream #0:1 -> #0:1 (copy) 
    Last message repeated 1 times 

私は何か助けていただきありがとうございます。

+0

てみてください「のffmpeg -f mpeg2video -i inputfileにoutputfile.mp4」または「-fを使用mpegts " -fスイッチを押すと、コーデックが強制的に実行されます。入力が別の形式の場合は、それを使用します。 ffprobeは使用するコーデックを提供します。 – WLGfx

+0

'[AVBSFContext @ 0x561db2ebade0]コーデック 'ac3'(86019)はビットストリームフィルタ 'aac_adtstoasc'でサポートされていません。サポートされているコーデックは次のとおりです。aac(86018) ビットストリームフィルタの初期化エラー:aac_adtstoasc'これは問題です。あなたはac3オーディオでこのビットストリームフィルタを使用することはできません –

+0

私はそのビットストリームの問題の検索を試みましたが、私はそれで何かを探しています。 @ AndreyTurkinあなたアドバイスできますか? –

答えて

1

ストリームにはac3オーディオが含まれているので、aac_adtstoascビットストリームフィルタは機能しません。

ビデオを変換すると同じくらい簡単(それはあなたのビデオによっては、しばらく時間がかかるかもしれませんが)のようにする必要があります:

ffmpeg -i gsgame.ts -c:v copy -c:a aac ford_ffmpeg.mp4 
+2

オーディオを再エンコードする必要はありません。 FFmpegは、MP4へのAC-3の多重化をサポートします。 – Mulvya

関連する問題