Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

some new youtube videos are now impossible to keep ????

(http://stream-recorder.com/forum/showthread.php?t=18348)

bat999 05-30-2014 08:12 AM

Re: ok sort of solved but still no good on mpv vlc downloadhelper mediapimp ;;;


 
Quote:

Originally Posted by shantiq (Post 67979)
...and if you want to extract 192k

With youtube-dl --help
Code:

Post-processing Options:
-x, --extract-audio  convert video files to audio-only files

:cool:

shantiq 05-30-2014 09:30 AM

solved almost now


 
hi bat


flushed all my vlc and re-installed and then it works ... go figure

Quote:

vlc http://www.youtube.com/watch?v=vM1xYO1NlrA
VLC media player 2.0.10 Twoflower (revision 2.0.8+git20140326+r49189+13+8~ubuntu13.10.1)
[0x8dd108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
"sni-qt/24063" WARN 16:23:38.464 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
[0xb226d8] main playlist: stopping playback
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"


as regards 192k yes i know you can do --extract-audio
and that is fine

but what i was saying is that

when you download best in youtube-dl or through mediapimp or video downloadhelper you only get 720p check it !

so the only way to get 1080p-192k


is to go -f 137 for 1080p and to mux that with 192k from --extract-audio if you see what i mean

shantiq 05-30-2014 11:29 AM

muxing 1080p-192k


 
===============================


and there I did the muxing on the first 7:30 video and it takes 1h30 so not an easy option but now i have perfection see mediainfo below


see for yourself


shantiq@shantiq-00000000000000000000000:~/Videos/mux$ ffmpeg -i "Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8".mp4 -i "Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8".m4a -map 0:0 -map 1:0 "'Shallows' (Live @ Air Studios)1980p-192k".mp4
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Feb 6 2014 20:53:28 with gcc 4.8.1

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2014-04-17 10:49:41
Duration: 00:15:02.80, start: 451.401000, bitrate: 1235 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 50 tbc
Metadata:
creation_time : 2014-04-17 10:49:41
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8.m4a':
Metadata:
major_brand : M4A
minor_version : 512
compatible_brands: isomiso2
creation_time : 2014-04-17 10:50:26
encoder : Lavf53.21.1
Duration: 00:07:31.44, start: 0.000000, bitrate: 202 kb/s
Stream #1.0(und): Audio: aac, 44100 Hz, stereo, s16, 199 kb/s
Metadata:
creation_time : 2014-04-17 10:50:26
File ''Shallows' (Live @ Air Studios)1980p-192k.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0xcd9a40] w:1920 h:1080 pixfmt:yuv420p
http://www.videolan.org/x264.html - options: cabac=1 ref=3 aq=1:1.00
Output #0, mp4, to ''Shallows' (Live @ Air Studios)1980p-192k.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2014-04-17 10:49:41
encoder : Lavf53.21.1
Stream #0.0(und): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=-1--1, 25 tbn, 25 tbc
Metadata:
creation_time : 2014-04-17 10:49:41
Stream #0.1(und): Audio: libvo_aacenc, 44100 Hz, stereo, s16, 200 kb/s
Metadata:
creation_time : 2014-04-17 10:50:26
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press ctrl-c to stop encoding
frame= 11 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbitframe= 22 fps= 19 q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbitframe= 33 fps= 20 q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbitframe= 42 fps= 10 q=28.0 size= 0kB time=10000000000.00 bitrate= 0.0kbi^C^Ze= 58 fps= 6 q=28.0 size= 162kB time=0.60 bitrate=2200.6kbits/s
[1]+ Stopped ffmpeg -i "Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8".mp4 -i "Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8".m4a -map 0:0 -map 1:0 "'Shallows' (Live @ Air Studios)1980p-192k".mp4
shantiq@shantiq-00000000000000000000000:~/Videos/mux$ time ffmpeg -i "Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8".mp4 -i "Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8".m4a -map 0:0 -map 1:0 "'Shallows' (Live @ Air Studios)1980p-192k".mp4
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Feb 6 2014 20:53:28 with gcc 4.8.1

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2014-04-17 10:49:41
Duration: 00:15:02.80, start: 451.401000, bitrate: 1235 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 50 tbc
Metadata:
creation_time : 2014-04-17 10:49:41
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Daughter - 'Shallows' (Live @ Air Studios)-qPK67Px8sR8.m4a':
Metadata:
major_brand : M4A
minor_version : 512
compatible_brands: isomiso2
creation_time : 2014-04-17 10:50:26
encoder : Lavf53.21.1
Duration: 00:07:31.44, start: 0.000000, bitrate: 202 kb/s
Stream #1.0(und): Audio: aac, 44100 Hz, stereo, s16, 199 kb/s
Metadata:
creation_time : 2014-04-17 10:50:26
File ''Shallows' (Live @ Air Studios)1980p-192k.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0x17d2a40] w:1920 h:1080 pixfmt:yuv420p
[libx264 @ 0x17d5000] using SAR=1/1
[libx264 @ 0x17d5000] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
[libx264 @ 0x17d5000] profile Main, level 4.0

Output #0, mp4, to ''Shallows' (Live @ Air Studios)1980p-192k.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2014-04-17 10:49:41
encoder : Lavf53.21.1
Stream #0.0(und): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=-1--1, 25 tbn, 25 tbc
Metadata:
creation_time : 2014-04-17 10:49:41
Stream #0.1(und): Audio: libvo_aacenc, 44100 Hz, stereo, s16, 200 kb/s
Metadata:
creation_time : 2014-04-17 10:50:26
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press ctrl-c to stop encoding
frame= 10 fps= 0 q=0.0 size= 0kB time=10000000000.00 time=10000000000.00 bitrate= 0.0kbiframe=11286 fps= 2 q=28.0 Lsize= 169808kB time=451.40 bitrate=3081.7kbits/s
video:158518kB audio:11022kB global headers:0kB muxing overhead 0.158873%
frame I:182 Avg QP:18.64 size: 53017


real 96m16.446s
user 71m15.956s
sys 0m52.261s
shantiq@shantiq-00000000000000000000000:~/Videos/mux$ mediainfo "'Shallows' (Live @ Air Studios)1980p-192k".mp4General
Complete name : 'Shallows' (Live @ Air Studios)1980p-192k.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 166 MiB
Duration : 7mn 31s
Overall bit rate mode : Variable
Overall bit rate : 3 081 Kbps
Encoded date : UTC 2014-04-17 10:49:41
Tagged date : UTC 2014-04-17 10:49:41
Writing application : Lavf53.21.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 7mn 31s
Bit rate : 2 877 Kbps
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:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.055
Stream size : 155 MiB (93%)
Writing library : x264 core 123 r2189 35cf912

Encoded date : UTC 2014-04-17 10:49:41
Tagged date : UTC 2014-04-17 10:49:41

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 7mn 31s
Bit rate mode : Variable
Bit rate : 200 Kbps
Channel count : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Delay relative to video : 40ms
Stream size : 10.8 MiB (6%)
Encoded date : UTC 2014-04-17 10:49:41
Tagged date : UTC 2014-04-17 10:49:41

bat999 05-30-2014 12:22 PM

Re: muxing 1080p-192k


 
Quote:

Originally Posted by shantiq (Post 67986)
...and there I did the muxing on the first 7:30 video and it takes 1h30

Hi
You didn't mux, you converted.
That's why it took so long. :mad:
The FFmpeg command needed -vcodec copy -acodec copy.
When muxing, only takes a few seconds. :)
Should show info like this:-
Code:

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)


Download the video:-
Code:

youtube-dl -f 137 -o video.mp4 https://www.youtube.com/watch?v=qPK67Px8sR8
Download the audio:-
Code:

youtube-dl -f 22 -x -o audio.mp4 https://www.youtube.com/watch?v=qPK67Px8sR8
Mux them:-
Code:

ffmpeg -i video.mp4 -i audio.m4a -c copy "'Shallows' (Live @ Air Studios)1980p-192k".mp4
Result:-
Code:

@Xubuntu:~$ mediainfo "'Shallows' (Live @ Air Studios)1980p-192k".mp4
General
Complete name              'Shallows' (Live @ Air Studios)1980p-192k.mp4
Format                    MPEG-4
Format profile            Base Media
Codec ID                  isom
File size                  143 MiB
Duration                  7mn 31s
Overall bit rate          2 665 Kbps
Writing application        Lavf55.41.100

Video
ID                        1
Format                    AVC
Format/Info                Advanced Video Codec
Format profile            High@L4.0
Format settings, CABAC    Yes
Format settings, ReFrames  3 frames
Codec ID                  avc1
Codec ID/Info              Advanced Video Coding
Duration                  7mn 31s
Bit rate                  2 468 Kbps
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:0
Bit depth                  8 bits
Scan type                  Progressive
Bits/(Pixel*Frame)        0.048
Stream size                133 MiB (93%)

