-vcodec libxvid vs. -vtag xvid

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

-vcodec libxvid vs. -vtag xvid

Tobias Brockamp
Hi,

i've read in the doom9 forum that using "-vcodec libxvid" works in  
newer ffmpeg svn's and that it
brings better quality than "-vcodec mpeg4 -vtag xvid".

So i tested coding a file with both variants with the same parameters:

"ffmpeg -y -i in.avi -aspect 4:3 -vcodec libxvid -s 640x480 -r 25 -b  
1000k -g 250 -qmin 2 -qmax 8 -flags +mv4+mv0+umv -mbd rd  -acodec  
libmp3lame -ac 2 -ar 44100 -ab 80 -benchmark -psnr out_libxvid.avi"

"ffmpeg -y -i _final/06_huff_master_final.avi -aspect 4:3 -vcodec  
mpeg4 -vtag xvid -s 640x480 -r 25 -b 1000k -g 250 -qmin 2 -qmax 8 -
flags +mv4+mv0+umv -mbd rd  -acodec libmp3lame -ac 2 -ar 44100 -ab 80  
-benchmark -psnr out_vtag.avi"

The libxvid looks actually better and is smaller but it takes  
146.025s for encoding and the other 16.349s.

Can anyone tell me where exactly the differences are, because i use  
the same parameters.

I'm free to any ideas for optimizing my command line.

Is there anywhere a good documentation for the xvid specific  
parameters in ffmpeg? F.e. i like the mplayer/mencoder documentation.
Although ffmpeg is a nice tool, the documentation is poorly.

Kind regards,

Tobias Brockamp
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: -vcodec libxvid vs. -vtag xvid

Naveen Aluri


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Tobias Brockamp
Sent: Thursday, December 20, 2007 3:58 AM
To: FFmpeg user questions and RTFMs
Subject: [Ffmpeg-user] -vcodec libxvid vs. -vtag xvid

Hi,

i've read in the doom9 forum that using "-vcodec libxvid" works in  
newer ffmpeg svn's and that it
brings better quality than "-vcodec mpeg4 -vtag xvid".

So i tested coding a file with both variants with the same parameters:

"ffmpeg -y -i in.avi -aspect 4:3 -vcodec libxvid -s 640x480 -r 25 -b  
1000k -g 250 -qmin 2 -qmax 8 -flags +mv4+mv0+umv -mbd rd  -acodec  
libmp3lame -ac 2 -ar 44100 -ab 80 -benchmark -psnr out_libxvid.avi"

"ffmpeg -y -i _final/06_huff_master_final.avi -aspect 4:3 -vcodec  
mpeg4 -vtag xvid -s 640x480 -r 25 -b 1000k -g 250 -qmin 2 -qmax 8 -
flags +mv4+mv0+umv -mbd rd  -acodec libmp3lame -ac 2 -ar 44100 -ab 80  
-benchmark -psnr out_vtag.avi"

The libxvid looks actually better and is smaller but it takes  
146.025s for encoding and the other 16.349s.

Can anyone tell me where exactly the differences are, because i use  
the same parameters.

I'm free to any ideas for optimizing my command line.

Is there anywhere a good documentation for the xvid specific  
parameters in ffmpeg? F.e. i like the mplayer/mencoder documentation.
Although ffmpeg is a nice tool, the documentation is poorly.

Kind regards,

Tobias Brockamp


Hi,

 I am a newbie to fmpeg.Converting from mp4 video files to wmv is an urgent
requirement for me ,So please give me the full command with options to
convert from mp4 to wmv. Any help will be appreciated.


I am getting the following response
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[root@localhost ffmpeg-checkout-2007-12-17]# ffmpeg -y -i ../VIDEO_013.mp4
-s 640*352 -vcodec wmv2 -g 200 -qmin 4 -b 1500k -r 24 -acodec wmav2 -ar
48000 -ac 2 -ab 128k video.wmv
FFmpeg version SVN-r11246, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-encoder=libamr_nb
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.2.0
  built on Dec 19 2007 20:42:38, gcc: 4.1.2 20070502 (Red Hat 4.1.2-12)

