# Export by bitrate

**URL:** https://community.mp3tag.de/t/export-by-bitrate/4423
**Category:** Export
**Created:** [February 4, 2007, 3:20pm UTC](https://community.mp3tag.de/t/export-by-bitrate/4423 "2007-02-04T15:20:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ele7en11](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/6f9a4e/32.png) [@ele7en11](https://community.mp3tag.de/u/ele7en11)
#### Post date: [February 4, 2007, 3:20pm UTC](https://community.mp3tag.de/t/export-by-bitrate/4423/1 "2007-02-04T15:20:31Z")

</div>

Is it possible to create an export that is sorted by bitrate? I'm updating my collection and would like to make a list of all files that are not 320kbs.

Thanks.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 4, 2007, 6:48pm UTC](https://community.mp3tag.de/t/export-by-bitrate/4423/2 "2007-02-04T18:48:39Z")

</div>

Yes, it's possible by using $num(%\_bitrate%,4) inside the first loop.

Example:

```
$filename(txt)$loop($num(%_bitrate%,4))%_filename_ext% %_bitrate%
$loopend()

```

Kind regards,  
Florian

---

<div class="post-metadata">

### Author: ![ele7en11](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/6f9a4e/32.png) [@ele7en11](https://community.mp3tag.de/u/ele7en11)
#### Post date: [February 4, 2007, 11:27pm UTC](https://community.mp3tag.de/t/export-by-bitrate/4423/3 "2007-02-04T23:27:03Z")

</div>

Thanks for the reply. This prints out all bitrates...I would like to print out everything except 320kbs...am I doing something wrong?

Thanks again.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 5, 2007, 9:17am UTC](https://community.mp3tag.de/t/export-by-bitrate/4423/4 "2007-02-05T09:17:37Z")

</div>

```
$filename(txt)$loop($num(%_bitrate%,4))$if($less(%_bitrate%,320),%_filename_ext% %_bitrate%,)
$loopend()
```

---

<div class="post-metadata">

### Author: ![ele7en11](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/6f9a4e/32.png) [@ele7en11](https://community.mp3tag.de/u/ele7en11)
#### Post date: [February 12, 2007, 11:21pm UTC](https://community.mp3tag.de/t/export-by-bitrate/4423/5 "2007-02-12T23:21:00Z")

</div>

Okay here is the script that I am using

$filename(txt)$loop($num(%album%,4))$if($less(%\_bitrate%,320),%artist% - %album% -  
[%\_bitrate%],)  
$loopend()

My problem is that anything that is 320 is now printed as a blank line. Is there something that I can put in the script to make this not happen?

thanks.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [February 13, 2007, 11:21am UTC](https://community.mp3tag.de/t/export-by-bitrate/4423/6 "2007-02-13T11:21:15Z")

</div>

> [@](#):
>
> $filename(txt)$loop($num(%album%,4))$if($less(%\_bitrate%,320),%artist% - %album% -  
> [%\_bitrate%]$char(13)$char(10),)$loopend()
