I want to encode to a m2v file which is an MPEG2 video file but from what I understand is an elementary stream. I can not find any evidence whether or not ffmpeg can output to such a file. The -f formats option displays m4v , raw MPEG-4 and it displays mpeg2video. This implies the mpeg2video is not raw. m2v is not in the list of formats. If I am wrong in concluding that m2v files are not supported, please tell me how they are. And if not, I am curious why that was left out....perhaps I can contribute?
Le 24 ao?t 06 ? 09:50, Paul Neyrinck a ?crit :
I want to encode to a m2v file which is an MPEG2 video file but from what I understand is an elementary stream. yes
I can not find any evidence whether or not ffmpeg can output to such a file. The -f formats option displays m4v , raw MPEG-4 and it displays mpeg2video. This implies the mpeg2video is not raw. m2v is not in the list of formats. If I am wrong in concluding that m2v files are not supported, please tell me how they are. And if not, I am curious why that was left out....perhaps I can contribute?
to output to .m2v -> just specify output.m2v (and ffmpeg will parse the extension to conform) : ffmpeg -i input output.m2v -> or convert to temporary rawvideo and specify the output codec : ffmpeg -i input -f rawvideo -vcodec mpeg2video output .m2v bye Herv?
herve.flores wrote:
Le 24 ao?t 06 ? 09:50, Paul Neyrinck a ?crit :
I want to encode to a m2v file which is an MPEG2 video file but from what I understand is an elementary stream. yes
I can not find any evidence whether or not ffmpeg can output to such a file. The -f formats option displays m4v , raw MPEG-4 and it displays mpeg2video. This implies the mpeg2video is not raw. m2v is not in the list of formats. If I am wrong in concluding that m2v files are not supported, please tell me how they are. And if not, I am curious why that was left out....perhaps I can contribute?
to output to .m2v
-> just specify output.m2v (and ffmpeg will parse the extension to conform) : ffmpeg -i input output.m2v -> or convert to temporary rawvideo and specify the output codec : ffmpeg -i input -f rawvideo -vcodec mpeg2video output .m2v
bye
Herv?
-formats gives: DE mpeg MPEG1 System format E mpeg1video MPEG video E mpeg2video MPEG2 video DE mpegts MPEG2 transport stream format D mpegvideo MPEG video Since there is only one kind of stream in MPEG1, I take that to mean -f mpeg means muxed MPEG1 audio (level 1,2 or 3) with MPEG1 video. *That* implies that -f mpeg1video means NON-muxed, ie raw, MPEG1 video. Which in turns implies that -f mpeg2video means raw. If -f rawvideo is needed, then -f mpeg2video means MPEG2 picture stream (not sure of the correct name). Then the name "MPEG2 video" should be changed to something else. -- Michel Bardiaux R&D Director T +32 [0] 2 790 29 41 F +32 [0] 2 790 29 02 E mailto:mbardiaux at mediaxim.be Mediaxim NV/SA Vorstlaan 191 Boulevard du Souverain Brussel 1160 Bruxelles http://www.mediaxim.com/
participants (3)
-
herve.flores@free.fr -
mbardiaux@mediaxim.be -
paul@neyrinck.com