Hello! Trying to figure this one out. Seems to be an issue with -c:v copy when transforming from MP4 to TS. FFMPEG 8.0. Command line:
ffmpeg -y -i foo.mp4 -force_key_frames "expr:gte(t,n_forced*2)" \ -c:v copy -c:a copy -hls_time 15 \ -hls_playlist_type vod -hls_segment_type mpegts \ -hls_segment_filename "foo/vw_%04d.m4s" foo.m3u8 while ffprobe reports a framerate in one of the .m4s files, mediainfo *does not*. Neither report Mastering display color primaries, Mastering display luminance, Maximum Content Light Level, or Maximum Frame-Average Light Level. When I look at another HDR10 sample file (samsung.ts, a 2 minute clip), I can see this data (including framerate) reported in mediainfo, and I note that there is an HEVC Prefix SEI (user_data_unregistered, mastering_display_colour_volume) that contains the information that mediainfo reports. When I do a repackage (e.g. ffmpeg -i foo.mp4 -c:v copy -c:a copy foo.ts), the information is also missing. When I do a clip and trim without repackage (e.g. ffmpeg -i foo.mp4 -ss 00:00:00 -t 00:01:00 -c:v copy -c:a copy bar.mp4) the information is preserved, as it is with a clip and trim of the samsung.ts file *with* the info present. Very much want to avoid a re-encode, *can* hard-code these parameters. Thoughts? -Bill _______________________________________________ ffmpeg-user mailing list -- [email protected] To unsubscribe send an email to [email protected]
