VideoHelp Forum




+ Reply to Thread
Results 1 to 23 of 23
  1. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    I am using mencoder to convert video into 3gp but it does not play on my phone.. I am using following command
    Code:
    mencoder filename.avi -o filename.3gp -ovc xvid -xvidencopts bitrate=162 -vf scale=320:240 -oac faac -srate 44100
    Please correct me where i am wrong..
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I would use Mobile Media Converter. It has good 3gp presets.
    Quote Quote  
  3. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    I am using a vps for converting videos.. Is it possible to install mobile media converter in that ? Its better if you help me using mencoder command.
    Quote Quote  
  4. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    I suppose you should/must add the option -of lavf to your command line. IIRC, by default Mencoder uses the AVI container, regardless of the file extension you choose.
    Quote Quote  
  5. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    well i have also tried adding that to command line -of lavf -lavfopts format=3gp but still not working
    Quote Quote  
  6. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Try remuxing with MP4Box.
    Quote Quote  
  7. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    Can mp4box be used to convert videos ?
    Quote Quote  
  8. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by hss2293 View Post
    Can mp4box be used to convert videos ?
    No.

    You need to study the MediaInfo properties of a file that does play OK on your phone.
    Then try to use the same or similar properties.
    Quote Quote  
  9. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    I need to get AAC (LC) audio in file in order to play it in my phone but the above mencoder command is giving me AAC audio.. How can i select aac-lc using mencoder ?
    Quote Quote  
  10. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    I guess you'd better upload a copy of a working sample file to this forum...

    I wasn´t aware Mediainfo makes distinction between normal AAC (Low Complexity) and "pure" AAC
    ( whatever this latter means ).

    BTW, can't you use ffmpeg instead of Mencoder, for example?
    Or encode audio and video separately, then remux with MP4Box or L-Smash?
    Also, the manual for your phone doesn't say a word about its supported file types?
    Last edited by El Heggunte; 27th Oct 2013 at 05:47. Reason: add more options
    Quote Quote  
  11. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    By using ffmpeg i m not getting better quality which mencoder is giving me.. I have tried using -nosound in mencoder to check whether video is working or not but it gives me an error unable to play media file. First of all i want to fix the video problem because atleast video should play in my phone..
    I have uploaded the sample of file working fine in my phone
    Image Attached Files
    Quote Quote  
  12. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Here is what Mediainfo says about your "sample.3gp":

    Code:
    Video
    ID                                       : 1
    Format                                   : MPEG-4 Visual
    Format profile                           : Simple@L1
    Format settings, BVOP                    : No
    Format settings, QPel                    : No
    Format settings, GMC                     : No warppoints
    Format settings, Matrix                  : Default (H.263)
    Codec ID                                 : 20
    Duration                                 : 2mn 0s
    Bit rate                                 : 134 Kbps
    Width                                    : 320 pixels
    Height                                   : 240 pixels
    Display aspect ratio                     : 3:2
    Original display aspect ratio            : 4:3
    Frame rate mode                          : Constant
    Frame rate                               : 14.985 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.116
    Stream size                              : 1.92 MiB (73%)
    Writing library                          : Lavc52.22.3
    
    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 2mn 0s
    Bit rate mode                            : Variable
    Bit rate                                 : 48.0 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 22.05 KHz
    Compression mode                         : Lossy
    Stream size                              : 707 KiB (26%)
    So, it has a LOW frame rate, it's NOT "mpeg-4 Advanced Simple Profile", and the audio samplerate = 22.05kHz
    Quote Quote  
  13. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Here is my attempt with MEncoder...
    Code:
    mencoder filename.avi \
    -vf scale=320:240 \
    -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=140 \
    -af lavcresample=22050:channels=2 \
    -oac lavc -lavcopts aglobal=1:acodec=libfaac:abitrate=48 \
    -of lavf -o output.3gp
    Code:
    @ubuntu:~$ mediainfo output.3gp
    General
    Complete name           : output.3gp
    Format                  : MPEG-4
    Format profile          : 3GPP Media Release 4
    Codec ID                : 3gp4
    File size               : 3.36 MiB
    Duration                : 2mn 31s
    Overall bit rate mode   : Variable
    Overall bit rate        : 186 Kbps
    
    Video
    ID                      : 1
    Format                  : MPEG-4 Visual
    Format profile          : Simple@L1
    Format settings, BVOP   : No
    Format settings, QPel   : No
    Format settings, GMC    : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID                : 20
    Duration                : 2mn 31s
    Bit rate mode           : Variable
    Bit rate                : 145 Kbps
    Maximum bit rate        : 800 Kbps
    Width                   : 320 pixels
    Height                  : 240 pixels
    Display aspect ratio    : 4:3
    Frame rate mode         : Constant
    Frame rate              : 29.970 fps
    Color space             : YUV
    Chroma subsampling      : 4:2:0
    Bit depth               : 8 bits
    Scan type               : Progressive
    Compression mode        : Lossy
    Bits/(Pixel*Frame)      : 0.063
    Stream size             : 2.62 MiB (78%)
    Writing library         : Lavc54.23.100
    
    Audio
    ID                      : 2
    Format                  : AAC
    Format/Info             : Advanced Audio Codec
    Format profile          : LC
    Codec ID                : 40
    Duration                : 2mn 31s
    Bit rate mode           : Variable
    Bit rate                : 36.2 Kbps
    Maximum bit rate        : 48.0 Kbps
    Channel(s)              : 2 channels
    Channel positions       : Front: L R
    Sampling rate           : 22.05 KHz
    Compression mode        : Lossy
    Stream size             : 670 KiB (19%)
    Image Attached Files
    Quote Quote  
  14. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    @bat999 your file is not working in my phone.. Only audio is working.. Video is not working..
    Quote Quote  
  15. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Encode a video sample at 14.985 fps, and test.
    Then try higher frame rates: 15fps, 18fps, 24fps.
    I'm afraid 15fps is the upper limit for your phone, though.
    Quote Quote  
  16. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    Not working at even low framerates.. I have converted the file firstly through mencoder but it didn't worked then i used
    ffmpeg -i file.3gp -vcodec copy -acodec copy newfile.3gp
    Now the same file is working in my phone.. Why its not working when i converted it through mencoder at first stage ?
    Quote Quote  
  17. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by hss2293 View Post
    I have converted the file firstly through mencoder but it didn't worked then i used
    ffmpeg -i file.3gp -vcodec copy -acodec copy newfile.3gp
    Now the same file is working in my phone.. Why its not working when i converted it through mencoder at first stage ?
    Because Mencoder's muxers are not exactly identical to the ffmpeg's muxers.
    As a side note --- ffmpeg IS NOT "perfect" either. This is the reason why I suggested MP4Box and L-Smash, for example.
    Last edited by El Heggunte; 27th Oct 2013 at 22:06. Reason: typooooooooooooooooooooooos
    Quote Quote  
  18. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by El Heggunte View Post
    ... try higher frame rates: 15fps...
    Code:
    mencoder filename.avi \
    -vf scale=320:240 \
    -ofps 15 \
    -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=140 \
    -af lavcresample=22050:channels=2 \
    -oac lavc -lavcopts aglobal=1:acodec=libfaac:abitrate=48 \
    -of lavf -o output2.3gp
    Image Attached Files
    Quote Quote  
  19. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    Now is it possible through mencoder or not ?
    Quote Quote  
  20. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    @bat999 i have already tried changing the frame rates but not working..
    Quote Quote  
  21. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by hss2293 View Post
    Now is it possible through mencoder or not ?
    Unless you know what to modify in the source-code of Mencoder,
    so that its MOV/MP4/3GP muxer behaves as well as ffmpeg's muxers,
    the answer is "nope".

    BTW, if the problem currently can be solved only in two or more steps,
    why do you insist on using Mencoder only
    Quote Quote  
  22. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    I don't know whats to be modified.. Thats why i am here asking for help
    Quote Quote  
  23. Member
    Join Date
    Oct 2013
    Location
    India
    Search PM
    BTW, if the problem currently can be solved only in two or more steps,
    why do you insist on using Mencoder only
    I want single step conversion with good video quality at low size.. I am using mencoder because of this reason and i can add watermark easily using -sub option . Any alternative which can give me good quality as mencoder with watermark ?
    Quote Quote  



Similar Threads

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