Seems stream 1 codec frame rate differs from container frame rate: 30000.00
(30000/1) -> 15.00 (15/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../VIDEO_013.mp4':
  Duration: 00:00:10.0, start: 0.000000, bitrate: 397 kb/s
    Stream #0.0(und): Audio: samr / 0x726D6173, 8000 Hz, mono
    Stream #0.1(und): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
15.00 tb(r)
Output #0, asf, to 'video.wmv':
    Stream #0.0(und): Video: wmv2, yuv420p, 640x352 [PAR 11:15 DAR 4:3],
q=4-31, 1500 kb/s, 24.00 tb(c)
    Stream #0.1(und): Audio: wmav2, 48000 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Unsupported codec (id=73728) for input stream #0.0
////////////////////////////////////////////////////////////////////////////


Thanks,
Naveen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: -vcodec libxvid vs. -vtag xvid

Michel Bardiaux-2
Naveen Aluri a écrit :
>
[snip]

> Hi,

You're not top-posting, which should be good, but your mailer is set to
use the same quoting style as for top-posting, which is bad: we dont see
any difference between the original message and your reply. Please fix
your mailer.

>
>  I am a newbie to fmpeg.Converting from mp4 video files to wmv is an urgent
> requirement for me ,So please give me the full command with options to
> convert from mp4 to wmv. Any help will be appreciated.

Completely unrelated to the original question. This is thread hijacking
(but without even changing the subject line) which is very much frowned
upon. Usually I would tell you to repost properly. But seeing you did
post command and messages, special effort:

>
>
> I am getting the following response
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
> [root@localhost ffmpeg-checkout-2007-12-17]# ffmpeg -y -i ../VIDEO_013.mp4
> -s 640*352 -vcodec wmv2 -g 200 -qmin 4 -b 1500k -r 24 -acodec wmav2 -ar
> 48000 -ac 2 -ab 128k video.wmv
> FFmpeg version SVN-r11246, Copyright (c) 2000-2007 Fabrice Bellard, et al.
>   configuration: --enable-encoder=libamr_nb
>   libavutil version: 49.6.0
>   libavcodec version: 51.49.0
>   libavformat version: 52.2.0
>   built on Dec 19 2007 20:42:38, gcc: 4.1.2 20070502 (Red Hat 4.1.2-12)
>
> Seems stream 1 codec frame rate differs from container frame rate: 30000.00
> (30000/1) -> 15.00 (15/1)
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../VIDEO_013.mp4':
>   Duration: 00:00:10.0, start: 0.000000, bitrate: 397 kb/s
>     Stream #0.0(und): Audio: samr / 0x726D6173, 8000 Hz, mono
>     Stream #0.1(und): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
> 15.00 tb(r)
> Output #0, asf, to 'video.wmv':
>     Stream #0.0(und): Video: wmv2, yuv420p, 640x352 [PAR 11:15 DAR 4:3],
> q=4-31, 1500 kb/s, 24.00 tb(c)
>     Stream #0.1(und): Audio: wmav2, 48000 Hz, stereo, 128 kb/s
> Stream mapping:
>   Stream #0.1 -> #0.0
>   Stream #0.0 -> #0.1
> Unsupported codec (id=73728) for input stream #0.0
> ////////////////////////////////////////////////////////////////////////////

You need the AMR *de*coder but you enabled the *en*coder.

If you want to reply to this, please start a new thread, quoting all of
this.

Greetings,
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[hidden email]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: -vcodec libxvid vs. -vtag xvid

Naveen Aluri


> -----Original Message-----
> From: [hidden email] [mailto:ffmpeg-user-
> [hidden email]] On Behalf Of Michel Bardiaux
> Sent: Thursday, December 20, 2007 3:24 PM
> To: FFmpeg user questions and RTFMs
> Subject: Re: [Ffmpeg-user] -vcodec libxvid vs. -vtag xvid
>
> Naveen Aluri a écrit :
> >
> [snip]
>
> > Hi,
>
> You're not top-posting, which should be good, but your mailer is set to
> use the same quoting style as for top-posting, which is bad: we dont see
> any difference between the original message and your reply. Please fix
> your mailer.
>
> >
> >  I am a newbie to fmpeg.Converting from mp4 video files to wmv is an
> urgent
> > requirement for me ,So please give me the full command with options to
> > convert from mp4 to wmv. Any help will be appreciated.
>
> Completely unrelated to the original question. This is thread hijacking
> (but without even changing the subject line) which is very much frowned
> upon. Usually I would tell you to repost properly. But seeing you did
> post command and messages, special effort:
>
> >
> >
> > I am getting the following response
> >
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
> \\
> > [root@localhost ffmpeg-checkout-2007-12-17]# ffmpeg -y -i
> ../VIDEO_013.mp4
> > -s 640*352 -vcodec wmv2 -g 200 -qmin 4 -b 1500k -r 24 -acodec wmav2 -ar
> > 48000 -ac 2 -ab 128k video.wmv
> > FFmpeg version SVN-r11246, Copyright (c) 2000-2007 Fabrice Bellard, et
> al.
> >   configuration: --enable-encoder=libamr_nb
> >   libavutil version: 49.6.0
> >   libavcodec version: 51.49.0
> >   libavformat version: 52.2.0
> >   built on Dec 19 2007 20:42:38, gcc: 4.1.2 20070502 (Red Hat 4.1.2-12)
> >
> > Seems stream 1 codec frame rate differs from container frame rate:
> 30000.00
> > (30000/1) -> 15.00 (15/1)
> > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../VIDEO_013.mp4':
> >   Duration: 00:00:10.0, start: 0.000000, bitrate: 397 kb/s
> >     Stream #0.0(und): Audio: samr / 0x726D6173, 8000 Hz, mono
> >     Stream #0.1(und): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
> > 15.00 tb(r)
> > Output #0, asf, to 'video.wmv':
> >     Stream #0.0(und): Video: wmv2, yuv420p, 640x352 [PAR 11:15 DAR 4:3],
> > q=4-31, 1500 kb/s, 24.00 tb(c)
> >     Stream #0.1(und): Audio: wmav2, 48000 Hz, stereo, 128 kb/s
> > Stream mapping:
> >   Stream #0.1 -> #0.0
> >   Stream #0.0 -> #0.1
> > Unsupported codec (id=73728) for input stream #0.0
> >
> //////////////////////////////////////////////////////////////////////////
> //
>
> You need the AMR *de*coder but you enabled the *en*coder.
>
> If you want to reply to this, please start a new thread, quoting all of
> this.
>
> Greetings,
> --
> Michel Bardiaux
> R&D Director
> T +32 [0] 2 790 29 41
> F +32 [0] 2 790 29 02
> E mailto:[hidden email]
>
> Mediaxim NV/SA
> Vorstlaan 191 Boulevard du Souverain
> Brussel 1160 Bruxelles
> http://www.mediaxim.com/

Thanks for your suggestions michel,
As I mentioned it was an urgent requirement for me,so please help me in
converting a mp4 to wmv.
Expecting a command line for linux which will do the conversion.

go up to see the command line which I have tried

> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: -vcodec libxvid vs. -vtag xvid

Michel Bardiaux-2
Naveen Aluri a écrit :

>
>> -----Original Message-----
>> From: [hidden email] [mailto:ffmpeg-user-
>> [hidden email]] On Behalf Of Michel Bardiaux
>> Sent: Thursday, December 20, 2007 3:24 PM
>> To: FFmpeg user questions and RTFMs
>> Subject: Re: [Ffmpeg-user] -vcodec libxvid vs. -vtag xvid
>>
>> Naveen Aluri a écrit :
>> [snip]
>>
>>> Hi,
>> You're not top-posting, which should be good, but your mailer is set to
>> use the same quoting style as for top-posting, which is bad: we dont see
>> any difference between the original message and your reply. Please fix
>> your mailer.
>>
>>>  I am a newbie to fmpeg.Converting from mp4 video files to wmv is an
>> urgent
>>> requirement for me ,So please give me the full command with options to
>>> convert from mp4 to wmv. Any help will be appreciated.
>> Completely unrelated to the original question. This is thread hijacking
>> (but without even changing the subject line) which is very much frowned
>> upon. Usually I would tell you to repost properly. But seeing you did
>> post command and messages, special effort:
>>
>>>
>>> I am getting the following response
>>>
>> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
>> \\
>>> [root@localhost ffmpeg-checkout-2007-12-17]# ffmpeg -y -i
>> ../VIDEO_013.mp4
>>> -s 640*352 -vcodec wmv2 -g 200 -qmin 4 -b 1500k -r 24 -acodec wmav2 -ar
>>> 48000 -ac 2 -ab 128k video.wmv
>>> FFmpeg version SVN-r11246, Copyright (c) 2000-2007 Fabrice Bellard, et
>> al.
>>>   configuration: --enable-encoder=libamr_nb
>>>   libavutil version: 49.6.0
>>>   libavcodec version: 51.49.0
>>>   libavformat version: 52.2.0
>>>   built on Dec 19 2007 20:42:38, gcc: 4.1.2 20070502 (Red Hat 4.1.2-12)
>>>
>>> Seems stream 1 codec frame rate differs from container frame rate:
>> 30000.00
>>> (30000/1) -> 15.00 (15/1)
>>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../VIDEO_013.mp4':
>>>   Duration: 00:00:10.0, start: 0.000000, bitrate: 397 kb/s
>>>     Stream #0.0(und): Audio: samr / 0x726D6173, 8000 Hz, mono
>>>     Stream #0.1(und): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
>>> 15.00 tb(r)
>>> Output #0, asf, to 'video.wmv':
>>>     Stream #0.0(und): Video: wmv2, yuv420p, 640x352 [PAR 11:15 DAR 4:3],
>>> q=4-31, 1500 kb/s, 24.00 tb(c)
>>>     Stream #0.1(und): Audio: wmav2, 48000 Hz, stereo, 128 kb/s
>>> Stream mapping:
>>>   Stream #0.1 -> #0.0
>>>   Stream #0.0 -> #0.1
>>> Unsupported codec (id=73728) for input stream #0.0
>>>
>> //////////////////////////////////////////////////////////////////////////
>> //
>>
>> You need the AMR *de*coder but you enabled the *en*coder.
>>
>> If you want to reply to this, please start a new thread, quoting all of
>> this.
>>
>> Greetings,
>
> Thanks for your suggestions michel,

Good, your mailer quotes correctly now.

> As I mentioned it was an urgent requirement for me,so please help me in
> converting a mp4 to wmv.
> Expecting a command line for linux which will do the conversion.
>
> go up to see the command line which I have tried

Go up and read what I wrote. Your *input* mp4 uses some form of AMR
audio. So there is *no way* you can convert it to wmv, mpg, vob, raw, or
anything, because you simply cant *read* it!

You have to re-compile ffmpeg with AMR enabled for decoding. Though I
cant help you in the choice between amr_nb and amr_wb. Do some web searches.

Greetings,
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[hidden email]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: -vcodec libxvid vs. -vtag xvid

Tobias Brockamp

Am 21.12.2007 um 10:21 schrieb Michel Bardiaux:

> ...
>
> Good, your mailer quotes correctly now.

yeah but it is still the wrong topic, i'm a little bit sad that  
nobody has an answer for the original question.

>
>> As I mentioned it was an urgent requirement for me,so please help  
>> me in
>> converting a mp4 to wmv.
>> Expecting a command line for linux which will do the conversion.
>>
>> go up to see the command line which I have tried
>
> Go up and read what I wrote. Your *input* mp4 uses some form of AMR
> audio. So there is *no way* you can convert it to wmv, mpg, vob,  
> raw, or
> anything, because you simply cant *read* it!
>
> You have to re-compile ffmpeg with AMR enabled for decoding. Though I
> cant help you in the choice between amr_nb and amr_wb. Do some web  
> searches.
>
> Greetings,
> --
> Michel Bardiaux
> R&D Director
> T +32 [0] 2 790 29 41
> F +32 [0] 2 790 29 02
> E mailto:[hidden email]
>
> Mediaxim NV/SA
> Vorstlaan 191 Boulevard du Souverain
> Brussel 1160 Bruxelles
> http://www.mediaxim.com/
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user