[Vnc2swf-users] Unable to export flv to common format using edit.py or converting flv with ffmpeg
Status: Alpha
Brought to you by:
euske
From: Kristian E. H. <kri...@gm...> - 2007-11-29 12:06:26
|
I would like to get an MPG video in the end. I have done this many times with lots of other software and flv files on Linux using either ffmpeg or mencoder. However, it appears to me that the FLV export feature of vnc2swf outputs a non-standard FLV video. I do wonder why neither ffmpeg nor mencoder will decode the FLV to something else, but it detects the video stream as unknown. VLC also fails to open the video stream, but plays the audio stream nicely. Anyways, here's some output from some of my failed attempts... khermans@hermbuntu-desktop:~/foss/pyvnc2swf-0.9.3/pyvnc2swf$ python edit.py -d -t mpeg -a /home/khermans/Music/14\ -\ Paperback_Bible.mp3 -o /tmp/CEPT/iacrb_prac2.mpg /tmp/CEPT/iacrb_prac2.swf Using pygame 1.7.1release Reading mp3 file: /home/khermans/Music/14 - Paperback_Bible.mp3... Input movie: version=5, size=1024x768, framerate=12fps, frames=1026, duration=85.5s. Output movie size: 1024x768 Scanning source swf file: /tmp/CEPT/iacrb_prac2.swf... Creating MPEG: '/tmp/CEPT/iacrb_prac2.mpg': codec=mpeg2video, size=1024x768, framerate=12.0 Traceback (most recent call last): File "edit.py", line 244, in <module> if __name__ == "__main__": sys.exit(main(sys.argv[1:])) File "edit.py", line 239, in main mp3seek=mp3seek, mp3skip=mp3skip) File "edit.py", line 86, in reorganize builder.build(r) File "/home/khermans/foss/pyvnc2swf-0.9.3/pyvnc2swf/output.py", line 999, in build self.start() File "/home/khermans/foss/pyvnc2swf-0.9.3/pyvnc2swf/output.py", line 942, in start self.stream.open() File "/home/khermans/foss/pyvnc2swf-0.9.3/pyvnc2swf/output.py", line 767, in open 'id': vcodec.getCodecID(self.mpeg_codec), AttributeError: 'NoneType' object has no attribute 'getCodecID' ** OR ** khermans@hermbuntu-desktop:/tmp/CEPT$ file iacrb_prac2.flviacrb_prac2.flv: Macromedia Flash data, version 7 khermans@hermbuntu-desktop:/tmp/CEPT$ ffmpeg -i iacrb_prac2.flv iacrb_prac2.mpg FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr libavutil version: 1d.49.3.0 libavcodec version: 1d.51.38.0 libavformat version: 1d.51.10.0 built on Jun 3 2007 20:59:25, gcc: 4.1.3 20070528 (prerelease) (Ubuntu 4.1.2-9ubuntu2) Input #0, swf, from 'iacrb_prac2.flv': Duration: 00:03:48.0, start: 0.000000, bitrate: 192 kb/s Stream #0.0: Audio: mp3, 44100 Hz, stereo, 192 kb/s Stream #0.1: Video: 0x0000, 12.00 fps(r) picture size invalid (0x0) So how can I get this video into some standard MPG format? I wonder why the Mozilla flash plugin can play this seemingly corrupted FLV video that vnc2swf generates. Any ideas? -- Kristian Erik Hermansen "I have no special talent. I am only passionately curious." |