VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Nov 2007
    Location
    Australia
    Search Comp PM
    Hi All,

    sudo ffmpeg -i /mnt/sharefat/japanese/yua/yua01.avi -vcodec mpeg4 -s 320x240 -b 300k -r 30 -acodec mp3 -ar 4800 -ab 112k -f /mnt/sharefat/japanese/yua/yua01.mpg
    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
    configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
    libavutil version: 0d.49.0.0
    libavcodec version: 0d.51.11.0
    libavformat version: 0d.50.5.0
    built on Sep 20 2006 00:26:15, gcc: 4.1.2 20060906 (prerelease) (Ubuntu 4.1.1-13ubuntu2)

    Seems that stream 0 comes from film source: 30000.00 (30000/1) -> 23.98 (24000/1001)
    Input #0, avi, from '/mnt/sharefat/japanese/yua/yua01.avi':
    Duration: 00:28:38.1, start: 0.000000, bitrate: 1134 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x480, 23.98 fps(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 112 kb/s
    Unknown input or output format: /mnt/sharefat/japanese/yua/yua01.mpg


    The file is definitely not corrupted, as it plays fine. Any suggestions? Hopefuly this is the correct forums for this.
    Cheers

    coolboarderguy
    Quote Quote  
  2. sorry.. but you are using an mpeg4 codec in a MPEG2 container ?
    better to fit it in avi or mp4

    BHH
    HDConvertToX, AutoMen, AutoMKV Developer
    Quote Quote  
  3. Member
    Join Date
    Nov 2007
    Location
    Australia
    Search Comp PM
    Hi All,

    oops, that was a typo.


    sudo ffmpeg -i /mnt/sharefat/japanese/yua/yua01.avi -vcodec mpeg4 -s 320x240 -b 300k -r 23.98 -acodec mp3 -ar 4800 -ab 112k -f /mnt/sharefat/japanese/yua/yua01.mpeg4
    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
    configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
    libavutil version: 0d.49.0.0
    libavcodec version: 0d.51.11.0
    libavformat version: 0d.50.5.0
    built on Sep 20 2006 00:26:15, gcc: 4.1.2 20060906 (prerelease) (Ubuntu 4.1.1-13ubuntu2)

    Seems that stream 0 comes from film source: 30000.00 (30000/1) -> 23.98 (24000/1001)
    Input #0, avi, from '/mnt/sharefat/japanese/yua/yua01.avi':
    Duration: 00:28:38.1, start: 0.000000, bitrate: 1134 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x480, 23.98 fps(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 112 kb/s
    Unknown input or output format: /mnt/sharefat/japanese/yua/yua01.mpeg4


    I am also very newbie for this stuff, although I get the concept/terminology.
    Cheers

    coolboarderguy
    Quote Quote  
  4. again ... what is mpeg4 as output ?!

    -f /mnt/sharefat/japanese/yua/yua01.avi

    or

    -f /mnt/sharefat/japanese/yua/yua01.mp4

    NJJ
    HDConvertToX, AutoMen, AutoMKV Developer
    Quote Quote  
  5. Member
    Join Date
    Nov 2007
    Location
    Australia
    Search Comp PM
    HI All,

    I see what you mean, the container needs to be either .avi or mpeg4. I tried both, but still getting the same error.


    sudo ffmpeg -i /mnt/sharefat/japanese/yua/yua01.avi -vcodec mpeg4 -s 320x240 -b 300k -r 23.98 -acodec mp3 -ar 48000 -ab 112k -f /mnt/sharefat/japanese/yua/yua01.mp4
    Password:
    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
    configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
    libavutil version: 0d.49.0.0
    libavcodec version: 0d.51.11.0
    libavformat version: 0d.50.5.0
    built on Sep 20 2006 00:26:15, gcc: 4.1.2 20060906 (prerelease) (Ubuntu 4.1.1-13ubuntu2)

    Seems that stream 0 comes from film source: 30000.00 (30000/1) -> 23.98 (24000/1001)
    Input #0, avi, from '/mnt/sharefat/japanese/yua/yua01.avi':
    Duration: 00:28:38.1, start: 0.000000, bitrate: 1134 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x480, 23.98 fps(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 112 kb/s
    Unknown input or output format: /mnt/sharefat/japanese/yua/yua01.mp4
    Cheers

    coolboarderguy
    Quote Quote  
  6. Get Slack disturbed1's Avatar
    Join Date
    Apr 2001
    Location
    init 4
    Search Comp PM
    first off, why are you running the command as root? I won't fill up 10 pages of explaining why this is just plain flat out wrong and the worse thing a person can do. Bad, bad habit.

    ffmpeg -i /mnt/sharefat/japanese/yua/yua01.avi -vcodec mpeg4 -s 320x240 -b 300k -r 23.98 -acodec mp3 -ar 48000 -ab 112k -o /mnt/sharefat/japanese/yua/yua01.mp4

    ffmpeg has no clue what the format /mnt/sharefat/japanese/yua/yua01.mp4 is. That is not a format, which is what passing -f implies change that to -o for output file. If you type ffmpeg -formats, this will list the valid options for format. This switch isn't needed, in most cases, as ffmpeg will know what your doing by the extension of the output file. If you pass -o audio.ac3, ffmpeg knows to encode the audio to ac3 format.

    If you need to use the sudo command to access your fat formated drive, it isn't mounted correctly, and/or you don't have the permissions set up correctly. Try the Ubuntu forums for how to correctly set up an entry in your fstab.

    edit ---
    depending on your version of ffmpeg, you may not need the -o command at all, so if the above doesn't work, try this

    ffmpeg -i /mnt/sharefat/japanese/yua/yua01.avi -vcodec mpeg4 -s 320x240 -b 300k -r 23.98 -acodec mp3 -ar 48000 -ab 112k /mnt/sharefat/japanese/yua/yua01.mp4
    Quote Quote  
  7. Member
    Join Date
    Nov 2007
    Location
    Australia
    Search Comp PM
    Hi All,

    yes, I'm aware of the root/sudo implications, I just have'nt got around to it yet. Thanx for asking, though. Below is the output I now get.


    sudo ffmpeg -i /mnt/sharefat/japanese/yua/yua01.avi -vcodec mpeg4 -s 320x240 -b 300k -r 23.98 -acodec mp3 -ar 48000 -ab 112k /mnt/sharefat/japanese/yua/yua01.mp4
    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
    configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
    libavutil version: 0d.49.0.0
    libavcodec version: 0d.51.11.0
    libavformat version: 0d.50.5.0
    built on Sep 20 2006 00:26:15, gcc: 4.1.2 20060906 (prerelease) (Ubuntu 4.1.1-13ubuntu2)

    Seems that stream 0 comes from film source: 30000.00 (30000/1) -> 23.98 (24000/1001)
    Input #0, avi, from '/mnt/sharefat/japanese/yua/yua01.avi':
    Duration: 00:28:38.1, start: 0.000000, bitrate: 1134 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x480, 23.98 fps(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 112 kb/s
    File '/mnt/sharefat/japanese/yua/yua01.mp4' already exists. Overwrite ? [y/N] y
    Output #0, mp4, to '/mnt/sharefat/japanese/yua/yua01.mp4':
    Stream #0.0: Video: mpeg4, yuv420p, 320x240, q=2-31, 300 kb/s, 23.98 fps(c)
    Stream #0.1: Audio: 0x0000, 48000 Hz, stereo, 112 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Unsupported codec for output stream #0.1


    I guess there is a codec not supported with regards to audio. Which one though? Is it a generic non-supported issue or the source file issue in this case? Bit confused here.
    Cheers

    coolboarderguy
    Quote Quote  
  8. Get Slack disturbed1's Avatar
    Join Date
    Apr 2001
    Location
    init 4
    Search Comp PM
    Right click on the source file and find out what format the audio is in.

    I have the same version of ffmpeg and it states that mp3 is enabled for encoding/decoding, the only common codec I noticed that is missing is aac. The avi audio file could have a wave header that is known to throw some programs off. Not sure about ffmpeg, as I rarely, if ever use it.

    You could try mencoder instead. Or, just convert the audio to pcm using mencoder with this command



    sudo mencoder /mnt/sharefat/japanese/yua/yua01.avi -vc copy -ac pcm -o /mnt/sharefat/japanese/yua/yua01.pcm.avi

    This does nothing to the source video, and only decodes the audio wav format, then remuxes the file back to yua01.pcm.avi

    then run

    sudo ffmpeg -i /mnt/sharefat/japanese/yua/yua01.pcm.avi -vcodec mpeg4 -s 320x240 -b 300k -r 23.98 -acodec mp3 -ar 48000 -ab 112k /mnt/sharefat/japanese/yua/yua01.mp4
    Quote Quote  
  9. Member
    Join Date
    Nov 2007
    Location
    Australia
    Search Comp PM
    Hi All,

    it says,

    Audio
    Bitrate: N/A
    Codec: MPEG-1 layer 3

    have installed mencoder. Will check it out tonight.
    Cheers

    coolboarderguy
    Quote Quote  
  10. Member
    Join Date
    Nov 2007
    Location
    Australia
    Search Comp PM
    Hi All,

    someone just doesn't love me enough. lol.


    sudo ffmpeg -i /mnt/sharefat/japanese/yua/yua01.pcm.avi -vcodec mpeg4 -s 320x240 -b 300k -r 23.98 -acodec mp3 -ar 48000 -ab 112k /mnt/sharefat/japanese/yua/yua01.mp4
    Password:
    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
    configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
    libavutil version: 0d.49.0.0
    libavcodec version: 0d.51.11.0
    libavformat version: 0d.50.5.0
    built on Sep 20 2006 00:26:15, gcc: 4.1.2 20060906 (prerelease) (Ubuntu 4.1.1-13ubuntu2)

    Seems that stream 0 comes from film source: 30000.00 (30000/1) -> 23.98 (24000/1001)
    Input #0, avi, from '/mnt/sharefat/japanese/yua/yua01.pcm.avi':
    Duration: 00:28:38.1, start: 0.000000, bitrate: 2533 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x480, 23.98 fps(r)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
    File '/mnt/sharefat/japanese/yua/yua01.mp4' already exists. Overwrite ? [y/N] y
    Output #0, mp4, to '/mnt/sharefat/japanese/yua/yua01.mp4':
    Stream #0.0: Video: mpeg4, yuv420p, 320x240, q=2-31, 300 kb/s, 23.98 fps(c)
    Stream #0.1: Audio: 0x0000, 48000 Hz, stereo, 112 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Unsupported codec for output stream #0.1

    BTW, thank you all for your patience with this.
    Cheers

    coolboarderguy
    Quote Quote  
  11. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    how about updating to a version that's not as old as methuselah...

    I don't see --enable-mp3lame

    It's quite obvious 'mp3' encoding is not supported in the build you have.

    Code:
    ffmpeg -formats
    will attest to that

    Of course I see no reason to encode audio:
    Code:
    ffmpeg -i /mnt/sharefat/japanese/yua/yua01.avi -s 320x240 -r 23.98 -vcodec mpeg4 -b 300k -mbd 2 -flags trell -acodec copy /mnt/sharefat/japanese/yua/yua01.mp4
    might as well have mencoder handy in future as you've now got it.
    assuming audio encoding needed:
    Code:
    mencoder /mnt/sharefat/japanese/yua/yua01.avi -vf scale=320:240 -fps 23.976 -of lavf -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=300:trell:mbd=2 -oac mp3lame -lameopts abr:br=112 -o /mnt/sharefat/japanese/yua/yua01.mp4
    (syntax assumes mencoder version no older than mid August 2007,
    else add "-lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es")

    gl
    Quote Quote  



Similar Threads

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