If I disable video with a AAC source, I get the *.aac file extension. When you open the database it probably opens at the "auto_assign" switch which refers to "libvo_aacenc" with a Zeranoe build. If that not happens, look in the FFmpeg log at the audio streams...
There might be an issue with parsing this data. If you still get the error, please copy and post the audio stream from the FFmpeg log for the clip that generates the error.Code:Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp (default) Stream #0:2(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp
About the memory...
The very long encoding time for a short clip you mentioned earlier has most likely to do with it. Probably a lot of memory swapping with pagefile.sys is going on.
Chris
+ Reply to Thread
Results 991 to 1,020 of 1190
-
-
It's an issue with the latest Zeranoe builds that do not include the FFmpeg built date. Over the years, I never found a build from anywhere that didn't show that and I use it in Avanti to check out if the build supports all the required options.
OLD: built on Jan 12 2015 22:02:37 with gcc 4.9.2 (GCC)
NEW: built with gcc 4.9.2 (GCC)
Perhaps it's a bug in the Zeranoe build system because the html docs also have no date which they formerly had.
I added a workaround for the next Avanti version but I hope Zeranoe will fix it because I think it's an important reference for most people. Only the version number like "version N-69040-gb23a866" doesn't say too much
EDIT:
Downloaded the latest Sherpya build and it seems to be a trend ...
ffmpeg version N-69530-g52f2adc-Sherpya Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC)
Have to find another way to get the info I need.
ChrisLast edited by Chris K; 8th Feb 2015 at 03:16.
-
Hi Chris,
Need your help on below.
I am transcoding to XDCAM HD422, after conversion I am getting GOP settings as per below.
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings, BVOP : Yes
Format settings, Matrix : Default
Format settings, GOP : Variable
But my GOP settings requirement is as per below.
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
I used below FFMPEG settings in Avanti.
-mbd 2
-trellis 1
-rc_max_vbv_use 1
-rc_min_vbv_use 1
-bf 2
-g 12
-keyint_min 1
-dc 10
-intra_vlc 1
-qmax 3
-lmin "1*QP2LAMBDA"
-top 1
-flags +ildct+ilme
-alternate_scan 1
Is it possible?
Thanks
Vijay -
How about the audio channel splitting? Do you ever confirm a suggestion works for you?
Load the template "XDCAM HD / 1080i (includes adaption info)" at the UNI tab and use that as a start point.
You have to add -g 12 to the script to get M=3, N-12. For custom matrix you have to extract the matrix info from the source that generated above specs.
MediaInfo says ...
Video
ID : 1
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings, BVOP : Yes
Format settings, Matrix : Default
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Codec ID : xd5e
Duration : 3s 920ms
Bit rate : 49.4 Mbps
Maximum bit rate : 50.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Scan type, store method : Interleaved fields
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.953
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Open
Stream size : 23.1 MiB (97%)
Language : English
GOP, Open/Closed of first frame : Closed
Chris -
Chris I used template as you mentioned with -g 12 in script, still I am getting same output as below.
Format settings, BVOP : Yes
Format settings, GOP : Variable
Is it possible without changing custom matrix? Any suggestion?
I am able to split audio channels using below script in one go.
-map 0:0 -map 1:0 -map 1:0 -map 2:0 -map 2:0 -map 3:0 -map 3:0 -map 4:0 -map 4:0
-map_channel 1.0.0:0.1 -map_channel 1.0.1:0.2 -map_channel 2.0.0:0.3 -map_channel 2.0.1:0.4
-map_channel 3.0.0:0.5 -map_channel 3.0.1:0.6 -map_channel 4.0.0:0.7 -map_channel 4.0.1:0.8 -
It's probably not a problem to use the default matrix. It isn't related to the gop size issue.
I used a HD source and the template script with -g 12 added and get the MediaInfo output as posted. No idea why you get "GOP : Variable". Can't do much more than checking out the way I did.
EDIT: my MediaInfo is the latest portable version from VideoHelp. My FFmpeg version is one of the latest Zeranoe builds.
ChrisLast edited by Chris K; 11th Feb 2015 at 09:36.
-
Chris issue with media info, I updated with 0.7.72. Now It's showing as per below.
Format : MPEG Video Commercial name : XDCAM HD422
Commercial name : XDCAM HD422 Format version : Version 2
Format version : Version 2 Format profile : 4:2:2@High
Format profile : 4:2:2@High Format settings, BVOP : Yes
Format settings, BVOP : Yes Format settings, Matrix : Custom
Format settings, Matrix : Custom Format settings, GOP : M=3, N=12
Format settings, GOP : M=3, N=12
Have you able to check audio split? -
OK! I also had to first upgrade an old MediaInfo which didn't show the gop info at all.
Have you able to check audio split?
-map 0:0
-map 0:1 -map 0:1 -map_channel 0.1.0:0.1 -map_channel 0.1.1:0.2
-map 0:2 -map 0:2 -map_channel 0.2.0:0.3 -map_channel 0.2.1:0.4
The -map_channel command is fairly easy to use (I found out). FFmpeg says this about the command...
-map_channel is forwarded to lavfi similarly to -af pan=0x4:c0=c1.
The use of the libavfilter pan command is much more complicated. Mapping channels seems to be some kind of side effect? That's why I focused on the channelsplit filter in my first reply on the subject.
ChrisLast edited by Chris K; 12th Feb 2015 at 08:19. Reason: correction on map commands
-
Mapping channels is not always side effect, sometimes as per broadcaster requirements we need to map the audio channels/tracks. Every broadcaster have their own audio mapping configuration. In above example I have 4 stereo tracks and in every tack I have two different languages.
-
I actually meant a side effect of the FFmpeg pan filter (I would expect it was for panning). I googled for "omneon" when mentioned it in your post about the separate streams and was quite surprised what's going on in the broadcast business.
Chris -
@vijm1972
I found out we can't rely on what MediaInfo says about gops. It only scans a number of frames at the start of the stream and if it sees gops of different length, it says "Variable". If there are 'by accident' a few gops at the start of equal length, it says e.g. N=3, M=12.
You need to scan the whole stream to get reliable info on the gop structure. You can do that with MPEGParser but it only accepts m2v elementary streams.
I refreshed my memory a bit on FFmpeg mpeg2 encoding and gops. Aside from the other required mpeg2 commands, these are involved in manipulating gops ...
-g 12
-bf 2
-sc_threshold 1000000000
-flags +ildct+ilme+cgop
Above settings set closed gops but I can't get a fixed gop length of 12 with it (MPEGParser shows a gop length of 10). Closed gops seems to be a requirement for editing? Afaik it means that B frames should only refer to I and P frames within the same gop.
-g 12
-bf 2
-sc_threshold 1000000000
-flags +ildct+ilme
With these settings, I get a fixed gop length of 12 but gops are not closed.
-sc_threshold 1000000000 is scene change threshold. The value is given by FFmpeg itself and actually disables scene change detection. -flags cgop is the switch for closed gops. You can't set this flag without also including -sc_threshold 1000000000.
EDIT: Scene change detection seems to be 'on' by default in FFmpeg and it means that at every detected change, a new gop is started. This of cource leads to a variable gop length.
I hope this helps a bit but I think FFmpeg mpeg2 encoding has its restrictions compared to some other encoders like e.g. HCenc.
ChrisLast edited by Chris K; 13th Feb 2015 at 02:52.
-
Hi Chris,
Please let me know what is the best settings for wmv output. My source is in 720x576_512Kbps_25fps_mkv format.
I wanted to make them 352x288_256_15fps.wmv format with best quality.
Please suggest.
Thanks
Vijay -
WMV, 25 fps to 15 fps, 256 kbps? Perhaps settings for the least worse quality!
FFmpeg only supports WMV 8. It will (has to) drop 10 frames per second which makes it rather choppy on fast movement.
There's a template at the UNI tab that you can adapt. The dropdown boxes have 15 fps and 352x288 available and you can set the bitrate to 256. Use 2-pass encoding and add the following to the FFmpeg script editor...
Code:[USER_VIDEO_OPTIONS] -g 160 -cmp 3 -subcmp 3 -mbd 2 -mpv_flags cbp_rd -trellis 1
Chris -
-
Hello dear members,
My source file is 1920x1080 m2ts file.
1. Via Avanti using UNI template : PRORES 422 / Apple intermediate format, I encode those m2ts file with a little change :
frame size : 720x480
DAR : 16:9
While the rest of the options I didn't touch.
In the User Video Options dialog box, I typeCode:-profile: 1
2. the resulted files I imported to Premiere CS6.
After finish editing on the CS6 timeline, I export it to DebugModeFrameServer (DMFS) via Avisynth (AVS).
3. Back to Avanti, I open that AVS file.
Load this template : MPEG-2 / 29.97 IL -> 29.97 IL HQ elementary for DVD
The resulting mpeg file is having horizontal lines and blury for the whole duration of my movie
Try different way in step-1 : encode to prores via ffmpeg with the command line :
Code:for %%a in ("*.m2ts") do ffmpeg -i %%a -vcodec prores -profile: 1 -s 720x480 -aspect 16:9 "E:\prores_720x480\%%~na.mov"
the resulting mpeg file is beautiful.
My question is :
what's wrong did I do in my step-1 using Avanti ?
Another little question,
(with no transition - no effect in CS6 timeline, my 72 minutes video took Avanti 37 minutes to encode)
is encoding time using MPEG-2 / 29.97 IL -> 29.97 IL HQ elementary for DVD around 60 fps normal ?
I'm hoping it could be faster
Any kind of respond will be greatly appreciated.
Thank you in advanced.
regards.
Intel i5 4460
8 gb RAM
B85 mobo
Onboard Graphic Card (HD 4600) -
This is the Avanti command line. I see basically no difference with your console batch example, so I have no Idea.
Code:ffmpeg -i "input.m2ts" -sws_flags bicubic -vf "scale=720:480,setdar=16/9" -codec:v prores -profile:v 1 -af "aresample=44100" -codec:a pcm_s16le -b:a 1536k -ac 2 "output.mov"
Another little question,
(with no transition - no effect in CS6 timeline, my 72 minutes video took Avanti 37 minutes to encode)
is encoding time using MPEG-2 / 29.97 IL -> 29.97 IL HQ elementary for DVD around 60 fps normal ?
I'm hoping it could be faster
But when at the task manager, also check if FFmpeg uses all cores. It should with mpeg2 encoding if you use a recent FFmpeg version. And if you use a AviSynth script as source, this may also slow down the whole process.
EDIT:
-profile: 1 is actually a incomplete syntax, although accepted by FFmpeg. It should read -profile:v 1.
If you use the old style -profile 1 you'll get a FFmpeg request to use -profile:v and -profile:a because this command is also applicable on audio profiles. I don't think however it has something to do with your issue.
ChrisLast edited by Chris K; 23rd Feb 2015 at 16:04.
-
Access to network files is currently not supported in the source file browser. I never tried it but you could drop a network file on the "Source 1" field and see what happens.
EDIT:
It should be possible to assign a drive letter to a local network ...
https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/window....mspx?mfr=true
http://www.dummies.com/how-to/content/how-to-map-a-network-folder-in-windows-7.html
I then expect it will even show up in the browser dialog.
ChrisLast edited by Chris K; 24th Feb 2015 at 11:30. Reason: added link for Windows 7
-
Hello Chris,
I have to trim content at 22 seconds at beginning and 13 seconds at end. My source files are not same duration. Is it possible to trim those files using watchfolder option?
Thanks
Vijay -
You can add the following to the FFmpeg script ...
Code:[USER_VIDEO_OPTIONS] -ss 22 <<-- -t $($sourcetime1-22-13) # other commands already there.
It will fail if the source durantion is not reported accurately by FFmpeg.
BTW; did you try the new folder watch option of Avanti 0.9.0?
Chris -
I see there is a "-sws_flags bicubic -vf" there in your/avanti command line, while mine in ffmpeg console (direct without Avanti) there is not.
Following is the media info of prores file produced through Avanti :
Code:General Complete name : C:\Users\Microsoft\Desktop\Avanti.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 44.4 MiB Duration : 13s 56ms Overall bit rate mode : Variable Overall bit rate : 28.5 Mbps Writing application : Lavf55.37.101 Video ID : 1 Format : ProRes Format version : Version 0 Format profile : LT Codec ID : apcs Duration : 13s 47ms Bit rate mode : Variable Bit rate : 27.2 Mbps Width : 720 pixels Height : 480 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 29.970 fps Standard : NTSC Color space : YUV Chroma subsampling : 4:2:2 Scan type : Interlaced Original scan type : Progressive Scan order : Bottom Field First Bits/(Pixel*Frame) : 2.621 Stream size : 42.2 MiB (95%) Writing library : fmpg Language : English Matrix coefficients : BT.601
this one is the media info of the prores file produced with ffmpeg :
Code:General Complete name : E:\ffmpeg.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 42.4 MiB Duration : 13s 90ms Overall bit rate mode : Variable Overall bit rate : 27.2 Mbps Writing application : Lavf55.37.101 Video ID : 1 Format : ProRes Format version : Version 0 Format profile : LT Codec ID : apcs Duration : 13s 47ms Bit rate mode : Variable Bit rate : 27.2 Mbps Width : 720 pixels Height : 480 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 29.970 fps Standard : NTSC Color space : YUV Chroma subsampling : 4:2:2 Scan type : Interlaced Original scan type : Progressive Scan order : Bottom Field First Bits/(Pixel*Frame) : 2.621 Stream size : 42.2 MiB (100%) Writing library : fmpg Language : English Matrix coefficients : BT.601
and here is the prores file using your command in ffmpeg console box :
Code:General Complete name : E:\ffmpeg.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 42.4 MiB Duration : 13s 90ms Overall bit rate mode : Variable Overall bit rate : 27.2 Mbps Writing application : Lavf55.37.101 Video ID : 1 Format : ProRes Format version : Version 0 Format profile : LT Codec ID : apcs Duration : 13s 47ms Bit rate mode : Variable Bit rate : 27.2 Mbps Width : 720 pixels Height : 480 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 29.970 fps Standard : NTSC Color space : YUV Chroma subsampling : 4:2:2 Scan type : Interlaced Original scan type : Progressive Scan order : Bottom Field First Bits/(Pixel*Frame) : 2.621 Stream size : 42.2 MiB (100%) Writing library : fmpg Language : English Matrix coefficients : BT.601
.
But why once I put in the CS6 timeline, then export via DebugMode --- Avisynth, the resulting mpeg file encoded with Avanti has a different quality ya ?
scratch my head ...
Note that -s and -aspect are aliases of the scale and setdar filter commands used by Avanti.
I wonder the 16:9 of ffmpeg is set to 1.185 ? or 1.212 ya ?
I guess is set to 1.185
because when I put the file to CS6 timeline with sequence setting default to NTSC wide (1.212) - it complaint that the file doesn't match of the sequence setting ... then when I choose to adjust it, the CS6 sequence setting automatically change to "unknown PAR (32/27)"
When you look at the Windows task manager during encoding you should see that CPU usage of Avanti most of the time isn't measurable (less than 1%) so almost all CPU power should go to FFmpeg. That is, if you don't have any other heavy processes running at the same time. So I think (in this case) this is the max you can get with your hardware?
But when at the task manager, also check if FFmpeg uses all cores. It should with mpeg2 encoding if you use a recent FFmpeg version.
btw, from Avanti .. I read this :
ffmpeg version N-62569-gf57ac37
built on Apr 19 2014 22:03:22 with gcc 4.8.2 (GCC)
I wonder if that is the latest ffmpeg version ?
And if you use a AviSynth script as source, this may also slow down the whole process.
EDIT:
-profile: 1 is actually a incomplete syntax, although accepted by FFmpeg. It should read -profile:v 1.
If you use the old style -profile 1 you'll get a FFmpeg request to use -profile:v and -profile:a because this command is also applicable on audio profiles. I don't think however it has something to do with your issue.
Chris
regards,
reko -
As for the daily on-going FFmpeg developing process, you could call it rather old.
http://ffmpeg.zeranoe.com/builds/
Checked out todays build and it seems to work fine with Avanti.
Chris -
Yeah, it's sort of a problem not knowing why a conversion failed. But the folder watch option is not a replacement for the batch process option where Avanti creates a dedicated log. Perhaps save the individual logs to the "done" folder using the clips destination file name? I will look into it but can't promise anything yet.
Chris -
Hi Chris,
After using Avanti 0.9.0 I have found some issues while using it. When I use previously converted file, Avanti ask for rewrite the same but when we click yes it doesn't respond. We need to close the application and start again. I haven't observe that in previous versions.
Thanks
Vijay -
If you are on Windows 7 or 8 it might be the Avanti install path issue, known on these OS'. Try the path suggestions from here to see if you can fix it by changing the path somewhat.
http://avanti.arrozcru.org/windows7.htm
Chris -
-
Similar Threads
-
TEncoder 4.0.0 - Multithreaded GUI for FFMpeg and Mencoder (Support thread)
By ozok in forum Video ConversionReplies: 104Last Post: 4th Jun 2014, 10:10 -
GUI Encoders with Avisynth support?
By shagratt71 in forum Video ConversionReplies: 4Last Post: 13th Dec 2011, 05:27 -
AVANTI (FFMPEG) Question
By erichollis in forum Video ConversionReplies: 1Last Post: 18th Aug 2011, 15:54 -
Avanti - FFmpeg verison
By ABBrittain in forum Newbie / General discussionsReplies: 2Last Post: 22nd Jun 2011, 04:01 -
I need a supported build of ffmpeg for Avanti 0.4.8
By flashandpan007 in forum Video ConversionReplies: 1Last Post: 23rd Jun 2010, 09:28