Can't do simple flash video --> flash video conversion

Bug report and feature request
Post Reply
CJS
Beginner
Beginner
Posts: 5
Joined: Mon Jan 14, 2008 4:50 am

Can't do simple flash video --> flash video conversion

Post by CJS » Sat Feb 02, 2008 1:10 am

I originally posted this in the General Discussions forum, and no one has been able to help. It seems like a bug, so I'm submitting it here:

I can't get any of the flash videos I download from the web to simply copy into the same flash format--if I could get this working, I would eventually like to be able to set the "time" start/end points so I can clip the videos. I always get the "no file outputed" error. [BTW it should be spelled "outputted" in case you want to correct it, Stanley]

Under "Audio", I select "auto select" for source, then check "enable audio" and "copy audio" so that no transcoding is necessary. Under "video" I check "enable video", "copy video" and also check "auto select" for "source" and "backend".

In case it helps, below is the complete output log from the console window. Also, I'm on Windows XP SP2.

==============================
MediaCoder Version 0.6.1 build 4026 (built on Jan 12 2008, 21:09:50)

MediaCoder is a free software distributed under MPL license.
(C)2005-08 Stanley Huang <stanleyhuangyc@gmail.com>. All Rights Reserved.

Processor: Intel(R) Pentium(R) 4 CPU 3.00GHz (2787Mhz)
Processor Cores: 2

# ".\codecs\mplayer.exe" "C:\Downloads\cute puppies.flv" -quiet -slave -channels
2 -subcp cp1252 -sub-fuzziness 1 -subfont-autoscale 3 -subfont-blur 2 -subfont-
outline 2 -af channels=2 -vf screenshot -colorkey 16

MPlayer dev-SVN-rUNKNOWN-4.2.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 6, Stepping: 5)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing C:\Downloads\cute puppies.flv.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [FLV1] 320x240 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [screenshot]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 8.0 kbit/1.13% (ratio: 1000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [dsound] 22050Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 00AEADB0]SwScaler: using unscaled yuv420p -> bgr24 special converter

VO: [directx] 320x240 => 320x240 Planar YV12
ANS_LENGTH=157.09
ANS_TIME_POSITION=0.0
ANS_TIME_POSITION=0.0
ANS_TIME_POSITION=0.4
ANS_TIME_POSITION=0.4
ANS_TIME_POSITION=0.8
ANS_TIME_POSITION=0.8
ANS_TIME_POSITION=1.2
ANS_TIME_POSITION=1.2
ANS_TIME_POSITION=1.6
ANS_TIME_POSITION=1.6
ANS_TIME_POSITION=1.9
ANS_TIME_POSITION=1.9
ANS_TIME_POSITION=2.3
ANS_TIME_POSITION=2.3
ANS_TIME_POSITION=2.7
ANS_TIME_POSITION=2.7
ANS_TIME_POSITION=3.0
ANS_TIME_POSITION=3.0
ANS_TIME_POSITION=3.4
ANS_TIME_POSITION=3.4
ANS_TIME_POSITION=3.7
ANS_TIME_POSITION=3.7
ANS_TIME_POSITION=4.1
ANS_TIME_POSITION=4.1
ANS_TIME_POSITION=4.4
ANS_TIME_POSITION=4.4
ANS_TIME_POSITION=4.8
ANS_TIME_POSITION=4.8
ANS_TIME_POSITION=5.1
ANS_TIME_POSITION=5.1
ANS_TIME_POSITION=5.5
ANS_TIME_POSITION=5.5
ANS_TIME_POSITION=5.8
ANS_TIME_POSITION=5.8
ANS_TIME_POSITION=6.2
ANS_TIME_POSITION=6.2
ANS_TIME_POSITION=6.5
ANS_TIME_POSITION=6.5

Exiting... (Quit)

Exiting... (Quit)

# ".\codecs\ffmpeg.exe" -i "C:\Downloads\cute puppies.flv" -r 29.970 -vcodec raw
video -f yuv4mpegpipe pipe:6

FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/mingw --enable-pp --enable-swscaler --enable-memalign
-hack --disable-debug --enable-libx264 --enable-liba52 --enable-gpl --enable-avi
synth --enable-libxvid --enable-libmp3lame --disable-libtheora --disable-libvorb
is --enable-libfaac --disable-libamr-nb --disable-libamr-wb --disable-ffserver -
-disable-ffplay --extra-ldflags=-lpthreadGC2
libavutil version: 49.6.0
libavcodec version: 51.49.0
libavformat version: 52.3.0
built on Jan 10 2008 00:40:11, gcc: 4.2.2 [Sherpya]

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000
/1) -> 29.97 (30000/1001)
Input #0, flv, from 'C:\Downloads\cute puppies.flv':
Duration: 00:02:37.0, start: 0.000000, bitrate: 64 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 29.97 tb(r)
Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
Output #0, yuv4mpegpipe, to 'pipe:6':
Stream #0.0: Video: rawvideo, yuv420p, 320x240 [PAR 0:1 DAR 0:1], q=2-31, 20
0 kb/s, 29.97 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding

# ".\codecs\ffmpeg.exe" -y -r 2997/100 -s 320x240 -f yuv4mpegpipe -i - -f flv -v
codec copy -acodec copy -threads 2 "C:\Downloads\cute puppies_transcoded.flv"

FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/mingw --enable-pp --enable-swscaler --enable-memalign
-hack --disable-debug --enable-libx264 --enable-liba52 --enable-gpl --enable-avi
synth --enable-libxvid --enable-libmp3lame --disable-libtheora --disable-libvorb
is --enable-libfaac --disable-libamr-nb --disable-libamr-wb --disable-ffserver -
-disable-ffplay --extra-ldflags=-lpthreadGC2
libavutil version: 49.6.0
libavcodec version: 51.49.0
libavformat version: 52.3.0
built on Jan 10 2008 00:40:11, gcc: 4.2.2 [Sherpya]
[yuv4mpegpipe @ 008EBBD0]YUV4MPEG has invalid header.
pipe:: Error while opening file
File C:\Downloads\cute puppies.flv is scheduled to be added into container as ty
pe 1.
File C:\Downloads\cute puppies_transcoded.flv is scheduled to be added into cont
ainer as type 2.
=============================

CJS
Beginner
Beginner
Posts: 5
Joined: Mon Jan 14, 2008 4:50 am

Post by CJS » Sun Feb 03, 2008 1:19 am

The new build seems to make the difference--I was at least able to duplicate the flv using your settings, Mixer, which were actually the settings I used originally.

BUT, setting the start/stop times does not work. For instance, for a flash video that was 60 secs long, setting the start time to say 31 secs and stop time to 60 secs does not give the desired result; The final video is still 60 secs long, but the video/audio are "frozen" until it reaches 31 secs, at which point the video/audio continues as it should. Setting the end point to say 45 secs has absolutely no effect on the final outputted video--the video still plays as normal until the end at 60 secs.

Any ideas?

CJS
Beginner
Beginner
Posts: 5
Joined: Mon Jan 14, 2008 4:50 am

Post by CJS » Mon Feb 04, 2008 12:41 am

Yes, tried using "select" and then using the "clipping and effects" dialog window; actually it worked even less correctly than filling in the start/end manually, because when I clicked on OK to accept the start and end points, it only filled in the start position and left the end as 00. This is of course didn't work. :wink:

Post Reply