View Single Post
Old 25th May 2017, 19:56   #1  |  Link
FlintEastwood
Registered User
 
Join Date: Apr 2017
Posts: 9
Timestamps are unset in a packet for stream 0.

I try to mux a H264 stream with an AAC stream into a MP4 file.

FFmpeg complains about missing timestamps but muxes the file perfectly:
Code:
[mp4 @ 03b3da60] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[mp4 @ 03b3da60] pts has no value
    Last message repeated 821 times
[mp4 @ 03b3da60] pts has no value   8587kB time=00:00:16.42 bitrate=4284.3kbits/s speed=32.8x
    Last message repeated 813 times
[mp4 @ 03b3da60] pts has no value   15734kB time=00:00:32.70 bitrate=3941.8kbits/s speed=32.7x
    Last message repeated 802 times
....
The H264 stream was produced by X264 while trying to get Bluray-compatibility:
Code:
x264 --quiet --bitrate %bitrate% --preset %preset% --tune film --bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 50 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --pass 1 -o %outfile% %infile%

x264 --quiet --bitrate %bitrate% --preset %preset% --tune film --bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 50 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --pass 2 -o %outfile% %infile%
I muxed those files normally with mp4box or Avidemux, but I found out now, that skipping and seeking takes up to a few seconds(5-6 seconds) even in short clips around 3 minutes.
So I tried FFmpeg for muxing, and skipping/seeking works instantly.
But the timestamp-complains make me worry.

When I use closed-GOPs, then skipping/seeking works instantly with mp4box and Avidemux too, but this isn't the right way for Bluray-compatibility, isn't it? (FFmpeg still complains about Timestamps with closed GOP)

How can I do it right?
FlintEastwood is offline   Reply With Quote