Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AtomicParsley error: bad mpeg4 file (ftyp atom missing or alignment error). #2768

Closed
pricejn2 opened this issue Apr 18, 2014 · 12 comments
Closed

Comments

@pricejn2
Copy link

@pricejn2 pricejn2 commented Apr 18, 2014

The --embed-thumbnail feature introduced in #2404 errors out when converting an mpeg4 file to any non-mpeg4 format, such as mp3 or aac. Should we be using something like mutagen for these instead?

youtube-dl -o "%(extractor)s-%(id)s.%(ext)s" --embed-thumbnail --restrict-filenames -f bestaudio --audio-format mp3 -x fNAAGMW3Nts -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-o', '%(extractor)s-%(id)s.%(ext)s', '--embed-thumbnail', '--restrict-filenames', '-f', 'bestaudio', '--audio-format', 'mp3', '-x', 'fNAAGMW3Nts', '-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.13
[debug] Python version 2.7.3 - Linux-3.2.0-4-amd64-x86_64-with-debian-7.4
[debug] Proxy map: {}
[youtube] Setting language
[youtube] fNAAGMW3Nts: Downloading webpage
[youtube] fNAAGMW3Nts: Downloading video info webpage
[youtube] fNAAGMW3Nts: Extracting video information
[download] Destination: youtube-fNAAGMW3Nts.m4a
[download] 100% of 3.62MiB in 00:01
[avconv] Destination: youtube-fNAAGMW3Nts.mp3
[debug] ffmpeg command line: avconv -y -i youtube-fNAAGMW3Nts.m4a -vn -acodec libmp3lame -q:a 5 youtube-fNAAGMW3Nts.mp3
[ffmpeg] Fixing audio file "youtube-fNAAGMW3Nts.mp3"
[debug] ffmpeg command line: avconv -y -i youtube-fNAAGMW3Nts.mp3 -vn -acodec copy youtube-fNAAGMW3Nts.temp.mp3
[atomicparsley] Adding thumbnail to "youtube-fNAAGMW3Nts.mp3"
[debug] AtomicParsley command line: AtomicParsley youtube-fNAAGMW3Nts.mp3 --artwork youtube-fNAAGMW3Nts.thumb.mp3 -o youtube-fNAAGMW3Nts.temp.mp3
ERROR: AtomicParsley error: bad mpeg4 file (ftyp atom missing or alignment error).
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1070, in post_process
    keep_video_wish, new_info = pp.run(info)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/postprocessor/atomicparsley.py", line 50, in run
    raise AtomicParsleyPPError(msg)
AtomicParsleyPPError
@fohrums
Copy link

@fohrums fohrums commented Aug 5, 2014

[confirmed] having same problem. btw the parameter is "--embed-thumbnail" (w/out 's')

[atomicparsley] Adding thumbnail to "Dragon_Slayer-Eat_thy_dust.mp3" ERROR: AtomicParsley error: bad mpeg4 file (ftyp atom missing or alignment error).
@andras-tim
Copy link

@andras-tim andras-tim commented Aug 20, 2014

I have this error too:

$ youtube-dl --format best --audio-format mp3 --audio-quality 0 --extract-audio --embed-thumbnail OyinKrk87XQ
[youtube] Setting language
[youtube] OyinKrk87XQ: Downloading webpage
[youtube] OyinKrk87XQ: Downloading video info webpage
[youtube] OyinKrk87XQ: Extracting video information
[youtube] OyinKrk87XQ: Encrypted signatures detected.
[youtube] OyinKrk87XQ: Downloading js player vflrSlC04
[download] Lineage 2 - Lovers Reunited (Heine Theme) OST-OyinKrk87XQ.mp4 has already been downloaded
[avconv] Destination: Lineage 2 - Lovers Reunited (Heine Theme) OST-OyinKrk87XQ.mp3
[ffmpeg] Fixing audio file "Lineage 2 - Lovers Reunited (Heine Theme) OST-OyinKrk87XQ.mp3"
[atomicparsley] Adding thumbnail to "Lineage 2 - Lovers Reunited (Heine Theme) OST-OyinKrk87XQ.mp3"
ERROR: AtomicParsley error: bad mpeg4 file (ftyp atom missing or alignment error).
@sylvainbaronnet
Copy link

@sylvainbaronnet sylvainbaronnet commented Nov 28, 2014

Same problem

[atomicparsley] Adding thumbnail to "test.mp3"
ERROR: AtomicParsley error: bad mpeg4 file (ftyp atom missing or alignment error).
@zackfern
Copy link
Contributor

@zackfern zackfern commented Dec 1, 2014

Same issue:

[~] youtube-dl --restrict-filenames --write-info-json --write-thumbnail --add-metadata --embed-thumbnail --no-playlist https://soundcloud.com/maorleviofficial/if-i-fall-ml-remix
[soundcloud] maorleviofficial/if-i-fall-ml-remix: Resolving id
[soundcloud] maorleviofficial/if-i-fall-ml-remix: Downloading info JSON
[soundcloud] 138977446: Downloading track url
[info] Writing video description metadata as JSON to: COLE_PLANTE_WITH_MYON_SHANE_54_FEAT._RUBY_O_DELL-_IF_I_FALL_MAOR_LEVI_REMIX_TEKNICOLE_OUT_NOW-138977446.info.json
[soundcloud] 138977446: Downloading thumbnail ...
[soundcloud] 138977446: Writing thumbnail to: COLE_PLANTE_WITH_MYON_SHANE_54_FEAT._RUBY_O_DELL-_IF_I_FALL_MAOR_LEVI_REMIX_TEKNICOLE_OUT_NOW-138977446.jpg
[download] COLE_PLANTE_WITH_MYON_SHANE_54_FEAT._RUBY_O_DELL-_IF_I_FALL_MAOR_LEVI_REMIX_TEKNICOLE_OUT_NOW-138977446.mp3 has already been downloaded
[ffmpeg] Adding metadata to 'COLE_PLANTE_WITH_MYON_SHANE_54_FEAT._RUBY_O_DELL-_IF_I_FALL_MAOR_LEVI_REMIX_TEKNICOLE_OUT_NOW-138977446.mp3'
[atomicparsley] Adding thumbnail to "COLE_PLANTE_WITH_MYON_SHANE_54_FEAT._RUBY_O_DELL-_IF_I_FALL_MAOR_LEVI_REMIX_TEKNICOLE_OUT_NOW-138977446.mp3"
ERROR: AtomicParsley error: bad mpeg4 file (ftyp atom missing or alignment error).
@HiddenKn
Copy link

@HiddenKn HiddenKn commented Dec 8, 2014

Same here

@ptrakk
Copy link

@ptrakk ptrakk commented Jan 12, 2015

same

@Nothing4You
Copy link

@Nothing4You Nothing4You commented Apr 7, 2015

Still an issue

@ghost
Copy link

@ghost ghost commented Apr 24, 2015

Should be fixed by ddbed36. If you encounter another problems, please open a new issue.

@ghost ghost closed this Apr 24, 2015
@fohrums
Copy link

@fohrums fohrums commented Apr 24, 2015

@pulpe

Ran an update to now youtube-dl_20150417

using atomicparsley-0.9.0 i'm still receiving that same error (bad mpeg4 file due to ftyp atom missing):

user@neptune ~/download
$ youtube-dl -x --audio-format mp3 --write-thumbnail --embed-thumbnail https://www.youtube.com/watch?v=2YQU-UABLbE
[youtube] 2YQU-UABLbE: Downloading webpage
[youtube] 2YQU-UABLbE: Extracting video information
[youtube] 2YQU-UABLbE: Downloading DASH manifest
[youtube] 2YQU-UABLbE: Downloading thumbnail ...
[youtube] 2YQU-UABLbE: Writing thumbnail to: CapitalSTEEZ Feat. Joey Bada$$ - Talking Shit-2YQU-UABLbE.jpg
[download] Destination: CapitalSTEEZ Feat. Joey Bada$$ - Talking Shit-2YQU-UABLbE.m4a
[download] 100% of 5.13MiB in 00:09
[ffmpeg] Correcting container in "CapitalSTEEZ Feat. Joey Bada$$ - Talking Shit-2YQU-UABLbE.m4a"
[ffmpeg] Destination: CapitalSTEEZ Feat. Joey Bada$$ - Talking Shit-2YQU-UABLbE.mp3
Deleting original file CapitalSTEEZ Feat. Joey Bada$$ - Talking Shit-2YQU-UABLbE.m4a (pass -k to keep)
[ffmpeg] Fixing audio file "CapitalSTEEZ Feat. Joey Bada$$ - Talking Shit-2YQU-UABLbE.mp3"
[atomicparsley] Adding thumbnail to "CapitalSTEEZ Feat. Joey Bada$$ - Talking Shit-2YQU-UABLbE.mp3"
ERROR: AtomicParsley error: bad mpeg4 file (ftyp atom missing or alignment error).
@ghost
Copy link

@ghost ghost commented Apr 24, 2015

@fohrums Wait for release or use version from git.

@XDjackieXD
Copy link

@XDjackieXD XDjackieXD commented Apr 25, 2015

I cloned the latest git version and get this error (and it leaves a thumb.mp3 file without audio in addition to the mp3 file):

../youtube-dl/youtube-dl --audio-quality 0 -o "%(title)s.%(ext)s" -c -i -w --audio-format mp3 --embed-thumbnail --add-metadata https://soundcloud.com/sparxmusic/sparx-refraction-ft-adhesive
[soundcloud] sparxmusic/sparx-refraction-ft-adhesive: Resolving id
[soundcloud] sparxmusic/sparx-refraction-ft-adhesive: Downloading info JSON
[soundcloud] 90044980: Downloading track url
[soundcloud] 90044980: Checking fallback video format URL
[soundcloud] 90044980: Checking http_mp3_128_url video format URL
[download] Sparx - Refraction (Ft. Adhesive Wombat).mp3 has already been downloaded
[download] 100% of 3.72MiB
[ffmpeg] Adding metadata to 'Sparx - Refraction (Ft. Adhesive Wombat).mp3'
[ffmpeg] Adding thumbnail to "Sparx - Refraction (Ft. Adhesive Wombat).mp3"
ERROR: Sparx - Refraction (Ft. Adhesive Wombat).thumb.mp3: could not find codec parameters
@ghost
Copy link

@ghost ghost commented Apr 25, 2015

@XDjackieXD Please open a new issue with full output, use '--verbose' option. Thanks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
9 participants
You can’t perform that action at this time.