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

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th October 2019, 00:41   #41  |  Link
Loomes
Registered User
 
Join Date: Nov 2003
Location: Germany, Berlin
Posts: 48
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:
Code:
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
Code:
{
    "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
Old 2nd March 2020, 21:57   #42  |  Link
Grojm
Registered User
 
Join Date: Mar 2016
Posts: 16
Hi, I want you to point to this discussion: https://trac.ffmpeg.org/ticket/7037#no1
There some user called "Balling" is referencing this thread multiple times; thinks there was a fix or something for a problem posted here, he got very upset that no one mentioned this here (he is not capable to post it himself for whatever reason). Yeah, so whatever... have a look yourself: https://trac.ffmpeg.org/ticket/7037#comment:60 https://trac.ffmpeg.org/ticket/7037#comment:74
Grojm is offline   Reply With Quote
Old 5th March 2020, 23:30   #43  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 538
Quote:
Originally Posted by Loomes View Post
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:
This was fixed in https://trac.ffmpeg.org/ticket/8228 in https://git.videolan.org/?p=ffmpeg.g...10ceeef46eb224
"not capable to post it himself for whatever reason" What a liar.

Last edited by Balling; 18th March 2020 at 20:54.
Balling is offline   Reply With Quote
Reply

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 10:59.


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