I want to convert a Flash file, which has H264 video and AAC audio tracks into an MP4 file without transcoding. The problem is that whenever I select any of the MP4 or H264 options and select 'Passthrough' for both video and audio the output format defaults to AVI, which isn’t what I want. Also, when I select 'Passthrough', I sometimes get a message saying 'AppleScript Error. Can't make "" into type number. (1700)'. Any suggestions would be appreciated. Thanks!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
Results 1 to 17 of 17
Thread
-
-
You could also try avidemux for mac os, open flv, under audio and video choose copy, save as mp4.
-
MP4Box command line can do that.
Code:MP4Box -add source.flv target2.mp4
You can even use the MP4box from within ffmpegX.Code:/Applications/ffmpegX.app/Contents/Resources/mp4box -add ~/Desktop/source.flv ~/Desktop/target2.mp4
Originally Posted by raywhite
Originally Posted by raywhite
This error can also happen if "Video Bitrate" (in the Video tab) is the selected field on some specific conversion where the bitrate is not relevant. When setting the focus on another field, this error may not happen.Last edited by Case; 12th Jan 2012 at 12:03.
-
Many thanks, but not too successful with me, I'm afraid. First of all it said 'error: cannot create the usr/local/bin MP4Box', so I installed MP4Box manually. That fixed that problem, but it doesn’t seem to convert at all. It says 'unknown input file type: corrupted data in file stream' with three Flash FLV files, including the bars and tone file at http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
-
Thanks for the report. I'll have to add a check for that.
Originally Posted by raywhite
Windy 50s Mobility Scooter Race: On2 TrueMotion VP6 video with mp3 audio. MP4Box has no support for On2 VP6.
Windy 50s Mobility Scooter Race (56K): On2 TrueMotion VP6 video with mp3 audio. MP4Box has no support for On2 VP6.
Sorry, these files are not the H.264 videos I was expecting.
-
Ah, well spotted on those. I don't even know what VP6 is!!!
Here's a report from another file that also doesn’t work:
* * * Media Inspector 0.7.443 file analysis report.
* * * Media Inspector is ©2011 by Diego Massanti - http://mediainfo.massanti.com
* * * MediaInfoLib by Jerome Martinez - http://mediainfo.sourceforge.net
Created on: 15 Jan 2012 15:15:33 GMT
Report for file: david bowie fame starman monoslapper bootleg mix.flv
General / Container Stream #1
Total Video Streams for this File.................1
Total Audio Streams for this File.................1
Video Codecs Used.................................AVC
Audio Codecs Used.................................AAC LC
File Format.......................................Flash Video
Play Time.........................................3mn 35s
Total File Size...................................20.1 MiB
Total Stream BitRate..............................782 Kbps
Video Stream #1
Codec (Human Name)................................AVC
Codec (FourCC)....................................7
Codec Profile.....................................Main@L 2.1
Frame Width.......................................480 pixels
Frame Height......................................360 pixels
Frame Rate........................................25.000 fps
Total Frames......................................5375
Display Aspect Ratio..............................4:3
Scan Type.........................................Progr essive
Color Space.......................................YUV
Codec Settings (Summary)..........................CABAC / 3 Ref Frames
Codec Settings (CABAC)............................Yes
Codec Settings (Reference Frames).................3
Video Stream Length...............................3mn 35s 0ms
Bit Depth.........................................8 bits
Audio Stream #1
Codec............................................. AAC
Codec (FourCC)....................................10
Audio Stream Length...............................3mn 34s 947ms
Number of Audio Channels..........................2
Audio Channel's Positions.........................Front: L R
Sampling Rate.....................................44.1 KHz
Thanks again for your efforts!
-
PS: Are you saying that MP4Box requires the Flash to contain H264 data, not even AVC or AAC?
-
Could you point me to such a file, as I had no luck in finding such a file myself, i.e. one that has these properties _and_ failed.
Not exactly.
H.264 and AVC (and MPEG-4 part 10) are commonly used to mean the same thing (Wiki): a video codec.
AAC is an audio codec, also part of the MPEG-4 specification.
MP4Box can handle the various raw formats (codecs) and containers (file formats) as described in the documentation. H.264 is just one of them, although probably the most important one.
Maybe such a file needs to be split first into a separate video stream and audio stream, but I would need to do some testing with a proper sample file, to be sure.
-
Report for file: david bowie fame starman monoslapper bootleg mix.flv
(Google spits this out )
http://www.youtube.com/watch?v=zgaACOnwkvY&list=FLy3xnSnyhJCXiIuMvQ5KAvA&index=81&feature=plpp_video
-
Thanks, Case. I thought they were the same thing, but wasn’t too sure!
Thanks poisondeathray, that's the one, so if you fancy looking at it Case, there it is! I've looked at this:
http://gpac.wp.institut-telecom.fr/mp4box/mp4box-documentation/
and it doesn’t mention .flv as a container file that MP4Box can handle, so perhaps that's the problem...
-
I couldn't get MP4Box to work on that FLV, so I tried a new, pre-compiled ffmpeg, as the older binaries were not so good at muxing MP4. (This was one of the reasons why the developer of ffmpegX uses mp4box internally.)
Code:ffmpeg -i foo.flv -vcodec copy -acodec copy foo.mp4
Could you check if that file works for you?
-
Sorry about the slow reply. Yes, the new ffmpeg fixes the problem completely. In fact, I wrote this AppleScript script to convert selected files, based on it:
tell application "Finder"
set theSel to selection
repeat with theFile in theSel
set theName to name of theFile
set theName to strings 1 thru ((offset of "." in theName) - 1) of theName
set theFile to theFile as text
set theFile to POSIX path of theFile
set outFile to path to desktop
set outFile to POSIX path of outFile
set outFile to outFile & theName & ".mp4"
do shell script "/usr/local/bin/ffmpeg -i " & quoted form of (theFile) & " -vcodec copy -acodec copy " & quoted form of (outFile)
end repeat
end tell
Many thanks for your help!
Similar Threads
-
Problem with video passthrough codec
By Modemserf in forum ffmpegX general discussionReplies: 0Last Post: 19th Jan 2010, 22:01 -
Problem with my flash player
By freestyler9 in forum ComputerReplies: 1Last Post: 3rd Sep 2009, 07:21 -
Problem with a Flash Drive
By The Monkees in forum ComputerReplies: 5Last Post: 19th Nov 2007, 17:42 -
Flash audio problem
By Digiface in forum AudioReplies: 8Last Post: 1st Aug 2007, 19:19 -
DVD Menu Flash problem
By jcubz in forum Newbie / General discussionsReplies: 10Last Post: 15th May 2007, 22:26