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 > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd December 2021, 21:59   #1  |  Link
Travillion
Registered User
 
Join Date: Aug 2018
Posts: 8
Find IDR frames in HVEC?

How can I get a list of IDR frames from an HVEC stream? With h264 streams I would convert to raw h264 and then use framecounter to produce a text file of each frame and it's type. I tried that with an HVEC stream (converted to raw h265 with ffmpeg) but framecounter wouldn't accept the 265 file as input.

Thanks in advance.
Travillion is offline   Reply With Quote
Old 3rd December 2021, 22:04   #2  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
ffprobe -v error -skip_frame nokey -show_entries frame=pkt_pts_time -select_streams v -of csv=p=0 input
0.000000
2.502000
3.795000
6.131000
10.344000

I assume frame=pkt_pts_time could be change to give you eg. frame number instead of time.

other ways are there as well using ffmpeg itself:
https://superuser.com/questions/1345...-ffmpeg-python
kolak is offline   Reply With Quote
Old 3rd December 2021, 22:24   #3  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
it's called HEVC, not HVEC, by the way
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 4th December 2021, 09:08   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
As a side note: Code patches for FrameCounter to not only count hevc frame but also output their frame type are welcome.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 4th December 2021, 18:42   #5  |  Link
Travillion
Registered User
 
Join Date: Aug 2018
Posts: 8
Quote:
Originally Posted by kolak View Post
ffprobe -v error -skip_frame nokey -show_entries frame=pkt_pts_time -select_streams v -of csv=p=0 input
0.000000
2.502000
3.795000
6.131000
10.344000

I assume frame=pkt_pts_time could be change to give you eg. frame number instead of time.

other ways are there as well using ffmpeg itself:
https://superuser.com/questions/1345...-ffmpeg-python
Thank you!
Travillion is offline   Reply With Quote
Old 4th December 2021, 18:43   #6  |  Link
Travillion
Registered User
 
Join Date: Aug 2018
Posts: 8
Quote:
Originally Posted by microchip8 View Post
it's called HEVC, not HVEC, by the way
Doh! I knew that.... High Video Efficiency Coding just doesn't have the same ring to it.
Travillion is offline   Reply With Quote
Old 4th December 2021, 18:44   #7  |  Link
Travillion
Registered User
 
Join Date: Aug 2018
Posts: 8
Quote:
Originally Posted by Selur View Post
As a side note: Code patches for FrameCounter to not only count hevc frame but also output their frame type are welcome.
Believe me if I knew coding I would help! I've used and loved your framecounter for a few years now.
Travillion 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 00:31.


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