VideoHelp Forum




+ Reply to Thread
Page 34 of 73
FirstFirst ... 24 32 33 34 35 36 44 ... LastLast
Results 991 to 1,020 of 2186
  1. Originally Posted by davidt1 View Post
    Forgive me if this is not the right place to ask this, but I am desperate. I use Clever FFmpeg-GUI to add a srt file to an mp4 file that has dvdsubs. This software works perfectly. I would like to be able to do this with ffmpeg by itself, but have been unable to do it. I really appreciate it if someone can share the steps/commands to this in ffmpeg. Thanks.
    Code:
    FFmpeg.exe -i "your_movie_with_full_path.mp4" -i "your_srtsubtitle_with_full_path.srt" -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s mov_text output.mp4
    Here it is assumed that the video has a video and an audio track.
    The colors refer to command parts that belong together.
    The codec mov_text is necessary because the mp4 container cannot contain srt directly.
    If the destination was e.g. mkv, you could use copy instead of mov_text.
    Quote Quote  
  2. Originally Posted by ProWo View Post
    Originally Posted by davidt1 View Post
    Forgive me if this is not the right place to ask this, but I am desperate. I use Clever FFmpeg-GUI to add a srt file to an mp4 file that has dvdsubs. This software works perfectly. I would like to be able to do this with ffmpeg by itself, but have been unable to do it. I really appreciate it if someone can share the steps/commands to this in ffmpeg. Thanks.
    Code:
    FFmpeg.exe -i "your_movie_with_full_path.mp4" -i "your_srtsubtitle_with_full_path.srt" -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s mov_text output.mp4
    Here it is assumed that the video has a video and an audio track.
    The colors refer to command parts that belong together.
    The codec mov_text is necessary because the mp4 container cannot contain srt directly.
    If the destination was e.g. mkv, you could use copy instead of mov_text.
    Thank you, but it does not work the way I hope. The commands you provided adds the srt sub but removes dvdsubs and only keeps the first audio stream. I need to add the srt file while retaining all the streams (1 video stream, 3 audio streams, and 3 dvdsub streams) of the original file, just like I can with Clever FFmpeg-GUI. Thanks.
    Quote Quote  
  3. Then use
    Code:
    FFmpeg.exe -i "your_movie_with_full_path.mp4" -i "your_srtsubtitle_with_full_path.srt" -map 0 -map 1:0 -c copy -c:s:3 mov_text output.mp4
    where
    -map 0 uses all streams from input 1
    -c copy uses the source codecs for all streams
    -map 1:0 uses the first stream from input 2
    -c: s:3 mov_text uses the mov_text codec for the fourth subtitle stream.
    The input and stream counter starts with 0.
    Quote Quote  
  4. Originally Posted by ProWo View Post
    Then use
    Code:
    FFmpeg.exe -i "your_movie_with_full_path.mp4" -i "your_srtsubtitle_with_full_path.srt" -map 0 -map 1:0 -c copy -c:s:3 mov_text output.mp4
    where
    -map 0 uses all streams from input 1
    -c copy uses the source codecs for all streams
    -map 1:0 uses the first stream from input 2
    -c: s:3 mov_text uses the mov_text codec for the fourth subtitle stream.
    The input and stream counter starts with 0.
    Works perfectly. Thank you so much. Now I try to convert from mkv to mp4 with re-encoding while keeping everything, but I can't make it work. Can you help again, please?

    trying to convert from mkv to mp4 with re-encoding:

    ffmpeg -i "input.mkv" -vcodec libx264 -map 0 -acodec copy -c:3 mov_text "output.mp4"

    error message:
    Automatic encoder selection failed Default encoder for format mp4 (codec none) is probably disabled
    Quote Quote  
  5. Member Ennio's Avatar
    Join Date
    May 2005
    Location
    Netherlands
    Search Comp PM
    Hi ProWo,

    Just a minor thing. Browsing for sourcefiles in your GUI, h265, eac3 (and other) files don't show up with the lower-right type-window set at its default "Video & Audio Files (*.asf;*.flv etc...)". I think not all supported filetypes are added here.

    Image
    [Attachment 78844 - Click to enlarge]


    Where setting the windows to "All Files (*.*)" does make the streams show, making them able to be selected.
    Would you care to correct this? I'm running version 3.2.6.

    Image
    [Attachment 78845 - Click to enlarge]
    Quote Quote  
  6. Originally Posted by davidt1 View Post
    trying to convert from mkv to mp4 with re-encoding:

    Code:
    ffmpeg -i "input.mkv" -vcodec libx264 -map 0 -acodec copy -c:s:3 mov_text "output.mp4"
    error message:
    Automatic encoder selection failed Default encoder for format mp4 (codec none) is probably disabled
    You are missing the codec for the subtitle files.

    Use:
    Code:
    ffmpeg -i "input.mkv" -map 0 -c:v libx264 -crf 18 -c:a copy -c:s copy  "output.mp4"
    Quote Quote  
  7. Originally Posted by Ennio View Post
    Hi ProWo,
    Just a minor thing. Browsing for sourcefiles in your GUI, h265, eac3 (and other) files don't show up with the lower-right type-window set at its default "Video & Audio Files (*.asf;*.flv etc...)". I think not all supported filetypes are added here.
    Where setting the windows to "All Files (*.*)" does make the streams show, making them able to be selected.
    Would you care to correct this? I'm running version 3.2.6.
    Will be changed in the next beta.
    Quote Quote  
  8. Originally Posted by ProWo View Post
    Originally Posted by davidt1 View Post
    trying to convert from mkv to mp4 with re-encoding:

    Code:
    ffmpeg -i "input.mkv" -vcodec libx264 -map 0 -acodec copy -c:s:3 mov_text "output.mp4"
    error message:
    Automatic encoder selection failed Default encoder for format mp4 (codec none) is probably disabled
    You are missing the codec for the subtitle files.

    Use:
    Code:
    ffmpeg -i "input.mkv" -map 0 -c:v libx264 -crf 18 -c:a copy -c:s copy  "output.mp4"
    Thank you again, but this does not do what I need. The original video has an srt sub and dvdsubs. -c copy does not work for srt. I can use -c mov_text for the srt sub, but it won't work for the dvdsubs . I need to copy both the dvd the subs and srt sub to the new file.
    Last edited by davidt1; 5th May 2024 at 17:50.
    Quote Quote  
  9. Originally Posted by davidt1 View Post
    Thank you again, but this does not do what I need. The original video has an srt sub and dvdsubs. -c copy does not work for srt. I can use -c mov_text for the srt sub, but it won't work for the dvdsubs . I need to copy both the dvd the subs and srt sub to the new file.
    The command line is different for every movie.
    You have to learn yourself if you want to do it manually.
    The most important thing is to understand how to handle the individual streams.
    You should first familiarize yourself with
    -map
    and stream identifier
    first.
    Google for:
    ffmpeg mapping
    ffmpeg stream identifiers.
    Quote Quote  
  10. How do I use the tool to remux DVDs and Blu-Rays?

    Also, made the 1000th post here. Yay!
    Quote Quote  
  11. Originally Posted by VideoFan576 View Post
    How do I use the tool to remux DVDs and Blu-Rays?
    Load your file, click main, click multiplex, make your choices, click multiplex. Done.
    Quote Quote  
  12. Originally Posted by ProWo View Post
    Originally Posted by davidt1 View Post
    Thank you again, but this does not do what I need. The original video has an srt sub and dvdsubs. -c copy does not work for srt. I can use -c mov_text for the srt sub, but it won't work for the dvdsubs . I need to copy both the dvd the subs and srt sub to the new file.
    The command line is different for every movie.
    You have to learn yourself if you want to do it manually.
    The most important thing is to understand how to handle the individual streams.
    You should first familiarize yourself with
    -map
    and stream identifier
    first.
    Google for:
    ffmpeg mapping
    ffmpeg stream identifiers.
    I finally got it. Thank you.
    Quote Quote  
  13. Newest beta (v3.2.6.01), online now.

    Added: Keyframe check on cutting.
    More info of subtitle type on subtitle burn in.
    Automatic pixel format settings with HDR10/HLG sources.
    wmv3 muxing.

    Fixed: Bug in subtitle burn in with picture based subtitles.

    Changed: Filter removed on file search (request by Ennio).
    Removed first keyframe delay field (cut section).
    Default settings for dynaudnorm filter.
    Extraction of DVD and DVB subtitles to mkv.
    Quote Quote  
  14. How about adding a stay-on-top function? Thanks.
    Quote Quote  
  15. Originally Posted by davidt1 View Post
    How about adding a stay-on-top function? Thanks.
    As long as you work with it, it should stay on top.
    Otherwise, simply click on the icon in the taskbar.
    Quote Quote  
  16. Member Ennio's Avatar
    Join Date
    May 2005
    Location
    Netherlands
    Search Comp PM
    Originally Posted by ProWo View Post
    Newest beta (v3.2.6.01), online now.

    ...Changed: Filter removed on file search (request by Ennio).
    Source-browsing now working like a charm. Thanks for this fix
    Quote Quote  
  17. Originally Posted by ProWo View Post
    Originally Posted by davidt1 View Post
    How about adding a stay-on-top function? Thanks.
    As long as you work with it, it should stay on top.
    Otherwise, simply click on the icon in the taskbar.
    it still "disappears" from time to time once you leave it in the background - clicking on the icon doesn't bring it back.
    Quote Quote  
  18. Originally Posted by mannequin80 View Post
    it still "disappears" from time to time once you leave it in the background - clicking on the icon doesn't bring it back.
    I have noticed this behavior on Windows 11, it seams to be a problem with explorer.exe.
    If you minimize the other front window, then reappears.
    Restarting explorer.exe resolves the problem too.
    Anyway, i'm working on this.
    Quote Quote  
  19. Originally Posted by mannequin80 View Post
    it still "disappears" from time to time once you leave it in the background - clicking on the icon doesn't bring it back.
    Try the newest beta (v3.2.6.02) and report here, if there is an improvement for the "vanishing" bug.
    Last edited by ProWo; 31st May 2024 at 10:53.
    Quote Quote  
  20. Member
    Join Date
    Mar 2024
    Location
    SPAIN
    Search Comp PM
    Hi , using v3.2.6.01 i got this, pressing the button cut, i dont have O: unit.
    Image Attached Thumbnails Click image for larger version

