No audio streams exported when using Export2

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
smartflutist661
Posts: 16
Joined: Thu Jan 10, 2019 8:42 pm
Operating System: OS X 10.9 Mavericks

No audio streams exported when using Export2

Post by smartflutist661 » Fri Jan 11, 2019 7:54 pm

On Ubuntu 18.04, I've compiled the current alpha version (2.3.1, evening of 1/10/19) with mod-script-pipe enabled. I'm able to use almost all of the commands (that I've tried so far) successfully. However, I can't get Export2 to export with sound. I get a file output with the correct name, but a size of only a few hundred bytes (which appears to be the [correct] metadata, as it shows up with mediainfo), and no audio streams. No window appears to show export progress in the program. Using the Export dialog I can successfully export with the same track, name, etc.

Here's the command I'm using:

Code: Select all

Export2: Filename=test.m4a NumChannels=2

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: No audio streams exported when using Export2

Post by steve » Fri Jan 11, 2019 8:52 pm

smartflutist661 wrote:
Fri Jan 11, 2019 7:54 pm
On Ubuntu 18.04, I've compiled the current alpha version (2.3.1, evening of 1/10/19) with mod-script-pipe enabled.
Congratulations. :)
smartflutist661 wrote:
Fri Jan 11, 2019 7:54 pm

Code: Select all

Export2: Filename=test.m4a NumChannels=2
That "should" fail. The filename needs to include the full path, so something like:

Code: Select all

Export2: Filename=/home/smartflutist/Music/test.m4a NumChannels=2
Also, there could be a problem with m4a export, depending on the build of FFmpeg. I'd suggest testing it first with a format that is natively supported by Audacity (such as WAV).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

smartflutist661
Posts: 16
Joined: Thu Jan 10, 2019 8:42 pm
Operating System: OS X 10.9 Mavericks

Re: No audio streams exported when using Export2

Post by smartflutist661 » Wed Jan 16, 2019 7:47 pm

Thanks, it helps actually... you know... following the instructions. :D

A bit more testing showed me the issue.

Code: Select all

Export2: Filename=test.m4a NumChannels=2
doesn't fail, it just saves the file wherever you are running Audacity from (of course, I expect there would be potential permissions issues, but not likely to be a problem for self-compiled). However, a previous command de-selected all of the tracks in my project, so the export was doing exactly as I asked and exporting exactly nothing. Adding

Code: Select all

SelAllTracks
or whatever is appropriate before every export is the safe way to do it.

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: No audio streams exported when using Export2

Post by steve » Wed Jan 16, 2019 8:49 pm

smartflutist661 wrote:
Wed Jan 16, 2019 7:47 pm
I expect there would be potential permissions issues
Yes, I expect so, though I've not actually tested that on a fully installed version on Linux.
(my test version of 2.3.1 is within my "home" user space.)

smartflutist661 wrote:
Wed Jan 16, 2019 7:47 pm
so the export was doing exactly as I asked and exporting exactly nothing
:D Glad you found it - that could have kept us going for a while.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply