ffmpeg错误:cur_dts无效

Cab*_*ero 5 linux audio video ffmpeg

我正在尝试使用以下命令从网络摄像头录制视频和音频:

ffmpeg -f v4l2 -input_format mjpeg -s uhd2160 -i /dev/video0 -f pulse -channels 1 -i default video.mpg
Run Code Online (Sandbox Code Playgroud)

但是它似乎陷入了输出循环的无限循环中,如下所示:

cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
...
Run Code Online (Sandbox Code Playgroud)

-report启用了标志的完整输出:https : //pastebin.com/bV1ePJ2u

我可以分别录制视频和音频:

ffmpeg -f v4l2 -input_format mjpeg -s uhd2160 -i /dev/video0 video.mpg
ffmpeg -f pulse -channels 1 -i default audio.wav
Run Code Online (Sandbox Code Playgroud)

那么这可能是什么问题呢?我在Ubuntu 16.04内核4.14.1上

Ihs*_*GUL 0

您可以使用此命令将它们合并到一个文件中(在 Windows 操作系统的 cmd 中)

        C:/this is just path of ffmpeg lib/ffmpeg_shared/ffmpeg/bin/ffmpeg -i "video_part.ts" -i "audio_part.aac" -map 0:V:0 -map 1:a:0 -c copy -f mp4 -movflags +faststart "./new/combined_file_name.mp4"

Run Code Online (Sandbox Code Playgroud)