INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
Converting files to FLV

Forum Index -> ffmpegX -> ffmpegX general discussion Printer-friendly version
Reply to topic
Author Message
sadr
Member


Joined: 29 Jan 2008
Location: Canada

Post Posted: Jan 29, 2008 12:35 Posts Comp View users profile Send private message Reply with quote

I have just installed the software and all components. I THINK i installed the flv component through terminal. Not a pro at terminal...

I tried converting a mov file to flv

it exported but the flv file was only zero KB

so, i assume it didnt work.

any help? any way to know if it actually installed properly?

thanks yall
scott


Case
Explorer


Joined: 04 Feb 2004
Location: Middle Earth

Post Posted: Jan 29, 2008 14:58 Posts Comp View users profile Send private message Reply with quote

sadr wrote:
the flv file was only zero KB
Could you post the Process Information ("the log") here?
You can access that by pressing the blue "i" in the Progress window, after a (successful or failed) conversion.
That would help diagnose the issue.


sadr
Member


Joined: 29 Jan 2008
Location: Canada

Post Posted: Jan 29, 2008 16:21 Posts Comp View users profile Send private message Reply with quote

here is what it said:

Encoding started on Tue Jan 29 17:26:23 EST 2008
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/*scott/*KidKoala/video/mexico_vids/small/kidkoala_dub_mexico.mov':
Duration: 00:04:15.0, start: 0.000000, bitrate: 5400 kb/s
Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream #0.1(eng), 29.97 fps(r): Video: h261, yuv420p, 352x264
Codec type mismatch for mapping #0.0 -> #0.0


Case
Explorer


Joined: 04 Feb 2004
Location: Middle Earth

Post Posted: Jan 29, 2008 17:19 Posts Comp View users profile Send private message Reply with quote

sadr wrote:
Stream #0.0: Audio
Stream #0.1: Video
Codec type mismatch for mapping #0.0 -> #0.0
If the audio stream is listed before the video stream, then a "Codec type mismatch for mapping"-error can happen, as ffmpeg expects the streams video first, audio second. The solution is to set the "Invert mapping" checkbox in the Audio tab.

sadr
Member


Joined: 29 Jan 2008
Location: Canada

Post Posted: Jan 30, 2008 10:49 Posts Comp View users profile Send private message Reply with quote

ok. so i did this. Now it did export and it became 8.2 mb in size. i opened in flash player but nothing happened. here is the info

FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
Wed Jan 30 11:23:22 EST 2008
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/*scott/*KidKoala/video/mexico_vids/small/kidkoala_dub_mexico.mov':
Duration: 00:04:15.0, start: 0.000000, bitrate: 5400 kb/s
Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream #0.1(eng), 29.97 fps(r): Video: h261, yuv420p, 352x264
Output #0, flv, to '/*scott/*KidKoala/video/mexico_vids/small/kidkoala_dub_mexico.mov.ff.flv':
Stream #0.0, 29.97 fps(c): Video: flv, yuv420p, 352x264, q=2-15, 200 kb/s
Stream #0.1: Audio: mp3, 22050 Hz, stereo, 56 kb/s
Stream mapping:
Stream #0.1 -> #0.0 [sync #0.0]
Stream #0.0 -> #0.1 [sync #0.1]
[h261 @ 0x54340c]warning: first frame is no keyframe
bench: utime=25.240s
video:1835kB audio:1744kB global headers:0kB muxing overhead 135.029176%
/bin/sh: /Applications/ffmpegX.app//Contents/Resources/flvtool2: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory


Case
Explorer


Joined: 04 Feb 2004
Location: Middle Earth

Post Posted: Jan 30, 2008 16:40 Posts Comp View users profile Send private message Reply with quote

sadr wrote:
/bin/sh: /Applications/ffmpegX.app//Contents/Resources/flvtool2: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory

Apparently, the installation of FLVtool2 didn't go well.
Try installing that again.

I was wrong, see two posts down.


Last edited by Case on Feb 01, 2008 08:45, edited 1 time in total


fap
Member


Joined: 01 Feb 2008
Location: Germany

Post Posted: Feb 01, 2008 04:03 Posts View users profile Send private message Reply with quote

hi...

i have the same problem...
i reinstalled the flvtool2 again and again...
but the created flv file is corrupted and bad...

here is the info file...
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5597b8]negative ctts, ignoring
Fri Feb 1 10:56:04 CET 2008
Users/photo_mac/Movies/Final-Cut-Projects/Play-the-game/ptg.mov':
Duration: 00:03:38.4, start: 0.000000, bitrate: 33492 kb/s
Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream #0.1(eng), 25.00 fps(r): Video: h264, yuv420p, 720x576
Output #0, flv, to '/Users/photo_mac/Movies/Final-Cut-Projects/Play-the-game/ptg.mov.ff.mp4.flv':
Stream #0.0, 12.00 fps(c): Video: flv, yuv420p, 432x240, q=2-9, 700 kb/s
Stream #0.1: Audio: mp3, 22050 Hz, stereo, 56 kb/s
Stream mapping:
Stream #0.1 -> #0.0 [sync #0.0]
Stream #0.0 -> #0.1 [sync #0.1]
bench: utime=99.826s
video:9380kB audio:1493kB global headers:0kB muxing overhead 65.477275%
/bin/sh: /Applications/ffmpegX.app//Contents/Resources/flvtool2: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory

where is the problem???

i also find some other bugs...

please help......


best regards from germany...


Case
Explorer


Joined: 04 Feb 2004
Location: Middle Earth

Post Posted: Feb 01, 2008 08:26 Posts Comp View users profile Send private message Reply with quote

sadr wrote:
/bin/sh: /Applications/ffmpegX.app//Contents/Resources/flvtool2: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory

fap wrote:
/bin/sh: /Applications/ffmpegX.app//Contents/Resources/flvtool2: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory


It seems the script inside /Applications/ffmpegX.app//Contents/Resources/flvtool2
points to
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
while on my system (10.4.11), and maybe yours as well, it should point to
/usr/bin/ruby
because that's where ruby resides on my system.
You can edit that in any text editor. (I did it with BBEdit.) The "bad interpreter: No such file or directory"-error no longer appears in the log. This fixes the metadata being correctly added to the .flv file.
With the wrong path in the script, you should get a valid .flv file without the metadata, just like the previous version of ffmpegX.

It won't fix bad or corrupted .flv files.


Last edited by Case on Feb 01, 2008 08:38, edited 1 time in total


Case
Explorer


Joined: 04 Feb 2004
Location: Middle Earth

Post Posted: Feb 01, 2008 08:33 Posts Comp View users profile Send private message Reply with quote

sadr wrote:
i opened in flash player but nothing happened.

Flash Player plays .swf files, not .flv files, afaik.
.flv files play in VLC, mplayer or QuickTime Player with Perian.

To embed .flv files in webpages, playable with the Flash plugin,
you should install an .swf media player that links to the .flv file.
I've had good results with JW FLV Media Player.


maltePORN
Member


Joined: 26 Mar 2008
Location: Germany

Post Posted: Mar 28, 2008 09:57 Posts View users profile Send private message Reply with quote

Case wrote:
sadr wrote:
/bin/sh: /Applications/ffmpegX.app//Contents/Resources/flvtool2: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory

fap wrote:
/bin/sh: /Applications/ffmpegX.app//Contents/Resources/flvtool2: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory


It seems the script inside /Applications/ffmpegX.app//Contents/Resources/flvtool2
points to
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
while on my system (10.4.11), and maybe yours as well, it should point to
/usr/bin/ruby
because that's where ruby resides on my system.
You can edit that in any text editor. (I did it with BBEdit.) The "bad interpreter: No such file or directory"-error no longer appears in the log. This fixes the metadata being correctly added to the .flv file.
With the wrong path in the script, you should get a valid .flv file without the metadata, just like the previous version of ffmpegX.

It won't fix bad or corrupted .flv files.


Hello,
how can I access /Applications/ffmpegX.app//Contents/Resources/flvtool2 ?

In applications I only see ffmpegX.app and this starts the application. sad.gif

Normally I am working with windows, but a friend has a new mac book pro.

Please help me, thank you.


Case
Explorer


Joined: 04 Feb 2004
Location: Middle Earth

Post Posted: Mar 28, 2008 15:11 Posts Comp View users profile Send private message Reply with quote

Control-click the application and choose Show Package Contents from the contextual menu, to "open up" the application. Inside, you'll see a Contents folder, inside that a Resources folder, inside that a file called flvtool2.

maltePORN
Member


Joined: 26 Mar 2008
Location: Germany

Post Posted: Apr 05, 2008 08:00 Posts View users profile Send private message Reply with quote

Now I changed the destination of script, but this "LoadError" comes.. do yo have a solution for that?
I hope you will not get impatient with me.. redface.gif

Thx for your help!

Quote:
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/RSPB/Desktop/Michael Picard Konzert SiebenGiebelHof Drenkow 02-08.m4v':
Duration: 00:12:26.9, start: 0.000000, bitrate: 1602 kb/s
Stream #0.0(eng), 25.00 fps(r): Video: h264, yuv420p, 640x480
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
Output #0, flv, to '/Users/RSPB/Desktop/Michael Picard Konzert SiebenGiebelHof Drenkow 02-08.m4v.ff.flv':
Stream #0.0, 12.00 fps(c): Video: flv, yuv420p, 640x480, q=2-15, 200 kb/s
Sat Apr 5 13:59:25 CEST 2008
, stereo, 56 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
video:17884kB audio:5048kB global headers:0kB muxing overhead 2.536927%
bench: utime=79.384s
/Applications/ffmpegX_0.0.9y/ffmpegX.app//Contents/Resources/flvtool2:2:in `require': no such file to load -- flvtool2 (LoadError)
from /Applications/ffmpegX_0.0.9y/ffmpegX.app//Contents/Resources/flvtool2:2


Case
Explorer


Joined: 04 Feb 2004
Location: Middle Earth

Post Posted: Apr 05, 2008 08:35 Posts Comp View users profile Send private message Reply with quote

maltePORN wrote:
Now I changed the destination of script, but this "LoadError" comes.. do yo have a solution for that?
Did you install the FLVtool2 (a separate download) correctly, as described in the 0.0.9y announcement and on the ffmpegX website?

It should be installed to /usr/bin/ (where many other command line tools reside, including 'ruby'). This is a totally different file from the one inside ffmpegX.

Either your file isn't there, or does not have the proper attributes to make it a command line executable. You need to do the four Terminal commands exactly right.


maltePORN
Member


Joined: 26 Mar 2008
Location: Germany

Post Posted: Jun 14, 2008 04:44 Posts View users profile Send private message Reply with quote

Thx for alle the help, but now I changed simply the output format to mp4 wink.gif

greets


Reply to topic All times are GMT - 6 Hours
Forum Index -> ffmpegX -> ffmpegX general discussion Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics