Hey, I am trying to upgrade from ffmpeg v5 to v6, I have noticed one video that has big increase in format duration time This is the command I use: ffprobe -v error -print_format json -show_format -show_streams too-many-packets.mp4 Link to video and outputs: https://drive.google.com/drive/folders/1BT6NMqZ2pSd-shbu-hok-2-Gaihn0Av2?usp...
On 2/11/2024 2:14 AM, Avraham Sikirov via ffmpeg-user wrote:
Link to video and outputs:
Please put the command outputs in the email message, not as an attachment or gdrive, it's much easier for everyone to see and read. z!
*Output for 6.1.1:* { "streams": [ { "index": 0, "codec_name": "mp3", "codec_long_name": "MP3 (MPEG audio layer 3)", "codec_type": "audio", "codec_tag_string": "mp4a", "codec_tag": "0x6134706d", "sample_fmt": "fltp", "sample_rate": "44100", "channels": 2, "channel_layout": "stereo", "bits_per_sample": 0, "initial_padding": 0, "id": "0x1", "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/44100", "start_pts": 1560566267, "start_time": "35386.990181", "duration_ts": 284546, "duration": "6.452290", "bit_rate": "127705", "nb_frames": "247", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0, "non_diegetic": 0, "captions": 0, "descriptions": 0, "metadata": 0, "dependent": 0, "still_image": 0 }, "tags": { "creation_time": "2019-07-21T08:03:12.000000Z", "language": "eng", "handler_name": "SoundHandler", "vendor_id": "[0][0][0][0]" } }, { "index": 1, "codec_name": "h264", "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile": "High", "codec_type": "video", "codec_tag_string": "avc1", "codec_tag": "0x31637661", "width": 1920, "height": 1080, "coded_width": 1920, "coded_height": 1080, "closed_captions": 0, "film_grain": 0, "has_b_frames": 2, "sample_aspect_ratio": "1:1", "display_aspect_ratio": "16:9", "pix_fmt": "yuv420p", "level": 42, "color_range": "tv", "color_space": "bt470bg", "color_transfer": "bt709", "color_primaries": "bt709", "chroma_location": "left", "field_order": "progressive", "refs": 1, "is_avc": "true", "nal_length_size": "4", "id": "0x2", "r_frame_rate": "80/1", "avg_frame_rate": "35100000/438011", "time_base": "1/90000", "start_pts": 0, "start_time": "0.000000", "duration_ts": 438011, "duration": "4.866789", "bit_rate": "236356", "bits_per_raw_sample": "8", "nb_frames": "390", "extradata_size": 51, "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0, "non_diegetic": 0, "captions": 0, "descriptions": 0, "metadata": 0, "dependent": 0, "still_image": 0 }, "tags": { "creation_time": "2019-07-21T08:03:12.000000Z", "language": "eng", "handler_name": "VideoHandler", "vendor_id": "[0][0][0][0]" } } ], "format": { "filename": "too-many-packets.mp4", "nb_streams": 2, "nb_programs": 0, "format_name": "mov,mp4,m4a,3gp,3g2,mj2", "format_long_name": "QuickTime / MOV", "start_time": "0.000000", * "duration": "35393.442471",* "size": "260990", "bit_rate": "58", "probe_score": 100, "tags": { "major_brand": "isom", "minor_version": "0", "compatible_brands": "mp41avc1", "creation_time": "2019-07-21T08:03:12.000000Z", "encoder": "vlc 3.0.7.1 stream output", "encoder-eng": "vlc 3.0.7.1 stream output" } } } *Output for 5.1.4:* { "streams": [ { "index": 0, "codec_name": "mp3", "codec_long_name": "MP3 (MPEG audio layer 3)", "codec_type": "audio", "codec_tag_string": "mp4a", "codec_tag": "0x6134706d", "sample_fmt": "fltp", "sample_rate": "44100", "channels": 2, "channel_layout": "stereo", "bits_per_sample": 0, "id": "0x1", "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/44100", "start_pts": 1560566267, "start_time": "35386.990181", "duration_ts": 284546, "duration": "6.452290", "bit_rate": "127705", "nb_frames": "247", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0, "captions": 0, "descriptions": 0, "metadata": 0, "dependent": 0, "still_image": 0 }, "tags": { "creation_time": "2019-07-21T08:03:12.000000Z", "language": "eng", "handler_name": "SoundHandler", "vendor_id": "[0][0][0][0]" } }, { "index": 1, "codec_name": "h264", "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile": "High", "codec_type": "video", "codec_tag_string": "avc1", "codec_tag": "0x31637661", "width": 1920, "height": 1080, "coded_width": 1920, "coded_height": 1080, "closed_captions": 0, "film_grain": 0, "has_b_frames": 2, "sample_aspect_ratio": "1:1", "display_aspect_ratio": "16:9", "pix_fmt": "yuv420p", "level": 42, "color_range": "tv", "color_space": "bt470bg", "color_transfer": "bt709", "color_primaries": "bt709", "chroma_location": "left", "field_order": "progressive", "refs": 1, "is_avc": "true", "nal_length_size": "4", "id": "0x2", "r_frame_rate": "80/1", "avg_frame_rate": "35100000/438011", "time_base": "1/90000", "start_pts": 0, "start_time": "0.000000", "duration_ts": 438011, "duration": "4.866789", "bit_rate": "236356", "bits_per_raw_sample": "8", "nb_frames": "390", "extradata_size": 51, "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0, "captions": 0, "descriptions": 0, "metadata": 0, "dependent": 0, "still_image": 0 }, "tags": { "creation_time": "2019-07-21T08:03:12.000000Z", "language": "eng", "handler_name": "VideoHandler", "vendor_id": "[0][0][0][0]" } } ], "format": { "filename": "too-many-packets.mp4", "nb_streams": 2, "nb_programs": 0, "format_name": "mov,mp4,m4a,3gp,3g2,mj2", "format_long_name": "QuickTime / MOV", "start_time": "0.000000", *"duration": "6.452311",* "size": "260990", "bit_rate": "323592", "probe_score": 100, "tags": { "major_brand": "isom", "minor_version": "0", "compatible_brands": "mp41avc1", "creation_time": "2019-07-21T08:03:12.000000Z", "encoder": "vlc 3.0.7.1 stream output", "encoder-eng": "vlc 3.0.7.1 stream output" } } } On Sun, Feb 11, 2024 at 6:17 PM Carl Zwanzig <cpz@tuunq.com> wrote:
On 2/11/2024 2:14 AM, Avraham Sikirov via ffmpeg-user wrote:
Link to video and outputs:
Please put the command outputs in the email message, not as an attachment or gdrive, it's much easier for everyone to see and read.
z!
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Hello, Please read the mailing list FAQ at https://ffmpeg.org/mailing-list-faq.html, it tells users to post the complete and unedited command and output and not to top-post. Also, it's a lot easier for us humans to read the default output than JSON and there's important info like the build information. It's not clear to me which "format duration" is questionable and what it should be. Thanks, z!
Hello Carl, Thanks for your response. This is the complete and unedited output from that exact command. There are 3 parts in the output of ffprobe to a video file. 1. Audio stream. 2. Video stream 3. Format (which represents the container). Every one of them has duration and bitrate. In this case there is Streams, and Format. In the part of the format in v5.1.4 the duration is 6.452311 and bitrate is 323592 In v.6.1.1 the duration is 35393.442471 and bitrate is 58. (Duration is much longer, although the video is ~6.5 seconds long.) the duration and the bitrate in the part of audio stream and video stream remains the same in both versions. Hope that clarifies the problem. Thanks a lot. On Sun, Feb 11, 2024 at 6:30 PM Carl Zwanzig <cpz@tuunq.com> wrote:
Hello,
Please read the mailing list FAQ at https://ffmpeg.org/mailing-list-faq.html, it tells users to post the complete and unedited command and output and not to top-post.
Also, it's a lot easier for us humans to read the default output than JSON and there's important info like the build information. It's not clear to me which "format duration" is questionable and what it should be.
Thanks,
z!
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On 2024-02-11 10:56 pm, Avraham Sikirov via ffmpeg-user wrote:
Hello Carl, Thanks for your response.
This is the complete and unedited output from that exact command.
There are 3 parts in the output of ffprobe to a video file. 1. Audio stream. 2. Video stream 3. Format (which represents the container). Every one of them has duration and bitrate.
In this case there is Streams, and Format.
In the part of the format in v5.1.4 the duration is 6.452311 and bitrate is 323592 In v.6.1.1 the duration is 35393.442471 and bitrate is 58. (Duration is much longer, although the video is ~6.5 seconds long.)
the duration and the bitrate in the part of audio stream and video stream remains the same in both versions.
Hope that clarifies the problem.
The audio stream has a very high start time, as reported by both versions. The format duration in 5.1 is computed only taking into account the stream durations whereas 6.1 considers stream start times as well. Technically, 6.1 is correct. Your file likely has a bad edit list for the audio stream. You can open a ticket via https://ffmpeg.org/bugreports.html Regards, Gyan
participants (3)
-
Avraham Sikirov -
Carl Zwanzig -
Gyan Doshi