News:

--

Main Menu

avidemux 2.73

Started by lenin38, April 07, 2019, 02:05:49 AM

Previous topic - Next topic

lenin38

What I want is that when converting a mkv file of 1280 x 720p it comes out with the same dimensions in 720p otherwise it leaves it in 1280x573 nominally     that when converting it is in the same dimension if 1280x 720p that is the same conversion dimension           

eumagga0x2a

Quote from: lenin38 on April 07, 2019, 02:05:49 AM
What I want is that when converting a mkv file of 1280 x 720p it comes out with the same dimensions in 720p

It always does unless you add the crop filter.

eumagga0x2a

QuoteHow can I keep the scale 16: 9

You mean probably the display aspect ratio. Avidemux always assumes square pixels, so without user intervention 1280x720 will be stored as 16:9. For any deeper going deliberations, you should have followed my request and posted a JPG export of a video frame from Avidemux.

By the way, MediaInfo provides purely textual information. No need to post screenshots.

Quotedoes not support vide vp9 audio opus mkv

I can't follow you, Avidemux supports both VP9 video and Opus audio tracks in MKV, reading as well as writing.

eumagga0x2a

Okay, assuming the source is not stretched or squeezed: You should not modify pixel aspect ratio in the "output 1" tab of the x264 configuration dialog. It should stay at the default value of 1:1. Additionally, you may set "force aspect ratio" in the configuration of the MKV muxer to 16:9.

Most video players ignore the pixel aspect ratio in the video stream and follow only the display aspect ratio stored at the container (MKV, mp4 etc.) level.

eumagga0x2a

This works just fine for me with the limitation that YouTube offers VP9 encoded videos as video-only .webm. The audio track has to be retrieved separately (also a .webm in case of Opus). Avidemux can use neither .webm nor raw Opus stream as external audio track, so both have to be muxed together using e.g. FFmpeg. Avidemux loaded the resulting .mkv file impeccably in my testing, including cutting in copy mode.

So please explain how to get unsupported VP9 video files from YouTube.

dosdan

#5
Quote from: eumagga0x2a on April 08, 2019, 06:40:28 AM
This works just fine for me with the limitation that YouTube offers VP9 encoded videos as video-only .webm. The audio track has to be retrieved separately (also a .webm in case of Opus). Avidemux can use neither .webm nor raw Opus stream as external audio track, so both have to be muxed together using e.g. FFmpeg. Avidemux loaded the resulting .mkv file impeccably in my testing, including cutting in copy mode.

Here's an example using a small clip:
JJ Cale After Midnight 
https://www.youtube.com/watch?v=q7Hzd9In7J4

See the available formats to d/l:

youtube-dl -F https://www.youtube.com/watch?v=q7Hzd9In7J4
249          webm       audio only DASH audio   56k , opus @ 50k, 1.35MiB
250          webm       audio only DASH audio   70k , opus @ 70k, 1.70MiB
171          webm       audio only DASH audio   96k , vorbis@128k, 2.53MiB
140          m4a        audio only DASH audio  127k , m4a_dash container, mp4a.40.2@128k, 3.52MiB
251          webm       audio only DASH audio  150k , opus @160k, 3.73MiB
160          mp4        192x144    144p   66k , avc1.4d400c, 30fps, video only, 989.50KiB
278          webm       192x144    144p   73k , webm container, vp9, 30fps, video only, 1.68MiB
133          mp4        320x240    240p  115k , avc1.4d400d, 30fps, video only, 1.60MiB
242          webm       320x240    240p  168k , vp9, 30fps, video only, 3.00MiB
134          mp4        480x360    360p  269k , avc1.4d401e, 30fps, video only, 3.89MiB
243          webm       480x360    360p  307k , vp9, 30fps, video only, 5.47MiB
135          mp4        640x480    480p  530k , avc1.4d401e, 30fps, video only, 8.03MiB
244          webm       640x480    480p  567k , vp9, 30fps, video only, 9.69MiB
43           webm       640x360    medium , vp8.0, vorbis@128k, 19.03MiB
18           mp4        480x360    medium  398k , avc1.42001E, mp4a.40.2@ 96k (44100Hz), 11.02MiB (best)


The two formats I'll use are f244 (vp9) and f251 (opus).  We can d/l both and, if ffmpeg.exe is also in the PATH or in the current directory, it will then be automatically invoked to mux these two streams into the container specified in the output file extension:

youtube-dl.exe -f244+251  https://www.youtube.com/watch?v=q7Hzd9In7J4  -o "JJ Cale After Midnight_both.mkv"

This is the easiest way, but you could do it separately. A problem arises in that both f244 (VP9 video) and f251 (opus audio), when downloaded are both titled ""JJ Cale After Midnight.webm". So after downloading one of these streams, youtube-dl will baulk when you go to download the 2nd stream as it thinks this has already been downloaded.  The solution is to explicitly name one or both streams:

youtube-dl.exe -f244  https://www.youtube.com/watch?v=q7Hzd9In7J4  -o "JJ Cale After Midnight_video.webm"

youtube-dl.exe -f251 https://www.youtube.com/watch?v=q7Hzd9In7J4  -o "JJ Cale After Midnight_audio.webm"