Audio
ID                        2
Format                    AAC
Format/Info                Advanced Audio Codec
Format profile            LC
Codec ID                  40
Duration                  7mn 31s
Bit rate mode              Constant
Bit rate                  192 Kbps
Channel(s)                2 channels
Channel positions          Front: L R
Sampling rate              44.1 KHz
Compression mode          Lossy
Stream size                10.3 MiB (7%)


shantiq 05-30-2014 05:30 PM

-c option


 
hhmmmm i had that -c option before but look what it does here
any ideas?


Quote:

ffmpeg -i "Daughter - 'Still' (Live @ Air Studios)-Pmv3oRVhHlg".mp4 -i "Daughter - 'Still' (Live @ Air Studios)-Pmv3oRVhHlg".m4a -c copy "'Still' (Live @ Air Studios)1980p-192k".mp4
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Feb 6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Daughter - 'Still' (Live @ Air Studios)-Pmv3oRVhHlg.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2014-05-14 17:54:53
Duration: 00:07:23.36, start: 221.681000, bitrate: 991 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 50 tbc
Metadata:
creation_time : 2014-05-14 17:54:53
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Daughter - 'Still' (Live @ Air Studios)-Pmv3oRVhHlg.m4a':
Metadata:
major_brand : M4A
minor_version : 512
compatible_brands: isomiso2
creation_time : 2014-05-14 17:28:03
encoder : Lavf53.21.1
Duration: 00:03:41.72, start: 0.000000, bitrate: 202 kb/s
Stream #1.0(und): Audio: aac, 44100 Hz, stereo, s16, 199 kb/s
Metadata:
creation_time : 2014-05-14 17:28:03
Unrecognized option 'c'
Failed to set value 'copy' for option 'c'


bat999 05-30-2014 06:22 PM

Re: -c option


 
Quote:

Originally Posted by shantiq (Post 67993)
hhmmmm i had that -c option before but look what it does here
any ideas?

With some FFmpeg/avconv versions, probably need to change
Code:

-c copy
to
Code:

-vcodec copy -acodec copy

denobis 05-31-2014 01:28 AM

Re: some new youtube videos are now impossible to keep ????


 
In fact there is a dash audio 256k itag 141. Atresdownloader downloads both streams (video+audio->256) and mux them

shantiq 05-31-2014 02:34 AM

Re: some new youtube videos are now impossible to keep ????


 
Quote:

Originally Posted by denobis (Post 68002)
In fact there is a dash audio 256k itag 141. Atresdownloader downloads both streams (video+audio->256) and mux them


there is sometimes Denobis but not here i do not think

Also I do not see where to get Atresdownloader

Would love to try it; it is your handiwork right? Can you show me a link to a download/install for Ubuntu? Gracias


Quote:

youtube-dl -F Pmv3oRVhHlg
[youtube] Setting language
[youtube] Pmv3oRVhHlg: Downloading webpage
[youtube] Pmv3oRVhHlg: Downloading video info webpage
[youtube] Pmv3oRVhHlg: Extracting video information
[youtube] Pmv3oRVhHlg: Encrypted signatures detected.
[info] Available formats for Pmv3oRVhHlg:
format code extension resolution note
171 webm audio only DASH audio , audio@ 48k (worst)
140 m4a audio only DASH audio , audio@128k
160 mp4 144p DASH video , video only
242 webm 240p DASH video , video only
133 mp4 240p DASH video , video only
243 webm 360p DASH video , video only
134 mp4 360p DASH video , video only
244 webm 480p DASH video , video only
135 mp4 480p DASH video , video only
247 webm 720p DASH video , video only
136 mp4 720p DASH video , video only
248 webm 1080p DASH video , video only
137 mp4 1080p DASH video , video only
17 3gp 176x144
36 3gp 320x240
5 flv 400x240
43 webm 640x360
18 mp4 640x360
22 mp4 1280x720 (best)

shantiq 05-31-2014 02:57 AM

Re: -c option


 
Quote:

Originally Posted by bat999 (Post 67994)
With some FFmpeg/avconv versions, probably need to change
Code:

-c copy
to
Code:

-vcodec copy -acodec copy


