Help mp4 to avc

Use this forum to request features. Maybe you'll get lucky!
Post Reply
sankovski
Posts: 5
Joined: Fri May 21, 2021 7:08 pm

Help mp4 to avc

Post by sankovski »

Hello. I'm new to this topic. Could you tell me how to set it up: there is an MP4 file from it you need to get AVC. How do I set it up?
Thank you.
emcodem
Posts: 1631
Joined: Wed Sep 19, 2018 8:11 am

Re: Help mp4 to avc

Post by emcodem »

Hey there, welcome to the forum and thank you for using ffastrans!

Do you mean you want to get the video only as .avc file, is that correct? ...just asking because thats a very uncommon usecase.
emcodem, wrapping since 2009 you got the rhyme?
sankovski
Posts: 5
Joined: Fri May 21, 2021 7:08 pm

Re: Help mp4 to avc

Post by sankovski »

Yes that's right.
emcodem
Posts: 1631
Joined: Wed Sep 19, 2018 8:11 am

Re: Help mp4 to avc

Post by emcodem »

Well, in that case, a commandline executor node should do:

Code: Select all

%comspec% /C ""%s_ffmpegx64%" -y -i "%s_source%" -c:v copy -f rawvideo "c:\temp\test.avc""
Sure you can/should change"c:\temp\test.avc" to something meaningful, like "%s_original_full%.avc", whatever meets your output requirements.
Lemme know if you need help regarding the output path :D

Edit:
On a special note, for my existing mp4 files, i needed to add a bitstream filter to make the final avc work:

Code: Select all

%comspec% /C ""%s_ffmpegx64%" -y -i "%s_source%" -c:v copy -f rawvideo -bsf:v h264_mp4toannexb "c:\temp\test.avc""
emcodem, wrapping since 2009 you got the rhyme?
sankovski
Posts: 5
Joined: Fri May 21, 2021 7:08 pm

Re: Help mp4 to avc

Post by sankovski »

Forgive me for not delivering the information correctly, they want to get the following from the mxf file:
General
Complete name : \\Desktop\test\HDF-MCH.13_13_05_2021.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom)
File size : 18.3 MiB
Duration : 4 min 48 s
Overall bit rate mode : Variable
Overall bit rate : 532 kb/s
Encoded date : UTC 2021-05-17 12:33:57
Tagged date : UTC 2021-05-17 12:33:57

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings : CABAC / 5 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 4 min 48 s
Bit rate mode : Variable
Bit rate : 402 kb/s
Maximum bit rate : 450 kb/s
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.039
Stream size : 13.8 MiB (76%)
Language : English
Encoded date : UTC 2021-05-17 12:33:57
Tagged date : UTC 2021-05-17 12:33:57
Color range : Limited
Codec configuration box : avcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 4 min 48 s
Bit rate mode : Variable
Bit rate : 125 kb/s
Maximum bit rate : 394 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 4.31 MiB (24%)
Language : Russian
Encoded date : UTC 2021-05-17 12:33:57
Tagged date : UTC 2021-05-17 12:33:57
sankovski
Posts: 5
Joined: Fri May 21, 2021 7:08 pm

Re: Help mp4 to avc

Post by sankovski »

Thanks for the help. I figured it out, with the standard H. 264 preset, it turned out to make the required format.
emcodem
Posts: 1631
Joined: Wed Sep 19, 2018 8:11 am

Re: Help mp4 to avc

Post by emcodem »

well done, congrats :D
emcodem, wrapping since 2009 you got the rhyme?
Post Reply