Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 8th October 2019, 00:41   #37  |  Link
Registered User
Join Date: Nov 2003
Location: Germany, Berlin
Posts: 41
I tried to get a JSON from ffprobe to get sidedata information, but it seems the generated JSON ist malformed and therefore not convenient for further processing. My command:
ffprobe -read_intervals %+#2 -select_streams v:0 -show_frames -show_entries side_data "source.mkv" -print_format json -of json > "source_sidedata.json"
The resulting JSON looks like
    "packets_and_frames": [
            "type": "packet",

            "type": "packet",

            "type": "frame",
            "media_type": "audio",
            "stream_index": 1,
            "key_frame": 1,
            "pkt_pts": 171,
            "pkt_pts_time": "0.171000",
            "pkt_dts": 171,
            "pkt_dts_time": "0.171000",
            "best_effort_timestamp": 171,
            "best_effort_timestamp_time": "0.171000",
            "pkt_duration": 21,
            "pkt_duration_time": "0.021000",
            "pkt_pos": "313258",
            "pkt_size": "1522",
            "sample_fmt": "fltp",
            "nb_samples": 1024,
            "channels": 6,
            "channel_layout": "5.1"
Obviously the problem is the comma which is always set after the last line ""type": "packet" in the "packets_and_frames" section. ffprobe usually gives me proper JSON files but the comma problem appears when "-show_entries side_data" is used. Am I missing something or is this a bug?
Loomes is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 14:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.