FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-16-2011, 08:55 AM
Johnny Rosenberg
 
Default ffmpeg makes me mad…

I have a mpeg file that I made with my video camera at 16:9, but Totem
plays it as 4:3 which makes it look wrong, of course, when View →
Aspect ratio is set to Auto.

So I tried to correct it using ffmpeg:

ffmpeg -i Bkib.mpeg -vcodec copy -aspect 16:9 -acodec copy Bkib-0.mpeg
It seems like ”-vcodec copy” overrides ”-aspext 16:9”, so next one to
try was this one:

ffmpeg -i Bkib.mpeg -aspect 16:9 -acodec copy Bkib-0.mpeg
Now I get my 16:9 copy of the video, but the bitrate is way too low
(about 400 kbps – the original is at 4000 kbps), so I tried this one:

ffmpeg -i Bkib.mpeg -b 4000 -aspect 16:9 -acodec copy Bkib-0.mpeg
Didn't help though. It still lands around 400 kbps.
I also tried to move around the parameters a bit:

ffmpeg -i Bkib.mpeg -aspect 16:9 -b 4000 -acodec copy Bkib-0.mpeg
Didn't affect the result though.

What am I doing wrong?


Kind regards

Johnny Rosenberg
ジョニー・*ーゼンバーグ

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-16-2011, 10:04 AM
Nils Kassube
 
Default ffmpeg makes me mad…

Johnny Rosenberg wrote:
> ffmpeg -i Bkib.mpeg -aspect 16:9 -acodec copy Bkib-0.mpeg
> Now I get my 16:9 copy of the video, but the bitrate is way too low
> (about 400 kbps – the original is at 4000 kbps), so I tried this one:
>
> ffmpeg -i Bkib.mpeg -b 4000 -aspect 16:9 -acodec copy Bkib-0.mpeg
> Didn't help though. It still lands around 400 kbps.

From "man ffmpeg":

| -b bitrate
| Set the video bitrate in bit/s (default = 200 kb/s).

Therefore I would try "-b 4000k".


Nils

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-16-2011, 10:27 AM
Johnny Rosenberg
 
Default ffmpeg makes me mad…

2011/7/16 Nils Kassube <kassube@gmx.net>:
> Johnny Rosenberg wrote:
>> ffmpeg -i Bkib.mpeg -aspect 16:9 -acodec copy Bkib-0.mpeg
>> Now I get my 16:9 copy of the video, but the bitrate is way too low
>> (about 400 kbps – the original is at 4000 kbps), so I tried this one:
>>
>> ffmpeg -i Bkib.mpeg -b 4000 -aspect 16:9 -acodec copy Bkib-0.mpeg
>> Didn't help though. It still lands around 400 kbps.
>
> From "man ffmpeg":
>
> | -b bitrate
> | *Set the video bitrate in bit/s (default = 200 kb/s).
>
> Therefore I would try "-b 4000k".

He he he… ooopsie…! Yes, you are right, of course! For some strange
reason I thought that 4000 meant 4000 kb/s, not 4000 b/s… I'm not sure
why I thought that, maybe this article tricked me:

http://www.linuxjournal.com/article/8517?page=0,1

Quote:
”So if we want to encode using the MPEG-4 codec at 1,200kbps video
bitrate and 128kbps audio bitrate, the command looks like this:
ffmpeg -i InputFile.mpg -ab 128 -b 1200 -vcodec mpeg4 OutputFile.avi”

Obviously there is a ”k” there at two different places, so it should be:
ffmpeg -i InputFile.mpg -ab 128k -b 1200k -vcodec mpeg4 OutputFile.avi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯↑¯¯¯¯¯¯¯↑¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯

In my case, 4M worked as well, which is a bit shorter to type than 4000k.

Thanks for waking me up!


Kind regards

Johnny Rosenberg
ジョニー・*ーゼンバーグ

>
>
> Nils
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 08:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org