The problem described below affects my DVD/HD Recorder and some AVI file. I put my query into LQ Software section because I try to find the method to encode the mentioned file anew in order to made it acceptable for my recorder device.
***
I own LG RH387 Recorder. It accepts USB Flash Drives including different content. Usually I use it to watch the movies.
The device understands the following formats:
● Video: DIV3, MP43, DIVX, DX50
● Audio: AC3, PCM, MP2, MP3, WMA
Yesterday I found some movie file in AVI format causing the serious problems with my recorder device.
1st scenario
When I try to play the original file:
movie.avi
device doesn’t open the file but displays the message: “Can’t Playable. Unknown Video Format.”.
2nd scenario
I used mencoder to simply copy that file to the 5 minutes long sample:
Code:
mencoder movie.avi -ovc copy -oac copy -endpos 300 -o 0300.avi
When I try to play the file:
0300.avi
device opens the file and plays it all (5 minutes).
Then I used mencoder to copy that file to the 1 hour long sample:
Code:
mencoder movie.avi -ovc copy -oac copy -endpos 3600 -o 3600.avi
When I try to play the file:
3600.avi
device opens the file and plays it all (1 hour).
Next I used mencoder to copy that file to the 2.5 hour long sample:
Code:
mencoder movie.avi -ovc copy -oac copy -endpos 9000 -o 9000.avi
When I try to play the file:
9000.avi
device doesn’t open the file but displays the message: “Can’t Playable. Unknown Video Format.” (the same as appearing with the original movie.avi file).
So it looks like there’s some bug in the original movie.avi file between 1 hour and 2.5 hours that causes the described problem and mencoder used with copy+copy options copies that bug.
3rd scenario
Then I decided to try to encode 0300.avi sample file anew using mencoder:
Code:
mencoder 0300.avi -ovc lavc -oac copy -o 0300-mencoder-lavc+copy.avi
mencoder 0300.avi -ovc lavc -oac mp3lame -o 0300-mencoder-lavc+mp3lame.avi
mencoder 0300.avi -ovc lavc -oac pcm -o 0300-mencoder-lavc+pcm.avi
When I try to play the files:
0300-mencoder-lavc+copy.avi
0300-mencoder-lavc+mp3lame.avi
0300-mencoder-lavc+pcm.avi
device doesn’t open none file but displays the message: “Can’t Playable. Not Supported Video Codec.”.
Apparently mencoder lavc option generates the format unacceptable by the device.
4th scenario
Next I decided to try to encode 0300.avi sample file anew using ffmpeg:
Code:
ffmpeg -i 0300.avi -c:v libxvid -qscale:v 3 -c:a libmp3lame -qscale:a 4 0300-ffmpeg-libxvid.avi
ffmpeg -i 0300.avi -c:v mpeg4 -vtag xvid -qscale:v 3 -c:a libmp3lame -qscale:a 4 0300-ffmpeg-mpeg4.avi
ffmpeg -i 0300.avi -c:v msmpeg4 -qscale:v 3 -c:a libmp3lame -qscale:a 4 0300-ffmpeg-msmpeg4.avi
When I try to play the files:
0300-ffmpeg-libxvid.avi
0300-ffmpeg-mpeg4.avi
0300-ffmpeg-msmpeg4.avi
device opens each file but doesn’t play them at all (the screen is black and the counter displays: 00:00:00).
It seems ffmpeg produces the output unacceptable by the device.
5th scenario
Finally I decided to try to encode the sample files produced by ffmpeg using mencoder:
Code:
mencoder 0300-ffmpeg-libxvid.avi -ovc copy -oac copy -o 0300-ffmpeg-libxvid-mencoder-copy+copy.avi
mencoder 0300-ffmpeg-mpeg4.avi -ovc copy -oac copy -o 0300-ffmpeg-mpeg4-mencoder-copy+copy.avi
mencoder 0300-ffmpeg-msmpeg4.avi -ovc copy -oac copy -o 0300-ffmpeg-msmpeg4-mencoder-copy+copy.avi
When I try to play the files:
0300-ffmpeg-libxvid-mencoder-copy+copy.avi
0300-ffmpeg-mpeg4-mencoder-copy+copy.avi
0300-ffmpeg-msmpeg4-mencoder-copy+copy.avi
device opens each file, plays it for 17–18 seconds, then stops to play, and displays the message: “Can’t Playable.”.
It’s very strange and looks like some new bug caused by ffmpeg and mencoder working together.
***
At that point my invention ran down. Maybe you have an idea what method I could use in order to encode the original movie.avi file to the file acceptable by my recorder device?