I own a Sony Video Camera, that produces MPEG2 Files on a SD-Card. Unfortunately there is some kind of extradata saved (about 200kb) in the files. Thats the reason why I canīt use them directly in Magix Video Deluxe or in windows Media Player. There are always black frames between the scenes (files).
With the camera came a software called PMB (Picture Motion Browser). With that I had allways to "convert" the Sony-MPEG2 files to real Mpeg2.
That always took some time and I think I lost surly some quality from the film. And the software only works with Windows XP.
Now under Windows 8.1 PMB isnīt working anymore and I have to use PMH (Play Memoris Home) (the newest version of the old PMB).
In that I canīt vonvert to mpeg2 anymore only to Mpeg4 what takes even more time and surly reduces the quality even more (or am I wrong?)
Thatīs why I am trying to ust a batch file to "convert" the 400 files with avidemux.
I just want avidemux to open the Mpeg2 file and copy every thing in a new mpeg2 file but all I tried dosenīt work. I Just donīt get the right script.
Can anyone tell me the right code for a script with avidemux?
Here is my batch file so far:
set avidemux="C:\Programme\Avidemux 2.6 - 64bits\avidemux.exe"
for %%f in (*.mpg) do %avidemux% --force-alt-h264 --load "%%f" --save-dvd --output-format PS --save "convert\%%f.mpg" --quit
Thank you very much!
+ Reply to Thread
Results 1 to 9 of 9
Hi. Thank you. I forgot to mention that. Yes, I allready tried that and it worked fine.
I just want to do it now for all the 400 files with a script.
Is there someone who can write me the correct script?
I would try ffmpeg until you found a method with avidemux(I couldn't find a copy method...)....the ffmpeg batch should look like this:
for %%f in (*.mpg) do "C:\Programme\ffmpeg\ffmpeg.exe" -i "%%f" -vcodec copy -acodec copy "convert\%%f.mpg" pause
add -f vob
for %%f in (*.mpg) do "C:\Programme\ffmpeg\ffmpeg.exe" -i "%%f" -vcodec copy -acodec copy -f vob "convert\%%f.mpg" pause
Did it work with -f vob?
thank you very much! The script is working!
Unfortunately, there are still problems with the beginning of the new files, when I try to use them in Magix Video Deluxe, Windows Media Player or other programms. And I although found out, that the file I converted with avidemus is although not working right ;-(
It seems, that I am forced to use the Sony Programm to get my files usable.
Thanks for your help.
Or is there anyone who can analyse my files and tell me what is the exakt difference between the File direct from the camera and the converted file from the PMB under Windows XP.
Maybe then, somebody could filter me out that annoying extra data.
I upload two files here.