2022-05-02, 08:15 PM
Recording and transcoding with Video Encoder set to CPU always succeeds. However, changing the Video encoder to NVIDIA causes the transcoded file to be deleted. After a recording finished successfully, I see that a new temp.MP4 file is created and the graphics processor (NVIDIA) begins its work. After it finishes, the MP4 file disappears from the directory. Sometimes the process would succeed and the .TS file is replaced by the .MP4 file.
When I reviewed the various log files, I found entries that indicated the resultant file appeared to be too small, and the MP4 file is deleted. The following is an example of one such entry:
2022-05-02 13:02:36.484 [DEBUG][197] Dropping out (leaseGoodUntil 1:02:36 PM)
2022-05-02 13:08:13.616 [DEBUG][213] streamable conversion completed: "E:\data\Recordings\CTV News Toronto\CTV News Toronto_20220502_12001300.temp.mp4"
2022-05-02 13:08:13.616 [DEBUG][213] Looks too small (1052706960) ...deleting
2022-05-02 14:38:18.681 [DEBUG][9] PurgeOldDeletes()
The ffmpeg encoding options used were:
-y -i "E:\data\Recordings\CTV News Toronto\CTV News Toronto_20220502_12001300.ts" -ignore_unknown -sn -fflags +genpts -movflags faststart -codec:v h264_nvenc -vf yadif=0:-1:0 -codec:a aac -strict experimental -ac 2 -ab 128k "E:\data\Recordings\CTV News Toronto\CTV News Toronto_20220502_12001300.t.mp4"
When I used the above options in a command line, I was able to produce a good MP4 file. The file is just under 1 GB in size (970 MB). The original TS file was 8 GB for a 1 hr program.
I searched the web for a solution but didn't find anything relevant. Any suggestions?
When I reviewed the various log files, I found entries that indicated the resultant file appeared to be too small, and the MP4 file is deleted. The following is an example of one such entry:
2022-05-02 13:02:36.484 [DEBUG][197] Dropping out (leaseGoodUntil 1:02:36 PM)
2022-05-02 13:08:13.616 [DEBUG][213] streamable conversion completed: "E:\data\Recordings\CTV News Toronto\CTV News Toronto_20220502_12001300.temp.mp4"
2022-05-02 13:08:13.616 [DEBUG][213] Looks too small (1052706960) ...deleting
2022-05-02 14:38:18.681 [DEBUG][9] PurgeOldDeletes()
The ffmpeg encoding options used were:
-y -i "E:\data\Recordings\CTV News Toronto\CTV News Toronto_20220502_12001300.ts" -ignore_unknown -sn -fflags +genpts -movflags faststart -codec:v h264_nvenc -vf yadif=0:-1:0 -codec:a aac -strict experimental -ac 2 -ab 128k "E:\data\Recordings\CTV News Toronto\CTV News Toronto_20220502_12001300.t.mp4"
When I used the above options in a command line, I was able to produce a good MP4 file. The file is just under 1 GB in size (970 MB). The original TS file was 8 GB for a 1 hr program.
I searched the web for a solution but didn't find anything relevant. Any suggestions?