Re: OT: youtube-dl Question

2017-10-25 Thread Ed Greshko
On 10/26/17 10:30, JD wrote:
> Some merges into mp4 are failing. To wit:
>
> [download] Destination: Calling Elvis--Dire Straits - 
> Topic--1920x1080.f137.mp4
> [download] 100% of 24.04MiB in 00:05
> [download] Destination: Calling Elvis--Dire Straits - 
> Topic--1920x1080.f251.webm
> [download] 100% of 6.10MiB in 00:01 


If you're interested in others trying to replicate the failure it is normally 
helpful
if you include the URL to the youtube video you're attempting to download.


-- 
Fedora Users List - The place to go to speculate endlessly



signature.asc
Description: OpenPGP digital signature
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: OT: youtube-dl Question

2017-10-25 Thread JD



On 10/25/2017 06:21 PM, Cameron Simpson wrote:

On 25Oct2017 11:40, JD  wrote:

On 10/25/2017 11:12 AM, Todd Zullinger wrote:

JD meant to write:
Is there a way to tell youtube-dl to save "the best formats of 
audio and video" of a download into mp4.


I think the --merge-output-format option is what you're looking for:

https://github.com/rg3/youtube-dl/blob/master/README.md#video-format-options 




Thanx!!!
That does it.


Just for interest and any further discussion, as a new youtube-dl user 
this is what's in my config file:


 --cache-dir '~/.cache/youtube-dl'
 --format mp4
 --add-metadata
 --xattrs
 -o '%(title)s--%(uploader)s--%(width)dx%(height)d.%(ext)s'

Thoughts, comments, suggestions?

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)

Some merges into mp4 are failing. To wit:

[download] Destination: Calling Elvis--Dire Straits - 
Topic--1920x1080.f137.mp4

[download] 100% of 24.04MiB in 00:05
[download] Destination: Calling Elvis--Dire Straits - 
Topic--1920x1080.f251.webm

[download] 100% of 6.10MiB in 00:01
[ffmpeg] Merging formats into "Calling Elvis--Dire Straits - 
Topic--1920x1080.mp4"
ERROR: Could not write header for output file #0 (incorrect codec 
parameters ?): Operation not permitted
[ffmpeg] Adding metadata to 'Calling Elvis--Dire Straits - 
Topic--1920x1080.mp4'
ERROR: [Errno 2] No such file or directory: 'Calling Elvis--Dire Straits 
- Topic--1920x1080.mp4'


config file contains:
-ci
--merge-output-format mp4
--audio-quality 320k
--write-auto-sub
--sub-lang en
--add-metadata
--xattrs
-o '%(title)s--%(uploader)s--%(width)dx%(height)d.%(ext)s'



___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: OT: youtube-dl Question

2017-10-25 Thread JD



On 10/25/2017 06:21 PM, Cameron Simpson wrote:

On 25Oct2017 11:40, JD  wrote:

On 10/25/2017 11:12 AM, Todd Zullinger wrote:

JD meant to write:
Is there a way to tell youtube-dl to save "the best formats of 
audio and video" of a download into mp4.


I think the --merge-output-format option is what you're looking for:

https://github.com/rg3/youtube-dl/blob/master/README.md#video-format-options 




Thanx!!!
That does it.


Just for interest and any further discussion, as a new youtube-dl user 
this is what's in my config file:


 --cache-dir '~/.cache/youtube-dl'
 --format mp4
 --add-metadata
 --xattrs
 -o '%(title)s--%(uploader)s--%(width)dx%(height)d.%(ext)s'

Thoughts, comments, suggestions?

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)
I was also wondering if youtube-dl can transcode the video to 1920x1080 
if it is not already in that resolution.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: OT: youtube-dl Question

2017-10-25 Thread JD



On 10/25/2017 06:21 PM, Cameron Simpson wrote:

On 25Oct2017 11:40, JD  wrote:

On 10/25/2017 11:12 AM, Todd Zullinger wrote:

JD meant to write:
Is there a way to tell youtube-dl to save "the best formats of 
audio and video" of a download into mp4.


I think the --merge-output-format option is what you're looking for:

https://github.com/rg3/youtube-dl/blob/master/README.md#video-format-options 




Thanx!!!
That does it.


