BUG: VLC will not encode mp1v/mp2v at certain frame rates
Posted: 30 Oct 2005 01:35
[edit: The original subject was "Problems encoding mp1v/mp2v with certain video sources", but as discovered the source of the problem was the frame rate, I changed the title.]
I have had problems encoding mpeg videos. With certain inputs, mpeg encoding works fine. With others, I cannot get any video frames in the output.
For example, consider the following output stream settings:
:sout=#transcode{vcodec=mp1v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=display,dst=std{access=file,mux=mpeg1,url="D:\Documents and Settings\Kurt\Desktop\test2.mpg"}}
When the input is a file, or a capture device, the resulting output file has no video frames. VLC won't even do the local playback of the video. When the output is a network stream, it seems to work ok.
Non-functioning example: With the above output settings, VLC will write a .mpg file with no video frames if the following video clip (captured with an ASUS ATI 9600XP VIVO from a VHS video tape) is used as an input: http://members.shaw.ca/kfitzner/TestCapture.avi
Working example: With the same above output settings, VLC will write a good .mpg file if the following network stream is used as an input: mms://windowsmedia2.byu.edu/byutv250
At first I thought maybe the mp1v/mp2v codecs were being -- please stay polite -- about the input resolution, but both above examples are are 320x240 sources.
The above has been tried on 0.8.2, 0.8.4Test1a, and yesterday's daily build.
I have had problems encoding mpeg videos. With certain inputs, mpeg encoding works fine. With others, I cannot get any video frames in the output.
For example, consider the following output stream settings:
- File output with 'play locally' also set
- MPEG 1 encapsulation
- mp1v video codec @ 1024 kb/s
- mpga audio codec @ 192 kb/s
:sout=#transcode{vcodec=mp1v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=display,dst=std{access=file,mux=mpeg1,url="D:\Documents and Settings\Kurt\Desktop\test2.mpg"}}
When the input is a file, or a capture device, the resulting output file has no video frames. VLC won't even do the local playback of the video. When the output is a network stream, it seems to work ok.
Non-functioning example: With the above output settings, VLC will write a .mpg file with no video frames if the following video clip (captured with an ASUS ATI 9600XP VIVO from a VHS video tape) is used as an input: http://members.shaw.ca/kfitzner/TestCapture.avi
Working example: With the same above output settings, VLC will write a good .mpg file if the following network stream is used as an input: mms://windowsmedia2.byu.edu/byutv250
At first I thought maybe the mp1v/mp2v codecs were being -- please stay polite -- about the input resolution, but both above examples are are 320x240 sources.
The above has been tried on 0.8.2, 0.8.4Test1a, and yesterday's daily build.