This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How to run this ffmpeg command lines in hybrid?
#11
The human voice of Adjust pitch is changed,so I won't use it.
https://wwi.lanzoup.com/iVChW0mwb6li
Why the time length of extract audio didn't adjust to the length of slowdown video with time 28 min 12 s?I want to play the extract audio in Potplayer,it can keep playing after the end of the time,but I can't choose the time between  end time and 28 min 12 s,both ffmpeg and hybrid have the same problem. How to make the extract audio time the same as the length of slowdown video?Debug and test output files I already send to you. Reply when you are free,thanks.
[Image: m2lna4.png]
Reply
#12
I can't reproduce this here.
the original:
mediainfo.exe g:\Output\iId_2_aid_1_DELAY_-53ms_2023-02-08@15_48_34_7510_01.ac3
General
Complete name                            : g:\Output\iId_2_aid_1_DELAY_-53ms_2023-02-08@15_48_34_7510_01.ac3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
File size                                : 1.53 MiB
Duration                                 : 33 s 376 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 384 kb/s

Audio
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Duration                                 : 33 s 376 ms
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 1.53 MiB (100%)
Service kind                             : Complete Main
converted to aac with 'tempo 0.80000000' gives:
mediainfo.exe g:\Output\iId_2_aid_1_ms_2023-02-08@15_48_34_7510_02.aac
General
Complete name                            : g:\Output\iId_2_aid_1_ms_2023-02-08@15_48_34_7510_02.aac
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (M4A /mp42/isom)
File size                                : 263 KiB
Duration                                 : 41 s 856 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 51.4 kb/s
Encoded date                             : UTC 2023-02-08 14:48:56
Tagged date                              : UTC 2023-02-08 14:48:58
FileExtension_Invalid                    : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v

Audio
ID                                       : 1
Format                                   : AAC LC SBR
Format/Info                              : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name                          : HE-AAC
Format settings                          : Explicit
Codec ID                                 : mp4a-40-2
Duration                                 : 41 s 856 ms
Bit rate mode                            : Variable
Bit rate                                 : 50.3 kb/s
Maximum bit rate                         : 144 kb/s
Channel(s)                               : 6 channels
Channel layout                           : C L R Ls Rs LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 23.438 FPS (2048 SPF)
Compression mode                         : Lossy
Stream size                              : 257 KiB (98%)
Writing library                          : Nero AAC codec 1.5.4.0
Encoding settings                        : -br 128000
Encoded date                             : UTC 2023-02-08 14:48:56
Tagged date                              : UTC 2023-02-08 14:48:58
Audio length did change as expected.

Is your input by any change vfr?

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#13
I used hybrid fdk aac vbr 4 to change the speed,you used Neroaac. The original file mediainfo is cfr 30fps, I change the speed by ffmpeg and hybrid, the extract and original audios download links are above.They are slowdown, but the extract audios time show in potplayer aren't the same as slowdown video time, and I can't choose to play the rest time in potplayer, it keep on playing but the time already ended. Download the test.zip and you will know what I said. How to  make extract audios time just like the slowdown video time?

By the way, where is the setting hybrid encoding vfr
?
Reply
#14
Hybrid has no setting to encode to vfr.
Only thing regarging vfr handling it does is that Hybrid will extract the time codes and add them back to the output.
So if you are reencoding vfr content, it stays vfr unless Hybrid is told to decode to cfr.
Will try to look at your test.zip tomorrow. (no time today)

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#15
Ha, some time opened up. Smile

Original duration
33 s 376 ms

I all the aac encoders Hybrid supports:
ffmpeg -y -threads 8 -loglevel fatal -nostdin -i "G:\Output\iId_2_aid_1_DELAY_-97ms_2023-02-08@17_12_30_0310_01.ac3" -ac 6 -ar 48000 -f sox - | sox --multi-threaded  --temp "G:\Output\2023-02-08@17_12_30_031001" --buffer 524288 -S -t sox - -t wav - tempo 0.80000000 | neroAacEnc  -br 128000 -lc -ignorelength -if - -of "G:\Output\iId_2_aid_1_DELAY_-97ms_2023-02-08@17_12_30_0310_02.aac"

ffmpeg -y -threads 8 -loglevel fatal -nostdin -i "G:\Output\iId_7_aid_1_DELAY_-50ms_2023-02-08@17_24_04_3810_01.ac3" -ac 6 -ar 48000 -f sox - | sox --multi-threaded  --temp "G:\Output\2023-02-08@17_24_04_381001" --buffer 524288 -S -t sox - -t wav - tempo 0.80000000 | fdkaac --bitrate 512000 --profile 2 --transport-format 0 --gapless-mode 2 --ignorelength -o "G:\Output\iId_7_aid_1_DELAY_-50ms_2023-02-08@17_24_04_3810_02.aac" -

