Trim one video when playing 2 videos trims both
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
I am trying to find where some extra is recorded in one video vs another. I can play them side by side, but then VideoA has an extra 63 seconds starting at 300 seconds in. I want to bring the videos back up, but skip 63 seconds of VideoA, but not videoB, then I can manually move to 300 seconds in, it it will be in sync again and I can look for other differences.
However, when I add trim, whether I put the "trim=63" with VideoA or VideoB, BOTH videos get trimmed of the first 63 seconds. how can I just do one?
mpv --lavfi-complex="[vid1]scale=760:308,trim=63[v1];\
[vid2]scale=760:308,trim=1[v2];\
[v1][v2]hstack[vo];[aid1][aid2]amix[ao]" \
"VideoA.mkv" --external-file="VideoB.mkv"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided mpv command with its lavfi-complex graph, comparing how trim is applied to VideoA and VideoB. Check the stream labels around trim, hstack, and amix. Done means one video skips the requested 63 seconds while the other remains unchanged and the side-by-side playback stays usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100