Double framerate when converting from mp4 to avi

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

User avatar
HuggiL
Modest
Modest
Posts: 233
Joined: Tue Oct 18, 2011 3:44 am
Location: Perth, Australia

Double framerate when converting from mp4 to avi

Post by HuggiL » Thu Jul 05, 2012 3:21 am

So I have a couple of 1080p music videos I'm converting to my Cowon J3 video settings (recommended settings are: 480x272, 30fps, AVI, Xvid/mp3) and when i set MediaCoder to 30fps under the 'Picture' tab, the resulting file is 60fps (which the J3 can't play). Setting it to 15fps produces 30fps video but it messes up the thumbnails shown by the player... this bug's been around for a while too I think.
All the other settings work fine btw, it's just the framerate that's off.
In theory, theory and practice are the same. In practice, they are not.

Tips & Guides: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Older versions: http://www.videohelp.com/tools/MediaCoder/old-versions#download

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: Double framerate when converting from mp4 to avi

Post by meRobs » Sat Jul 07, 2012 10:19 am

You set the frame rate at 30 fps. Was the original also 30 fps?
What happens if you leave Framerate = Original?

As an experiment I converted a 16:9 video clip to 1920x1080 progressive MP4, using the settings in the Encoding Guide, under Tips & Guides.
It was at 25fps.
I then converted it to Xvid/MP3/AVI using the settings in the Guide, except I changed Resize to 470x272 (Framerate = original) and the result was at 25 fps as per the source!
This was in build 5230. What build did you use?
Any comments?
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

User avatar
HuggiL
Modest
Modest
Posts: 233
Joined: Tue Oct 18, 2011 3:44 am
Location: Perth, Australia

Re: Double framerate when converting from mp4 to avi

Post by HuggiL » Wed Jul 11, 2012 3:35 am

The original framerates range from anywhere between 23fps to 60fps. Currently using build 5260 but it's happened in the previous versions as well.

I convert a 1920x1080 mp4 running at 23.98fps to a 480x272/avi/30fps and the output file still gets 60fps. And if I have the greyed out tick in the checkbox next to the framerate settings (which states "Original"), I get a 60fps output. Have no tick in the box and it makes a 47.95fps file.
However, I converted another 1080p AVC/AAC mp4 to a 1080p H.264/AAC mp4 (I was de-mirroring a MV I got off Youtube) and with the framerate set to Original, it actually kept the same framerate of 29.97.

I'm going to play around with some more settings tomorrow. Maybe I should reset all the settings and rebuild my preset...
In theory, theory and practice are the same. In practice, they are not.

Tips & Guides: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Older versions: http://www.videohelp.com/tools/MediaCoder/old-versions#download

User avatar
HuggiL
Modest
Modest
Posts: 233
Joined: Tue Oct 18, 2011 3:44 am
Location: Perth, Australia

Re: Double framerate when converting from mp4 to avi

Post by HuggiL » Wed Jul 11, 2012 8:47 pm

After reinstalling MediaCoder, I'm still getting the same issue. Anyway, I'm just going to leave the framerate setting at 15fps so it'll produce a 30fps file. It works...
In theory, theory and practice are the same. In practice, they are not.

Tips & Guides: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Older versions: http://www.videohelp.com/tools/MediaCoder/old-versions#download

User avatar
rhycos
Modest
Modest
Posts: 211
Joined: Wed May 07, 2008 4:41 am

Re: Double framerate when converting from mp4 to avi

Post by rhycos » Fri Jul 27, 2012 7:39 am

