VideoHelp Forum




+ Reply to Thread
Results 1 to 22 of 22
  1. How Do I ammend custom command in BT_open.txt in destination folder via batch open/close method in Clever FFmpeg GUI.I am somewhat cunfused after reading the content in BT_open.txt. Is there some other simpler method to put the command directly in the gui.
    Quote Quote  
  2. Originally Posted by sam12345 View Post
    How Do I ammend custom command in BT_open.txt in destination folder via batch open/close method in Clever FFmpeg GUI.I am somewhat cunfused after reading the content in BT_open.txt. Is there some other simpler method to put the command directly in the gui.
    Manipulating the command line in BT_open.txt is something for experienced users and will result in error messages and crashes if used incorrectly.

    The GUI is designed so that no command line can be entered, allowing every user to use ffmpeg in a simple manner.
    If someone knows how to use the command line, they don't need a GUI.
    Quote Quote  
  3. OK go it but by giving the same parameters of ffmpeg - i command >>>

    ffmpeg -hide_banner -y -i "input.mkv" -filter:v "fps=30" -map 0:v -map 0:a:m:language:eng -c:v libx265 -preset faster -crf 22 -pix_fmt yuv420p -threads 0 -c:a copy -sn -movflags +faststart "D:\UTDL\FFmpeg Output\output.H265.mp4"

    in CFFmpeg GUI > Btopen.txt >>>

    Video ---> x265 (hevc) - Stream ID 0 from?C:\FFmpeg\bin\F1.mkv?910432?-hide_banner -loglevel error -stats -y -fflags +genpts -i "C:\FFmpeg\bin\F1.mkv" -vf fps=30000/1000,format=yuv420p -map 0:0 -c:v:0 libx265 -preset faster -crf 22 -aspect 2.39 -an -sn -dn -metadata:g encoding_tool="clever FFmpeg-GUI" ?D:\UTDL\FFmpeg Output\F1_V0.mkv?1?

    I get the ouput video with more brightness which unbalance the video but with ffmpeg -cli command it's perfect.
    Image Attached Thumbnails Click image for larger version

Name:	Screenshot_22.png
Views:	19
Size:	42.4 KB
ID:	89198  

    Quote Quote  
  4. Originally Posted by sam12345 View Post
    I get the ouput video with more brightness which unbalance the video but with ffmpeg -cli command it's perfect.
    That doesn't make sense because the two command lines are identical except for the container.
    Quote Quote  
  5. I have found it. It's to keep the original frame rate as source video i.e. 23.976 and not to change to 30.
    Color space to BT.709 and color range to Limited and pixel format to yuv420p in the CFFmpeg Gui. Resulted video perfect.


    I have to remove the -filter:v "fps=30" from FFmpeg -CLI too.

    Kindly tell about the frame rate. My source video is 2.40.1 and the gui forces to 2.39 and does the gui uses all the threads for CPU encoding : -threads 0

    Lastly, Does the gui Multiplex do [-movflags +faststart] for .mp4
    Image Attached Thumbnails Click image for larger version

Name:	Screenshot_24.png
Views:	13
Size:	42.2 KB
ID:	89204  

    Quote Quote  
  6. Originally Posted by sam12345 View Post
    I have found it. It's to keep the original frame rate as source video i.e. 23.976 and not to change to 30.
    Color space to BT.709 and color range to Limited and pixel format to yuv420p in the CFFmpeg Gui. Resulted video perfect.
    If your cli commandline is ok for you, so there is no need to change the color space, nor the color range (already limited) in the gui.

    Kindly tell about the frame rate. My source video is 2.40.1 and the gui forces to 2.39
    You mean the aspect ratio, not the frame rate.
    There are no films with AR 2.40, but with 2, 2.35, and 2.39.
    Therefore, the correction is correct.

    and does the gui uses all the threads for CPU encoding
    Yes.

    Lastly, Does the gui Multiplex do [-movflags +faststart] for .mp4
    Yes, you'll find this option in the multiplex window.
    Quote Quote  
  7. can you embed this batch command for autogeneration of chapters in GIU.

    @echo off
    setlocal EnableDelayedExpansion

    if "%~1"=="" (
    echo Drag and drop a video file onto this script.
    pause
    exit /b
    )

    set "INPUT=%~1"
    set "CHAPTERS=chapters.txt"

    :: Get duration in seconds (may be float)
    for /f "tokens=* delims=" %%A in ('ffprobe -v error -show_entries format^=duration -of default^=noprint_wrappers^=1:nokey^=1 "%INPUT%"') do (
    set "DURATION=%%A"
    )

    :: Strip decimal part if present
    for /f "tokens=1 delims=." %%A in ("!DURATION!") do set "DURATION=%%A"

    > "%CHAPTERS%" echo ;FFMETADATA1

    set /a COUNT=0
    :loop
    set /a START=COUNT*300
    if !START! GEQ !DURATION! goto done
    set /a END=START+300
    if !END! GTR !DURATION! set /a END=!DURATION!

    >> "%CHAPTERS%" echo.
    >> "%CHAPTERS%" echo [CHAPTER]
    >> "%CHAPTERS%" echo TIMEBASE=1/1
    >> "%CHAPTERS%" echo START=!START!
    >> "%CHAPTERS%" echo END=!END!
    >> "%CHAPTERS%" echo title=Chapter !COUNT!

    set /a COUNT+=1
    goto loop

    :done

    echo.
    echo Chapter file created: %CHAPTERS%
    pause
    Last edited by sam12345; 16th Oct 2025 at 09:50.
    Quote Quote  
  8. Originally Posted by sam12345 View Post
    can you embed this batch command for autogeneration of chapters in GIU.
    Automatically generated chapters at fixed intervals do not make sense.
    Chapters should be there to separate scene changes and similar.
    And these are different for every video.
    Quote Quote  
  9. ok. this one [Timebase]

    @echo off
    setlocal EnableDelayedExpansion

    :: Check if a video file was passed
    if "%~1"=="" (
    echo Drag and drop a video file onto this script.
    pause
    exit /b
    )

    set "INPUT=%~1"
    set "CHAPTERS=chapters.txt"

    :: Write the metadata header
    > "%CHAPTERS%" echo ;FFMETADATA1

    :: Predefined START and END pairs (in TIMEBASE 1/10000000)
    set /a COUNT=0
    for /f "tokens=1,2 delims= " %%A in ('^
    echo 0 6839750000^&^
    echo 6839750000 13495160000^&^
    echo 13495160000 15984730000^&^
    echo 15984730000 19428590000^&^
    echo 19428590000 25956370000^&^
    echo 25956370000 31817650000^&^
    echo 31817650000 36251660000^&^
    echo 36251660000 40457950000^&^
    echo 40457950000 45091750000^&^
    echo 45091750000 50266930000^&^
    echo 50266930000 54515340000^&^
    echo 54515340000 60387470000^&^
    echo 60387470000 66430590000^&^
    echo 66430590000 70281940000^&^
    echo 70281940000 76831830000^&^
    echo 76831830000 82846170000^&^
    echo 82846170000 87615940000^&^
    echo 87615940000 92027020000^&^
    echo 92027020000 97624700000^&^
    echo 97624700000 103749479170
    ') do (
    >> "%CHAPTERS%" echo.
    >> "%CHAPTERS%" echo [CHAPTER]
    >> "%CHAPTERS%" echo TIMEBASE=1/10000000
    >> "%CHAPTERS%" echo START=%%A
    >> "%CHAPTERS%" echo END=%%B
    >> "%CHAPTERS%" echo title=Chapter !COUNT!
    set /a COUNT+=1
    )

    echo.
    echo Chapter file created: %CHAPTERS%
    pause
    Last edited by sam12345; 17th Oct 2025 at 07:57.
    Quote Quote  
  10. Originally Posted by ProWo View Post
    Originally Posted by sam12345 View Post
    can you embed this batch command for autogeneration of chapters in GIU.
    Automatically generated chapters at fixed intervals do not make sense.
    Chapters should be there to separate scene changes and similar.
    And these are different for every video.
    EDIT

    This batch Script works fully as per Scene Detection. Request you to embed the same in gui for automatic chapters generation.

    Attaching the TXT file of the batch (.bat)

    Test the video here


    PS: Download the video
    Image Attached Files
    Quote Quote  
  11. [QUOTE=sam12345;2784693
    This batch Script works fully as per Scene Detection. Request you to embed the same in gui for automatic chapters generation.[/QUOTE]
    This seems ok to me. Will implement it.
    Quote Quote  
  12. MKV Toolnix has the option to Generate Chapters at regular intervals.
    Image
    [Attachment 89240 - Click to enlarge]


    Wondering if you can implement that to. It will be a great convenience for auto generation of chapters > even at regular intervals instead of adding them manually.

    Auto generation of chapters at 10 minutes regular interval TXT of the batch (.bat) enclosed herewith
    Image Attached Files
    Quote Quote  
  13. New batch to add Custom_Chapters on regular intervals on Video Length Detection [More Refined].
    This is what we are doing in CFFMpeg GUI Image
    [Attachment 89257 - Click to enlarge]


    Enclosed TXT of the batch(.bat)

    This auto generate the chapters on regular intervals based on separate video lenght
    Image Attached Files
    Quote Quote  
  14. @ProWo

    the batch for scene detection has worked for 30 min video. sample here


    PS: Kindly download the file
    Image Attached Files
    Quote Quote  
  15. Originally Posted by sam12345 View Post
    the batch for scene detection has worked for 30 min video.
    clever FFmpeg-GUI automatic scene changes detects one chapter more in this video.
    Image Attached Files
    Quote Quote  
  16. Originally Posted by ProWo View Post
    Originally Posted by sam12345 View Post
    the batch for scene detection has worked for 30 min video.
    clever FFmpeg-GUI automatic scene changes detects one chapter more in this video.
    Yes, it has made 7 chapters but not muxing the video in multiplex. Short videos are not multiplexing in multiplex with scene detection. Fixed intervals are working fine with short as well as large videos.
    Quote Quote  
  17. Originally Posted by sam12345 View Post
    Yes, it has made 7 chapters but not muxing the video in multiplex. Short videos are not multiplexing in multiplex with scene detection. Fixed intervals are working fine with short as well as large videos.
    Then you did something wrong.
    After creation, the new chapters are automatically loaded and activated (you can see this with the red “deactivate” button).
    Click on “Return” to return to the multiplex window. In the top right corner, you will see “Chapters C” (which stands for created chapters).
    Now select a compatible container (mkv, mp4, mov). If you select an incompatible one, an error will be displayed in the top right corner.
    Then click on “Multiplex” and the created chapters will be muxed into the video.
    Quote Quote  
  18. @ProWo

    I know the procedure but multiplex is not doing short videos in mp4/mkv. Image
    [Attachment 89343 - Click to enlarge]


    Image
    [Attachment 89344 - Click to enlarge]


    Image
    [Attachment 89345 - Click to enlarge]


    Output reslut is null
    Quote Quote  
  19. Originally Posted by sam12345 View Post
    I know the procedure but multiplex is not doing short videos in mp4/mkv.
    Output reslut is null
    It works as aspected here with me.
    Could you upload this video and post the link here?
    I have to test this with your video.
    Quote Quote  
  20. @ProWo

    It's here Without chapters

    PS: Download the video
    Quote Quote  
  21. Originally Posted by sam12345 View Post
    Download the video
    Thx, tested with your video and found the bug.
    It was reading pts instead of pts_time.
    Fixed now, update.
    Quote Quote  
  22. Tested, 3.4.6.13. OK; working.

    THX
    Quote Quote  



Similar Threads

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