Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media info report error on Frame Doubling Stream #901

Open
cookieflips opened this issue Sep 23, 2024 · 1 comment
Open

Media info report error on Frame Doubling Stream #901

cookieflips opened this issue Sep 23, 2024 · 1 comment

Comments

@cookieflips
Copy link

cookieflips commented Sep 23, 2024

Demuxing and Remuxing an h264 stream that uses frame doubling to pulldown 59.9401 to 30000/1001 causes media info to report the incorrect fps rate. File plays correctly but causes strange behavior in other players. When set to 29.976, media will play at 30000/1001 but media info will report a 15000/1001 rate

Source
Sony Handycam untouched h264 stream reports;

ID                             : 4113 (0x1011)
Menu ID                        : 1 (0x1)
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4
Format settings                : Frame doubling / 2 Ref Frames
Format settings, CABAC         : No
Format settings, Reference fra : 2 frames
Frame mode                     : Frame doubling
Codec ID                       : 27
Duration                       : 18 s 51 ms
Bit rate mode                  : Variable
Bit rate                       : 8 044 kb/s
Maximum bit rate               : 16.2 Mb/s
Width                          : 1 280 pixels
Height                         : 720 pixels
Display aspect ratio           : 16:9
Frame rate                     : 29.970 (30000/1001) FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.582
Stream size                    : 17.3 MiB (48%)

After Remuxing with proper fps tags:
Sony Handycam untouched h264 stream reports;

Video
ID                             : 6912 (0x1B00)
Menu ID                        : 1 (0x1)
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4
Format settings                : Frame doubling / 2 Ref Frames
Format settings, CABAC         : No
Format settings, Reference fra : 2 frames
Frame mode                     : Frame doubling
Codec ID                       : 27
Duration                       : 18 s 51 ms
Bit rate mode                  : Variable
Bit rate                       : 8 044 kb/s
Maximum bit rate               : 16.2 Mb/s
Width                          : 1 280 pixels
Height                         : 720 pixels
Display aspect ratio           : 16:9
Frame rate                     : 14.985 (15000/1001) FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.582
Stream size                    : 17.3 MiB (48%)
@cookieflips
Copy link
Author

After playing around with this some more, I found out that mediainfo reads the video stream as half the framerate due to the frame doubling. In this case, tsmuxer should set the container framerate to half of what the video stream framerate is set to.

ts container: 30000/1001
h264 stream: 60000/1001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant