VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 12 of 12
Thread
  1. Hey everbody.

    I need some advice, how can I convert 4k files using more or less the same FFMPEG command as this:


    ffmpeg -i INDSÆT FILSTI -timecode TIDSKODE -c:v mpeg2video -dc 10 -sc_threshold 1000000000 -intra_vlc 1 -non_linear_quant 1 -qmin 1 -qmax 12 -bf 2 -g 12 -pix_fmt yuv422p -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range mpeg -b 50M -minrate 50M -maxrate 50M -bufsize 17825792 -rc_init_occupancy 17825792 -flags +cgop+ilme+ildct -acodec pcm_s24le -ar 48000 FILSTI til endfil.MXF

    ?? The bitrate etc.

    MP4 info:

    bitrate: 30,2 Mbps

    3840*2160 (16:9) 25 FPS
    Quote Quote  
  2. IMHO you can't encode with MPEG-2 anything like UHD.

    What is your goal? Target?
    Encoding 4k is straight forward in ffmpeg - codec limitation are more important as usually only newer codecs officially support anything higher than 1920x1080.
    Quote Quote  
  3. Originally Posted by pandy View Post
    IMHO you can't encode with MPEG-2 anything like UHD.

    What is your goal? Target?
    Encoding 4k is straight forward in ffmpeg - codec limitation are more important as usually only newer codecs officially support anything higher than 1920x1080.
    Im looking to import or link to the files in avid
    Quote Quote  
  4. Check prores or similar codec.

    Code:
    @REM Encoder prores_ks [Apple ProRes (iCodec Pro)]:
    @REM     General capabilities: threads
    @REM     Threading capabilities: slice
    @REM     Supported pixel formats: yuv422p10le yuv444p10le yuva444p10le
    @REM ProRes encoder AVOptions:
    @REM   -mbs_per_slice     <int>        E..V.... macroblocks per slice (from 1 to 8) (default 8)
    @REM   -profile           <int>        E..V.... (from -1 to 4) (default auto)
    @REM      auto                         E..V....
    @REM      proxy                        E..V....
    @REM      lt                           E..V....
    @REM      standard                     E..V....
    @REM      hq                           E..V....
    @REM      4444                         E..V....
    @REM   -vendor            <string>     E..V.... vendor ID (default "Lavc")
    @REM   -bits_per_mb       <int>        E..V.... desired bits per macroblock (from 0 to 8192) (default 0)
    @REM   -quant_mat         <int>        E..V.... quantiser matrix (from -1 to 4) (default auto)
    @REM      auto                         E..V....
    @REM      proxy                        E..V....
    @REM      lt                           E..V....
    @REM      standard                     E..V....
    @REM      hq                           E..V....
    @REM      default                      E..V....
    @REM   -alpha_bits        <int>        E..V.... bits for alpha plane (from 0 to 16) (default 16)
    
    
    @REM ffmpeg -y -i %1 -an -c:v prores_ks -pix_fmt yuva444p10le -profile:v 4444 -qscale:v 2 -vendor ap10 -f mov %~n1_prores4444.mov
    @ffmpeg -y -i %1 -an -c:v prores_ks -pix_fmt yuv444p10le -profile:v -1 -quant_mat -1 -alpha_bits 0 -qscale:v 2 -f mov %~n1_prores444.mov
    @pause
    Quote Quote  
  5. Originally Posted by pandy View Post
    Check prores or similar codec.

    Code:
    @REM Encoder prores_ks [Apple ProRes (iCodec Pro)]:
    @REM     General capabilities: threads
    @REM     Threading capabilities: slice
    @REM     Supported pixel formats: yuv422p10le yuv444p10le yuva444p10le
    @REM ProRes encoder AVOptions:
    @REM   -mbs_per_slice     <int>        E..V.... macroblocks per slice (from 1 to 8) (default 8)
    @REM   -profile           <int>        E..V.... (from -1 to 4) (default auto)
    @REM      auto                         E..V....
    @REM      proxy                        E..V....
    @REM      lt                           E..V....
    @REM      standard                     E..V....
    @REM      hq                           E..V....
    @REM      4444                         E..V....
    @REM   -vendor            <string>     E..V.... vendor ID (default "Lavc")
    @REM   -bits_per_mb       <int>        E..V.... desired bits per macroblock (from 0 to 8192) (default 0)
    @REM   -quant_mat         <int>        E..V.... quantiser matrix (from -1 to 4) (default auto)
    @REM      auto                         E..V....
    @REM      proxy                        E..V....
    @REM      lt                           E..V....
    @REM      standard                     E..V....
    @REM      hq                           E..V....
    @REM      default                      E..V....
    @REM   -alpha_bits        <int>        E..V.... bits for alpha plane (from 0 to 16) (default 16)
    
    
    @REM ffmpeg -y -i %1 -an -c:v prores_ks -pix_fmt yuva444p10le -profile:v 4444 -qscale:v 2 -vendor ap10 -f mov %~n1_prores4444.mov
    @ffmpeg -y -i %1 -an -c:v prores_ks -pix_fmt yuv444p10le -profile:v -1 -quant_mat -1 -alpha_bits 0 -qscale:v 2 -f mov %~n1_prores444.mov
    @pause

    It seems like ffmpeg -y -i %1 -an -c:v prores_ks -pix_fmt yuv444p10le -profile:v -1 -quant_mat -1 -alpha_bits 0 -qscale:v 2 -f mov %~n1_prores444.mov is working. Thank you.

    Is it possible to convert an entire folder, if I have 1.mp4, 2.mp4, 3.mp4 - and then convert them into .mov files with the same name as .mp4 files?
    Quote Quote  
  6. Originally Posted by Phillipj View Post
    Is it possible to convert an entire folder, if I have 1.mp4, 2.mp4, 3.mp4 - and then convert them into .mov files with the same name as .mp4 files?

    Code:
    @for %%1 in (*.mp4) do (ffmpeg.exe -y -i "%%1" -an -c:v prores_ks -pix_fmt yuv444p10le -profile:v -1 -quant_mat -1 -alpha_bits 0 -qscale:v 2 -f mov "%%~n1.mov")
    Quote Quote  
  7. Originally Posted by pandy View Post
    Originally Posted by Phillipj View Post
    Is it possible to convert an entire folder, if I have 1.mp4, 2.mp4, 3.mp4 - and then convert them into .mov files with the same name as .mp4 files?

    Code:
    @for %%1 in (*.mp4) do (ffmpeg.exe -y -i "%%1" -an -c:v prores_ks -pix_fmt yuv444p10le -profile:v -1 -quant_mat -1 -alpha_bits 0 -qscale:v 2 -f mov "%%~n1.mov")


    still ffmpeg.exe if it is on a mac?
    So just:

    cd volume/folder

    and

    Code:
    @for %%1 in (*.mp4) do (ffmpeg.exe -y -i "%%1" -an -c:v prores_ks -pix_fmt yuv444p10le -profile:v -1 -quant_mat -1 -alpha_bits 0 -qscale:v 2 -f mov "%%~n1.mov")
    [/QUOTE]

    ?
    Quote Quote  
  8. Originally Posted by Phillipj View Post
    still ffmpeg.exe if it is on a mac?
    http://en.wikipedia.org/wiki/Garbage_in,_garbage_out

    copy script with ffmpeg to folder and run it there (fastest way)
    Quote Quote  
  9. Member
    Join Date
    Jan 2007
    Location
    Italy
    Search Comp PM
    How do I use FFMPEG to convert a 4k MP4 file to a format playable on my Samsung S3 Neo smartphone mantaining original resolution?
    These are the supported codecs:
    -- Jumpjack --
    Quote Quote  
  10. mantaining original resolution?
    You don't. Your phones resolution is 720 x 1280 - not 4k.
    Quote Quote  
  11. Member
    Join Date
    Jan 2007
    Location
    Italy
    Search Comp PM
    It's not important: 4K videos I want to view are 360° 3D video, which use "Under/Over" format, i.e. screen split which reduces final resolution to half: of 2160 lines of the original video, first 1080 will be shown in left part of the screen and the others on the right part.
    Ok, actually I cannot anyway see all 1080 lines, but as far as I can understand, both 2K (720+720 lines in U/O format) and 4K videos (1080+1080) share same technology.
    -- Jumpjack --
    Quote Quote  
  12. Member
    Join Date
    Jan 2007
    Location
    Italy
    Search Comp PM
    Example video:
    http://www.youtube.com/watch?v=dKkcwziglu8

    With "4k video downloader" I can download both 4k and 2k versions (ok, I'll leave 4k for next phone ), in "AP9/MKV" or "H264/MP4" format.
    I see an "AP9" codec in my list... so I should be able to play it... but I'm not.
    Which are other codecs supporting 2k? Is there an official list?
    -- Jumpjack --
    Quote Quote  



Similar Threads