VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 15 of 15
Thread
  1. Member
    Join Date
    Feb 2017
    Location
    Australia
    Search PM
    Hello to everyone.
    I'm playing with WinFF and started testing some conversions of videos from Youtube.

    Host system is Windows 7 Ultimate 64bit.
    WinFF and ffmpeg are the latest versions.

    I guess a filter is missing, could anyone please help me understand what is the problem, or should I go the easy way and install an all in one video converter suite?
    Quote Quote  
  2. Member
    Join Date
    Feb 2017
    Location
    Australia
    Search PM
    No one?
    Quote Quote  
  3. nope, not without ffmpeg command line and console output
    Quote Quote  
  4. Member
    Join Date
    Feb 2017
    Location
    Australia
    Search PM
    Originally Posted by raffriff42 View Post
    nope, not without ffmpeg command line and console output
    Could you please give me an example code for shrinking or reducing the size for a Youtube video?
    I guess I had wrong instructions so with your code I could restart from scratch and then see what happens.
    Quote Quote  
  5. Without the ffmpeg console output, we don't know what filters your ffmpeg has, or what filter you tried to use. "Latest version" does not mean much because ffmpeg can be built with different sets of filters. IIRC, WinFF can run its own version of ffmpeg or whatever version you want.

    Select WinFF "Options", "Pause on finish." Run the conversion. Now copy the console output and paste it in your reply. When I try it, here's what I get
    C:\Program Files (x86)\WinFF>title Converting F117-DOSBox-intro ZMBV.avi (1/1)

    C:\Program Files (x86)\WinFF>"C:\Program Files (x86)\WinFF\ffmpeg.exe" -y -i "D:
    \VideoProjects\raw\F117-DOSBox-intro ZMBV.avi" -acodec libvo_aacenc -b:a 192k -c
    oder 1 -vcodec libx264 -crf 18.0 -preset veryfast -x264opts "subme=6:psy-rd=0.5:
    colorprim=bt709:transfer=bt709:colormatrix=bt709:v bv-maxrate=62500:vbv-bufsize=7
    8125" -pix_fmt yuv420p -t 0:01:00 -filter:v scale=640:400 "D:\VideoProjects\wo
    rk\F117-DOSBox-intro ZMBV.mp4"
    ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
    built on Dec 30 2014 17:13:24 with gcc 4.9.2 (GCC)

    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
    modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
    b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
    r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
    able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
    --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
    libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab
    le-zlib
    libavutil 54. 15.100 / 54. 15.100
    libavcodec 56. 13.100 / 56. 13.100
    libavformat 56. 15.102 / 56. 15.102
    libavdevice 56. 3.100 / 56. 3.100
    libavfilter 5. 2.103 / 5. 2.103
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 1.100 / 1. 1.100
    libpostproc 53. 3.100 / 53. 3.100

    (etc)

    C:\Program Files (x86)\WinFF>pause
    Press any key to continue . . .
    After you have copied the text, go ahead and hit any key to close the window.
    I have highlighted the text that is most important for our purposes right now in blue.

    I see I haven't updated WinFF in some time, shame on me. I can tell WinFF to use my main ffmpeg install through "Preferences", "Windows" - BUT - the commands might be different! (In fact, I tried it and got errors) It's best to use the ffmpeg install that WinFF came with.
    Quote Quote  
  6. Member
    Join Date
    Feb 2017
    Location
    Australia
    Search PM
    Originally Posted by raffriff42 View Post
    Without the ffmpeg console output, we don't know what filters your ffmpeg has, or what filter you tried to use. "Latest version" does not mean much because ffmpeg can be built with different sets of filters. IIRC, WinFF can run its own version of ffmpeg or whatever version you want.

    I see I haven't updated WinFF in some time, shame on me. I can tell WinFF to use my main ffmpeg install through "Preferences", "Windows" - BUT - the commands might be different! (In fact, I tried it and got errors) It's best to use the ffmpeg install that WinFF came with.
    Firstly thank you very much for help and for your patience.
    I already gave up using winff so I uninstalled it and decided to restart from scratch with a clean ffmpeg.

    Here I'm attaching a screenshot.
    Image Attached Thumbnails Click image for larger version

Name:	ffmpeg version.png
Views:	247
Size:	41.6 KB
ID:	42267  

    Quote Quote  
  7. You're welcome (but my patience has a limit)
    Okay, a screenshot, that's something. Now how about your command line?

    Please take the time to read my entire post. I know nobody does this; maybe they are busy multi-tasking. I know I am! But if you do read my entire post, and follow the link, you can learn how to paste the console output - which automatically includes the command line - as text, which is more useful than a screenshot.
    Quote Quote  
  8. Member
    Join Date
    Feb 2017
    Location
    Australia
    Search PM
    Originally Posted by raffriff42 View Post
    You're welcome (but my patience has a limit)
    Okay, a screenshot, that's something. Now how about your command line?
    I tried several codes found on Youtube and web search tutorials and after none worked, I decided to delete everything and start from scratch.

    Please take the time to read my entire post. I know nobody does this; maybe they are busy multi-tasking. I know I am! But if you do read my entire post, and follow the link, you can learn how to paste the console output - which automatically includes the command line - as text, which is more useful than a screenshot.
    I know how to use the options in the console just I thought a screenshot was enough to show the result:

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Administrator>ffmpeg
    ffmpeg version N-86723-g3b3501f Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 7.1.0 (GCC)
    configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d1
    1va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enabl
    e-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbl
    uray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgs
    m --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --en
    able-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable
    -librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable
    -libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
    --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs -
    -enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
    libavutil 55. 67.100 / 55. 67.100
    libavcodec 57.100.103 / 57.100.103
    libavformat 57. 75.100 / 57. 75.100
    libavdevice 57. 7.100 / 57. 7.100
    libavfilter 6. 94.100 / 6. 94.100
    libswscale 4. 7.101 / 4. 7.101
    libswresample 2. 8.100 / 2. 8.100
    libpostproc 54. 6.100 / 54. 6.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

    Use -h to get full help or, even better, run 'man ffmpeg'

    C:\Users\Administrator>
    Quote Quote  
  9. To troubleshoot your problem, we need the actual command you are trying to use, not simply the result of typing "ffmpeg."

    Anyway, as I highlighted in my post #5, the command for resizing is -filter:v scale=<width>:<height>
    Quote Quote  
  10. Member
    Join Date
    Feb 2017
    Location
    Australia
    Search PM
    Originally Posted by raffriff42 View Post
    To troubleshoot your problem, we need the actual command you are trying to use, not simply the result of typing "ffmpeg."
    I think that I asked at least 2 times for a code to start with so to troubleshoot my problem, maybe I was not clear enough, I need a sample "full" code to resize a file.

    Anyway, as I highlighted in my post #5, the command for resizing is filter:v scale=640:400
    This doesn't help at all because I need a "full" command line to start with.
    The problem high skilled people have is that they are able to do a task but they are not able to explain how to do it, the same attitude I saw in Linux related forums where people feel too busy and "important" to explain the things.
    You already said that you're busy so just leave it.
    Quote Quote  
  11. A minimal command line would be something like
    Code:
    ffmpeg.exe -i "source.mp4" -c:a copy -c:v libx264 -crf 22.0 -filter:v scale=640:400 "output.mp4"
    Quote Quote  
  12. Without knowing your other parameters -- why not just use the WinFF video tab which allows you to change dimensions and bitrate?

    Image
    [Attachment 42268 - Click to enlarge]


    By clicking "Display Cmd Line" under options it will show you your complete command line before converting, which you can copy and paste.
    Last edited by smrpix; 11th Jul 2017 at 08:26.
    Quote Quote  
  13. Member
    Join Date
    Feb 2017
    Location
    Australia
    Search PM
    Originally Posted by raffriff42 View Post
    A minimal command line would be something like
    Code:
    ffmpeg.exe -i "source.mp4" -c:a copy -c:v libx264 -crf 22.0 -filter:v scale=640:400 "output.mp4"
    Thanks for help.
    I tried the code but there was an error:

    D:\Western2 data\Backup\Video\Movie\Test>ffmpeg.exe -i Cecilia.mp4 -c:a copy -c:v libx264 -crf 22.0 -filter:v scale=320:280 Cecilia.mp4
    ffmpeg version N-86723-g3b3501f Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 7.1.0 (GCC)
    configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
    enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
    bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
    e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
    e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
    -libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
    libavutil 55. 67.100 / 55. 67.100
    libavcodec 57.100.103 / 57.100.103
    libavformat 57. 75.100 / 57. 75.100
    libavdevice 57. 7.100 / 57. 7.100
    libavfilter 6. 94.100 / 6. 94.100
    libswscale 4. 7.101 / 4. 7.101
    libswresample 2. 8.100 / 2. 8.100
    libpostproc 54. 6.100 / 54. 6.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Cecilia.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 0
    compatible_brands: isomavc1mp42
    creation_time : 2008-03-23T04:15:24.000000Z
    Duration: 00:02:49.44, start: 0.000000, bitrate: 563 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
    creation_time : 2008-03-23T04:15:24.000000Z
    handler_name : (C) 2007 Google Inc. v06.24.2007.
    Stream #0:1(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 480x320 [SAR 1:1 DAR 3:2], 436 kb/s, 29.92 fps, 29.92 tbr, 29917 tbn, 59834 tbc (defa
    ult)
    Metadata:
    creation_time : 2008-03-23T04:15:24.000000Z
    handler_name : (C) 2007 Google Inc. v06.24.2007.
    File 'Cecilia.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
    Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
    Stream #0:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [libx264 @ 000000000033d480] using SAR=21/16
    [libx264 @ 000000000033d480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000000000033d480] profile High, level 1.3
    [libx264 @ 000000000033d480] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 r
    ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pski
    p=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_
    adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=22.0 qcomp=0.6
    0 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'Cecilia.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 0
    compatible_brands: isomavc1mp42
    encoder : Lavf57.75.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 320x280 [SAR 21:16 DAR 3:2], q=-1--1, 29.92 fps, 29917 tbn, 29.92 tbc (default)
    Metadata:
    creation_time : 2008-03-23T04:15:24.000000Z
    handler_name : (C) 2007 Google Inc. v06.24.2007.
    encoder : Lavc57.100.103 libx264
    Side data:
    cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
    creation_time : 2008-03-23T04:15:24.000000Z
    handler_name : (C) 2007 Google Inc. v06.24.2007.
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000056a680] stream 0, offset 0x180ed: partial file
    Cecilia.mp4: Invalid data found when processing input
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000056a680] stream 0, offset 0x18257: partial file
    Cecilia.mp4: Invalid data found when processing input
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000056a680] stream 0, offset 0x183df: partial file
    Cecilia.mp4: Invalid data found when processing input
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000056a680] stream 1, offset 0x18576: partial file
    Cecilia.mp4: Invalid data found when processing input
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000056a680] stream 1, offset 0x1864c: partial file
    Cecilia.mp4: Invalid data found when processing input

    frame= 43 fps=0.0 q=-1.0 Lsize= 46kB time=00:00:01.88 bitrate= 201.4kbits/s speed=30.1x
    video:16kB audio:28kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 6.502620%
    [libx264 @ 000000000033d480] frame I:1 Avg QP:15.68 size: 5753
    [libx264 @ 000000000033d480] frame P:19 Avg QP:21.08 size: 418
    [libx264 @ 000000000033d480] frame B:23 Avg QP:24.53 size: 67
    [libx264 @ 000000000033d480] consecutive B-frames: 20.9% 18.6% 14.0% 46.5%
    [libx264 @ 000000000033d480] mb I I16..4: 15.8% 53.9% 30.3%
    [libx264 @ 000000000033d480] mb P I16..4: 0.1% 0.1% 0.0% P16..4: 10.9% 4.1% 2.5% 0.0% 0.0% skip:82.4%
    [libx264 @ 000000000033d480] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 10.5% 0.4% 0.0% direct: 0.2% skip:88.9% L0:32.8% L1:64.2% BI: 2.9%
    [libx264 @ 000000000033d480] 8x8 transform intra:53.9% inter:43.6%
    [libx264 @ 000000000033d480] coded y,uvDC,uvAC intra: 52.3% 70.7% 54.2% inter: 2.3% 1.7% 0.1%
    [libx264 @ 000000000033d480] i16 v,h,dc,p: 66% 23% 7% 5%
    [libx264 @ 000000000033d480] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 19% 14% 3% 4% 4% 3% 4% 3%
    [libx264 @ 000000000033d480] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 19% 10% 5% 4% 6% 4% 6% 5%
    [libx264 @ 000000000033d480] i8c dc,h,v,p: 54% 12% 28% 5%
    [libx264 @ 000000000033d480] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000000000033d480] ref P L0: 83.3% 5.0% 7.7% 4.0%
    [libx264 @ 000000000033d480] ref B L0: 80.9% 16.5% 2.6%
    [libx264 @ 000000000033d480] ref B L1: 98.1% 1.9%
    [libx264 @ 000000000033d480] kb/s:84.86

    D:\Western2 data\Backup\Video\Movie\Test>

    Originally Posted by smrpix View Post
    Without knowing your other parameters -- why not just use the WinFF video tab which allows you to change dimensions and bitrate?
    By clicking "Display Cmd Line" under options it will show you your complete command line before converting, which you can copy and paste.
    I already uninstalled WinFF because I received non support, but I tried Mobile Media Converter which was able to reduce the above video from 480x320 to 320x280 by using the iPhone profile.
    Quote Quote  
  14. You tried to write over the same file. That does not work. You always need to set a different output file name (like I showed in my example) or a different location. Now the original file is probably destroyed.

    Originally Posted by tried View Post
    ffmpeg.exe -i Cecilia.mp4 -c:a copy -c:v libx264 -crf 22.0 -filter:v scale=320:280 Cecilia.mp4
    [...]
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Cecilia.mp4':
    [...]
    File 'Cecilia.mp4' already exists. Overwrite ? [y/N] y
    [...]
    Output #0, mp4, to 'Cecilia.mp4':
    [...]
    [mov,mp4,m4a,3gp,3g2,mj2 @ 000000000056a680] stream 0, offset 0x180ed: partial file
    Cecilia.mp4: Invalid data found when processing input
    Quote Quote  
  15. Member
    Join Date
    Feb 2017
    Location
    Australia
    Search PM
    Originally Posted by raffriff42 View Post
    You tried to write over the same file. That does not work. You always need to set a different output file name (like I showed in my example) or a different location. Now the original file is probably destroyed.
    Finally it worked!

    1) The original file was not destroyed because I always work on a copy.
    2) Something weird happens when I copy your sample code from the web site into notepad (with format active), edit it to add the file name and resolution, then I paste the code in the command prompt and the code is executed without waiting for my input, the enter key, so it gives "Unrecognized option "crf'. Error splitting the argument list: Option not found".
    3) Then I try again by opening notepad in full window so the long code is not formatted, copy it in the command prompt and this time it waits for my input.

    Weird things of computer.

    Could you please advise me a web site where I can find good sample codes?

    Thanks very much for your time!
    Quote Quote  



Similar Threads