Hi guys, :)
MC Build 0.8.13.5266
Indeed the framerate is double when encoding to xvid/mp3/avi with default settings. Tried playing around with framerate no luck :(
Seems like a problem with the ffmpeg muxer,replacing ffmpeg with an older build fixed the issue.
Source file fps 25
Output file fps 50 :shock:

Source file:

Code: Select all

 General
Complete name                            : D:\kk\Katy B A Lights On feat. Ms. Dynamite OUT NOW!!!.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 65.4 MiB
Duration                                 : 3mn 26s
Overall bit rate mode                    : Variable
Overall bit rate                         : 2 659 Kbps
Encoded date                             : UTC 2010-10-27 17:25:56
Tagged date                              : UTC 2010-10-27 17:25:56
gsst                                     : 0
gstd                                     : 206200
gssd                                     : BADC23463HH1334056198976070
gshh                                     : o-o.preferred.bom03s03.v23.lscache7.c.youtube.com

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 3mn 26s
Bit rate                                 : 2 527 Kbps
Maximum bit rate                         : 6 514 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.110
Stream size                              : 62.1 MiB (95%)
Tagged date                              : UTC 2010-10-27 17:26:02

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 3mn 26s
Bit rate mode                            : Variable
Bit rate                                 : 128 Kbps
Maximum bit rate                         : 147 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 3.15 MiB (5%)
Title                                    : (C) 2007 Google Inc. v08.13.2007.
Encoded date                             : UTC 2010-10-27 17:25:59
Tagged date                              : UTC 2010-10-27 17:26:02
Console output:

MEncoder UNKNOWN-4.6.1 (C) 2000-2011 MPlayer Team
success: format: 0 data: 0x0 - 0x415ed7a
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 1280x720 24bpp 25.000 fps 2526.7 kbps (308.4 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1280x720 fps:25.000 ftime:=0.0400
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16005->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [format fmt=i420]
Opening video filter: [scale]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio data will be piped out through pipe 6
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 00f260a0]using unscaled yuv420p -> yuv420p special converter

# .\codecs\lame.exe --vbr-new -V 6 -b -B -q 2 --noreplaygain --add-id3v2 --resam
ple 44100 -r -s 44100 --quiet - "D:\Temp\McTemp\mctemp38368ec7bab781ec.mp3"

D:\Temp\McTemp\mctemp38368ec7bab781ec.mp3 to be muxed into container (type=1, fo
rmat=undefined)
D:\Temp\McTemp\mctemp38368ec7bab781ec.m4v to be muxed into container (type=2, fo
rmat=undefined)
MEncoder UNKNOWN-4.6.1 (C) 2000-2011 MPlayer Team
success: format: 0 data: 0x0 - 0x415ed7a
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 1280x720 24bpp 25.000 fps 2526.7 kbps (308.4 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1280x720 fps:25.000 ftime:=0.0400
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16005->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [format fmt=i420]
Opening video filter: [scale w=320 h=240 interlaced=0 chr-drop=0]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio data will be piped out through pipe 6
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 00f260a0]BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 00f260a0]Warning: data is not aligned! This can lead to a speedloss

# .\codecs\lame.exe --vbr-new -V 6 -b -B -q 2 --noreplaygain --add-id3v2 --resam
ple 44100 -r -s 44100 --quiet - "D:\Temp\McTemp\mctemp38368ec7bab781ec.mp3"

D:\Temp\McTemp\mctemp38368ec7bab781ec.mp3 to be muxed into container (type=1, fo
rmat=undefined)

Flushing video frames.

Video stream: 23040.000 kbit/s (2880000 B/s) size: 593856000 bytes 206.200 se
cs 5155 frames

Audio stream: 1411.200 kbit/s (176400 B/s) size: 36364288 bytes 206.147 secs
D:\Temp\McTemp\mctemp38368ec7bab781ec.m4v to be muxed into container (type=2, fo
rmat=undefined)

# .\codecs\ffmpeg.exe -i "D:\Temp\McTemp\mctemp38368ec7bab781ec.m4v" -i "D:\Temp
\McTemp\mctemp38368ec7bab781ec.mp3" -acodec copy -vcodec copy -f avi -aspect 1.7
7778 -r 25/1 -vtag XVID -y "D:\Temp\McTemp\Katy B AáLights On feat. Ms. Dynamite
áOUT NOW!!!.avi"