Just for interest and any further discussion, as a new youtube-dl user 
this is what's in my config file:


 --cache-dir '~/.cache/youtube-dl'
 --format mp4
 --add-metadata
 --xattrs
 -o '%(title)s--%(uploader)s--%(width)dx%(height)d.%(ext)s'

Thoughts, comments, suggestions?

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)

Hin cameron,
Question:
Many movies on YT might have subtitles.
I am going to add the option to get the English subtitles
because on so many videos, the dialogue becomes too faint
to hear or it is often mixed with other studio background noises
that makes it hard  to understand the dialogue.

I added
|--audio-quality 320k ||-sub-lang en
However, the formats that the subtitle is listed with are
only vtt, ttml
which rules out mp4.

|
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: OT: youtube-dl Question

2017-10-25 Thread Cameron Simpson

On 25Oct2017 11:40, JD  wrote:

On 10/25/2017 11:12 AM, Todd Zullinger wrote:

JD meant to write:
Is there a way to tell youtube-dl to save "the best formats of 
audio and video" of a download into mp4.


I think the --merge-output-format option is what you're looking for:

https://github.com/rg3/youtube-dl/blob/master/README.md#video-format-options


Thanx!!!
That does it.


Just for interest and any further discussion, as a new youtube-dl user this is 
what's in my config file:


 --cache-dir '~/.cache/youtube-dl'
 --format mp4
 --add-metadata
 --xattrs
 -o '%(title)s--%(uploader)s--%(width)dx%(height)d.%(ext)s'

Thoughts, comments, suggestions?

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Bash startup files

2017-10-25 Thread Cameron Simpson

On 25Oct2017 14:24, GianPiero Puccioni  wrote:

I have a question about the system startup files for bash.

The problem I had was that I set up an alias in ~/.bashrc, let's say
alias ls="ls -lh"
but it didn't work as "alias ls" reported
alias ls='ls --color=auto'

