Find the answer to your Linux question:
Results 1 to 8 of 8
Hello. I need to convert a folder with mp4 videoes to mp3 audio. I am using puppy linux and ffmpeg and ff convert. First I use puppy linux the one ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2013
    Posts
    7

    How to convert mp4 video to mp3 audio?


    Hello.

    I need to convert a folder with mp4 videoes to mp3 audio. I am using puppy linux and ffmpeg and ff convert.

    First I use puppy linux the one that is ubuntu compatible.

    What I have done:

    Made sure I have FF convert installed and FFmpeg.
    I have tried the graphic UI but that just gives me errors.

    So I found a command tool in puppy and started to browse for the correct commands.
    1:

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -vn -b:a libmp3lame -ar 44100 -ac 2 -ab 192k "${f%mp4/mp3}"; done
    2:

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -acodec libmp3lame  -ab 192 "${f%mp4/mp3}"; done
    3:

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -ab 320k "${f%.wav}.mp3"; done

    I have tried all these but I do get errors.

    Unfortunatley I do not know how to copy from the rxvt emulator.

    But I make sure I use cd command to go into the correct folder that contains all the mp4 videos. Then I run commands.

    But all I get is error.

    Maybe the filenames are wrong? the names are written like this:
    Code:
    artistname - songname - albumname.mp4
    I am asked in one off the commands if I would like to replace the files. What happens is that the files are ruined. For iinstance, one file is 150mb - suddenly after playing with them commands the same file are 15k. I have also played around with the operators and tried to change them, shorten the commands and changing the bits to lower. No luck.

    I don't have a windows pc anymore and must be able to convert using puppy linux.

    Plz hlp.

    If I figure out how to get a scrape off the terminal emulator I will also post errors.

    One problem is I don't understand what the differnet operators actually do. So it is impossible for me to know if I have written something wrong
    Last edited by strugg; 10-10-2013 at 12:01 PM. Reason: Problem resolved

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Desert
    Posts
    4,138
    Puppy Linux Discussion Forum :: View topic - FFConvert - multimedia converter

    Code:
    I have tried all these but I do get errors.
    
    Unfortunatley I do not know how to copy from the rxvt emulator.
    Left click and highlight the text. If using a wheel mouse. Click the wheel in the middle of mouse. If using 2 button laptop pad or 2 button mouse. Hit both buttons at the
    same time to paste.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way. I Have a Masters in Raising Hell
    Tech Books
    Free Linux Books
    Newbie Guide
    Courses at Home

  3. #3
    Just Joined!
    Join Date
    Oct 2013
    Posts
    7
    Thx. To copy text from rxvt see here...........sry can not post link to another forum not before I posted 15 times.


    Code:
    linuxquestions.org/questions/linux-software-2/urxvt-how-to-copy-text-from-it-885145/
    Btw I use Puppy Precise 5.4.3, FF Convert 1.3 and FF mpeg 0.8.3 - from package manager I can see there are newer/other versions available. FF convert 1.3.1 and FF mpeg 0.8.12. I am reluctant to do a new install cause that might break the now otherwise working puppy precise. At the moment all data access I have is via usb drive on a workstation that I can not access otherwise. SO I must try to figure out what causes the convertion errors without having to do new install - fearing that a new install might break dependencies or otherwise break puppy linux.

    Ok here is code #1 and the output from terminal.

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -vn -b:a libmp3lame -ar 44100 -ac 2 -ab 192k "${f%mp4/mp3}"; done
    If someone are sharp terminal user and can explain this line parameter by parameter that would be wonderfull.
    I understand I tell it to use libmp3lame decoder, I tell it to keep audio 2 channels and bitrate is set to 192K. But rest is greek to me. For a learning perspective it would be most helpfull to be explained it step by step. Hold my hand mom I am scared - linux is all new to me.

    # ls
    Igor mp3z output tubz videos
    # cd mp3z
    # ls
    21 Guns - Igor Presnyakov.mp4
    AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4
    Ain't no Sunshine - Igor Presnyakov.mp4
    # for f in *.mp4; do ffmpeg -i "$f" -vn -b:a libmp3lame -ar 44100 -ac 2 -ab 192k "${f%mp4/mp3}"; done
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
    built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '21 Guns - Igor Presnyakov.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 0
    compatible_brands: isommp42
    creation_time : 2012-01-27 13:18:23
    Duration: 00:05:03.26, start: 0.000000, bitrate: 469 kb/s
    Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 480x360, 370 kb/s, 23.98 fps, 23.98 tbr, 48k tbn, 47.95 tbc
    Metadata:
    creation_time : 1970-01-01 00:00:00
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 95 kb/s
    Metadata:
    creation_time : 2012-01-27 13:18:23
    File '21 Guns - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] n
    Not overwriting - exiting
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
    built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 0
    compatible_brands: isomavc1mp42
    creation_time : 2010-12-05 18:25:28
    Duration: 00:03:17.88, start: 0.000000, bitrate: 647 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 105 kb/s
    Metadata:
    creation_time : 2010-12-05 18:25:28
    Stream #0.1(und): Video: h264 (Constrained Baseline), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 539 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
    Metadata:
    creation_time : 2010-12-05 18:25:28
    File 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] n
    Not overwriting - exiting
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
    built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.

    Seems stream 1 codec frame rate differs from container frame rate: 49990.00 (49990/1) -> 25.00 (4999/200)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ain't no Sunshine - Igor Presnyakov.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 0
    compatible_brands: isomavc1mp42
    creation_time : 2009-06-10 10:47:46
    Duration: 00:03:32.88, start: 0.000000, bitrate: 611 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 108 kb/s
    Metadata:
    creation_time : 2009-06-10 10:47:46
    Stream #0.1(und): Video: h264 (Baseline), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 500 kb/s, 25 fps, 25 tbr, 24995 tbn, 49990 tbc
    Metadata:
    creation_time : 2009-06-10 10:47:46
    File 'Ain't no Sunshine - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] n
    Not overwriting - exiting
    # ^C
    # # cd /
    # # cd mnt
    # # cd sdc1
    # # ls
    # bckz help.msg ldlinux.sys puppy_slacko_5.3.sfs ubnfilel.txt
    bash: bckz: command not found
    # boot.cat initrd.gz logo.16 README.HTM ubnpathl.txt
    bash: boot.cat: command not found
    # boot.msg isolinux.bin mediaz slackosave-septober.3fs vmlinuz
    bash: boot.msg: command not found
    # help2.msg isolinux.cfg menu.c32 syslinux.cfg
    bash: help2.msg: command not found
    # # cd mediaz
    # # ls
    # Igor mp3z output tubz videos
    bash: Igor: command not found
    # # cd mp3z
    # # ls
    # 21 Guns - Igor Presnyakov.mp4
    bash: 21: command not found
    # AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4
    bash: AC_DC: command not found
    # Ain't no Sunshine - Igor Presnyakov.mp4
    > # for f in *.mp4; do ffmpeg -i "$f" -vn -b:a libmp3lame -ar 44100 -ac 2 -ab 192k "${f%mp4/mp3}"; done
    > ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
    > built on Jun 12 2012 16:37:58 with gcc 4.6.3
    > *** THIS PROGRAM IS DEPRECATED ***
    > This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '21 Guns - Igor Presnyakov.mp4':
    > Metadata:
    > major_brand : mp42
    > minor_version : 0
    > compatible_brands: isommp42
    > creation_time : 2012-01-27 13:18:23
    > Duration: 00:05:03.26, start: 0.000000, bitrate: 469 kb/s
    > Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 480x360, 370 kb/s, 23.98 fps, 23.98 tbr, 48k tbn, 47.95 tbc
    > Metadata:
    > creation_time : 1970-01-01 00:00:00
    > Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 95 kb/s
    > Metadata:
    > creation_time : 2012-01-27 13:18:23
    > File '21 Guns - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] n
    > Not overwriting - exiting
    > ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
    > built on Jun 12 2012 16:37:58 with gcc 4.6.3
    > *** THIS PROGRAM IS DEPRECATED ***
    > This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4':
    > Metadata:
    > major_brand : mp42
    > minor_version : 0
    > compatible_brands: isomavc1mp42
    > creation_time : 2010-12-05 18:25:28
    > Duration: 00:03:17.88, start: 0.000000, bitrate: 647 kb/s
    > Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 105 kb/s
    > Metadata:
    > creation_time : 2010-12-05 18:25:28
    > Stream #0.1(und): Video: h264 (Constrained Baseline), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 539 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
    > Metadata:
    > creation_time : 2010-12-05 18:25:28
    > File 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] n
    > Not overwriting - exiting
    > ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
    > built on Jun 12 2012 16:37:58 with gcc 4.6.3
    > *** THIS PROGRAM IS DEPRECATED ***
    > This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    >
    > Seems stream 1 codec frame rate differs from container frame rate: 49990.00 (49990/1) -> 25.00 (4999/200)
    > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ain't no Sunshine - Igor Presnyakov.mp4':
    bash: Aint no Sunshine - Igor Presnyakov.mp4
    # for f in *.mp4; do ffmpeg -i "$f" -vn -b:a libmp3lame -ar 44100 -ac 2 -ab 192k "${f%mp4/mp3}"; done
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
    built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 21: No such file or directory
    # Metadata:
    bash: Metadata:: command not found
    # major_brand : mp42
    bash: major_brand: command not found
    # minor_version : 0
    bash: minor_version: command not found
    # compatible_brands: isomavc1mp42
    bash: compatible_brands:: command not found
    # creation_time : 2009-06-10 10:47:46
    bash: creation_time: command not found
    # Duration: 00:03:32.88, start: 0.000000, bitrate: 611 kb/s
    bash: Duration:: command not found
    # Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 108 kb/s
    bash: Stream: command not found
    # Metadata:
    bash: Metadata:: command not found
    # creation_time : 2009-06-10 10:47:46
    bash: creation_time: command not found
    # Stream #0.1(und): Video: h264 (Baseline), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 500 kb/s, 25 fps, 25 tbr, 24995 tbn, 49990 tbc
    bash: Stream: command not found
    # Metadata:
    bash: Metadata:: command not found
    # creation_time : 2009-06-10 10:47:46
    bash: creation_time: command not found
    # File 'Ain't no Sunshine - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] n
    > Not overwriting - exiting

    [/QUOTE]

    As you see this time I chose not to overwrite files, and this time those mp4's are not destroyed. If I choose yes no mp3 created and those mp4's are also destroyed.
    Last edited by strugg; 10-10-2013 at 11:08 AM.

  4. #4
    Just Joined!
    Join Date
    Oct 2013
    Posts
    7
    Ok here are code #2:

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -acodec libmp3lame  -ab 192 "${f%mp4/mp3}"; done
    And here are output:

    Code:
    # cd mp3z
    # ls
    21 Guns - Igor Presnyakov.mp4
    AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4
    Ain't no Sunshine - Igor Presnyakov.mp4
    # for f in *.mp4; do ffmpeg -i "$f" -acodec libmp3lame  -ab 192 "${f%mp4/mp3}"; done
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '21 Guns - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        creation_time   : 2012-01-27 13:18:23
      Duration: 00:05:03.26, start: 0.000000, bitrate: 469 kb/s
        Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 480x360, 370 kb/s, 23.98 fps, 23.98 tbr, 48k tbn, 47.95 tbc
        Metadata:
          creation_time   : 1970-01-01 00:00:00
        Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 95 kb/s
        Metadata:
          creation_time   : 2012-01-27 13:18:23
    File '21 Guns - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] y
    [buffer A_T_!! 0x807d120] w:480 h:360 pixfmt:yuv420p
    [libx264 A_T_!! 0x808d2e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowCTZ SlowAtom
    [libx264 A_T_!! 0x808d2e0] profile Main, level 2.1
    [libx264 A_T_!! 0x808d2e0] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - _ _ _ _ _ _ _videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00
    The bitrate parameter is set too low.It takes bits/s as argument, not kbits/s
    Output #0, mp4, to '21 Guns - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        creation_time   : 2012-01-27 13:18:23
        encoder         : Lavf53.21.0
        Stream #0.0(und): Video: libx264, yuv420p, 480x360, q=-1--1, 24k tbn, 23.98 tbc
        Metadata:
          creation_time   : 1970-01-01 00:00:00
        Stream #0.1(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 0 kb/s
        Metadata:
          creation_time   : 2012-01-27 13:18:23
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press ctrl-c to stop encoding
    [h264 A_T_!! 0x807a3a0] AVC: nal size 1563
    [h264 A_T_!! 0x807a3a0] no frame!
    Error while decoding stream #0.0
    [mov,mp4,m4a,3gp,3g2,mj2 A_T_!! 0x8078240] stream 0, offset 0x2040e: partial file
    frame=   16 fps= 11 q=28.0 Lsize=      38kB time=0.55 bitrate= 573.2kbits/s    
    video:28kB audio:9kB global headers:0kB muxing overhead 4.299135%
    frame I:1     Avg QP:20.10  size: 11686
    [libx264 A_T_!! 0x808d2e0] frame P:4     Avg QP:22.92  size:  2614
    [libx264 A_T_!! 0x808d2e0] frame B:11    Avg QP:24.74  size:   551
    [libx264 A_T_!! 0x808d2e0] consecutive B-frames:  6.2%  0.0% 18.8% 75.0%
    [libx264 A_T_!! 0x808d2e0] mb I  I16..4: 36.4%  0.0% 63.6%
    [libx264 A_T_!! 0x808d2e0] mb P  I16..4:  5.1%  0.0%  0.9%  P16..4: 43.1% 16.7%  5.6%  0.0%  0.0%    skip:28.6%
    [libx264 A_T_!! 0x808d2e0] mb B  I16..4:  0.3%  0.0%  0.0%  B16..8: 37.4%  4.6%  0.7%  direct: 1.6%  skip:55.4%  L0:51.6% L1:42.1% BI: 6.3%
    [libx264 A_T_!! 0x808d2e0] coded y,uvDC,uvAC intra: 53.0% 69.0% 38.4% inter: 4.6% 10.6% 0.3%
    [libx264 A_T_!! 0x808d2e0] i16 v,h,dc,p: 49% 23% 19%  9%
    [libx264 A_T_!! 0x808d2e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 16% 15%  6%  6%  5%  4%  7%  5%
    [libx264 A_T_!! 0x808d2e0] i8c dc,h,v,p: 44% 20% 30%  7%
    [libx264 A_T_!! 0x808d2e0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 A_T_!! 0x808d2e0] ref P L0: 88.0%  3.3%  6.6%  2.0%
    [libx264 A_T_!! 0x808d2e0] ref B L0: 97.6%  2.4%
    [libx264 A_T_!! 0x808d2e0] kb/s:338.07
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isomavc1mp42
        creation_time   : 2010-12-05 18:25:28
      Duration: 00:03:17.88, start: 0.000000, bitrate: 647 kb/s
        Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 105 kb/s
        Metadata:
          creation_time   : 2010-12-05 18:25:28
        Stream #0.1(und): Video: h264 (Constrained Baseline), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 539 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
        Metadata:
          creation_time   : 2010-12-05 18:25:28
    File 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] y
    [buffer A_T_!! 0x80791a0] w:480 h:320 pixfmt:yuv420p
    [libx264 A_T_!! 0x80aa780] using SAR=1/1
    [libx264 A_T_!! 0x80aa780] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowCTZ SlowAtom
    [libx264 A_T_!! 0x80aa780] profile Main, level 2.1
    [libx264 A_T_!! 0x80aa780] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - _ _ _ _ _ _ _videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00
    The bitrate parameter is set too low.It takes bits/s as argument, not kbits/s
    Output #0, mp4, to 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isomavc1mp42
        creation_time   : 2010-12-05 18:25:28
        encoder         : Lavf53.21.0
        Stream #0.0(und): Video: libx264, yuv420p, 480x320 [PAR 1:1 DAR 3:2], q=-1--1, 25 tbn, 25 tbc
        Metadata:
          creation_time   : 2010-12-05 18:25:28
        Stream #0.1(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 0 kb/s
        Metadata:
          creation_time   : 2010-12-05 18:25:28
    Stream mapping:
      Stream #0.1 -> #0.0
      Stream #0.0 -> #0.1
    Press ctrl-c to stop encoding
    [h264 A_T_!! 0x807c680] AVC: nal size 9837
    [h264 A_T_!! 0x807c680] no frame!
    Error while decoding stream #0.1
    frame=   11 fps=  0 q=28.0 Lsize=      44kB time=0.40 bitrate= 899.3kbits/s    
    video:34kB audio:9kB global headers:0kB muxing overhead 3.603604%
    frame I:1     Avg QP:23.23  size: 26103
    [libx264 A_T_!! 0x80aa780] frame P:4     Avg QP:25.92  size:  1465
    [libx264 A_T_!! 0x80aa780] frame B:6     Avg QP:29.35  size:   326
    [libx264 A_T_!! 0x80aa780] consecutive B-frames: 18.2% 18.2% 27.3% 36.4%
    [libx264 A_T_!! 0x80aa780] mb I  I16..4:  5.2%  0.0% 94.8%
    [libx264 A_T_!! 0x80aa780] mb P  I16..4:  0.6%  0.0%  1.4%  P16..4: 22.9%  7.1%  3.0%  0.0%  0.0%    skip:65.0%
    [libx264 A_T_!! 0x80aa780] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 29.7%  2.4%  0.5%  direct: 0.5%  skip:66.9%  L0:56.8% L1:37.5% BI: 5.8%
    [libx264 A_T_!! 0x80aa780] coded y,uvDC,uvAC intra: 87.4% 75.0% 31.5% inter: 4.3% 3.4% 0.0%
    [libx264 A_T_!! 0x80aa780] i16 v,h,dc,p: 24% 24% 33% 20%
    [libx264 A_T_!! 0x80aa780] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 20% 10%  8%  9%  7%  9%  7% 11%
    [libx264 A_T_!! 0x80aa780] i8c dc,h,v,p: 45% 25% 25%  5%
    [libx264 A_T_!! 0x80aa780] Weighted P-Frames: Y:25.0% UV:0.0%
    [libx264 A_T_!! 0x80aa780] ref P L0: 81.8%  3.2% 13.2%  1.3%  0.5%
    [libx264 A_T_!! 0x80aa780] ref B L0: 94.5%  5.5%
    [libx264 A_T_!! 0x80aa780] kb/s:616.69
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    
    Seems stream 1 codec frame rate differs from container frame rate: 49990.00 (49990/1) -> 25.00 (4999/200)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ain't no Sunshine - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isomavc1mp42
        creation_time   : 2009-06-10 10:47:46
      Duration: 00:03:32.88, start: 0.000000, bitrate: 611 kb/s
        Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 108 kb/s
        Metadata:
          creation_time   : 2009-06-10 10:47:46
        Stream #0.1(und): Video: h264 (Baseline), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 500 kb/s, 25 fps, 25 tbr, 24995 tbn, 49990 tbc
        Metadata:
          creation_time   : 2009-06-10 10:47:46
    File 'Ain't no Sunshine - Igor Presnyakov.mp4' already exists. Overwrite ? [y/N] y
    [buffer A_T_!! 0x807d1c0] w:480 h:320 pixfmt:yuv420p
    [libx264 A_T_!! 0x80ad0e0] using SAR=1/1
    [libx264 A_T_!! 0x80ad0e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowCTZ SlowAtom
    [libx264 A_T_!! 0x80ad0e0] profile Main, level 2.1
    [libx264 A_T_!! 0x80ad0e0] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - _ _ _ _ _ _ _videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 weightp=2 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00
    The bitrate parameter is set too low.It takes bits/s as argument, not kbits/s
    Output #0, mp4, to 'Ain't no Sunshine - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isomavc1mp42
        creation_time   : 2009-06-10 10:47:46
        encoder         : Lavf53.21.0
        Stream #0.0(und): Video: libx264, yuv420p, 480x320 [PAR 1:1 DAR 3:2], q=-1--1, 4999 tbn, 25 tbc
        Metadata:
          creation_time   : 2009-06-10 10:47:46
        Stream #0.1(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 0 kb/s
        Metadata:
          creation_time   : 2009-06-10 10:47:46
    Stream mapping:
      Stream #0.1 -> #0.0
      Stream #0.0 -> #0.1
    Press ctrl-c to stop encoding
    [aac A_T_!! 0x807a400] Input buffer exhausted before END element found
    Error while decoding stream #0.0
    [mov,mp4,m4a,3gp,3g2,mj2 A_T_!! 0x8078240] stream 0, offset 0x180d1: partial file
    frame=   13 fps=  0 q=28.0 Lsize=      29kB time=0.48 bitrate= 498.9kbits/s    
    video:17kB audio:10kB global headers:0kB muxing overhead 5.690684%
    frame I:1     Avg QP:19.63  size:  9958
    [libx264 A_T_!! 0x80ad0e0] frame P:3     Avg QP:24.52  size:  1326
    [libx264 A_T_!! 0x80ad0e0] frame B:9     Avg QP:28.05  size:   360
    [libx264 A_T_!! 0x80ad0e0] consecutive B-frames:  7.7%  0.0%  0.0% 92.3%
    [libx264 A_T_!! 0x80ad0e0] mb I  I16..4: 21.2%  0.0% 78.8%
    [libx264 A_T_!! 0x80ad0e0] mb P  I16..4:  0.3%  0.0%  0.5%  P16..4: 33.2% 11.1%  4.7%  0.0%  0.0%    skip:50.1%
    [libx264 A_T_!! 0x80ad0e0] mb B  I16..4:  0.1%  0.0%  0.0%  B16..8: 33.4%  3.1%  0.3%  direct: 0.4%  skip:62.6%  L0:51.7% L1:42.8% BI: 5.5%
    [libx264 A_T_!! 0x80ad0e0] coded y,uvDC,uvAC intra: 66.0% 73.2% 40.1% inter: 2.9% 3.8% 0.1%
    [libx264 A_T_!! 0x80ad0e0] i16 v,h,dc,p: 41% 25% 11% 23%
    [libx264 A_T_!! 0x80ad0e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 18% 12%  5%  6%  6%  5%  5%  3%
    [libx264 A_T_!! 0x80ad0e0] i8c dc,h,v,p: 39% 24% 27% 10%
    [libx264 A_T_!! 0x80ad0e0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 A_T_!! 0x80ad0e0] ref P L0: 90.9%  0.9%  7.7%  0.5%
    [libx264 A_T_!! 0x80ad0e0] ref B L0: 95.3%  4.7%
    [libx26

  5. #5
    Just Joined!
    Join Date
    Oct 2013
    Posts
    7
    Ok this time I tried # 3. I found and error in the command string, originally there was a place I forgot to replace .waw with .mp4, so that might explain some errors yesterday. Well today I fixed that and tried again. This time there where actually mp3's created........they just didn't contain any data or rather audio

    Command #3 syntax corrected:

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -ab 320k "${f%.mp4}.mp3"; done
    I would be happy to recive som help trying to understand what those different parameters does.



    Output terminal emulator

    Code:
    # cd mediaz
    # cd mp3z
    # for f in *.mp4; do ffmpeg -i "$f" -ab 320k "${f%.mp4}.mp3"; done
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '21 Guns - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 2012-01-27 13:18:23
        encoder         : Lavf53.21.0
      Duration: 00:00:00.66, start: 0.000000, bitrate: 471 kb/s
        Stream #0.0(und): Video: h264 (Main), yuv420p, 480x360, 346 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
        Metadata:
          creation_time   : 2012-01-27 13:18:23
        Stream #0.1(und): Audio: mp3, 44100 Hz, 2 channels, s16, 127 kb/s
        Metadata:
          creation_time   : 2012-01-27 13:18:23
    Output #0, mp3, to '21 Guns - Igor Presnyakov.mp3':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        TDEN            : 2012-01-27 13:18:23
        TSSE            : Lavf53.21.0
        Stream #0.0(und): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 320 kb/s
        Metadata:
          creation_time   : 2012-01-27 13:18:23
    Stream mapping:
      Stream #0.1 -> #0.0
    Press ctrl-c to stop encoding
    size=      23kB time=0.57 bitrate= 323.8kbits/s    
    video:0kB audio:22kB global headers:0kB muxing overhead 1.178927%
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 2010-12-05 18:25:28
        encoder         : Lavf53.21.0
      Duration: 00:00:00.54, start: 0.000000, bitrate: 655 kb/s
        Stream #0.0(und): Video: h264 (Main), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 628 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
        Metadata:
          creation_time   : 2010-12-05 18:25:28
        Stream #0.1(und): Audio: mp3, 44100 Hz, 2 channels, s16, 127 kb/s
        Metadata:
          creation_time   : 2010-12-05 18:25:28
    Output #0, mp3, to 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp3':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        TDEN            : 2010-12-05 18:25:28
        TSSE            : Lavf53.21.0
        Stream #0.0(und): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 320 kb/s
        Metadata:
          creation_time   : 2010-12-05 18:25:28
    Stream mapping:
      Stream #0.1 -> #0.0
    Press ctrl-c to stop encoding
    size=      23kB time=0.57 bitrate= 323.8kbits/s    
    video:0kB audio:22kB global headers:0kB muxing overhead 1.178927%
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    
    Seems stream 0 codec frame rate differs from container frame rate: 49.99 (4999/100) -> 25.00 (4999/200)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Ain't no Sunshine - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 2009-06-10 10:47:46
        encoder         : Lavf53.21.0
      Duration: 00:00:00.65, start: 0.000000, bitrate: 366 kb/s
        Stream #0.0(und): Video: h264 (Main), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 274 kb/s, 25 fps, 25 tbr, 4999 tbn, 49.99 tbc
        Metadata:
          creation_time   : 2009-06-10 10:47:46
        Stream #0.1(und): Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
        Metadata:
          creation_time   : 2009-06-10 10:47:46
    Output #0, mp3, to 'Ain't no Sunshine - Igor Presnyakov.mp3':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        TDEN            : 2009-06-10 10:47:46
        TSSE            : Lavf53.21.0
        Stream #0.0(und): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 320 kb/s
        Metadata:
          creation_time   : 2009-06-10 10:47:46
    Stream mapping:
      Stream #0.1 -> #0.0
    Press ctrl-c to stop encoding
    size=      27kB time=0.68 bitrate= 323.2kbits/s    
    video:0kB audio:27kB global headers:0kB muxing overhead 0.997534
    So this time we where close but still not there. We still have no data in those created audio files.
    I will repeat this one more time that way we are sure no other instance of FF Convert have allready disturbed the source files.
    So now I will copy new mp4 files to the folder. Lets see what happens.

    Maybe you gurus allready see what is causing this? Pls shout out if you know what is my problem here.
    Last edited by strugg; 10-10-2013 at 12:15 PM.

  6. #6
    Just Joined!
    Join Date
    Oct 2013
    Posts
    7
    Ok finally got it to work.
    Code #3 worked just brilliant. I see now that part of the errors was caused by myself not paying attention when typing in terminal commands. I did not replace waw with mp4 in all of the string, as you will see in post#1.

    But what causes one of the commands, #2 to delete the data in the sourcefiles without deleting the files, and still not create any mp3's? If I can work up some terminal self esteem I for sure will be a happy linux user. But at the moment I am stucked browsing forums and trying other people solution wheter they work or not cause I don't understand what those different paramters actually do. Are those paramters like "ab" ac etc universal in the linux world or program specific so that one must learn hundreds of different tags for each software one uses?

    Here are the final output from rxvt terminal emulator:

    Code:
    # cd /
    # cd mnt
    # cd sdc1
    # cd mediaz
    # cd mp3z
    # ls
    1 Layla - Eric Clapton - Igor Presnyakov - acoustic interpretation.mp4
    AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4
    Carolina In My Mind - Igor Presnyakov.mp4
    # for f in *.mp4; do ffmpeg -i "$f" -ab 320k "${f%.mp4}.mp3"; done
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1 Layla - Eric Clapton - Igor Presnyakov - acoustic interpretation.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        creation_time   : 2012-09-03 16:49:53
      Duration: 00:06:00.74, start: 0.000000, bitrate: 1893 kb/s
        Stream #0.0(und): Video: h264 (High), yuv420p, 1280x720, 1698 kb/s, 30 fps, 30 tbr, 60 tbn, 60 tbc
        Metadata:
          creation_time   : 1970-01-01 00:00:00
        Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 191 kb/s
        Metadata:
          creation_time   : 2012-09-03 16:49:54
    Output #0, mp3, to '1 Layla - Eric Clapton - Igor Presnyakov - acoustic interpretation.mp3':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        TDEN            : 2012-09-03 16:49:53
        TSSE            : Lavf53.21.0
        Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 320 kb/s
        Metadata:
          creation_time   : 2012-09-03 16:49:54
    Stream mapping:
      Stream #0.1 -> #0.0
    Press ctrl-c to stop encoding
    size=   14093kB time=360.78 bitrate= 320.0kbits/s    
    video:0kB audio:14093kB global headers:0kB muxing overhead 0.001809%
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isomavc1mp42
        creation_time   : 2010-12-05 18:25:28
      Duration: 00:03:17.88, start: 0.000000, bitrate: 647 kb/s
        Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 105 kb/s
        Metadata:
          creation_time   : 2010-12-05 18:25:28
        Stream #0.1(und): Video: h264 (Constrained Baseline), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 539 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
        Metadata:
          creation_time   : 2010-12-05 18:25:28
    Output #0, mp3, to 'AC_DC - You Shook Me All Night Long - Igor Presnyakov.mp3':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isomavc1mp42
        TDEN            : 2010-12-05 18:25:28
        TSSE            : Lavf53.21.0
        Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 320 kb/s
        Metadata:
          creation_time   : 2010-12-05 18:25:28
    Stream mapping:
      Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    size=    7731kB time=197.90 bitrate= 320.0kbits/s    
    video:0kB audio:7731kB global headers:0kB muxing overhead 0.003348%
    ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
      built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    
    Seems stream 1 codec frame rate differs from container frame rate: 49.99 (6249/125) -> 25.00 (6249/250)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Carolina In My Mind - Igor Presnyakov.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isomavc1mp42
        creation_time   : 2009-07-23 19:18:48
      Duration: 00:04:06.92, start: 0.000000, bitrate: 538 kb/s
        Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 107 kb/s
        Metadata:
          creation_time   : 2009-07-23 19:18:48
        Stream #0.1(und): Video: h264 (Constrained Baseline), yuv420p, 480x320 [PAR 1:1 DAR 3:2], 428 kb/s, 25 fps, 25 tbr, 24996 tbn, 49.99 tbc
        Metadata:
          creation_time   : 2009-07-23 19:18:48
    Output #0, mp3, to 'Carolina In My Mind - Igor Presnyakov.mp3':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isomavc1mp42
        TDEN            : 2009-07-23 19:18:48
        TSSE            : Lavf53.21.0
        Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 320 kb/s
        Metadata:
          creation_time   : 2009-07-23 19:18:48
    Stream mapping:
      Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    size=    9647kB time=246.96 bitrate= 320.0kbits/s    
    video:0kB audio:9647kB global headers:0kB muxing overhead 0.002683%
    # 
    #

    Btw I tried to find a way to edit the prefix so I can mark this thread as resolved - but I had no such luck. Where can I mark this problem as resolved? Or actually it is no rush - maybe it was faith That way some might drop into this thread that can explain the difference in syntax between these 3 different commands and why the result was like it was. I mean why does one command destroy source files but does not create audio mp3's? Why does one command ask me if I would like to overwrite files - I thought the whole point was to force new files ending in .mp3 so even if I chosse not to overwrite I would suppose the command would still make those mp3's but just leave the source files alone.

  7. #7
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Desert
    Posts
    4,138
    Thread tools above original post will show resolved button. Just for info. If worried about borking a frugal install. I always copy and paste my personal save file to another partition or drive and rename it like 1bk or what ever you prefer to name a backup file.

    I don't run your version but a Debian version instead. Mine fits on a 128MB SD flash drive and I run it on a ACER ASPIRE 5534 dual core and keep the save file in Windows 7.

    Happy Trails, Rok
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way. I Have a Masters in Raising Hell
    Tech Books
    Free Linux Books
    Newbie Guide
    Courses at Home

  8. #8
    Just Joined!
    Join Date
    Oct 2013
    Posts
    7
    Quote Originally Posted by rokytnji View Post
    Thread tools above original post will show resolved button. Just for info. If worried about borking a frugal install. I always copy and paste my personal save file to another partition or drive and rename it like 1bk or what ever you prefer to name a backup file.


    Happy Trails, Rok

    Smart to have different savefiles, never thought of that. Now I can play around as much as I like without any worries. Great.

    But I have not yet found out why one of the three codelines delete the source files. I hope someone can take a closer look on these 3 lines of terminal commands:


    First one does not work for me, and I think that is the one that "empty" the original mp4 source files:

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -vn -b:a libmp3lame -ar 44100 -ac 2 -ab 192k "${f%mp4/mp3}"; done
    Then there is this, not working either:

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -acodec libmp3lame  -ab 192 "${f%mp4/mp3}"; done
    And finally the third version does work nice after
    I corrected the fileending error in post #1:

    Code:
    for f in *.mp4; do ffmpeg -i "$f" -ab 320k "${f%.wav}.mp3"; done
    Can someone pls take a close look and explain why there is such a different output and result from running these commands?

    For learning purpose I hope someone can pls explain those three one-liners step by step to so I can gather somewhat deeper understanding of the terminal. Seems like a clever tool that one can use with great result if one can get a closer understanding of the syntax.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •