{"id":15732929,"url":"https://github.com/hr3lxphr6j/h264encodeinfoeditor","last_synced_at":"2025-03-31T03:43:50.422Z","repository":{"id":144268321,"uuid":"133987975","full_name":"hr3lxphr6j/h264EncodeInfoEditor","owner":"hr3lxphr6j","description":" A script to edit H.264 encoder information.","archived":false,"fork":false,"pushed_at":"2019-08-16T03:54:46.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T08:24:08.326Z","etag":null,"topics":["avc","h264","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hr3lxphr6j.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-18T18:01:31.000Z","updated_at":"2019-08-16T03:54:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"8bce4349-ac25-4b42-b0e4-4bee54f3dbe8","html_url":"https://github.com/hr3lxphr6j/h264EncodeInfoEditor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hr3lxphr6j%2Fh264EncodeInfoEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hr3lxphr6j%2Fh264EncodeInfoEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hr3lxphr6j%2Fh264EncodeInfoEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hr3lxphr6j%2Fh264EncodeInfoEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hr3lxphr6j","download_url":"https://codeload.github.com/hr3lxphr6j/h264EncodeInfoEditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413229,"owners_count":20773053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avc","h264","python"],"created_at":"2024-10-04T00:40:20.509Z","updated_at":"2025-03-31T03:43:50.401Z","avatar_url":"https://github.com/hr3lxphr6j.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# h264EncodeInfoEditor\n\nA script to edit H.264 encoder information.\n\n* Before   \n\t```\n\t$ mediainfo input.h264\n\n\tGeneral\n\tComplete name                            : input.h264\n\tFormat                                   : AVC\n\tFormat/Info                              : Advanced Video Codec\n\tFile size                                : 103 MiB\n\tWriting library                          : x264 core 142 r2431+42 c69a006 tMod [8-bit@4:2:0 X86_64]\n\tEncoding settings                        : cabac=1 / ref=6 / deblock=1:0:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.10 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=84 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / fgo=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=70 / rc=crf / mbtree=1 / crf=23.0000 / qcomp=0.70 / qpmin=0:0:0 / qpmax=36:36:36 / qpstep=4 / vbv_maxrate=17500 / vbv_bufsize=17500 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:0.80 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0\n\n\tVideo\n\tFormat                                   : AVC\n\tFormat/Info                              : Advanced Video Codec\n\tFormat profile                           : High@L4\n\tFormat settings                          : CABAC / 6 Ref Frames\n\tFormat settings, CABAC                   : Yes\n\tFormat settings, ReFrames                : 6 frames\n\tWidth                                    : 1 280 pixels\n\tHeight                                   : 720 pixels\n\tDisplay aspect ratio                     : 16:9\n\tFrame rate                               : 23.976 (24000/1001) FPS\n\tColor space                              : YUV\n\tChroma subsampling                       : 4:2:0\n\tBit depth                                : 8 bits\n\tScan type                                : Progressive\n\tWriting library                          : x264 core 142 r2431+42 c69a006 tMod [8-bit@4:2:0 X86_64]\n\tEncoding settings                        : cabac=1 / ref=6 / deblock=1:0:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.10 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=84 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / fgo=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=70 / rc=crf / mbtree=1 / crf=23.0000 / qcomp=0.70 / qpmin=0:0:0 / qpmax=36:36:36 / qpstep=4 / vbv_maxrate=17500 / vbv_bufsize=17500 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:0.80 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0\n\t```\n\t\n* After\n\t```\n\t$ mediainfo output.h264\n\n\tGeneral\n\tComplete name                            : output.h264\n\tFormat                                   : AVC\n\tFormat/Info                              : Advanced Video Codec\n\tFile size                                : 103 MiB\n\tWriting library                          : Chigusa H264 Encoder Info Test\n\n\tVideo\n\tFormat                                   : AVC\n\tFormat/Info                              : Advanced Video Codec\n\tFormat profile                           : High@L4\n\tFormat settings                          : CABAC / 6 Ref Frames\n\tFormat settings, CABAC                   : Yes\n\tFormat settings, ReFrames                : 6 frames\n\tWidth                                    : 1 280 pixels\n\tHeight                                   : 720 pixels\n\tDisplay aspect ratio                     : 16:9\n\tFrame rate                               : 23.976 (24000/1001) FPS\n\tColor space                              : YUV\n\tChroma subsampling                       : 4:2:0\n\tBit depth                                : 8 bits\n\tScan type                                : Progressive\n\tWriting library                          : Chigusa H264 Encoder Info Test\n\t```\n## Some Example\n\n* Input h264 file, output h264 file.\n\t```\n\tpython h264EncodeInfoEditor.py -i \u003cinput.h264\u003e -o \u003coutput.h264\u003e -s \"Chigusa H264 Encoder Info Test\"\n\t```\n\n* Demux MP4 file to h264 stream by ffmpeg, and pipe to stdin, output h264 file.\n\t```\n\tffmpeg -i \u003cinput.mp4\u003e -c:v copy -an -bsf:v h264_mp4toannexb -f h264 - | python h264EncodeInfoEditor.py -i - -o \u003coutput.h264\u003e -s \"Chigusa H264 Encoder Info Test\"\n\t```\n\n* Input h264 file, pipe h264 stream to ffmpeg, and mux to mp4 file.\n\n\t```\n\tpython h264EncodeInfoEditor.py -i \u003cinput.h264\u003e -o - -s \"Chigusa H264 Encoder Info Test\" | ffmpeg -f h264 -i - -c:v copy \u003coutput.mp4\u003e\n\t```\n\n* Demux MP4 file to h264 stream by ffmpeg, and pipe to stdin, pipe h264 stream to ffmpeg, and mux to mp4 file.\n\t```\n\tffmpeg -i \u003cinput.mp4\u003e -c:v copy -an -map_metadata -1 -f h264 - | python h264EncodeInfoEditor.py -i - -o - -s \"Chigusa H264 Encoder Info Test\" | ffmpeg -f h264 -i - -i \u003cinput.mp4\u003e -map 0 -map 1:a -c copy \u003coutput.mp4\u003e\n\t```\n\n## Usage\n\n```\nusage: h264EncodeInfoEditor [-h] -i INPUT -o OUTPUT -s STRING\n\nA script to edit H.264 encoder information\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i INPUT, --input INPUT\n                        input h264 bit stream, ' - ' will read stream from\n                        stdin\n  -o OUTPUT, --output OUTPUT\n                        output h264 bit stream, ' - ' will write stream from\n                        stdout\n  -s STRING, --string STRING\n                        info what you want write\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhr3lxphr6j%2Fh264encodeinfoeditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhr3lxphr6j%2Fh264encodeinfoeditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhr3lxphr6j%2Fh264encodeinfoeditor/lists"}