WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ffmpeg  (Read 15063 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
ffmpeg
« on: March 11, 2009, 09:16:48 PM »
Thanks to  jls_legalize we now have ffmpeg:

Code: [Select]
Title:          ffmpeg.tce
Description:    a complete, cross-platform solution to record, convert and stream
                audio and video
Version:        SVN-r589
Author:         
Original-site:  http://ffmpeg.org/index.html
Copying-policy: LGPL
Size: 672K
Extension_by:   jls_legalize (unsenepopiu at tin dot it)
Comments:       ffmpeg is a command line tool to convert multimedia files between
                formats. Works also with amv.
PPI compatible
Current: 2009/02/26

Code: [Select]
Title:          ffmpeg.tcz
Description:    a complete, cross-platform solution to record, convert and stream
                audio and video
Version:        SVN-r589
Author:         
Original-site:  http://ffmpeg.org/index.html
Copying-policy: LGPL
Size: 672K
Extension_by:   jls_legalize (unsenepopiu at tin dot it)
Comments:       ffmpeg is a command line tool to convert multimedia files between
                formats. Works also with amv
PPI copatible
Current: 2009/02/26

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: ffmpeg
« Reply #1 on: April 02, 2009, 02:57:15 PM »
JLS,
Do you still have the development files for this extension?  It would be good to have a ffmpeg-devs extension to build against.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: ffmpeg
« Reply #2 on: April 07, 2009, 08:35:39 AM »
How do I make ffmpeg-devs?
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: ffmpeg
« Reply #3 on: April 07, 2009, 09:09:58 AM »
When building simply keep the headers, pkgconfig files and .a and .la files and stuff like that.  Building VLC is what I had in mind and it requires libavcodec libraraies and all.  Since this appears to be a static build, very small and fitting for TC for a standalone ffmpeg, perhaps a dynamic built ffmpeg extension could exist to be used to build media players against. 

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: ffmpeg
« Reply #4 on: April 08, 2009, 02:20:01 PM »
ffmpeg has been updated:

Code: [Select]
Title:          ffmpeg.tce
Description:    a complete, cross-platform solution to record, convert and stream
                audio and video
Version:        SVN 2009/04/07
Author:         
Original-site:  http://ffmpeg.org/index.html
Copying-policy: LGPL
Size: 2.01M
Extension_by:   jls_legalize (unsenepopiu at tin dot it)
Comments:       ffmpeg is a command line tool to convert multimedia files between
                formats.
                *****alsa doen't need to be running*****
Change-log: 2009/02/26
Current: 2009/04/07 updated

Code: [Select]
Title:          ffmpeg.tcz
Description:    a complete, cross-platform solution to record, convert and stream
                audio and video
Version:        SVN 2009/04/07
Author:         
Original-site:  http://ffmpeg.org/index.html
Copying-policy: LGPL
Size: 2.01M
Extension_by:   jls_legalize (unsenepopiu at tin dot it)
Comments:       ffmpeg is a command line tool to convert multimedia files between
                formats.
                *****alsa doen't need to be running*****
Change-log: 2009/02/26
Current: 2009/04/07 updated


Offline mcewanw

  • Full Member
  • ***
  • Posts: 102
Re: ffmpeg: how to convert mp4 to mp3?
« Reply #5 on: June 23, 2009, 03:53:52 AM »
I'm trying to convert some mp4 videos to mp3 (to extract the sound)

I have ffmpeg and lame (tcz) extensions.

Tried, the following:

ffmpeg -i myfile.mp4 -vn -acodec libmp3lame -ab 128000 output.mp3
[apparently that is how someone does it on Puppy Linux; I've still to try on that, but want to use TC!]

and received the following error message:

Code: [Select]
FFmpeg version SVN-r18347, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration:  --prefix=/usr/local
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.25. 0 / 52.25. 0
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Apr  7 2009 13:48:16, gcc: 4.2.2

Seems stream 1 codec frame rate differs from container frame rate: 60.00 (60/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'myfile.mp4':
  Duration: 00:03:05.15, start: 0.000000, bitrate: 440 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
    Stream #0.1(und): Video: h264, yuv420p, 480x360 [PAR 1:1 DAR 4:3], 30 tbr, 30 tbn, 60 tbc
Unknown encoder 'libmp3lame'

I do have libmp3lame.so in /usr/local/lib

Any ideas why it won't work? Is ffmpeg not compiled to support libmp3lame [I know nothing about ffmpeg compilation]?

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: ffmpeg
« Reply #6 on: June 23, 2009, 04:24:02 AM »
maybe:

ffmpeg -i yourvideofile.mp4 -ab 128k yoursoundfile.mp3 (note: 128k is the bit rate, feel free to change it)

alternatively (with mplayer nogui):

mplayer -vo null -dumpaudio -dumpfile /youraudio.mp3 /yourvideo.mp4

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: ffmpeg
« Reply #7 on: June 29, 2009, 06:13:26 AM »
The line you tried with ffmpeg would have re-encoded the sound, losing quality. Mplayer used as above only separates the existing stream.
The only barriers that can stop you are the ones you create yourself.

Offline mwhit95

  • Newbie
  • *
  • Posts: 16
Re: ffmpeg
« Reply #8 on: June 30, 2009, 02:36:25 PM »
I have been using ffmpeg too and ran into the same problem with mp3.  Most of the time I am able to use the -acodec copy converting the flv files.   What you might use is the map option to take the audio to a wav file and then convert it with lame.  This is a good webpage that shows ways to do it:

ffmpeg how tohttp://howto-pages.org/ffmpeg/

Offline soundcheck

  • Newbie
  • *
  • Posts: 46
Re: ffmpeg
« Reply #9 on: July 15, 2009, 03:50:05 PM »
Is anybody working on the .devs? (For TC2.2) ;)