Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a video file which I don't remember where I got from that opens on mplayer/VLC (Linux) but does not open on VLC (Windows 7). VLC is the latest version (1.1.9) on both.

Here is the output of mplayer:

MPlayer 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing filename.flv.
libavformat file format detected.
[flv @ 0xfb5b60]invalid stream
[flv @ 0xfb5b60]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (unknown), -aid 0
[lavf] stream 1: video (h264), -vid 0
VIDEO:  [H264]  320x240  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 audiodatarate: 0
 audiosize: 0
 canSeekToEnd: true
 datasize: 5900880
 duration: 230
 framerate: 9
 hasAudio: false
 hasCuePoints: false
 hasKeyframes: true
 hasMetadata: true
 hasVideo: true
 height: 240
 lasttimestamp: 230
 metadatacreator: flvtool++ (Facebook, Motion project, dweatherford)
 totalframes: 2105
 videocodecid: 7
 videodatarate: 204
 videosize: 5866494
 width: 320
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
Unknown/missing audio format -> no sound
ADecoder init failed :(
Cannot find codec for audio format 0x0.
Audio: no sound
Starting playback...

VLC gives me the following error on Linux:

[0x2da56c0] main decoder error: no suitable decoder module for fourcc `undf'. VLC probably does not support this sound or video format.
[0x2da56c0] main decoder error: No suitable decoder module
[0x2da56c0] main decoder error: VLC does not support the audio or video format "undf". Unfortunately there is no way for you to fix this.

In the above output I've used cvlc but the error is the same. This error appears only on Ubuntu. When I try it on Windows, VLC just crashes. Also, despite giving that error message on Ubuntu, vlc plays the video fine.

Anyway, the file seems broken, but for some reason it works on some players. I was wondering how I could fix it. I tried using mplayer with the -dumpstream and -dumpfile switches but that just gave me another broken file. I also tried mencoder with -oac copy -ovc copy and got a file that wouldn't play anywhere. Tried using ffmpeg -i file.flv test.avi and got another error and a useless file.

I'm thinking the problem lies with that flvtool++ from the mplayer output, maybe it messed up the file header/metadata when the file was created. Not sure how to fix it though.

share|improve this question
Hello, this question has no information and activity for a very long time. I am closing it for now. If by any reason you think this question is still viable or useful in anyway or that there is still a good chance it will be answered please flag it to a moderator or add a comment with the reason(s) why you want it open. Regards – fossfreedom Feb 20 '12 at 23:41

closed as too localized by fossfreedom Feb 20 '12 at 23:42

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.