Name:	Captura de pantalla 2024-05-31 170600.png
Views:	20
Size:	14.3 KB
ID:	79516  

    Quote Quote  
  21. Originally Posted by Ndidi View Post
    Hi , using v3.2.6.01 i got this, pressing the button cut, i dont have O: unit.
    Confirm this bug, it's a leftover from a test environement.
    I'll fix it and upload a new beta (v.3.2.0.02) today.
    Quote Quote  
  22. Newest beta (v3.2.6.02), online now.

    Fixed: Disappearing bug.
    Video encoding filterchain bug.
    Bug in multiplex grid with preprocessed and batch streams.
    Bug in ffmpeg path (thx Ndidi for the hint).

    Changed: HDR info in file analysis and app.

    Improved: automatic settings on HDR conversions.
    Quote Quote  
  23. Got this error while converting MKV to MP4 with two webvtt subs.

    Image
    [Attachment 79616 - Click to enlarge]
    Quote Quote  
  24. Adding webvtt sub to MKV and muxed as MKV. Subtile is displayed on the left side of the screen and is not removable. It should be in the middle of the screen and movable. I can replicate this behavior with ffmpeg if I use -c copy. If I use -c srt or -c webvtt, the subtitle behaves correctly.

    Image
    [Attachment 79617 - Click to enlarge]
    Quote Quote  
  25. @davidt1
    I did some tests and found that the webvtt codec is incompatible with the mp4 container.
    I will therefore block the muxing of webvtt to mp4 in the next beta.
    Muxing webvtt subtitles into the mkv container with clever FFmpeg-GUI works fine here. The subtitle is centered, just as it should be.
    Please post one of your webvtt subtitles here so I can reproduce your problem.
    Quote Quote  
  26. Originally Posted by ProWo View Post
    @davidt1
    I did some tests and found that the webvtt codec is incompatible with the mp4 container.
    I will therefore block the muxing of webvtt to mp4 in the next beta.
    Muxing webvtt subtitles into the mkv container with clever FFmpeg-GUI works fine here. The subtitle is centered, just as it should be.
    Please post one of your webvtt subtitles here so I can reproduce your problem.
    using ffmpeg, I added a webvtt sub to a mp4 video. The -c mov_text codec works fine.
    Quote Quote  
  27. With
    Code:
    -c mov_text
    you're recoding the webvtt subtitle to mov_text, witch is compatible with the mp4 container.
    Last edited by ProWo; 5th Jun 2024 at 06:01.
    Quote Quote  
  28. Hi!
    I tried recently to demultiplex an MP4 file and got a strange result - the length of the video was only two and a half minutes instead of the full length of the movie. The length of the audio file was correct. Strangely enough, I tried to do the same with another well-known tool, MKVToolNix, and the result was the same. I tried then avidemux and this time I got what I wanted. Something seems to be wrong with these tools. I wrote this because I would like to help make these applications better.
    Quote Quote  
  29. Originally Posted by apkemu View Post
    Hi!
    I tried recently to demultiplex an MP4 file and got a strange result - the length of the video was only two and a half minutes instead of the full length of the movie. The length of the audio file was correct. Strangely enough, I tried to do the same with another well-known tool, MKVToolNix, and the result was the same. I tried then avidemux and this time I got what I wanted. Something seems to be wrong with these tools. I wrote this because I would like to help make these applications better.
    Could you upload this mp4 and post the link here, so i can investigate further?
    Quote Quote  



Similar Threads

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