ffmpeg, doesn't to the job properly:
[quote]Input #0, m4v, from 'small.m4v':Code:ffmpeg -y -i "small.m4v" -vtag xvid -vcodec copy -f avi "test.avi"
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 25 fps, 25 tbr, 1200k tbn, 25 tbc //source is detected properly
Output #0, avi, to 'test.avi':
Metadata:
ISFT : Lavf54.3.100
Stream #0:0: Video: mpeg4 (xvid / 0x64697678), yuv420p, 640x352 [SAR 1:1 DAR 20:11], q=2-31, 25 fps, 50 tbn, 50tbc //source is flagged wrong
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 429 fps=0.0 q=-1.0 Lsize= 1539kB time=00:00:17.14 bitrate= 735.4kbits/s
video:1513kB audio:0kB global headers:0kB muxing overhead 1.716616%[/code] (flagging the output as 50fps is just wrong for 25fps progressive input.
using:
orCode:ffmpeg -y -i "small.m4v" -vtag xvid -vcodec copy -map 0:0 -f avi "small.avi"
doesn't change a thing,.. :/Code:ffmpeg -y -i "small.m4v" -vtag xvid -vcodec copy -map 0:0 -fps 25 -f avi "small.avi"
(yes, I wrote a bug report about it to the ffmpeg folks a while back: http://ffmpeg.org/trac/ffmpeg/ticket/978)
mencoder:
creates an ouput file that only works with MPlayer and ffplay based media players. :/Code:mencoder -ovc copy -o "small.avi" "small.m4v"
Does any one know an alternative way to multiplex a raw MPEG-4 ASP videostream into an .avi file container?
(avidemux and avi-mux gui don't support raw MPEG-4 ASP input)
Cu Selur
Ps.: Ideally I would prefer a tool that's available on windows, mac and linux.![]()
+ Reply to Thread
Results 1 to 6 of 6
-
-
-
Hi selur
I agree, FFmpeg gives a result that shows "50 tbn".
But VLC and MEncoder seem to give the correct results.
Code:ffmpeg -i small.m4v -c copy test1.avi
Code:cvlc small.m4v --sout="#std{access=file,mux=avi,dst='test2.avi'}" vlc://quit
Code:cvlc small.m4v --sout="#std{access=file,mux=avcodec,dst='test3.avi'}" vlc://quit
Code:mencoder -of lavf -ovc copy small.m4v -o test4.avi
Code:ffprobe test1.avi Input #0, avi, from 'test1.avi': Metadata: encoder : Lavf54.3.100 Duration: 00:00:17.14, start: 0.000000, bitrate: 735 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (FMP4 / 0x34504D46), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 25 tbr, 50 tbn, 25 tbc
Code:ffprobe test2.avi Input #0, avi, from 'test2.avi': Duration: 00:00:17.04, start: 0.000000, bitrate: 729 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 25 tbr, 25 tbn, 25 tbc
Code:ffprobe test3.avi Input #0, avi, from 'test3.avi': Metadata: encoder : Lavf54.3.100 Duration: 00:00:17.12, start: 0.000000, bitrate: 730 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (FMP4 / 0x34504D46), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 25 tbr, 25 tbn, 25 tbc
Code:ffprobe test4.avi Input #0, avi, from 'test4.avi': Metadata: encoder : Lavf54.3.100 Duration: 00:00:17.12, start: 0.000000, bitrate: 731 kb/s Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 6144x2 [SAR 1:1 DAR 3072:1], 25 tbr, 25 tbn, 25 tbc
I've tested the four results with VLC and SMPlayer.
Maybe they will be OK with other players too.
EDIT
Also able to force xvid tag with MEncoder
Code:mencoder -of lavf -ffourcc xvid -ovc copy small.m4v -o test5.avi
Code:ffprobe test5.avi Input #0, avi, from 'test5.avi': Metadata: encoder : Lavf54.3.100 Duration: 00:00:17.12, start: 0.000000, bitrate: 731 kb/s Stream #0:0: Video: mpeg4 (xvid / 0x64697678), yuv420p, 6144x2 [SAR 1:1 DAR 3072:1], 25 tbr, 25 tbn, 25 tbc
Last edited by bat999; 8th Apr 2012 at 09:11.
-
Maybe they will be OK with other players too.
ffmpeg file -> wrong fps
mencoder file -> causes problem in a bunch of players (seems like all that are not libav based; vlc, ffmpeg and mplayer are + causes problems in Virtual Dub and some other editing tools)
file created with vlc seems the work fine. (it's a bit large with ~90MB just for muxing, but that's fine for my current use)
-> will use vlc then
Thanks!
Cu Selur -
Yes, I think that VLC with its own muxer is a good choice in this case.
Code:cvlc small.m4v --sout="#std{access=file,mux=avi,dst='test2.avi'}" vlc://quit
Code:General Complete name : test2.avi Format : AVI Format/Info : Audio Video Interleave File size : 1.48 MiB Duration : 17s 40ms Overall bit rate : 730 Kbps Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : 2 Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 17s 40ms Source duration : 17s 0ms Bit rate : 722 Kbps Width : 640 pixels Height : 352 pixels Display aspect ratio : 16:9 Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.128 Stream size : 1.46 MiB (99%) Writing library : XviD 1.1.2 (UTC 2006-11-01)
Similar Threads
-
Converting from mts to MPEG 2 I-frame HD in an AVI container
By shaunthesheep in forum Video ConversionReplies: 68Last Post: 8th Jun 2011, 07:08 -
Need to create MPEG-4 movie in an AVI container ... how ?
By Bansaw in forum Newbie / General discussionsReplies: 4Last Post: 1st Oct 2010, 14:16 -
What do I do with a raw .h264 file extracted from an .mp4 container?
By godfist314 in forum Newbie / General discussionsReplies: 4Last Post: 22nd Jul 2008, 12:51 -
Demux mpeg-2 stream from avi container
By niko84 in forum EditingReplies: 7Last Post: 6th Oct 2007, 00:43 -
Extraction of raw A/V from AVI container for files >4GB?
By alfonzo in forum Video ConversionReplies: 22Last Post: 11th Sep 2007, 07:18