Avidemux Forum

Avidemux => Stable branch (2.5) discussion => Topic started by: yetanotherlogin on November 08, 2012, 03:42:01 PM

Title: Cutting scenes: I/B/P Frames?
Post by: yetanotherlogin on November 08, 2012, 03:42:01 PM
Hello

I need to edit an FLV file (AAC LC + H264/AVC High@L3.0).

I noticed that there are three types of frames: I, B, and P.

I tried jumping from I to I, but there's quite a lot of video in between, so need something finer grained.  Can I just jump from any frame to any other frame, or does AviDemux require using a specific frame type for editing to work?

QuoteThe video is in copy mode but the cut points are not on keyframes. The video will be saved but there will corruption at cut point(s).

Thank you.
Title: Re: Cutting scenes: I/B/P Frames?
Post by: styrol on November 08, 2012, 05:25:34 PM
QuoteCan I just jump from any frame to any other frame, or does AviDemux require using a specific frame type for editing to work?
For h.264 you have to cut at keyframes (Intra frames = I frames).

As far is I know Avidemux supports smart editing only for MPEG-4 ASP and MPEG-2 encoded video.
Title: Re: Cutting scenes: I/B/P Frames?
Post by: yetanotherlogin on November 08, 2012, 10:38:59 PM
Thanks for the info. I'll reconvert the video as MPEG-4 ASP or MPEG-2 and give it another try.
Title: Re: Cutting scenes: I/B/P Frames?
Post by: yetanotherlogin on November 09, 2012, 10:33:18 AM
BTW, with "MPEG-4 ASP and MPEG-2 encoded video", do you mean reencoding the video with either of those codecs, or do you mean changing the container?

ffmpeg -i input.flv -vcodec mpeg4 -acodec copy output.mpg
"Attempt to open C:/ffmpeg/bin/output.mpg failed!"

BAD ffmpeg -i input.flv -vcodec mpeg4 -acodec copy -format mpeg2video output.mpg
"Attempt to open C:/ffmpeg/bin/output.mpg failed!"
Title: Re: Cutting scenes: I/B/P Frames?
Post by: styrol on November 09, 2012, 12:26:11 PM
Quotedo you mean reencoding the video with either of those codecs, or do you mean changing the container?
Re-encoding the video:
Video codec: MPEG-4 ASP; audio codec: copy; container format: MP4

or

Video codec: MPEG-4 ASP; audio codec: MP3; container format: AVI
Title: Re: Cutting scenes: I/B/P Frames?
Post by: yetanotherlogin on November 09, 2012, 03:59:15 PM
Thank you.