Choose style:

Author Topic: video file optimization using ffmpeg (SOLVED)  (Read 3936 times)

0 Members and 1 Guest are viewing this topic.

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
video file optimization using ffmpeg (SOLVED)
« on: May 20, 2014, 10:57:11 am »
hi all,
trying to make a video file more usable (.mpg, 21mins, 3GB with sick dimensions) into something slick fast and portable like .mp4
I learned by googleing to use ffmpeg (and winff too) but the output is a blank file w/o extension and size is 0kb, altho in the shell it processes the frames and time.
the only error-like message that displays is `gnome-keyring:: couldn't connect to: PKCS11 No such file or directory`, googled it and I ended up here: https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/932177
also tried to add XFCE in  the pkcs11 file but can't save it > http://hongouru.blogspot.com.ar/2012/07/solved-warning-gnome-keyring-couldnt.html
leafpad notifies me I `can't open file to write` when I try to save it!

Please help, i just want to reduce the weight off of a video file.
« Last Edit: May 21, 2014, 10:45:24 am by damig »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: video file optimization using ffmpeg
« Reply #1 on: May 20, 2014, 05:30:09 pm »
Ignore the keyring message it's a red herring.

Have you got both ubuntu-restricted-extras and lubuntu-restricted-extras installed ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: video file optimization using ffmpeg
« Reply #2 on: May 20, 2014, 05:45:54 pm »
yes I do. but I suspect the winff gui very much. can't confirm now because of power failure to the laptop

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: video file optimization using ffmpeg
« Reply #3 on: May 20, 2014, 06:40:15 pm »
Do you still want help with this ?

If so, can you give us the your Peppermint version/architecture

IIRC WinFF always worked for me, but there was some weirdness with the settings  .. I'll take another look at it.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: video file optimization using ffmpeg
« Reply #4 on: May 21, 2014, 07:34:02 am »
sorry PCNetSpec, I was offline till now.
I can see winff needs exploration, (but the reason for existence of a gui is to make it intuitive, not throwing me crippled blanks as output) and if I have to, I prefer to invest in learning more about ffmpeg.
But as always, I'm sure you know more than I do, so please continue....
I use Peppermint 4, not sure where to check for Architecture
« Last Edit: May 21, 2014, 07:38:43 am by damig »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: video file optimization using ffmpeg
« Reply #5 on: May 21, 2014, 07:50:12 am »
The output from:
Code: [Select]
uname -a
will give you your architecture.

if it mentions x686 it's 32bit
if it mentions amd_64 it's 64bit
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: video file optimization using ffmpeg
« Reply #6 on: May 21, 2014, 07:51:11 am »
oh that, it's 32bit
Code: [Select]
damig@damig-Satellite-A75 ~ $ uname -a
Linux damig-Satellite-A75 3.8.0-35-generic #50-Ubuntu SMP Tue Dec 3 01:25:33 UTC 2013 i686 i686 i686 GNU/Linux

Offline rjm65

  • Veteran
  • ****
  • Posts: 1003
  • Karma: 300
  • I have Peppermint Fresh Breath. :P
    • View Profile
  • Peppermint version(s): Win-98 /Win-7/ Peppermint 9
Re: video file optimization using ffmpeg
« Reply #7 on: May 21, 2014, 08:18:16 am »
VLC in windows would convert to other formats, one was flash which is quite smaller then mpg...  Not sure if the VLC in linux works the same or not...
Robert
Peppermint 9 User

Gateway Solo 9300 Pro
IBM T40

Offline rjm65

  • Veteran
  • ****
  • Posts: 1003
  • Karma: 300
  • I have Peppermint Fresh Breath. :P
    • View Profile
  • Peppermint version(s): Win-98 /Win-7/ Peppermint 9
Re: video file optimization using ffmpeg
« Reply #8 on: May 21, 2014, 08:25:21 am »
Install it??? I thought it came installed on peppermint??? Maybe not, I run several different distros, but I thought they all had VLC out of the box....   ???
Robert
Peppermint 9 User

Gateway Solo 9300 Pro
IBM T40

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: video file optimization using ffmpeg
« Reply #9 on: May 21, 2014, 09:48:47 am »
winff works perfectly for me...

On the "Output Details" tab .. set

Convert to: MPEG-4
Preset: MPEG-4 H.264 video (high quality)
Output Folder: <your home folder>



Change to the "Video" tab

Enter your preferred resolution



Click "Apply Changes" (bottom right).

Add your video with the [+ Add] button .. click the [Convert] button.

I just converted a 20MB MPEG2 to a 92.3Kb MP4
« Last Edit: May 21, 2014, 10:05:40 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: video file optimization using ffmpeg
« Reply #10 on: May 21, 2014, 09:57:46 am »
ahh.... quite a different behavior

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: video file optimization using ffmpeg
« Reply #11 on: May 21, 2014, 10:06:57 am »
Personally I prefer winff's XviD codec/preset .. output files are "pretty much" as small as MP4, (IMHO) XviD gives better quality output .. and is compatible with the Xbox360
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline damig

  • Member
  • ***
  • Posts: 126
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): 5 (32), 7 (64)
Re: video file optimization using ffmpeg
« Reply #12 on: May 21, 2014, 10:59:59 am »
Thank you very much PCNetSpec! WinFF definetely worths further exploration thanks to you and my inexperience to look for the darn `apply changes` button.

The end result:
.mp4, 20MB, 300secs processing time

tried on VLC, my estimation was it will take 7hrs
« Last Edit: May 21, 2014, 11:05:36 am by damig »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: video file optimization using ffmpeg (SOLVED)
« Reply #13 on: May 21, 2014, 11:53:30 am »
You're welcome.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec