Log in

View Full Version : Trim Not Working in Windows Media Player


MysteryX
20th December 2014, 23:39
I added Trim to a script
AviSource("Job1_Input.avi", audio=false).ConvertToYV12()
Trim(1000, 1500)

Now, with Trim, it plays fine in MPC-HC but Windows Media Player cannot load the video. Why?

Also, one problem with trimming is that I'm then muxing the video with the original audio with ffmpeg... and that won't work anymore. Is there any way to trim / muxe? I doubt it...

And one final question: now I'm converting the video to AVI before processing. Since I'm muxing with the original audio, I don't need the audio in the AVI. Is there a way to convert the video only to AVI and drop the audio with ffmpeg? This would slightly reduce the output file and accelerate the conversion.

MysteryX
21st December 2014, 02:17
Btw, it has never been easier to greatly improve the quality of videos
http://s8.postimg.org/4oyj72iy9/Media_Encoder.jpg (http://postimg.org/image/4oyj72iy9/)

... besides the Trim End crashing the preview.

StainlessS
21st December 2014, 15:38
Is there a way to convert the video only to AVI and drop the audio with ffmpeg?


setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get input file, No terminating Backslash, "." = current directory
set INDIR="."


REM Where to place output file, No terminating Backslash.
set OUTDIR=".\OUTPUT"


FOR %%A IN (*.wmv *.mpg *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM) DO (
%FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -an "%OUTDIR%\%%~nxA.AVI"

)

Pause


The -an drops audio