VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. Member
    Join Date
    Oct 2008
    Location
    Russian Federation
    Search Comp PM
    How to convert frame rate in Linux? For example, convert 50 fps progressive to 25 fps interlaced? In Windows it is very simply by using AVISynth's function SelectEvery, but what about Linux? Using ffmpeg or something like this? And is it possible to double frame rate using motion vectors like MVAnalyse/MVFlowFPS do?
    Quote Quote  
  2. AviSynth works in Wine. The AviSynth script to convert 50p to 25i is:

    SeparateFields()
    SelectEvery(4,0,3)
    Weave()
    AviDemux is available for Linux. I don't know if it will do what you want though.
    Last edited by jagabo; 7th Nov 2011 at 11:59.
    Quote Quote  
  3. Member
    Join Date
    Oct 2008
    Location
    Russian Federation
    Search Comp PM
    jagabo, pity I tried a lot of things to make AVISynth work under wine but failed to. Probably the main problem is not in AVISynth but in codecs since it always fail to load AC3ACM for example, but DirectShowShource doesn't work at all... so I wasn't able even to try plugins...

    Anyway, I suppose wine is not a fastest way, native Linux would be better...
    Quote Quote  
  4. ac3acm is vfw based and directshowsource is directshow based of course - those are system dependent on windows installed codecs/splitters

    ffms2 apparently works fine with wine
    Quote Quote  
  5. Member
    Join Date
    Oct 2008
    Location
    Russian Federation
    Search Comp PM
    poisondeathray looks like ffms2 really works, thanks. Well, i still haven't got audio but maybe I'll find a way...
    BTW, what is faster to convert video to MPEG2 - Wine*HCEnc or AVIDemux + Wine*AVSProxy?
    Last edited by lovyagin; 8th Nov 2011 at 08:36.
    Quote Quote  
  6. you can use avisynth in linux to with avs2yuv.
    how to use it? search your distro-forum or on the net.
    Quote Quote  
  7. Originally Posted by lovyagin View Post
    poisondeathray looks like ffms2 really works, thanks. Well, i still haven't got audio but maybe I'll find a way...
    did you specify audio in the script ? e.g. ffaudiosource() with audiodub()


    BTW, what is faster to convert video to MPEG2 - Wine*HCEnc or AVIDemux + Wine*AVSProxy?
    Not sure about speed with those on linux, you can do some short tests. But I'm certain hcenc's quality will be better.
    Quote Quote  
  8. Member
    Join Date
    Oct 2008
    Location
    Russian Federation
    Search Comp PM
    Originally Posted by poisondeathray View Post
    did you specify audio in the script ? e.g. ffaudiosource() with audiodub()
    I tried ffmpegsource2 and specify atrack=... but can't know track number. Anyway I tried several and they doesn't work saying nothing or "not an audio track" or "no audio data" (I tried in virtualdub).

    Originally Posted by poisondeathray View Post
    But I'm certain hcenc's quality will be better.
    Suppose so too...
    Quote Quote  
  9. Originally Posted by lovyagin View Post
    Originally Posted by poisondeathray View Post
    did you specify audio in the script ? e.g. ffaudiosource() with audiodub()
    I tried ffmpegsource2 and specify atrack=... but can't know track number. Anyway
    usually atrack =-1 , or you can use ffaudiosource and ffvideosource with audiodub



    I tried several and they doesn't work saying nothing or "not an audio track" or "no audio data" (I tried in virtualdub).
    What kind of file? where is it from? post mediainfo view=>text back here
    Quote Quote  
  10. Member
    Join Date
    Oct 2008
    Location
    Russian Federation
    Search Comp PM
    Code:
    Format                           : AVI
    Format/Info                      : Audio Video Interleave
    File size                        : 835 MiB
    ...
    Video
    ID                               : 0
    Format                           : MPEG-4 Visual
    Format profile                   : Advanced Simple@L5
    Format settings, BVOP            : No
    Format settings, QPel            : No
    Format settings, GMC             : No warppoints
    Format settings, Matrix          : Default (H.263)
    Codec ID                         : XVID
    Codec ID/Hint                    : XviD
    Duration                         : 58mn 14s
    Bit rate                         : 1 806 Kbps
    Width                            : 704 pixels
    Height                           : 400 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
    Bits/(Pixel*Frame)               : 0.257
    Stream size                      : 752 MiB (90%)
    Writing library                  : XviD 1.2.1 (UTC 2008-12-04)
    
    Audio
    ID                               : 1
    Format                           : MPEG Audio
    Format version                   : Version 1
    Format profile                   : Layer 3
    Codec ID                         : 55
    Codec ID/Hint                    : MP3
    Duration                         : 58mn 14s
    Bit rate mode                    : Constant
    Bit rate                         : 192 Kbps
    Channel(s)                       : 2 channels
    Sampling rate                    : 44.1 KHz
    Stream size                      : 80.0 MiB (10%)
    Alignment                        : Split accross interleaves
    Interleave, duration             : 80 ms (2.00 video frames)
    with atrack=-1 virtualdub returns
    AVISynth open failure:
    FFAudioSource: no audio track found
    (no video either in this case), atrack=-2 returns video without audio as it should, atrack=0 says "not an audio track", atrack=1 fails with "audio track contains no audio frames", and atrack=2 says "out of bounds track index selected". The clip is fully playable by SMPlayer video+audio though.

    UPD: I tried second clip (second part from same source) and it works perfectly. So something wrong with clip indeed. But it is playable
    Last edited by lovyagin; 8th Nov 2011 at 09:21.
    Quote Quote  
  11. Originally Posted by lovyagin View Post
    UPD: I tried second clip (second part from same source) and it works perfectly. So something wrong with clip indeed. But it is playable
    Sometimes when a video is cut improperly, this happens

    You can try divfix++ to repair (I think windows only)

    Or you can demux audio (e.g. with ffmpeg ) & load separately in the script
    Quote Quote  
  12. Member
    Join Date
    Oct 2008
    Location
    Russian Federation
    Search Comp PM
    Yup, I'll try somehow, probably demuxing, or maybe BASSAudio or something like this will work. Thank you a lot for helping!!!
    Quote Quote  
  13. Originally Posted by lovyagin View Post
    Yup, I'll try somehow, probably demuxing, or maybe BASSAudio or something like this will work. Thank you a lot for helping!!!
    Not sure if bassaudiosource will work, because it uses dyamically linked .dlls which were compiled for windows, but you can try it

    Once it's been demuxed , ffaudiosource should work

    To stream copy audio e.g.

    ffmpeg -i input.avi -vn -acodec copy output.mp3

    Then use ffaudiosource on the mp3
    Quote Quote  



Similar Threads