Page 1 sur 1

HabiTV 3.7 (sous Ubuntu) - Pluzz - ffmpeg

MessagePosté: Sam 20 Avr 2013 17:34
de BrunoBr
Bonjour,
D'abord un grand merci pour l'introduction des proxies :)
Le téléchargement des émissions de Pluzz fonctionne. Mais il semble qu'il y ait un soucis lors du traitement final avec ffmpeg.

Exemple :
Code: Tout sélectionner
com.dabi.habitv.framework.plugin.exception.TechnicalException: java.util.concurrent.ExecutionException: com.dabi.habitv.core.task.TaskFailedException: com.dabi.habitv.framework.plugin.exception.TechnicalException: com.dabi.habitv.framework.plugin.exception.ExecutorFailedException: Failed to set value 'copy' for option 'c'
   at com.dabi.habitv.core.task.AbstractTask.getResult(AbstractTask.java:66)
   at com.dabi.habitv.core.task.DownloadTask.getResult(DownloadTask.java:18)
   at com.dabi.habitv.core.task.AbstractTask.waitEndOfTreatment(AbstractTask.java:59)
   at com.dabi.habitv.core.task.RetrieveTask.download(RetrieveTask.java:123)
   at com.dabi.habitv.core.task.RetrieveTask.doCall(RetrieveTask.java:76)
   at com.dabi.habitv.core.task.AbstractTask.call(AbstractTask.java:27)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:722)
Caused by: java.util.concurrent.ExecutionException: com.dabi.habitv.core.task.TaskFailedException: com.dabi.habitv.framework.plugin.exception.TechnicalException: com.dabi.habitv.framework.plugin.exception.ExecutorFailedException: Failed to set value 'copy' for option 'c'
   at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
   at java.util.concurrent.FutureTask.get(FutureTask.java:111)
   at com.dabi.habitv.core.task.AbstractTask.getResult(AbstractTask.java:64)
   ... 10 more
Caused by: com.dabi.habitv.core.task.TaskFailedException: com.dabi.habitv.framework.plugin.exception.TechnicalException: com.dabi.habitv.framework.plugin.exception.ExecutorFailedException: Failed to set value 'copy' for option 'c'
   at com.dabi.habitv.core.task.AbstractTask.call(AbstractTask.java:37)
   ... 5 more
Caused by: com.dabi.habitv.framework.plugin.exception.TechnicalException: com.dabi.habitv.framework.plugin.exception.ExecutorFailedException: Failed to set value 'copy' for option 'c'
   at com.dabi.habitv.provider.pluzz.jpluzz.PluzzDLM3U8.dl(PluzzDLM3U8.java:100)
   at com.dabi.habitv.provider.pluzz.PluzzPluginManager.download(PluzzPluginManager.java:76)
   at com.dabi.habitv.core.task.DownloadTask.doCall(DownloadTask.java:82)
   at com.dabi.habitv.core.task.AbstractTask.call(AbstractTask.java:27)
   ... 5 more
Caused by: com.dabi.habitv.framework.plugin.exception.ExecutorFailedException: Failed to set value 'copy' for option 'c'
   at com.dabi.habitv.framework.plugin.utils.CmdExecutor.execute(CmdExecutor.java:84)
   at com.dabi.habitv.provider.pluzz.jpluzz.PluzzDLM3U8.dl(PluzzDLM3U8.java:97)
   ... 8 more
cmd wasffmpeg -isync -i /media/2To_1/habitv_downloads/On_n_est_pas_que_des_cobayes__/2013-04-20-12:49-2013-04-14.mp4.tmp.frg -c copy -absf aac_adtstoasc -f mp4 -y /media/2To_1/habitv_downloads/On_n_est_pas_que_des_cobayes__/2013-04-20-12:49-2013-04-14.mp4.tmp
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Apr  2 2013 17:02:36 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.
[mpegts @ 0x12087a0] max_analyze_duration reached
[mpegts @ 0x12087a0] Continuity check failed for pid 17 expected 14 got 0
[mpegts @ 0x12087a0] Continuity check failed for pid 0 expected 6 got 0
[mpegts @ 0x12087a0] Continuity check failed for pid 257 expected 1 got 0
[mpegts @ 0x12087a0] Continuity check failed for pid 256 expected 15 got 0
Input #0, mpegts, from '/media/2To_1/habitv_downloads/On_n_est_pas_que_des_cobayes__/2013-04-20-12:49-2013-04-14.mp4.tmp.frg':
  Duration: 00:52:16.04, start: 0.040000, bitrate: 862 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0.0[0x100]: Audio: aac, 32000 Hz, stereo, s16, 61 kb/s
    Stream #0.1[0x101]: Video: h264 (Constrained Baseline), yuv420p, 640x360 [PAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Unrecognized option 'c'
Failed to set value 'copy' for option 'c'

Download failed for pluzz-On n'est pas que des cobayes !-2013-04-14-1


Pour voir, j'ai essayé de lancer ffmpeg à la main :
ffmpeg -isync -i /media/2To_1/habitv_downloads/On_n_est_pas_que_des_cobayes__/2013-04-20-12:49-2013-04-14.mp4.tmp.frg -c copy -absf aac_adtstoasc -f mp4 -y /media/2To_1/habitv_downloads/On_n_est_pas_que_des_cobayes__/2013-04-20-12:49-2013-04-14.mp4.tmp

... même résultat :
Unrecognized option 'c'
Failed to set value 'copy' for option 'c'

Une idée ?

Bruno.

Re: HabiTV 3.7 (sous Ubuntu) - Pluzz - ffmpeg

MessagePosté: Sam 20 Avr 2013 18:04
de BrunoBr
Je me réponds ;)

Sous Ubuntu, il faut utiliser la dernière version de ffmpeg disponible en installant le repository jon-severinsson/ffmpeg avec la commande suivante :
sudo add-apt-repository ppa:jon-severinsson/ffmpeg
Ensuite, il suffit d'actualiser ffmpeg (via Synaptic, par exemple)

Si ça peut servir à quelqu'un...

Bruno.

Re: HabiTV 3.7 (sous Ubuntu) - Pluzz - ffmpeg

MessagePosté: Dim 21 Avr 2013 13:14
de dabiboo
Merci pour la solution :)

Re: HabiTV 3.7 (sous Ubuntu) - Pluzz - ffmpeg

MessagePosté: Lun 17 Fév 2014 23:05
de avconv
En fait, la solution la plus simple est d'utiliser avconv, qui est le fork de ffmpeg dispo sous Ubuntu.
Il suffit donc de remplacer 'ffmpeg' dans la ligne de commande par 'avconv'.

Par ailleurs, l'option '-absf' est obsolète et n'est plus supportée par les dernières versions, où il faut utiliser à la place '-bsf:a' qui fait exactement la même chose.

Dans le cas présent la ligne de commande de départ devient donc :
avconv -isync -i /media/2To_1/habitv_downloads/On_n_est_pas_que_des_cobayes__/2013-04-20-12:49-2013-04-14.mp4.tmp.frg -c copy -bsf:a aac_adtstoasc -f mp4 -y /media/2To_1/habitv_downloads/On_n_est_pas_que_des_cobayes__/2013-04-20-12:49-2013-04-14.mp4.tmp
ce qui fonctionne comme sur des roulettes !