hello, im trying to convert a video to a suitable format for my phone, i know that the phone works with videos made using mpeg4 @simpleL3 + BVOP ( i simply checked the details of a working .mp4 file i have on the phone). But i cant find anywhere on the internet the command line parameters to get exactly that format using ffmpeg, can u help me?
thanks in advance
+ Reply to Thread
Results 1 to 15 of 15
-
-
yes i used mediainfo, this is the info for the working file:
General
Complete name : C:\Users\Re Kotc\Videos\TEST.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 74.9 MiB
Duration : 19mn 15s
Overall bit rate mode : Variable
Overall bit rate : 543 Kbps
Encoded date : UTC 2012-09-27 11:43:20
Tagged date : UTC 2012-09-27 11:45:58
Video
ID : 2
Format : MPEG-4 Visual
Format profile : Simple@L3
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : 20
Duration : 19mn 15s
Bit rate mode : Variable
Bit rate : 411 Kbps
Maximum bit rate : 710 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4:3
Frame rate mode : Variable
Frame rate : 14.850 fps
Original frame rate : 15.000 fps
Minimum frame rate : 14.837 fps
Maximum frame rate : 14.859 fps
Color space : YUV
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.360
Stream size : 56.6 MiB (76%)
Language : English
Encoded date : UTC 2012-09-27 11:43:20
Tagged date : UTC 2012-09-27 11:45:58
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 19mn 14s
Bit rate mode : Variable
Bit rate : 128 Kbps
Maximum bit rate : 152 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 17.6 MiB (24%)
Language : English
Encoded date : UTC 2012-09-27 11:43:20
Tagged date : UTC 2012-09-27 11:45:58
Material_Duration : 1155843
Material_StreamSize : 18489235 -
Yes, that does the job.
This is the command I used:-
Code:ffmpeg -i filename -vf "scale=320:trunc(ow/a/2)*2" -c:v mpeg4 -b:v 400k -profile 0 -level 3 -bf 2 -c:a aac -strict -2 -b:a 128k -ar 44100 -ac 2 filename.mp4
General
Complete name : filename.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 1.89 MiB
Duration : 30s 67ms
Overall bit rate mode : Variable
Overall bit rate : 528 Kbps
Writing application : Lavf54.28.101
Video
ID : 1
Format : MPEG-4 Visual
Format profile : Simple@L3
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : 20
Duration : 30s 67ms
Bit rate mode : Constant
Bit rate : 402 Kbps
Width : 320 pixels
Height : 180 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 15.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.466
Stream size : 1.44 MiB (76%)
Writing library : Lavc54.58.100
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 29s 978ms
Bit rate mode : Variable
Bit rate : 120 Kbps
Maximum bit rate : 128 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Delay relative to video : 67ms
Stream size : 437 KiB (23%) -
Yes! Only my recent FFmpeg version recommends to use -profile:v instead of -profile. It will probably taken off in a while.
EDIT:
I knew it had a reason so I looked it up again. Libfaac supports profiles and FFmpeg has to know for which encoder the command is meant.
This are the ones I know of ...
-profile:a aac_low (LC) and -profile:a aac_mainLast edited by Chris K; 27th Sep 2012 at 10:32.
-
ok one more question, i see that the codec ID is 'isom', is there any way to change it to 'mp42' ?
-
If that's not the reason and it still doesn't work, there can be other reasons and/or differences for it not working . eg. max consec b-frames length, gop size
If you temporarily remux the working video into avi container (no audio), and use gspot, it will provide more information on the xvid settings used (it actually scans the file, where as mediainfo just reads the header)
ffmpeg -i input.mp4 -vcodec copy -an output.avi -
mp42 is the MS implementation of the mpeg4 codec. FFmpeg supports it but not in the mp4 container. If your phone supports the avi container you could give it a try. the codec is -c:v msmpeg4v2 but it also doesn't support b-frames so you would have to try it plain as it is.
-
ok i finally got a solution, the phone (samsung s5230) plays videos with the following characteristics:
General
Complete name : C:\Users\Re Kotc\Videos\Sothink Video Converter\The.Big.Bang.Theory.S05E02.PROPER.HDTV.X viD-TLA.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 75.5 MiB
Duration : 19mn 16s
Overall bit rate : 548 Kbps
Writing application : Lavf53.2.0
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 : 19mn 16s
Bit rate mode : Variable
Bit rate : 482 Kbps
Maximum bit rate : 768 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 15.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.418
Stream size : 66.4 MiB (88%)
Writing library : Lavc53.6.1
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 19mn 15s
Bit rate mode : Constant
Bit rate : 64.0 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 22.05 KHz
Compression mode : Lossy
Stream size : 8.81 MiB (12%)...im still not sure why it doesnt work using L3 ..but it's fine! ..thanks!
-
The.Big.Bang.Theory like your style arcsoft media converter would have done it to but only 14 day fully functional fun night in red dwarf big bang theory it crowd third rock from the sun and project alf to finish of with a flurish lol
Similar Threads
-
ffmpeg : understanding mpeg4 encoding settings
By feelart in forum Video ConversionReplies: 0Last Post: 11th May 2012, 09:00 -
FFMpeg: YUV422 and MPEG4 Video Codec
By HypnoBeard in forum LinuxReplies: 6Last Post: 26th Sep 2011, 23:10 -
Encoding .DV problems with ffmpeg (e.g. MPEG4 -> DV or VOB -> DV)
By AlphaMonk in forum ffmpegX general discussionReplies: 1Last Post: 23rd Feb 2010, 04:24 -
Problem with BVOP
By usta in forum Video ConversionReplies: 2Last Post: 9th Sep 2009, 02:30 -
bvop, pvop, nvop
By Anonoumus in forum Video ConversionReplies: 5Last Post: 22nd Jul 2009, 22:20