arista icon indicating copy to clipboard operation
arista copied to clipboard

arista-transcode | UnicodeDecodeError: 'ascii' codec can't decode byte

Open esver opened this issue 14 years ago • 3 comments

I've a problem when I launch : arista-transcode -i android I've the following message :

** Message: pygobject_register_sinkfunc is deprecated (GstObject) Info profile:

                    ID: android
                 Fait : Generic

Traceback (most recent call last): File "./arista-transcode", line 278, in "value": value UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)

I've ubuntu 10.10 in French with utf-8. When I replace the line 278 with "value": value.encode('utf-8')

It works and I have the following message : ** Message: pygobject_register_sinkfunc is deprecated (GstObject) Info profile:

                    ID: android
                 Fait : Generic
               Modèle: Android Phone

Copy text Description: Presets for all known Android phones Auteur: Daniel G. Taylor [email protected] Version: 1.4 Pré réglages: Droid / Milestone, Droid X, Galaxy Spica / GT-I5700 / Galaxy Lite, G1 / Dream, *Samsung Galaxy S, Nexus One / Desire

I think it's a problem of the french accentuated characters.

esver avatar Mar 05 '11 15:03 esver

Fixed in 2fc9bb2, thanks!

danielgtaylor avatar May 27 '11 16:05 danielgtaylor

$ arista-transcode ы.flv ** Message: pygobject_register_sinkfunc is deprecated (GstObject) Traceback (most recent call last): File "/usr/bin/arista-transcode", line 387, in to_be_created=outputs, device_name=options.device) File "/usr/lib/python2.7/site-packages/arista/utils.py", line 175, in generate_output_path default_out = name + "." + preset.extension UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)

ildar avatar May 19 '12 00:05 ildar

Thanks for finding that bug - for now just rename your file until I fix this issue in trunk.

danielgtaylor avatar May 21 '12 16:05 danielgtaylor