ffmpeg -y -threads 8 -loglevel fatal -nostdin -i "G:\Output\iId_4_aid_1_DELAY_-43ms_2023-02-08@17_16_51_5710_01.ac3" -ac 6 -ar 48000 -f sox - | sox --multi-threaded  --temp "G:\Output\2023-02-08@17_16_51_571001" --buffer 524288 -S -t sox - -b 16 -t wav - tempo 0.80000000 | faac -b 128 -c 48000 -o "G:\Output\iId_4_aid_1_DELAY_-43ms_2023-02-08@17_16_51_5710_02.aac" -

ffmpeg -y -threads 8 -loglevel fatal -nostdin -i "G:\Output\iId_5_aid_1_DELAY_-18ms_2023-02-08@17_17_53_1010_01.ac3" -ac 6 -ar 48000 -f sox - | sox --multi-threaded  --temp "G:\Output\2023-02-08@17_17_53_101001" --buffer 524288 -S -t sox - -t wav - tempo 0.80000000 | fhgaacenc --ignorelength --cbr 192 --profile lc - "G:\Output\iId_5_aid_1_DELAY_-18ms_2023-02-08@17_17_53_1010_02.aac"

ffmpeg -y -threads 8 -loglevel fatal -nostdin -i "G:\Output\iId_6_aid_1_2023-02-08@17_19_03_3810_01.ac3" -ac 6 -ar 48000 -f sox - | sox --multi-threaded  --temp "G:\Output\2023-02-08@17_19_03_381001" --buffer 524288 -S -t sox - -b 16 -t raw - tempo 0.80000000 | qaac --threading --raw --raw-channels 6 --raw-rate 48000 --cvbr 512 - -o "G:\Output\iId_6_aid_1_2023-02-08@17_19_03_3810_02.aac"
audio, each time was properly adjusted to 41 s 771 ms.

I then fed your original.aac to Hybrid which then used:
ffmpeg -y -threads 8 -loglevel fatal -nostdin -i "C:\Users\Selur\Desktop\original.aac" -ac 2 -ar 44100 -f sox - | sox --multi-threaded  --temp "G:\Output\2023-02-08@17_31_15_461000" --buffer 524288 -S -t sox - -t wav - rate -v 48000 tempo 0.80000000 | fdkaac --bitrate-mode 4 --profile 2 --transport-format 0 --gapless-mode 2 --ignorelength -o "G:\Output\iId_9_aid_0_DELAY_-41ms_2023-02-08@17_31_15_4610_01.aac" -
and got:
mediainfo.exe g:\Output\iId_9_aid_0_ms_2023-02-08@17_31_15_4610_01.aac
General
Complete name                            : g:\Output\iId_9_aid_0_ms_2023-02-08@17_31_15_4610_01.aac
Format                                   : MPEG-4
Format profile                           : Apple audio with iTunes info
Codec ID                                 : M4A  (M4A /mp42/isom)
File size                                : 15.6 MiB
Duration                                 : 28 min 12 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 77.2 kb/s
Encoded date                             : UTC 2023-02-08 16:31:36
Tagged date                              : UTC 2023-02-08 16:31:36
Writing application                      : fdkaac 1.0.4, libfdk-aac 4.0.1, VBR mode 4
FileExtension_Invalid                    : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v

Audio
ID                                       : 1
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 28 min 12 s
Source duration                          : 28 min 12 s
Bit rate mode                            : Variable
Bit rate                                 : 75.6 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                              : 15.3 MiB (98%)
Source stream size                       : 15.3 MiB (98%)
Encoded date                             : UTC 2023-02-08 16:31:36
Tagged date                              : UTC 2023-02-08 16:31:36

I attached the created file.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#16
The test audios files are all extract from slowdown videos,not directly reencode from audio files. You can try slowdown any video by Hybrid and FFmpeg,then extract the audios,then play the extract audios in potplayer. You can see the slowdown audios time are shorter than the slowdown video times,and they can keep on playing after time ended,and you can't choose the time it still playing.
Reply
#17
Not using potplayer.
You can enable "Config->Container->Keep intermediate" to tell Hybrid to keep all the intermediate files.
Wild guess, could the issue be how you extract the audio?

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#18
Audios can be easily extract from any kind of videos by Xmedia record. I often use these audios to do automatic speech recognition (ASR) to transcribe subtitles, if the audios time are wrong so are the subtitles. FFmpeg can't get the slowdown audio right time directly from slowdown video.So I am here to ask whether hybrid can do this. I will try hybrid tomorrow.
By the way, how to tell Hybrid to decode vfr to cfr?
Reply
#19
I have no issue here converting 25fps content to 24fps by:
1. changing the video frame rate through Muxing->Overwrite->Frame rate 24
2. and using Audio->Base->Audio Encoding->Filtering->Speed Change decimals from 25 to 24.
(as I described before)
for me the resulting output is 24fps, sync and the playback time increased as expected.

Regarding forcing cfr: Config->Input->Decoding->CFR output

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#20
25 to 24?not 1 to 0.96?24/25=0.96
So the 1 to 0.8 previously mentioned should change 
30 to 24
I will try later.
The time of slowdown video is right.
I will check the extract slowdown audio time.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)