Hi everyone,
I have some .mp4 files which are not playing in Windows Media Player(Error: Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file), but does play in VLC. I tried to change the container from .mp4 to .flv using a .bat* and after i changed it back to .mp4 and the file started playing normally without the error message. Does anyone have an idea of what it might be or how I can write a a command fot batch convertion that changes the containers in all folders and them change ir back to .mp4 and save in another folder (or will I have to do folder by folder?)
I used ffmpeg and the command i put in the batch file was:
the firtst .bat: to change the container from .mp4 to another container(i choose .flv)
for %%a in ("*.mp4") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.flv"
pause
the second .bat: to change back to .mp4:
for %%a in ("*.flv") do ffmpeg -i "%%a" -vcodec copy -acodec copy "%%~na.mp4"
pause
I wrote this on notepad and then saved .bat. After changing all files i wrote the way back.
I dont know exactly what it does, but i know it fixes any issues.
Can someone help me to write it better and make it work with the whole directory and then save it to another directory to not overwrite the older files?
Thanks!
+ Reply to Thread
Results 1 to 1 of 1
-
Last edited by luiza; 3rd Oct 2019 at 12:47. Reason: typo
Similar Threads
-
youtube needs mp4 container but my VE does not have it
By hello0 in forum Newbie / General discussionsReplies: 20Last Post: 19th Jan 2019, 15:08 -
change m4a to aac container
By jamespoo in forum MediaReplies: 11Last Post: 7th Feb 2017, 22:15 -
VP8 stream, witch container to make it work?
By trodas in forum Video Streaming DownloadingReplies: 6Last Post: 11th May 2015, 15:58 -
How to display fonts with subtitles in MP4 container?
By Jamaika in forum Software PlayingReplies: 2Last Post: 18th Feb 2015, 08:58 -
MKV to MP4 container
By Brian7k in forum MacReplies: 7Last Post: 17th Jan 2015, 21:49