Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
11th April 2012, 05:55 | #1 | Link |
Registered User
Join Date: Jan 2012
Location: On the net
Posts: 76
|
Reencoding problems
I'm trying to reencode a .mp4 file to a .avi file that will be read by my dvd player
The manual says it can play "USB Flash Drive that contains audio titles, DivX, MP3, WMA, and/or JPEG files." I'm trying to use ffmpeg to reencode it but the quality of the resulting file sucks. Here is my command line: Code:
ffmpeg -i file.mp4 -vcodec msmpeg4v2 -acodec aac -strict experimental -ab 325k file.avi Code:
ffmpeg -i file.mp4 -s 320x240 -vcodec msmpeg4v2 file.avi Code:
Application provided invalid, non monotonically increasing dts to muxer in stream 1: 106851 >= 106851 av_interleaved_write_frame(): Invalid argument Thanx, |\/|x I'm running Ubuntu 11.10 x64bit with ffmpeg that I built using these commands. Last edited by maxxon; 12th April 2012 at 01:19. Reason: Added corrections |
11th April 2012, 20:54 | #4 | Link |
Registered User
Join Date: Jan 2012
Location: On the net
Posts: 76
|
My bad, turns out that the audio never worked. When I was testing I had the audio off as I wasn't focusing on that. Still I've figured out the video quality issue. The required switch I was looking for is -qscale 5.
I think I've got it now. It has sound and hq vid. Just need to try it on DVD player. Code:
ffmpeg -i file.mp4 -vcodec msmpeg4v2 -sameq -ab 128k file.avi |\/|x |
12th April 2012, 02:55 | #5 | Link |
Registered User
Join Date: Jan 2012
Location: On the net
Posts: 76
|
Looks like I was wrong. The file size is crazy big. I'm seeing some pages that try and set the parameters to make it a particular size, but they are using presets, however, there are no presets for msmpeg4v2. What sort of parameters need to be in these files?
Thanx |\/|x |
12th April 2012, 03:44 | #6 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
|
Using msmpeg4v2 I would expect either a large file or bad quality. I suggest using mpeg4 (Divx/Xvid) as it looks like your DVD player could play that too and it should offer better quality per size.
|
|
|