PDA

View Full Version : Help Playing .flv file


cmw
14th September 2008, 10:37
Hi there!

I recorded a flv stream from RTMP and now have the following problem: I cannot open the file with DirectShowPlayers. I have flvsplitter installed of course and can play other flv files.

This one is a bit different though since it's recorded from rtmp and also has h264 (all my other flv have h263). Mediainfo:


General
Complete name : C:\Dokumente und Einstellungen\Sebio Dichtbringer\Eigene Dateien\My Recordings\bla.flv
Format : Flash Video
File size : 60.8 MiB

Video
Format : AVC
Format/Info : Advanced Video Codec
Frame rate mode : Variable

Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Resolution : 16 bits
Video delay : 60ms


For decoding I use ffdshow, however it doesn't kick in. When trying to play e.g. with MPC it tells me:


Media Type 0:
--------------------------
Unknown

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: Unknown GUID Name {F2FAC0F1-3852-4670-AAC0-9051D400AC54}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0


Media Type 1:
--------------------------
Unknown

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0


VLC fails to play the file aswell, graphedit fails to build a graph (works good with other flv files though).
However it gets played back properly by FLV Player 2.0, but the Quality is inferior there and I don't like to use multiple programs, so please help me on getting this thing to run with DirectShow :)

clsid
14th September 2008, 13:51
The FLV Splitter does not support H.264/AAC at this moment.

smok3
14th September 2008, 14:13
you could probably serv via avisynth/ffmpegsource, or use mplayer (mpui) for playback. The other option would be to try to remux to mp4... (dunno what tool would do that).

cmw
14th September 2008, 14:48
Mplayer cannot playback the file either.

The basic question just is: Is there ANY way to remux (not re-encode, it would be to lossy) the h264 stream inside the file?
mkvmerge doesn't support flv, flvextractor doesn't handle h264, flv splitter doesn't handle h264, so mhhh?

Also didn't work with avisynth... tells me "couldn't find stream information" using this script:


ffmpegsource(source="c:\2000.flv",vtrack=-1,atrack=-1)


anything wrong with that?

Placio74
14th September 2008, 23:11
Any sample file or link to source?

Latest FFmpeg SVN builds support FLV with AVC.

Try FFmpeg r15302 from here (http://www.razorbyte.com.au/ffmpeg/).

Can try latest MPlayer/MEncoder SVN build too...

cmw
15th September 2008, 06:16
I compiled newest ffmpeg and it didn't work.

I used a rtmp ripper to record this stream: http://www.blacksymphony.nl/osh.html
For your convenience, I uploaded the file here: http://rapidshare.com/files/145375688/2000.flv.html (85 MB)

I also ran into this thread where someone had a similar problem http://forum.doom9.org/showthread.php?t=139540
I was able to extract the audio from his sample like he descried using ffmpeg -i 2000.flv -vn -acodec dopy audio.aac
However, when I remux vidoe e.g. using fffmpeg -i 2000.flv -an -vcodec copy video.mp4, the resulting file plays BUT is extremely jump/unusable.
Extracting to a raw 264 stream results in that it is unmuxable (tried with mp4box and mkvmerge).
And that was with his file.

With my own file, I can neither extract/remux audio nur video in any way.

[flv @ 0x3a600]Could not find codec parameters (Video: h264)
[flv @ 0x3a600]Could not find codec parameters (Audio: 0x0000, 48000 Hz, 0 channels, s16)
c:\2000.flv: could not find codec parameters


Also, when I use ffplay with his file it will play (too slow and without sound and will instantly crash ffplay) while my file won't open at all.

This is true for both my own ffmpeg build and the one you supplied (thanks for that btw).
I quite don't know what else to do :( Normally I would assume that somehow the rtmp rip is a broken file, but it still plays fine in flvplayer.

BlueCop
29th September 2008, 19:28
the only way i have got this to work is by using ffmpeg to remux to mp4 like this.

ffmpeg -i INPUT.flv -vcodec copy -acodec copy OUTPUT.mp4

I use mp4box to demux each stream. It was the only way i could get a useable h264 file.

mp4box -raw 1 OUTPUT.mp4
mp4box -raw 2 OUTPUT.mp4
those commands will dump OUTPUT_track1.h264 and OUTPUT_track2.aac

I then remux them into mkv files with mkvtoolnix because my sigma based player has great support for it.

You could also remux with mp4box and get a good mp4.

remember you need to set the correct framerate when muxing h264 video.

You can load the mp4 from ffmpeg directly into mkvmerge but i had a few issues so i just demux and then mux into mkv and i don't have any problems

I hope this helps

Reimar
30th September 2008, 22:48
Extracting to a raw 264 stream results in that it is unmuxable (tried with mp4box and mkvmerge).


For H.264 you will often have to use the h264_mp4toannexb bitstream filter.
I don't know anything concerning your other problem though.

Eric1042
13th October 2008, 04:01
I am play flv files with Aunsoft FLV Player,
It support h264/AAC, very easy to use,
free software, More about this player:
http://www.aunsoft.com/flv-player/
More, It has a playlist.

Placio74
14th October 2008, 09:19
I am play flv files with Aunsoft FLV Player, ...
Hmm... yes.
And of course any other player which used Adobe Flash components, too.

hoboX10
21st October 2008, 06:01
Why would you put AVC/AAC into a .flv file?

draggoon01
3rd November 2008, 21:28
Why would you put AVC/AAC into a .flv file?

adobe updated their flash video format to support the new codecs. some websites have started using the newer codecs which is causing a problem for people since there is no splitter for it