well Bat I must have a really dicky version of ffmpeg because it gives a half second mux with -vcodec copy -acodec copy leaving me with only the audio in the outcoming file


I had tried the -c option before I did my reencode because I had had no joy that route

maybe I need a different ffmpeg .... will update my current one and try again

Quote:

time ffmpeg -i "Daughter - 'Still' (Live @ Air Studios)-Pmv3oRVhHlg".mp4 -i "Daughter - 'Still' (Live @ Air Studios)-Pmv3oRVhHlg".m4a -vcodec copy -acodec copy Still_1980p-192k.mp4
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Feb 6 2014 20:53:28 with gcc 4.8.1

*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Daughter - 'Still' (Live @ Air Studios)-Pmv3oRVhHlg.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2014-05-14 17:54:53
Duration: 00:07:23.36, start: 221.681000, bitrate: 991 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 50 tbc
Metadata:
creation_time : 2014-05-14 17:54:53
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Daughter - 'Still' (Live @ Air Studios)-Pmv3oRVhHlg.m4a':
Metadata:
major_brand : M4A
minor_version : 512
compatible_brands: isomiso2
creation_time : 2014-05-14 17:28:03
encoder : Lavf53.21.1
Duration: 00:03:41.72, start: 0.000000, bitrate: 202 kb/s
Stream #1.0(und): Audio: aac, 44100 Hz, stereo, s16, 199 kb/s
Metadata:
creation_time : 2014-05-14 17:28:03
Output #0, mp4, to 'Still_1980p-192k.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2014-05-14 17:54:53
encoder : Lavf53.21.1
Stream #0.0(und): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 25 tbn, 25 tbc
Metadata:
creation_time : 2014-05-14 17:54:53
Stream #0.1(und): Audio: libvo_aacenc, 44100 Hz, stereo, 199 kb/s
Metadata:
creation_time : 2014-05-14 17:28:03
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press ctrl-c to stop encoding
frame= 0 fps= 0 q=-1.0 Lsize= 5489kB time=221.73 bitrate= 202.8kbits/s
video:0kB audio:5413kB global headers:0kB muxing overhead 1.391258%

real 0m0.572s
user 0m0.269s
sys 0m0.220s
shantiq@shantiq-00000000000000000000000:~/Videos/mux$

denobis 05-31-2014 03:08 AM

Re: some new youtube videos are now impossible to keep ????


 
From the dash

[2]=>
object(SimpleXMLElement)#8 (4) {
["@attributes"]=>
array(5) {
["id"]=>
string(3) "141"
["codecs"]=>
string(9) "mp4a.40.2"
["audioSamplingRate"]=>
string(5) "44100"
["startWithSAP"]=>
string(1) "1"
["bandwidth"]=>
string(6) "255980"
}
["AudioChannelConfiguration"]=>
object(SimpleXMLElement)#9 (1) {
["@attributes"]=>
array(2) {
["schemeIdUri"]=>
string(54) "urn:mpeg:dash:23003:3:audio_channel_configuration :2011"
["value"]=>
string(1) "2"
}
}
["BaseURL"]=>
string(572) "http://r7---sn-h5q7dn76.googlevideo.com/videoplayback?id=a8f2baecfc7cb11f&itag=141&source= youtube&cmbypass=yes&playback_host=r7---sn-h5q7dn76.googlevideo.com&ratebypass=yes&mime=audio/mp4&gir=yes&clen=14395085&lmt=1397818127336409&dur =451.488&key=dg_yt0&upn=TkvDJ7hSZFg&fexp=902403,90 2547,913434,923341,930008&signature=83D5552DC70FEA 6589FD1734A293A9A22CB2734D.5D3B746DF032C90B5DEF46B A6D13AE0A4DE55E&mv=m&mt=1401527166&ms=au&sver=3&ip =x.x.x.x&ipbits=0&expire=1401551384&sparams=ip,ipb its,expire,id,itag,source,cmbypass,playback_host,r atebypass,mime,gir,clen,lmt,dur"
["SegmentBase"]=>
object(SimpleXMLElement)#10 (2) {
["@attributes"]=>
array(2) {
["indexRange"]=>
string(8) "592-1175"
["indexRangeExact"]=>
string(4) "true"
}
[0]=>
object(SimpleXMLElement)#11 (1) {
["@attributes"]=>
array(1) {
["range"]=>
string(5) "0-591"
}
}
}
}
}


All times are GMT -6. The time now is 05:32 AM.