ffmpeg version N-41357-g92c065f Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 6 2012 13:05:36 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --ena libavutil 51. 56.100 / 51. 56.100
libavcodec 54. 25.100 / 54. 25.100
libavformat 54. 6.101 / 54. 6.101
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 78.100 / 2. 78.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[m4v @ 0204c1a0] Estimating duration from bitrate, this may be inaccurate
Input #0, m4v, from 'D:\Temp\McTemp\mctemp38368ec7bab781ec.m4v':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mpeg4 (Simple Profile), yuv420p, 320x240 [SAR 4:3 DAR 16
:9], 25 tbr, 1200k tbn, 25 tbc
[mp3 @ 02c656c0] max_analyze_duration 5000000 reached at 5015510
Input #1, mp3, from 'D:\Temp\McTemp\mctemp38368ec7bab781ec.mp3':
Metadata:
encoder : LAME 32bits version 3.99.5 (http://lame.sf.net)
Duration: 00:03:26.05, start: 0.000000, bitrate: 111 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16, 112 kb/s
Output #0, avi, to 'D:\Temp\McTemp\Katy B A Lights On feat. Ms. Dynamite OUT N
OW!!!.avi':
Metadata:
ISFT : Lavf54.6.101
Stream #0:0: Video: mpeg4 (XVID / 0x44495658), yuv420p, 320x240 [SAR 4:3 DAR
16:9], q=2-31, 50 tbn, 50 tbc

Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, 112 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 5155 fps=0.0 q=-1.0 Lsize= 22161kB time=00:03:26.05 bitrate= 881.1kbits
/s
video:18904kB audio:2812kB global headers:0kB muxing overhead 2.053361%

I guess its will be fixed :idea:

flagpole
Modest
Modest
Posts: 259
Joined: Tue Jan 26, 2010 10:12 pm
Contact:

Re: Double framerate when converting from mp4 to avi

Post by flagpole » Fri Jul 27, 2012 6:38 pm

i'm glad it not just me.

i started another thread on this viewtopic.php?f=28&t=12130 as a bug report.

I've gone back to 5230 which works fine.
my quant puzzles http://puzzles.nigelcoldwell.co.uk go look :)

User avatar
HuggiL
Modest
Modest
Posts: 233
Joined: Tue Oct 18, 2011 3:44 am
Location: Perth, Australia

Re: Double framerate when converting from mp4 to avi

Post by HuggiL » Fri Jul 27, 2012 9:59 pm

Say, where do you download the older versions? I can't find them anywhere...
In theory, theory and practice are the same. In practice, they are not.

Tips & Guides: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Older versions: http://www.videohelp.com/tools/MediaCoder/old-versions#download

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: Double framerate when converting from mp4 to avi

Post by meRobs » Sat Jul 28, 2012 12:24 am

Two choices:
(1) go to Basic Discussions and in the upper segment there will be a sticky for versions, within which is an Older Version section (follow the links)
(2) go to the Blog and in the item posted 12 June 2012 there is a link to all versions called "web page".
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

RENAV
Beginner
Beginner
Posts: 9
Joined: Thu Apr 15, 2010 2:57 am

Re: Double framerate when converting from mp4 to avi

Post by RENAV » Sat Jul 28, 2012 12:54 am

This bug was previusly comment in viewtopic.php?f=28&t=11073&start=12#p33817

I replaced the ffmpeg.exe from earlier version of mediacoder (5170 for example) before zeranoe build implemented, so I solved my problem
Maybe you too can help them.
or this version:
http://sourceforge.net/projects/mplayer ... z/download

Now I using 5266 32bits version

But I have not been tested with the other functions, would be tried also

Sorry for my english :oops:

flagpole
Modest
Modest
Posts: 259
Joined: Tue Jan 26, 2010 10:12 pm
Contact:

Re: Double framerate when converting from mp4 to avi

Post by flagpole » Sat Jul 28, 2012 1:34 am

the problem with using an earlier version of FFmpeg, though i haven't tried it, is that there were other command line changes introduced at the same time which have been adopted.

though i guess you could run both, just use the old one for muxing avis
my quant puzzles http://puzzles.nigelcoldwell.co.uk go look :)

Post Reply