VideoHelp Forum
+ Reply to Thread
Results 1 to 14 of 14
Thread
  1. hi, sorry for my bad English,
    i tried to split a video using FFmpeg using this code:
    Code:
    ffmpeg -y -ss 00:01:00.00 -to 00:02:00.00 -i "D:\Test\test.mp4" -c copy "D:\Test\test_b.mp4"
    the code is working, but the video started at 00:00:58.XX, and that bonus 2 seconds playable but muted,
    is there any way to use "-c copy"(I need it because it fastest) but without that "bonus 2 seconds"?
    thank you, have a nice day
    Quote Quote  
  2. No while copying you can only cut on key frames (otherwise reencoding would be needed) and apparently at the time code you selected no key frame is present.
    If this is unclear to you, you might want to read up on how MPEG based compression works.
    You would need to use a tool which does suport some kind of 'smart encoding' where it only reencodes the affected GOPs around the cut points.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  3. thank you Selur for the reply,
    so, what is the solution?
    Quote Quote  
  4. Use another tool like AviDemux or so which supports what you want to do or simply only cut on key frames.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. thank you again for the reply,
    and sorry for the additional question,
    is this AviDemux support Command-Line Interface(CLI)?
    currently, I creating a python script to split video(s),
    if not support Command-Line Interface(CLI), can you suggest that support one?
    thank you again for the reply, sorry if I rude
    Quote Quote  
  6. Never tried to use AviDemux through the command line, but it has a command line interface: http://avidemux.sourceforge.net/doc/en/command.xml.html
    I have no clue whather con can cut using the command line interface, but the folks over at https://avidemux.org/smif/index.php probably can help.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  7. thank you again Selur,
    i will study it

    Update:
    -avidemux do not support 265/hevc
    --video-codec >> XVID4 | x264 | FFmpeg4 | VCD | SVCD |DVD | XSVCD | XVCD
    -the tutorial on the google almost not exist, all replies suggest to using FFmpeg
    Last edited by kucing; 8th May 2022 at 07:28.
    Quote Quote  
  8. Originally Posted by kucing View Post
    -avidemux do not support 265/hevc
    It does:

    Image
    [Attachment 64714 - Click to enlarge]
    Quote Quote  
  9. thank you for the reply jagabo,
    but the main problem : the tutorial on the google almost not exist, all replies suggest to using FFmpeg
    Quote Quote  
  10. Avidemux can cut on key frames only.
    Frame accurate cutting can be made by Videoredo Suite (payware).
    Quote Quote  
  11. thank for the reply Prowo,
    is this Videoredo support Command-Line Interface(CLI)?
    Last edited by kucing; 8th May 2022 at 10:56.
    Quote Quote  
  12. Oh, I thought AviDemux did support smart encoding/copying,...
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  13. Originally Posted by kucing View Post
    thank you for the reply jagabo,
    but the main problem : the tutorial on the google almost not exist, all replies suggest to using FFmpeg
    Yeah, searching google for "avidemux tutorial" only gives 670,000 hits.

    Image
    [Attachment 64715 - Click to enlarge]
    Quote Quote  
  14. jagabo,
    if you can read previous replies,
    i need the Command-Line Interface(CLI) one,
    not the GUI one,
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!