ffmpeg -i "JJ Cale After Midnight_video.webm" -i "JJ Cale After Midnight_audio.webm" -c:v copy -c:a copy "JJ Cale After Midnight_combined.mkv"


The MKV file loads fine in ADM.

Dan.

dosdan

#6
I had no problems dowmloading this file, converting it to mkv (see below) and then opening it in either ADM versions 2.71 or 2.73 VC++.

The list of download formats on offer:

d:\YouTube_dl>youtube-dl.exe -F https://www.youtube.com/watch?v=jCK44VKzeS4
[youtube] jCK44VKzeS4: Downloading webpage
[youtube] jCK44VKzeS4: Downloading video info webpage
[info] Available formats for jCK44VKzeS4:
format code  extension  resolution note
249          webm       audio only DASH audio   56k , opus @ 50k, 1.11MiB
250          webm       audio only DASH audio   74k , opus @ 70k, 1.45MiB
140          m4a        audio only DASH audio  130k , m4a_dash container, mp4a.40.2@128k, 2.96MiB
171          webm       audio only DASH audio  135k , vorbis@128k, 2.51MiB
251          webm       audio only DASH audio  144k , opus @160k, 2.85MiB
278          webm       256x144    144p   97k , webm container, vp9, 24fps, video only, 1.73MiB
394          mp4        256x144    144p  108k , av01.0.05M.08, 24fps, video only, 1.78MiB
160          mp4        256x144    144p  110k , avc1.4d400c, 24fps, video only, 1.77MiB
242          webm       426x240    240p  223k , vp9, 24fps, video only, 3.79MiB
395          mp4        426x240    240p  235k , av01.0.05M.08, 24fps, video only, 3.81MiB
133          mp4        426x240    240p  244k , avc1.4d4015, 24fps, video only, 3.66MiB
243          webm       640x360    360p  409k , vp9, 24fps, video only, 7.09MiB
396          mp4        640x360    360p  429k , av01.0.05M.08, 24fps, video only, 7.14MiB
134          mp4        640x360    360p  633k , avc1.4d401e, 24fps, video only, 10.61MiB
244          webm       854x480    480p  762k , vp9, 24fps, video only, 13.15MiB
397          mp4        854x480    480p  787k , av01.0.05M.08, 24fps, video only, 13.24MiB
135          mp4        854x480    480p 1167k , avc1.4d401e, 24fps, video only, 20.84MiB
247          webm       1280x720   720p 1523k , vp9, 24fps, video only, 27.17MiB
398          mp4        1280x720   720p 1556k , av01.0.05M.08, 24fps, video only, 27.10MiB
136          mp4        1280x720   720p 2314k , avc1.4d401f, 24fps, video only, 41.40MiB
248          webm       1920x1080  1080p 2676k , vp9, 24fps, video only, 48.31MiB
137          mp4        1920x1080  1080p 4336k , avc1.640028, 24fps, video only, 77.32MiB
271          webm       2560x1440  1440p 9113k , vp9, 24fps, video only, 158.05MiB
313          webm       3840x2160  2160p 18039k , vp9, 24fps, video only, 331.26MiB
18           mp4        640x360    medium  625k , avc1.42001E, mp4a.40.2@ 96k (44100Hz), 14.27MiB (best)



I chose the 247 VP9 and 251 Opus streams.   I noticed that even when I specified MKV as the output extention using the "-o filename" option, it was being ignored, So the downloaded file was still a WEBM fie named "D:\youtube_dl\Snow Tha Product - Bilingue (Official Music Video).mkv.webm". I'm used to how FFMEG operates, so I had to look at YOUTUBE-DL more carefully. It was not clearly communicating to FFMPEG that it was to use a MKV container when it merged the two streams, but this can be done by adding the "--merge-output-format mkv" option. So the command I used was:

d:\YouTube_dl>youtube-dl.exe -f247+251 https://www.youtube.com/watch?v=jCK44VKzeS4  --merge-output-format mkv
[youtube] jCK44VKzeS4: Downloading webpage
[youtube] jCK44VKzeS4: Downloading video info webpage
[download] Destination: D:\youtube_dl\Snow Tha Product - Bilingue (Official Music Video).f247.webm
[download] 100% of 27.17MiB in 00:05
[download] Destination: D:\youtube_dl\Snow Tha Product - Bilingue (Official Music Video).f251.webm
[download] 100% of 2.85MiB in 00:00
[ffmpeg] Merging formats into "D:\youtube_dl\Snow Tha Product - Bilingue (Official Music Video).mkv"
Deleting original file D:\youtube_dl\Snow Tha Product - Bilingue (Official Music Video).f247.webm (pass -k to keep)
Deleting original file D:\youtube_dl\Snow Tha Product - Bilingue (Official Music Video).f251.webm (pass -k to keep)


Then I checked what was the result of the download:

d:\YouTube_dl>dir  sno* Volume in drive D is Main Storage


Directory of d:\YouTube_dl\sno*

20/03/2019  10:30 AM        31,487,620 Snow Tha Product - Bilingue (Official Music Video).mkv
               1 File(s)     31,487,620 bytes



Dan.