VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. ffmpeg, doesn't to the job properly:
    Code:
    ffmpeg -y  -i "small.m4v" -vtag xvid -vcodec copy -f avi "test.avi"
    [quote]Input #0, m4v, from 'small.m4v':
    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:
    Code:
    ffmpeg -y -i "small.m4v" -vtag xvid -vcodec copy -map 0:0 -f avi "small.avi"
    or
    Code:
    ffmpeg -y -i "small.m4v" -vtag xvid -vcodec copy -map 0:0 -fps 25 -f avi "small.avi"
    doesn't change a thing,.. :/
    (yes, I wrote a bug report about it to the ffmpeg folks a while back: http://ffmpeg.org/trac/ffmpeg/ticket/978)

    mencoder:
    Code:
    mencoder -ovc copy -o "small.avi" "small.m4v"
    creates an ouput file that only works with MPlayer and ffplay based media players. :/

    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.
    Quote Quote  
  2. since it's a GUI for ffmpeg I doubt it, but I'll try,.. -> nope as suspected it's a simple gui for ffmpeg and when I create a passthrough profile the output is the same as when using ffmpeg directly.
    Last edited by Selur; 8th Apr 2012 at 06:38.
    Quote Quote  
  3. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    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
    "creates an ouput file that only works with MPlayer and ffplay based media players"
    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
    Image Attached Files
    Last edited by bat999; 8th Apr 2012 at 09:11.
    Quote Quote  
  4. Maybe they will be OK with other players too.
    SMPlayer is just a GUI for MPlayer, so no wonder it works,..

    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
    Quote Quote  
  5. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by Selur View Post
    -> will use vlc then
    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)
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!