What happens is that at the end ~/.bashrc sources /etc/bashrc which sources
/etc/profile.d/*.sh that redefine "ll".

This happens on F24, F25, F26 and CentOS

Easy to correct, but the question is: is that right? None of the 
examples I found on line does that and /etc/profile.d/*.sh are already 
sourced by /etc/profile (which is the first startup file read on 
login). Is this a quirk of RedHat or an error that still remains in the files 
or what?


There are at least 2 things wrong.

First, the .bashrc (which one presumes first came from the template in 
/etc/skel) should source /etc/bashrc _first_, not last.


Second, /etc/bashrc should _not_ be sourcing anything in /etc/profile.d. That 
is for _login_ shells.


Have a look at the "INVOCATION" section of "man bash".

Bash has roughly 3 modes: batch mode, interactive mode and login mode.

Batch mode is used to run scripts. It should basicly source nothing new.

An interactive shell should source your .bashrc, to get settings useful for 
interactive use (convenience aliases like your "ls", prompt settings, etc).


A login shell should source /etc/profile, to get per login fuller settings (set 
up your $PATH, and so forth, often more expensive than plain "interactive" 
shells). It is very common for this in turn to source your .bashrc as a final 
act if the shell is also interactive.


So the bashrc has _no_ business sourcing /etc/profile or /etc/profile.d.

In the modern world (GUI desktop) the picture is complicated and what you're 
observing is probably a consequence of bad decisions to address that 
complication.


In ancient times, one logged in on a serial terminal, or less anciently, on a 
text mode PC console. You started a single login shell, which ran /etc/profile 
once, setting up your environment. All subshells would be interactive, sourcing 
the .bashrc (or equivalent) for interactive settings like convenience aliases.  
You might then start X11 to get a GUI desktop, and reasonably all the terminal 
emulators you then run would just run plain interactive shells, since your 
/etc/profile had already happened.


With a GUI login, the desktop starts up and the terminals you might invoke 
don't have the benefit of an original sourcing of /etc/profile (unless you've 
made personal efforts to that end, as I do).


As a consequence, GUI desktop often start terminals with shells in "login" mode 
inside them, expressly to ensure that you get your /etc/profile and .profile 
sourced. Slower but gets it done. On a modern machine the performance issue is 
usually minor.


However, terminal emulators might not do that. So someone in bash install setup 
land for the various distros has taken it upon themselves to make ordinary 
interactive shells act like login shells. Gah! Overkill.


However, that is the kind of decision that leads to the bashrc sourcing 
/etc/profile stuff.


Hoping this explains the situation somewhat.

Cheers,
Cameron Simpson  (formerly c...@zip.com.au)
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: cannon mfc 620 scanning

2017-10-25 Thread Fred Smith
On Wed, Oct 25, 2017 at 11:52:20AM -0700, Howard Howell wrote:
> Hi, guys,
>   I have to scan a document into my computer from a cannon mfc620
> multifunction printer.  It is wifi connected, and I have also a USB
> connection.  Xsane says no device connected and exits.
> 
> Any help? googling didn't give me anything useful.
> 
> Regards,
> Les H

It looks as if Sane has support for Canon PIXMA MP620 (you can check out
the sane page at: http://www.sane-project.org/sane-backends.html).

I have no clue if that is in any way similar to MFC620. I'd guess
not, but that's the only thing shown on that page that is both a Canon
and has the numbers 620 in it.

Traditionally, Canon hasn't been forthcoming with helpful information
for their devices, so you may be lost in that black hole.

if it is connected via USB, you could see if "sane-find-scanner" turns
up anything. (check out its manpage). It is part of the sane-backends
package.

Oh, of course the FIRST question I should have asked is: Has it ever
worked, before, with LInux/SANE ?

good luck!

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
  "For him who is able to keep you from falling and to present you before his 
 glorious presence without fault and with great joy--to the only God our Savior
 be glory, majesty, power and authority, through Jesus Christ our Lord, before
 all ages, now and forevermore! Amen."
- Jude 1:24,25 (niv) -
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


cannon mfc 620 scanning

2017-10-25 Thread Howard Howell
Hi, guys,
I have to scan a document into my computer from a cannon mfc620
multifunction printer.  It is wifi connected, and I have also a USB
connection.  Xsane says no device connected and exits.

Any help? googling didn't give me anything useful.

Regards,
Les H
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: OT: youtube-dl Question

2017-10-25 Thread JD



On 10/25/2017 11:12 AM, Todd Zullinger wrote:

JD meant to write:
Is there a way to tell youtube-dl to save "the best formats of audio 
and video" of a download into mp4.


I think the --merge-output-format option is what you're looking for:

https://github.com/rg3/youtube-dl/blob/master/README.md#video-format-options 




Thanx!!!
That does it.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: OT: youtube-dl Question

2017-10-25 Thread Todd Zullinger

JD meant to write:
Is there a way to tell youtube-dl to save "the best formats of audio and 
video" of a download into mp4.


I think the --merge-output-format option is what you're looking for:

https://github.com/rg3/youtube-dl/blob/master/README.md#video-format-options

--
Todd
~~
Hofstadter's Law: It always takes longer than you expect, even when
you take into account Hofstadter's Law.
   -- Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


[Was OT: smplayer Question] Youtube-dl Question

2017-10-25 Thread JD

Sorry about that ... I meant to set the subject to youtube-dl Question 

On 10/25/2017 11:04 AM, JD wrote:
Is there a way to tell smplayer to save "the best formats of audio and 
video" of a download into mp4.
More often than not, it merges the audio file and video file into mkv; 
to wit:


youtube-dl -ci  
.
.
.
Requested formats are incompatible for merge and will be merged into mkv.
.
.


Thanx!

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


OT: smplayer Question

2017-10-25 Thread JD
Is there a way to tell smplayer to save "the best formats of audio and 
video" of a download into mp4.
More often than not, it merges the audio file and video file into mkv; 
to wit:


youtube-dl -ci  
.
.
.
Requested formats are incompatible for merge and will be merged into mkv.
.
.


Thanx!
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Bash startup files

2017-10-25 Thread GianPiero Puccioni

Hi,

I have a question about the system startup files for bash.

The problem I had was that I set up an alias in ~/.bashrc, let's say
alias ls="ls -lh"
but it didn't work as "alias ls" reported
alias ls='ls --color=auto'

What happens is that at the end ~/.bashrc sources /etc/bashrc which sources
/etc/profile.d/*.sh that redefine "ll".

This happens on F24, F25, F26 and CentOS

Easy to correct, but the question is: is that right? None of the examples I 
found on line does that and /etc/profile.d/*.sh are already sourced by 
/etc/profile (which is the first startup file read on login). Is this a quirk of 
RedHat or an error that still remains in the files or what?


GianPiero
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org