-
Notifications
You must be signed in to change notification settings - Fork 134
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
Bunch of fixes #260
Open
ratcashdev
wants to merge
43
commits into
ozmartian:master
Choose a base branch
from
ratcashdev:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Bunch of fixes #260
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
instead of string using broken shell escaping.
the decimal point is required.
it no chapter name is set, the save routine only writes the trailing tab, but not quotes. This fails to load as the regular expression always expects a tab followed by quotes. Make that optional. Similar to <ozmartian#203>
Some streams do not have a 'codec_type', which throws the following traceback: > File "/usr/bin/vidcutter", line 11, in <module> > load_entry_point('vidcutter==6.0.0', 'gui_scripts', 'vidcutter')() > File "/usr/lib/python3/dist-packages/vidcutter/__main__.py", line 380, in main > win = MainWindow() > File "/usr/lib/python3/dist-packages/vidcutter/__main__.py", line 86, in __init__ > self.file_opener(self.video) > File "/usr/lib/python3/dist-packages/vidcutter/__main__.py", line 102, in file_opener > self.cutter.loadMedia(filename) > File "/usr/lib/python3/dist-packages/vidcutter/videocutter.py", line 988, in loadMedia > self.videoService.setMedia(self.currentMedia) > File "/usr/lib/python3/dist-packages/vidcutter/libs/videoservice.py", line 93, in setMedia > [stream for stream in self.media.streams if stream.codec_type == codec_type.lower()]) > File "/usr/lib/python3/dist-packages/vidcutter/libs/videoservice.py", line 93, in <listcomp> > [stream for stream in self.media.streams if stream.codec_type == codec_type.lower()]) > File "/usr/lib/python3/dist-packages/vidcutter/libs/munch.py", line 104, in __getattr__ > raise AttributeError(k) The output of ffprobe -hide_banner -v error -show_streams -show_format -of json $FILE.mpg looks like this: > { > "streams": [ > ... > { > "index": 8, > "codec_tag_string": "[5][0][0][0]", > "codec_tag": "0x0005", > "id": "0x181a", > "r_frame_rate": "0/0", > "avg_frame_rate": "0/0", > "time_base": "1/90000", > "start_pts": 873142304, > "start_time": "9701.581156", > "duration_ts": 685844313, > "duration": "7620.492367", > "disposition": { > "default": 0, > "dub": 0, > "original": 0, > "comment": 0, > "lyrics": 0, > "karaoke": 0, > "forced": 0, > "hearing_impaired": 0, > "visual_impaired": 0, > "clean_effects": 0, > "attached_pic": 0, > "timed_thumbnails": 0 > } > } > ... > ]} This is a DVB-C recording, which consists of 1 video stream, multiple audio- and subtext-streams, and that strange "data" stream. Similar to <ozmartian#203> Fixes: <ozmartian#211>
This reverts commit 17366cd.
…version from string args to list args in commit e7260e1
…, as various sub-streams may have keyframes at different time positions.
… fails because of in-place editing of the same file.
…nes), but use -vcodec copy to use the same settings as before.
…'s force_key_frames
… the duration of the smart-cut
…s the precision of the (regular) CUT.
Merge ozmartian:master
@ozmartian any chance of getting these fixes in? I think @pikim 's branch is the best with these fixes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is not a proper PR, and I don't expect you to merge it as is. This is merely a kind reminder, that some of the bugs have been fixed around smart-cut and the regular cut tested solely against mpeg2-ts source.
Some of the fixes are rather rough, but they work for me. Feel free to cherry-pick if any of them meets your style/expectation.
While Smartcut technically works (no exceptions thrown), results are much better with the 'regular' cut.
With the injected/forced keyframes even the audio is seamless.