I have a feeling I'm asking a dumb question --- the kind that come when you know just enough to get confused --- but, here goes:
I was just converting a *.flv video with WinFF and noticed something that bothered me.
The reason I wanted to convert it was that (at least on my system) *.flv only plays when embedded in a web page. It won't play in Windows Media Player, nor will it play anywhere by double-clicking. What I noticed on converting to *.mp4 with WinFF was that the source codecs and the target codecs appeared to be the same: H.264 and AAC.
So my question is, is it possible to convert the container from *.flv to something usable, like *.avi or *.mp4, without re-encoding the video and audio? Or am I misunderstanding what containers and codecs actually are?
+ Reply to Thread
Results 1 to 13 of 13
-
-
Not all containers can contain all video and audio types or combinations. Many containers have specific restrictions, or if they do have workarounds, these may not be reliable or supported by all players or converters.
The simplest way to find out is to use something like Xvid4PSP or AVI Demux to try to swap containers. if your source has a combination that is not allowed then you will be able to alter just that stream (e.g. re-encode the audio) to suit.
Another alternative is to get a better player. Windows Media Player tends to be pretty limited in it's range of abilities. Installing FFDShow will allow it to play a wider range of formats, however there are far smarter players out there that will play pretty much anything. I like The KM Player, and use it to play FLV files off the HDD, as well as pretty much everything else I have. MPC HC or VLC are also pretty good.Read my blog here.
-
Originally Posted by guns1inger
Having discovered that the *.mp4 file I created with WinFF wouldn't open in Windows Media Player anyway, I decided to try creating a new preset in WinFF for an AVI, using the FFmpeg command line:
-f avi -vcodec copy -acodec copy
which, at first, looked like it worked: the processing time was very fast, making it clear that it had done a direct stream copy without decoding and re-encoding the video and audio streams.
Unfortunately, while the resulting *.avi plays perfectly in the WinFF player, it crashes Windows Media Player with no explanation, just the "Would you like to send a report to Microsoft?" dialog.
My primary reason for wanting to stick with Windows Media Player is practical portability. Yes, I realize that at a deeper level, Microsoft Windows is the assassin of portability. Still, as a practical matter, what will play either out-of-the-box or with at most an automated codec download on any XP-or-later Windows system, I can expect to play almost anywhere. Unfair, but true. QuickTime is pretty ubiquitous as well, but much of what I already have won't play on it, and if the library and playlist features of WMP11 are there, I sure don't see them. -
Originally Posted by usta
-
Another thing you could try is using FLV Extract to demux the video and audio streams in the FLV, and then have AVIDemux (with both audio and video set to Copy) remux them into an .mp4.
If cameras add ten pounds, why would people want to eat them? -
Originally Posted by Ai Haibara
Also if avidemux complained about the audio in .flv while directly opening it , it might be a good idea to identify exactly what the streams are first. i.e. use mediainfo
My primary reason for wanting to stick with Windows Media Player is practical portability. Yes, I realize that at a deeper level, Microsoft Windows is the assassin of portability. Still, as a practical matter, what will play either out-of-the-box or with at most an automated codec download on any XP-or-later Windows system, I can expect to play almost anywhere. Unfair, but true. QuickTime is pretty ubiquitous as well, but much of what I already have won't play on it, and if the library and playlist features of WMP11 are there, I sure don't see them.
The library system of vlc, mpchc and kmplayer might not be as comprehensive as WMP11, but they support way more types of codecs/formats with none of the fiddling around like you are doing now. They play "right out of the box", although mpchc sometimes needs some configuration of internal filters. kmplayer nad mpchc do have playlists. -
Hello, I'm just a regular gal...no real knowledge about this stuff, but want to convert a flv file to avi for the same reason as you...to play on windows media player. I found an old post that recommended using Riva software. I followed the instructions to a T, but got the message: encoding failed due to not supported combinatino of parameters or not supported codec.
did you ever figure out how to do this, or know what that error message means? thanks. -
Just install a player that will play FLV files...
MPC-HC
VLC
FLV Player 2.0
applian FLV Player
http://www.applian.com/flvplayer/download_flv_player.php -
Yes, I have RealPlayer but i want to be able to watch the videos with Windows MediaPlayer.
-
Install ffdshow and a FLV file splitter.
See http://www.afterdawn.com/guides/archive/how_to_play_flv_files.cfm. -
I usually open the FLV files into VirtualDub (there is a good input filter for FLV) and then choose direct stream copy and save the file(s) as AVI.
Works perfectly.
Sometimes it is good to reencode the audio, but there is no lowering of the video quality - no reencode.
FFmpeg could be a good choice to similar WEBM convert - thx for the suggestion, I tried:
ffmpeg -i x.webm -f avi -vcodec copy -acodec copy x.avi
...but the resulting file jumps from 29MB (WEBM) to 658MB (AVI) - obviously the avi contained did not like the VP8 video:
Duration: 00:09:53.96, start: 0.000000, bitrate: 395 kb/s
Stream #0:0: Video: vp8, yuv420p, 480x360, SAR 1:1 DAR 4:3, 29.97 fps, 29.97
tbr, 1k tbn, 1k tbc (default)
Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
Output #0, avi, to 'x.avi':
Metadata:
ISFT : Lavf55.0.100
Stream #0:0: Video: vp8 (VP80 / 0x30385056), yuv420p, 480x360 [SAR 1:1 DAR 4
:3], q=2-31, 29.97 fps, 59.94 tbn, 59.94 tbc (default)
Stream #0:1: Audio: vorbis (oV[0][0] / 0x566F), 44100 Hz, stereo (default)
Stream mapping:
Suxx, but I get the video in 480x360 resolution, not the crappy 320x240 one (saved from YewTube in mp4 as 320x240, only in webm is the 480x360 resolution). So after some work (audio does not work, so I took it from the webm file (ffmpeg -i x.webm -vn -f wav x.wav) encoded it (lame -q 0 -b 128 -m j --lowpass 19.5 x.wav x.mp3) and then used as "audio from other file" in VirtualDub) and opening the file using the DirectShow codec (because I can play the resulted avi it in BSplayer, yet slowly and w/o audio) - I was finally able to pick the piece I wanted from the video with the highest resolution possible.
Sadly I have to reencode the VP8 to Xvid"I believe that all the people who stand to profit by a war and who help provoke it should be shot on the first day it starts..." - Hemingway :) my config -
No need to open a five year old thread. Better to start a new thread. Things have changed in the last five years and most flv are just h264/aac in an flv container which can be fixed with ffmpeg. I usually put all these h264/aac flv in a separate folder with ffmpeg and use this .bat file to place the streams in an mp4 container which they were meant to be in...
Code:for %%a in ("*.flv") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.mp4" pause
Similar Threads
-
Convert container only
By azfarhus in forum Video ConversionReplies: 4Last Post: 18th Apr 2012, 11:09 -
Remove the mkv container(or convert) to reduce lag
By JoeJoeJoe in forum Video ConversionReplies: 10Last Post: 21st Jul 2010, 16:05 -
How can I extract mp3 audio from .mov container without re-encoding?
By Danteism in forum MacReplies: 16Last Post: 3rd Jul 2010, 04:11 -
Anamorphic encoding to 3gp container
By avreader1 in forum Video ConversionReplies: 2Last Post: 13th Mar 2010, 19:41 -
convert mkv(2audio/2txt) to mp4 or other container
By felix in forum Video ConversionReplies: 3Last Post: 14th May 2009, 08:04