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.
+ Reply to Thread
Results 1 to 11 of 11
-
Cheers
coolboarderguy -
sorry.. but you are using an mpeg4 codec in a MPEG2 container ?
better to fit it in avi or mp4
BHHHDConvertToX, AutoMen, AutoMKV Developer -
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 -
again ... what is mpeg4 as output ?!
-f /mnt/sharefat/japanese/yua/yua01.avi
or
-f /mnt/sharefat/japanese/yua/yua01.mp4
NJJHDConvertToX, AutoMen, AutoMKV Developer -
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.mp4Cheers
coolboarderguy -
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 implieschange 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 -
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 -
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 -
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 -
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
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
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
else add "-lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es")
gl
Similar Threads
-
FFmpeg error trying to convert audio in mp4
By Thunderhead2772 in forum Video ConversionReplies: 4Last Post: 30th Jan 2015, 09:24 -
Streaming MP4 using VLC and ffmpeg on Linux?
By bobc02 in forum Video Streaming DownloadingReplies: 2Last Post: 24th Sep 2011, 11:02 -
AVI (DV Pal) to mp4 (h264) with FFMPEG on Windows
By Zoreil59 in forum Video ConversionReplies: 3Last Post: 17th Jun 2010, 03:35 -
Not working Windows ffmpeg -i MVI_3781.AVI main.mp4
By lindylex in forum Video ConversionReplies: 7Last Post: 3rd Jun 2010, 13:50 -
converting MOD to AVI to MP4 using avisynth, x264, mp4box & ffmpeg
By Wakewatcher in forum Video ConversionReplies: 3Last Post: 27th Dec 2008, 16:58