VideoHelp Forum
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Hi all,

    I need a little problem here.

    My original file is 480x720 (2 windows, 360 resolution)

    I need "split" file in 360x480 and joint to 360x960 with ffmpeg.

    Look the screenshots.

    ORIGINAL:




    NEEDED


    Sometimes, the first screen isnt the left screen.



    Claudio
    Quote Quote  
  2. This is trivial if using AviSynth. You already know your way around AviSynth, don't you? Why does it have to be using ffmpeg?
    Quote Quote  
  3. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by manono View Post
    This is trivial if using AviSynth. You already know your way around AviSynth, don't you? Why does it have to be using ffmpeg?

    Yes, I use avisynth and its simple for me but my question is for my friend. He will convert 2000 files

    If u know a batch mode with any software for this, its will save the world



    Claudio
    Quote Quote  
  4. Code:
    ffmpeg -y -i "INPUT CLIP" -filter_complex "[0]split[a][b];[a]crop=iw:ih/2:0:0[r];[b]crop=iw:ih/2:iw:ih/2[l];[l][r]hstack" -c:a copy "OUTPUT"
    should do the trick
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by Selur View Post
    Code:
    ffmpeg -y -i "INPUT CLIP" -filter_complex "[0]split[a][b];[a]crop=iw:ih/2:0:0[r];[b]crop=iw:ih/2:iw:ih/2[l];[l][r]hstack" -c:a copy "OUTPUT"
    should do the trick
    Get this Selur:





    Claudio
    Quote Quote  
  6. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Sorry my bad. Its fully work, just change output to 1.mp4 and ok.

    Thank u very much @Selur.


    Claudio
    Last edited by Cauptain; 29th Apr 2018 at 05:57.
    Quote Quote  
  7. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Selur, I have a pendence.

    Code:
    ffmpeg -y -i "1 vs 100 (USA).mp4" -filter_complex "[0]split[a][b];[a]crop=iw:ih/2:0:0[r];[b]crop=iw:ih/2:iw:ih/2[l];[l][r]hstack" -c:a copy "%~dpn1.mkv"
    Its works but give me ~dpn1.mkv file name. I want the same name input "1 vs 100 (USA)". How to this? In the batch mode its change, correct?



    Claudio
    Quote Quote  
  8. "%~dpn1" is a batch option, it's not available in the command line.
    So either write a proper batch script where you replace both input and output through some batch shortcuts or write the name,...
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  9. Originally Posted by Cauptain View Post
    Selur, I have a pendence.

    Code:
    ffmpeg -y -i "1 vs 100 (USA).mp4" -filter_complex "[0]split[a][b];[a]crop=iw:ih/2:0:0[r];[b]crop=iw:ih/2:iw:ih/2[l];[l][r]hstack" -c:a copy "%~dpn1.mkv"
    Its works but give me ~dpn1.mkv file name. I want the same name input "1 vs 100 (USA)". How to this? In the batch mode its change, correct?
    You should pass name as parameter or explicitly name output by copying it - depends on your usage case.
    Additionally you may wish to control codec and compression - currently you not specifying codecs and parameters and default one are used by ffmpeg (re-compression is mandatory in your case).
    Quote Quote  
  10. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Thank u guys. I will try when in my home.

    Im weak with cml, even reading, there are things I dont understand.


    Claudio
    Quote Quote  
  11. Either hard code the filenames:

    Code:
    ffmpeg -y -i "1 vs 100 (USA).mp4" -filter_complex "[0]split[a][b];[a]crop=iw:ih/2:0:0[r];[b]crop=iw:ih/2:iw:ih/2[l];[l][r]hstack" -c:a copy "1 vs 100 (USA) side by side.mkv"
    Or pass a filename to a batch file:

    Code:
    ffmpeg -y -i "%~1" -filter_complex "[0]split[a][b];[a]crop=iw:ih/2:0:0[r];[b]crop=iw:ih/2:iw:ih/2[l];[l][r]hstack" -c:a copy "%~dpn1 side by side.mkv"
    The latter in a batch file is suitable for drag and drop.
    Quote Quote  
  12. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Also, I would create a top/bottom-->left/right and a separate bottom/top-->left/right (or you could call it a top/bottom-->right/left) script and do a visual (manual) pre-sort into 2 separate input folders, so they each would be operated on only by the appropriate script.

    Scott
    Quote Quote  
  13. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    Either hard code the filenames:

    Code:
    ffmpeg -y -i "1 vs 100 (USA).mp4" -filter_complex "[0]split[a][b];[a]crop=iw:ih/2:0:0[r];[b]crop=iw:ih/2:iw:ih/2[l];[l][r]hstack" -c:a copy "1 vs 100 (USA) side by side.mkv"
    Or pass a filename to a batch file:

    Code:
    ffmpeg -y -i "%~1" -filter_complex "[0]split[a][b];[a]crop=iw:ih/2:0:0[r];[b]crop=iw:ih/2:iw:ih/2[l];[l][r]hstack" -c:a copy "%~dpn1 side by side.mkv"
    The latter in a batch file is suitable for drag and drop.
    Its perfect for my friend Jagabo. Very nice. He can create all videos and rename by list using a renamer software.


    Originally Posted by Cornucopia View Post
    Also, I would create a top/bottom-->left/right and a separate bottom/top-->left/right (or you could call it a top/bottom-->right/left) script and do a visual (manual) pre-sort into 2 separate input folders, so they each would be operated on only by the appropriate script.

    Scott
    Scott, this stage is much more advanced and I think it is very complicated for him.

    I'll write down your suggestion as I need to learn more tips.


    Claudio
    Quote Quote  



Similar Threads

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