H
H
hard_o2020-12-28 19:01:49
fmpeg
hard_o, 2020-12-28 19:01:49

How to save a stream with interruptions?

There is a stream in which some parts are missing, respectively, ffmpeg gives such errors

pts has no value This may result in incorrect timestamps in the output file.


Ffprobe:
Duration: 01:46:24.20, start: 889.898667, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 600000
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 864x480 [SAR 1:1 DAR 9:5], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 600000
Stream #0:1: Audio: aac (LC) ([15][ 0][0][0] / 0x000F), 48000 Hz, stereo, fltp
Metadata:
variant_bitrate : 600000
Stream #0:2: Data: scte_35
Metadata:
variant_bitrate : 600000
Program 1
Metadata:
variant_bitrate : 1000000
Stream #0:3: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 1000000
Stream #0:4: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
Metadata:
variant_bitrate : 1000000
Stream #0:5: Data: scte_35
Metadata:
variant_bitrate : 1000000
Program 2
Metadata:
variant_bitrate : 2000000
Stream #0:6: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p , 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 2000000
Stream #0:7: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
Metadata:
variant_bitrate : 2000000
Stream #0:8: Data: scte_35
Metadata :
variant_bitrate : 2000000
Unsupported codec with id 98305 for input stream 2
Unsupported codec with id 98305 for input stream 5
Unsupported codec with id 98305 for input stream 8


When you try to save - only 12 minutes of video works.
ffmpeg -i ./28.12/test-1-r-25.mp4 -vcodec copy -an ./28.12/test-copied-ffmpeg.mp4

Is it possible to somehow delete non-working streams or fix the situation in another way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question