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

Add a copy profile #21

Closed
suntong opened this issue Oct 12, 2021 · 2 comments
Closed

Add a copy profile #21

suntong opened this issue Oct 12, 2021 · 2 comments
Labels

Comments

@suntong
Copy link
Owner

suntong commented Oct 12, 2021

So as to use Seg (Cut) operation without re-encoding.

@suntong
Copy link
Owner Author

suntong commented Jan 2, 2022

Impossible to use the copy profile with Cut:

$ ffcvt -force -f "$FFCVT_FTC" -t copy -C 00:00:40-00:00:50 -C 00:00:53-00:00:56

== Transcoding: Nice_scenic_videos_from_dashcam_With_Evening_sunset_view.mp4
] ffmpeg -i Nice_scenic_videos_from_dashcam_With_Evening_sunset_view.mp4 -speed 2 -af volume=3.2,channelmap=channel_layout=5.1 -c:v copy -c:a copy -b:a 64k -c:s copy -y -filter_complex [0:v]trim=start=40:end=50,setpts=PTS-STARTPTS[v0];[0:a]atrim=start=40:end=50,asetpts=PTS-STARTPTS[a0];[0:v]trim=start=53:end=56,setpts=PTS-STARTPTS[v1];[0:a]atrim=start=53:end=56,asetpts=PTS-STARTPTS[a1];[v0][a0][v1][a1]concat=n=2:v=1:a=1[vo][ao] -map [vo] -map [ao] Nice_scenic_videos_from_dashcam_With_Evening_sunset_view_.mkv
2022/01/02 12:35:52 ffcvt: Exec error - exit status 1

ffmpeg version 4.4-6ubuntu5 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-7ubuntu1)
Input #0, matroska,webm, from 'Nice_scenic_videos_from_dashcam_With_Evening_sunset_view.mp4':
  Metadata:
    ENCODER         : Lavf58.20.100
  Duration: 00:05:40.30, start: -0.007000, bitrate: 235 kb/s
  Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 426x240, SAR 1:1 DAR 71:40, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      DURATION        : 00:05:40.240000000
  Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
    Metadata:
      DURATION        : 00:05:40.301000000
Streamcopy requested for output stream 0:0, which is fed from a complex filtergraph. Filtering and streamcopy cannot be used together.

Note the last line, "Filtering and streamcopy cannot be used together"

@suntong
Copy link
Owner Author

suntong commented Jan 2, 2022

Seg operation OK:

$ ffcvt -force -f "$FFCVT_FTC" -t copy -Seg 00:01:20

== Transcoding: Nice_scenic_videos_from_dashcam_With_Evening_sunset_view.mp4
] ffmpeg -i Nice_scenic_videos_from_dashcam_With_Evening_sunset_view.mp4 -c:v copy -c:a copy -b:a 64k -c:s copy -y -f segment -segment_time 00:01:20 -reset_timestamps 1 Nice_scenic_videos_from_dashcam_With_Evening_sunset_view%02d_.mkv

Done.
Org Size: 9765 KB
New Size: 3516 KB
Saved:    63% with 6249 KB
Time: 239.342112ms at 2022-01-02 13:40:33


Transcoding completed in 239.512566ms
Org Size: 9 MB
New Size: 3 MB
Saved:    63%

$ ls -l
 Nice_scenic_videos_from_dashcam_With_Evening_sunset_view00_.mkv*
 Nice_scenic_videos_from_dashcam_With_Evening_sunset_view01_.mkv*
 Nice_scenic_videos_from_dashcam_With_Evening_sunset_view02_.mkv*

@suntong suntong closed this as completed in dcc5766 Jan 2, 2022
@suntong suntong added the wiki label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant