Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
--add-metadata causing errors in post processing #4776
Comments
|
Please post the full output of |
|
I can reproduce it with the test video http://www.vevo.com/watch/hurts/somebody-to-die-for/GB1101300280. Using the ffmpeg downloader instead of the native hls downloader works. Maybe we could use it instead. |
|
I am not sure if you still need the verbose output, but I have added it below. Is there a parameter to use the ffmpeg downloader or does that need to be added to the command line? youtube-dl --add-metadata --verbose --write-info-json --write-thumbnail -o test.mp4 http://cache.vevo.com/m/html/embed.html?video=USCJY1431509 |
|
@vutang50 There is a |
|
@pricejn2 I got the same error using latest ffmpeg. |
|
Ah, I see. Thanks for clarifying. |
Add fixup for media files produced by HlsNative downloader(fixes #4776)
Hi,
When running the program from a vevo source with --add-metadata parameter, in post processing phase, the following error is encountered:
[ffmpeg] Adding metadata to 'test.mp4'ERROR: av_interleaved_write_frame(): Operation not permittedThis is true even with avconv installed. I tried to manually run ffmpeg and avconv
ffmpeg -i test.mp4 -codec copy -metadata title="Test Title" test1.mp4eventually runs into this error:
[mp4 @ 0x2547260] malformated aac bitstream, use -absf aac_adtstoascav_interleaved_write_frame(): Operation not permittedIf i then execute
ffmpeg -i test.mp4 -codec copy -metadata title="Test Title" -bsf aac_adtstoasc test1.mp4That succeeds and
$ du -h *.mp4149M test1.mp4163M test.mp4$ ffprobe -loglevel quiet -show_format test1.mp4 | grep titleTAG:title=Test TitleI did not research what would be the reason for the malformed bit stream, but it happens consistently from the same source. Don't know if a good solution is to somehow activate that flag or allowing us to add more parameters in the post processor. Other wise I suppose I could use -exec or a script is to interpret the --write-json-file out and then run the ffmpeg command externally to embed the meta data. I essentially would also like to embed thumbnail but have not tried that.