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

Merging (vid+aud) doesn't work #3086

Closed
evolucja opened this issue Jun 15, 2014 · 6 comments
Closed

Merging (vid+aud) doesn't work #3086

evolucja opened this issue Jun 15, 2014 · 6 comments

Comments

@evolucja
Copy link

@evolucja evolucja commented Jun 15, 2014

The following command:

root:~# youtube-dl https://youtube.com/watch?v=j1cL23iJSqg -f 136+140
[youtube] Setting language
[youtube] j1cL23iJSqg: Downloading webpage
[youtube] j1cL23iJSqg: Downloading video info webpage
[youtube] j1cL23iJSqg: Extracting video information
[download] Destination: Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f136.mp4
[download] 100% of 10.68MiB in 00:00
[download] Destination: Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f140.m4a
[download] 100% of 801.66KiB in 00:00
[ffmpeg] Merging formats into "Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.mp4"

returns a 804KB file which contains only audio. It also doesn't delete f136 and f140 files but leaves them on server.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 15, 2014

It works fine here. Just to verify, you have looked into Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.mp4, don't you?
Could you post the output of ffmpeg -y -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f136.mp4' -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f140.m4a' -c copy 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.mp4' (or with avconv if you don't have ffmpeg), that's the command youtube-dl runs.

There's already an open issue about removing the dash files: #2108.

By the way, are you really running youtube-dl as root?, if so, I would highly recommend you not doing that.

@evolucja
Copy link
Author

@evolucja evolucja commented Jun 15, 2014

  1. yes I have.

  2. how can I create the special user for youtube-dl and use it with Apache on Ubuntu?

    root@:~# ffmpeg -y -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f136.mp4' -i 'Tajemnicza przesyłka i tylko 72 godziny- j1cL23iJSqg.f140.m4a' -c copy 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.mp4'
    ffmpeg version 0.8.12-4:0.8.12-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
    built on Jun 10 2014 15:31:10 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f136.mp4':
    Metadata:
    major_brand : dash
    minor_version : 0
    compatible_brands: iso6avc1mp41
    creation_time : 2014-06-11 12:16:52
    Duration: 00:01:41.93, start: 50.968000, bitrate: 879 kb/s
    Stream #0.0(und): Video: h264 (Main), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 60 tbc
    Metadata:
    creation_time : 2014-06-11 12:16:52
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f140.m4a':
    Metadata:
    major_brand : dash
    minor_version : 0
    compatible_brands: iso6mp41
    creation_time : 2014-06-11 12:16:02
    Duration: 00:01:42.11, start: 51.060612, bitrate: 64 kb/s
    Stream #1.0(und): Audio: aac, 44100 Hz, stereo, s16
    Metadata:
    creation_time : 2014-06-11 12:16:02
    Unrecognized option 'c'
    Failed to set value 'copy' for option 'c'

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 15, 2014

Run the command printed in the output of youtube-dl https://youtube.com/watch?v=j1cL23iJSqg -f 136+140 --verbose, in my case it uses ffmpeg, but in ubuntu it probably uses avconv:

[debug] ffmpeg command line: ffmpeg -y -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f136.mp4' -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f140.m4a' -c copy 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.mp4'
@evolucja
Copy link
Author

@evolucja evolucja commented Jun 15, 2014

running that command provides:
[debug] ffmpeg command line: avconv -y -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f136.mp4' -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f140.m4a' -c copy 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.mp4'

and when I copy&paste that, I'm getting the same result - 804KB output file with the sound only.

:~#  avconv -y -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f136.mp4' -i 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.    f140.m4a' -c copy 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.mp4'
avconv version 0.8.12-4:0.8.12-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Jun 10 2014 15:31:10 with gcc 4.6.3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f136.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2014-06-11 12:16:52
  Duration: 00:01:41.93, start: 50.968000, bitrate: 879 kb/s
    Stream #0.0(und): Video: h264 (Main), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 60 tbc
    Metadata:
      creation_time   : 2014-06-11 12:16:52
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.f140.m4a':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    creation_time   : 2014-06-11 12:16:02
  Duration: 00:01:42.11, start: 51.060612, bitrate: 64 kb/s
    Stream #1.0(und): Audio: aac, 44100 Hz, stereo, s16
    Metadata:
      creation_time   : 2014-06-11 12:16:02
Output #0, mp4, to 'Tajemnicza przesyłka i tylko 72 godziny-j1cL23iJSqg.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2014-06-11 12:16:52
    encoder         : Lavf53.21.1
    Stream #0.0(und): Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 90k tbc
    Metadata:
      creation_time   : 2014-06-11 12:16:52
    Stream #0.1(und): Audio: libvo_aacenc, 44100 Hz, stereo
    Metadata:
      creation_time   : 2014-06-11 12:16:02
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press ctrl-c to stop encoding
frame=    0 fps=  0 q=-1.0 Lsize=     803kB time=51.06 bitrate= 128.9kbits/s
video:0kB audio:783kB global headers:0kB muxing overhead 2.583422%
@evolucja
Copy link
Author

@evolucja evolucja commented Jun 17, 2014

I see now that the problem is common and i'm not the only one affected by it:
#1809

I tried to update my avconv to 10.1 and it seems working now, however I'm not sure if I did it correctly.. but i hope i won't have problem with it.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 18, 2014

I'm closing the issue then, thanks for reporting.

@jaimeMF jaimeMF closed this Jun 18, 2014
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
2 participants
You can’t perform that action at this time.